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.

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.