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

Input

Use the supported input parameters to control the command output.

Parameter

Description

URL

https://$host/reservation-service/api/reservations/policies/$id

Method

Get

$host

Specifies the host name and fully qualified domain name or IP address of the vRealize Automation identity server.

$token

Specifies a valid HTTP bearer token with necessary credentials.

Output

The command output contains property names and values based on the command input parameters.

Parameter

Description

$id

Specifies the reservation policy ID.

$name

Specifies the reservation policy name.

$description

Specifies the reservation policy description.

$reservationPolicyTypeId

Specifies the reservation policy type ID.

Example: 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://$host/reservation-service/api/reservations/policies/8adafb54-4c85-4478-86f0-b6ae80ab5ca4

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