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

开始之前

  • 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.

  • 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.

关于此任务

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

过程

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"
}

结果

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