7.2

Table Of Contents
Property Description
dateSubmied Species the date when this request was rst submied.
dateApproved Species the date when this request was approved.
dateCompleted Species the date when this request was completed.
quote Contains a quote made by the provider dening the estimated cost(s) associated with
the request and/or any resources provisioned as a result of the request.
requestCompletion Contains additional request completion information.
requestData Contains a map of the provider-specic eld-value pairs collected for this request.
retriesRemaning Species the number of aempts remaining to move this request from its current state to
the next state in the request workow.
Some state transitions require calls to external services. These calls may fail due to
transient errors such as momentary network errors. In these cases, the catalog will retry
the call a number of times before failing.
This property denes the number of retries remaining for the current state transition.
When it reaches 0, the catalog will stop retrying and mark the request as failed. This
property is reset to the default number of retries for every new operation that is
triggered.
requestedItemName Species the item name.
requestedItemDescription Species the item description.
components Returns the list of components associated with the request. The provider supplies this
list of components after request initialization.
Example: Curl Command
To construct your request, refer to the entitledCatalogItemViews response received when you ran the
request described in “Syntax for Geing a Template Request for a Catalog Item,” on page 41, locate a link
eld that contains a value similar to the following:
{
"@type":"link",
"href":"https://$host/catalog-
service/api/consumer/entitledCatalogItems/dc808d12-3786-4f7c-b5a1-d5f997c8ad66/requests",
"rel":"POST: Submit Request"
}
The following example command submits a machine request using appropriately edited template content
from the entitledCatalogItemViews response.
curl --insecure -H "Content-Type: application/json"
-H "Authorization: Bearer $token
https://$host/catalog-service/api/consumer/entitledCatalogItems/dc808d12-3786-4f7c-b5a1-
d5f997c8ad66/requests
{
$contentsOfTemplateFromPrecedingSections
}
Example: Output with Request and Response Headers
The following sample displays the request and response headers and the command output. Use the
indicated JSON text le or inline text as input.
{
Accept = application/json
Content-Type = application/json
Content-Length = 2806
Programming Guide
46 VMware, Inc.