6.2

Table Of Contents
Syntax for Requesting an Amazon Machine
You can use the vRealize Automation REST API catalog service to request an Amazon machine as
defined in your chosen blueprint, or you can override the default values of the blueprint by adding
properties to your JSON input file to override default values. For example, you can choose a specific
location.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL https://$host/catalog-service/api/consumer/requests/requestId
$host Specifies the host name and fully qualified domain name or IP address of the
vRealize Automation identity server.
$token Specifies a valid HTTP bearer token with necessary credentials.
JSON file or string input Add required JSON input to the command line. See Syntax for Constructing a
JSON File for an Amazon Machine Request.
JSON Template for Command Input
Use the following JSON template sample to create a JSON command input string set or file for use in the
command line.
{
"@type": "CatalogItemRequest",
"catalogItemRef": {
"id": "catalog_item_ID"
},
"organization": {
"tenantRef": "tenant_name",
"subtenantRef": "business_group_ID"
},
"requestedFor": "username@fqdn",
"state": "SUBMITTED",
"requestData": {
"entries": [{
"key": "provider-blueprintId",
"value": {
"type": "string",
"value": "blueprint_ID"
}
},
{
"key": "provider-provisioningGroupId",
"value": {
"type": "string",
"value": "business_group_ID"
}
},
Programming Guide
VMware, Inc. 82