7.3

Table Of Contents
Property Description
status When the reservation policy is successfully created, the HTTP response
status is 201 created.
Header.Location The HTTP response contains a Location attribute that is format as
https://$vRA /reservation-
service/api/reservations/policies/$reservationPolicyId.
$reservationPolicyId Specifies the new reservation policy ID. Obtain this ID by listing your available
reservation policies.
Display a Reservation Policy by ID Example
GET /api/reservations/policies/{id} displays information about a specific reservation policy with a
reservation policy ID.
curl Command
The following example command retrieves information for the reservation policy with an ID of
8adafb54-4c85-4478-86f0-b6ae80ab5ca4.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/reservations/policies/8adafb54-4c85-4478-86f0-b6ae80ab5ca4
JSON Output
The following sample output displays information for the specified reservation policy ID
8adafb54-4c85-4478-86f0-b6ae80ab5ca4.
{
"id": "8adafb54-4c85-4478-86f0-b6ae80ab5ca4",
"name": "reservationPolicyTest",
"description": "reservationPolicyDescTest",
"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.ComputeResource"
}
Input
Use the supported input parameters to control the command output.
Parameter Description
URL https://$vRA/reservation-service/api/reservations/policies/$id
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.
Programming Guide
VMware, Inc. 286