You can use the REST API reservation service with a reservation policy ID to display information about a specific reservation policy.

About this task

For information about available command input and output parameters, see Syntax for Displaying a Reservation Policy by ID.

Prerequisites

  • Log in to vRealize Automation as a fabric group administrator.

  • Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.

  • If you are not using the API Explorer, verify that you have a valid HTTP bearer token that matches your login credentials. See REST API Authentication.

  • Obtain the reservation policy ID of the reservation policy to query. See Syntax for Listing Reservation Policies.

Procedure

Display information about the reservation policy ID.

The following example displays information about reservation policy 8adafb54-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"
}

Results

Use the command output to make updates to the reservation policy. See Syntax for Updating a Reservation Policy.