7.2

Table Of Contents
Property Description
Links Species an array of link objects, each of which contains the following parts:
n
rel
Species the name of the link.
n
Self refers to the object which was returned or requested.
n
First, Previous, Next, and Last refer to corresponding pages of pageable lists.
n
Species the application or service that determines the other names.
n
href
Species the URL that produces the result.
Content Species an array of data rows, each of which represents one of the tenant objects returned in a
pageable list. Each tenant object contains the following information:
n
@type. Contains the ReservationPolicy string.
n
id. Species the unique reservation policy ID.
n
name. Species the reservation policy name.
n
description. Species the reservation policy description.
reservationPolicyTypeI
d
Species the type of reservation policy. Supported vRealize Automation reservation policy
types are Reservation.Policy.ComputeResource and Reservation.Policy.Storage.
Metadata Species the paging-related data:
n
Size. Species the maximum number of rows per page.
n
totalElements. Species the number of rows returned.
n
totalPages. Species the total number of pages of data available.
n
Number. Species the current page number.
n
Oset. Species the number of rows skipped.
Example: curl Command
List all available reservation policies.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/reservation-service/api/reservations/policies
Example: JSON Output
The following example output lists two reservation policies, named reservationPolicyTest and
reservationPolicyTest2. Use the id value for each reservation policy to update or delete them. See “Syntax
for Updating a Reservation Policy,” on page 272and “Syntax for Deleting a Reservation Policy Syntax,” on
page 274.
{
"links": [],
"content": [{
"@type": "ReservationPolicy",
"id": "8adafb54-4c85-4478-86f0-b6ae80ab5ca4",
"name": "reservationPolicyTest",
"description": "reservationPolicyDescTest",
"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.ComputeResource"
},
{
"@type": "reservationPolicy",
"id": "fdd9854b-012e-41d7-ad17-fc73d4395714",
"name": "reservationPolicyTest2",
"description": "reservationPolicyDescTest2",
"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.Storage"
}],
Chapter 3 REST API Use Cases
VMware, Inc. 267