7.3

Table Of Contents
Procedure
1 List all shared catalog items in the catalog.
curl --insecure -H "Accept: application/json" -H "Content-Type: application/json" -H
"Authorization: Bearer $token" https://$vRA/catalog-service/api/consumer/entitledCatalogItemViews
For details regarding input and output for this request, see Syntax for Listing Shared and Private
Catalog Items.
2 Examine the response to find the catalogItemId
3 Get a template request for a catalog item.
Use the catalogItemId to submit the template request for this catalog item. In this example, the
catalogItemId is dc808d12-3786-4f7c-b5a1-d5f997c8ad66.
curl --insecure -H "Accept: application/json" -H "Content-Type: application/json" -H
"Authorization: Bearer $token" https://$vRA/catalog-
service/api/consumer/entitledCatalogItems/dc808d12-3786-4f7c-b5a1-d5f997c8ad66/requests/template
For details regarding input and output for this request, see Syntax for Getting a Template Request for
a Catalog Item.
A template request for the catalog item is created. The fields and default values are populated based
on the configuration of the underlying blueprint. By default, requestMachine.json is the name of the
template request.
4 Review and edit the template request.
Review the contents of the template request and edit the values if you want to change them from the
default prior to submitting the request for a machine. For example, you can specify a value for the
description field or change the values for the machine resources if the blueprint allows for a range.
5 Submit the request for a machine.
curl --insecure -H "Content-Type: application/json"
-H "Authorization: Bearer $token”
https://$vRA/catalog-service/api/consumer/entitledCatalogItems/dc808d12-3786-4f7c-b5a1-
d5f997c8ad66/requests --verbose --data
@C:/Temp/requestMachine.json
{
$contentsOfTemplateFromPrecedingSections
}
For details regarding input and output for this request see Syntax for Requesting a Machine.
Programming Guide
VMware, Inc. 43