7.2

Table Of Contents
Example: JSON Output
The following JSON output is returned based on the command input.
Copy the output from an underlyingValue section into an XML editor and use it as input to create or update
a reservation.
{
"values": [
{
"underlyingValue": {
"type": "entityRef",
"componentId": null,
"classId": "AmazonSecurityGroup",
"id": "9",
"label": "test1"
},
"label": "test1"
},
{
"underlyingValue": {
"type": "entityRef",
"componentId": null,
"classId": "AmazonSecurityGroup",
"id": "10",
"label": "default"
},
"label": "default"
}
]
}
Get Resources Schema for a vCloud Air Reservation
You can use the REST API reservation service to display information about available resources, such as
storage and network information, for a vCloud Air reservation.
Prerequisites
n
Log in to vRealize Automation as a fabric group administrator.
n
Verify that the host name and fully qualied domain name of the vRealize Automation instance are
available.
n
Get the required compute resource ID. See “Get a Compute Resource for the Reservation,” on page 187.
Procedure
u
Use the reservation service to display information about available resources.
The following example command displays storage and network information.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/reservation-service/api/data-
service/schema/Infrastructure.Reservation.Cloud.vCloudAir/default/reservationStorages/values
-d “
Programming Guide
200 VMware, Inc.