7.2

Table Of Contents
"value": {
"type": "entityRef",
"componentId": null,
"classId": "ResourcePools",
"id": "4e51fabc-19e8-4e79-b413-d52309b3bb62",
"label": "CoreDev"
}
}]
}
}
Example: JSON Output
The following sample location URL is displayed, including the new vSphere reservation ID.
Location:
https://$host/reservation-service/api/reservations/94d74105-831a-4598-8f42-efd590fea15c
Copy the output response into an XML editor for use in a future procedure, such as updating or deleting the
reservation.
Create a vCloud Air Reservation
You can use the vRealize Automation REST API reservation service to create 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
Verify that you have a valid HTTP bearer token that matches your login credentials. See Chapter 2,
“REST API Authentication,” on page 9.
n
Display a list of the reservation types that are supported in the vRealize Automation server. See
“Display a List of Supported Reservation Types,” on page 114.
n
Obtain the permissible value eld information required to create a new reservation. After you retrieve
all permissible value eld information, you have the input information required to create a reservation.
See “Get Resources Schema for a vSphere Reservation,” on page 193.
For the full list of tasks that you can perform before you create a reservation, see “Create a Reservation,” on
page 101.
Procedure
u
Create a vCloud Air reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/reservation-service/api/reservations -d “
{
"name": "TestvAppReservation",
"reservationTypeId": "Infrastructure.Reservation.Cloud.vCloudAir",
"tenantId": "qe",
"subTenantId": "a5d056be-3aa2-4fdd-ba1e-a3805f26f0e0",
"enabled": true,
"priority": 1,
"reservationPolicyId": null,
"alertPolicy": {
Programming Guide
214 VMware, Inc.