7.2

Table Of Contents
Display a Reservation Policy by ID
You can use the REST API reservation service with a reservation policy ID to display information about a
specic reservation policy.
For information about available command input and output parameters, see “Syntax for Displaying a
Reservation Policy by ID,” on page 270.
Prerequisites
n
Log in to vRealize Automation as a fabric group administrator.
n
Verify that the host name and fully qualied domain name of the vRealize Automation instance are
available.
n
Verify that you have a valid HTTP bearer token that matches your login credentials. See Chapter 2,
“REST API Authentication,” on page 9.
n
Obtain the reservation policy ID of the reservation policy to query. See “Syntax for Listing Reservation
Policies,” on page 266.
Procedure
u
Display information about the reservation policy ID.
The following example displays information about reservation policy 8ada54-4c85-4478-86f0-
b6ae80ab5ca4.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/reservation-service/api/reservations/policies/8adafb54-4c85-4478-86f0-
b6ae80ab5ca4
The following sample output is generated.
{
"id": "8adafb54-4c85-4478-86f0-b6ae80ab5ca4",
"name": "reservationPolicyTest",
"description": "reservationPolicyDescTest",
"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.ComputeResource"
}
Use the command output to make updates to the reservation policy. See “Syntax for Updating a Reservation
Policy,” on page 272.
Syntax for Displaying a Reservation Policy by ID
You can use the REST API reservation service with a reservation policy ID to display information about a
specic reservation policy.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL hps://$host/reservation-service/api/reservations/policies/$id
Method Get
Programming Guide
270 VMware, Inc.