You can use the REST API reservation service to display information about available resources, such as storage and network information, for a vSphere reservation.
Prerequisites
Log in to vRealize Automation as a fabric group administrator.
Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.
Get the required compute resource ID. See Get a Compute Resource for the 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://$host/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 " } }] } }”
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 ] }