7.3

Table Of Contents
},
{
"key": "resourcePool",
"value": {
"type": "entityRef",
"componentId": null,
"classId": "ResourcePools",
"id": "4e51fabc-19e8-4e79-b413-d52309b3bb62",
"label": "CoreDev"
}
}],
"metadata": {
"size": 0,
"totalElements": 1,
"totalPages": 1,
"number": 1,
"offset": 0
}
}
Update a Reservation
You can use the reservation service to update an existing vRealize Automation reservation.
Prerequisites
In addition to the Prerequisites for Working With Reservations, perform the following tasks before
updating a reservation.
n
Obtain the reservation ID of the reservation that you want to update. This information is required API
command input. See Syntax for Displaying a List of Reservations.
n
Obtain the reservation field information for the reservation that you want to update. For example, if
you want to change from one compute resource to another, you must obtain the new compute
resource ID and its associated JSON section output. This information is required API command input.
See Syntax for Getting a Compute Resource for a Reservation.
Procedure
u
Use the reservation service to update an existing reservation.
The following example command updates a reservation with an ID of 94d74105-831a-4598-8f42-
efd590fea15c.
curl –X PUT --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/reservations/94d74105-831a-4598-8f42-efd590fea15c –d
{
"id": "94d74105-831a-4598-8f42-efd590fea15c",
"name": "TestReservation",
"reservationTypeId": "Infrastructure.Reservation.Virtual.vSphere",
"tenantId": "qe",
Programming Guide
VMware, Inc. 186