6.2

Table Of Contents
"label" : "vCloud Air machine"
}
}
Request an Amazon Machine
You can use the vRealize Automation REST API catalog service to request an Amazon machine.
Prerequisites
n
Log in to vRealize Automation as a consumer and current business group user.
n
Verify that the host name and fully qualified domain name of the vRealize Automation instance are
available.
n
If you are not using the API Explorer, verify that you have a valid HTTP bearer token that matches
your login credentials. See Chapter 2 REST API Authentication.
n
Generate a list of catalog items from which to obtain the Amazon blueprint ID. See Syntax for Listing
Shared and Private Catalog Items.
n
Construct a JSON file for an Amazon machine request. See Syntax for Constructing a JSON File for
an Amazon Machine Request.
Procedure
1 Find the published Amazon blueprint to use for the machine request by displaying the entitled catalog
items in the service catalog.
curl --insecure -H "Content-Type: application/json"
-H "Authorization: Bearer $token”
https://$host/catalog-service/api/consumer/catalogItems?limit=10&page
2 Request a machine by using a published Amazon blueprint, the resource values specified in the
blueprint, and a JSON input file containing request data such as your user name and business group
ID.
Construct a JSON file for an Amazon machine request.
a Copy the appropriate JSON input file template to a new file in an XML editor that maintains
formatting.
b Substitute the input variables in the template with the values obtained for specific ID.
c Save the file with a new name, for example, request.json.
Programming Guide
VMware, Inc. 75