7.2

Table Of Contents
}
},
{
"key": "memoryReservedSizeMb",
"value": {
"type": "integer",
"value": 4096
}
}
]
}
}
}
]
}
}
The output is a location URL, including the new vCloud Air reservation ID.
Location:
https://$host/reservation-service/api/reservations/3289b039-2a11-4ab4-a0bc-b583e4c6d085
Syntax for Creating a vCloud Air Reservation
You can use the REST API reservation service to create a vCloud Air reservation.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL hps://$host/reservation-service/api/reservations
Method Post
$host Species the host name and fully qualied domain name or IP
address of the vRealize Automation identity server.
$token Species 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 eld values to compose the HTTP body
input for the command line.
n
Update the formaed reservation information to specify the new
information:
n
remove the appropriate ID eld from the HTTP response
n
edit the eld values to compose the HTTP body input for the
command line
For information, see “Syntax for Verifying a Reservation and
Geing Reservation Details,” on page 236.
Output
The output URL contains the new reservation ID.
Programming Guide
218 VMware, Inc.