7.2

Table Of Contents
"value": {
"type": "integer",
"value": 4096
}
}
]
}
}
}
]
}
}
Syntax for Verifying a Reservation and Getting Reservation Details
After you create a vRealize Automation reservation, you can use the REST API reservation service and the
reservation ID to verify that the reservation exists. You can also use the ID to get information about the
reservation in preparation for updating or deleting it.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL hps://$host/reservation-service/api/reservations/$reservationId
This is the URL that is generated when you create a reservation
using the REST API. See “Syntax for Creating a vSphere
Reservation,” on page 209.
Method Get
$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.
$reservationId Species the unique identier of the reservation to verify. Obtain the
value from the output generated when you created the reservation.
See “Create a Reservation,” on page 101.
Output
The command output contains property names and values based on the command input parameters.
Property Description
status
The HTTP response status is 201 created to indicate that the reservation exists.
Header.Location
The HTTP response should contain a location aribute, format as hps://$host /reservation-
service/api/reservations/$reservationId.
$reservationId The HTTP response should contain a location aribute, formaed as hps://$host /reservation-
service/api/reservations/$reservationId.
Example: curl Command
In the following example, the reservation ID of 94d74105-831a-4598-8f42-efd590fea15c is the value you
obtained when you created the reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/reservation-service/api/reservations/94d74105-831a-4598-8f42-efd590fea15c
Programming Guide
236 VMware, Inc.