7.3

Table Of Contents
Syntax for Verifying a Reservation and Getting Reservation Details
GET /api/reservations/{id} retrieves a vRealize Automation reservation. After you create a
reservation, you can use 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 https://$vRA/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.
Method Get
$vRA Specifies the appliance name and fully qualified domain name, or IP
address of the vRealize Automation server.
$token Specifies a valid HTTP bearer token with necessary credentials.
$reservationId Specifies the unique identifier of the reservation to verify. Obtain the value
from the output generated when you created the reservation. See Create a
Reservation.
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 attribute, format as https://$vRA /reservation-
service/api/reservations/$reservationId.
$reservationId The HTTP response should contain a location attribute, formatted as https://$vRA /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://$vRA/reservation-service/api/reservations/94d74105-831a-4598-8f42-efd590fea15c
Example: JSON Output for a vSphere Reservation
The following JSON output is returned based on the command input.
Programming Guide
VMware, Inc. 262