7.3

Table Of Contents
Create an Amazon Reservation
You can use the reservation service to create an Amazon reservation.
Prerequisites
In addition to the Prerequisites for Working With Reservations, perform the following tasks before creating
a reservation.
n
Display a list of the reservation types that are supported in the vRealize Automation server. See
Display a List of Supported Reservation Types.
n
Obtain the permissible value field information required to create a new reservation. See Get
Resources Schema for an Amazon Reservation.
Procedure
u
Create an Amazon reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/reservations -d “
{
"name": "TestEC2Reservation",
"reservationTypeId": "Infrastructure.Reservation.Cloud.Amazon",
"tenantId": "qe",
"subTenantId": "a5d056be-3aa2-4fdd-ba1e-a3805f26f0e0",
"enabled": true,
"priority": 1,
"reservationPolicyId": "34d2a612-718e-4814-96c5-225f7f5615a6",
"alertPolicy": {
"enabled": false,
"frequencyReminder": 0,
"emailBgMgr": true,
"recipients": [
],
"alerts": [
{
"alertPercentLevel": 80,
"referenceResourceId": "machine",
"id": "machine"
}
]
},
"extensionData": {
"entries": [
{
"key": "computeResource",
"value": {
"type": "entityRef",
"componentId": null,
"classId": "ComputeResource",
"id": "9d1a3b5a-7162-4a5a-85b7-ec1b2824f554",
Programming Guide
VMware, Inc. 167