Get Resources Schema for a vSphere Reservation
You can use the reservation service to display information about available resources, such as storage and network information, for a vSphere reservation.
Procedure
Display information
about available resources.
The following example
command queries resource pool information for the compute resource
cc254a84-95b8-434a-874d-bdfef8e8ad2c.
curl --insecure -H "Accept:application/json" -H "Authorization: Bearer $token" https://$vRA/reservation-service/api/data-service/schema/Infrastructure.Reservation.Virtual.vSphere/default/resourcePool/values -d “{ "text": "", "dependencyValues": { "entries": [{ "key": "computeResource", "value": { "type": "entityRef", "componentId": null, "classId": "ComputeResource", "id": " cc254a84-95b8-434a-874d-bdfef8e8ad2c " } }] } }”
Example: Get Resources Schema for a vSphere Reservation
The following JSON output is
returned based on the command input.
{ "values": [{ "underlyingValue": { "type": "entityRef", "componentId": null, "classId": "ResourcePools", "id": " 4e51fabc-19e8-4e79-b413-d52309b3bb62", "label": " CoreDev" }, "label": " CoreDev" }, { "underlyingValue": { "type": "entityRef", "componentId": null, "classId": "ResourcePools", "id": "1186b5cc-cdef-4afb-8653-0ad41a36c194", "label": "Documentation" }, "label": "Documentation" }, //Omit other resource pool list ] }