7.2

Table Of Contents
3 Use a POST command to send the template without modication to the corresponding URI.
$curl --insecure -s
-H" Content-Type: multipart/form-data" -H "Authorization: Bearer $token"
https://$hosts/catalog-service/api/consumer/resources/dd37b7a1-829c-4773-b5be-
b229453eca4a/actions/b5739e30-871d-48c7-9012-f2a7cf431dc1/requests
Accept: application/json
Content-Type: application/json
Authorization: Bearer $token
{
"type": "com.vmware.vcac.catalog.domain.request.CatalogResourceRequest",
"resourceId": "dd37b7a1-829c-4773-b5be-b229453eca4a",
"actionId": "b5739e30-871d-48c7-9012-f2a7cf431dc1",
"description": null,
"data": {
"provider-ExpirationDate": "2015-08-29T16:44:13.846Z"
}
}
This POST command returns a response indicating success or failure, such as HTTP/1.1 201 CREATED for
success.
Working with Reservations
You can work with the REST API reservation service to perform a variety of functions, such as creating and
updating reservations.
The vRealize Automation REST API reservation service supports the following reservation types:
n
vSphere (except for FlexClone in vSphere)
n
vCloud Air
n
vCloud Director
n
Amazon
n
Hyper-V
n
KVM
n
Xen
The following reservation types are not supported:
n
OpenStack
n
Physical reservation
The reservation service is extensible, which allows you to add new reservation types.
A reservation must belong to a business group, also referred to as a subtenant. A business group can have
multiple reservations on the same resources or on dierent resources.
Note The Reservation API now returns compute resource endpoint names within parentheses. You may
need to update any client code which contains logic that uses compute resource names to account for this
change.
Create a Reservation
You can use the vRealize Automation REST API reservation service to create a reservation.
You can use the following procedure to create a vSphere, vCloud Air, or Amazon reservation.
Chapter 3 REST API Use Cases
VMware, Inc. 101