7.0

Table Of Contents
Parameter Description
$token Specifies a valid HTTP bearer token with necessary credentials.
HTTP body The HTTP body describes the reservation to create and calls the REST
API used to create the reservation.
Compose the HTTP body using one of the following methods:
n
Copy the HTTP body from the JSON output from this example and
edit the applicable field values to compose the HTTP body input for
the command line.
n
Update the formatted reservation information to specify the new
information:
n
remove the appropriate ID field from the HTTP response
n
edit the field values to compose the HTTP body input for the
command line
For information, see Syntax for Verifying a Reservation and Getting
Reservation Details.
Output
The output URL contains the new reservation ID.
Property Description
status When the reservation is successfully created, the HTTP response status is
201 created.
Header.Location The HTTP response contains a Location attribute that is formatted as
https://$host /reservation-service/api/reservations/$reservationId.
$reservationId Specifies the new reservation ID.
Example: curl Command
The following sample command creates a vCloud Air reservation. The HTTP body is included as part of
the command line input.
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": {
"enabled": false,
"frequencyReminder": 0,
"emailBgMgr": true,
"recipients": [
Programming Guide
VMware, Inc. 230