7.2

Table Of Contents
Property Description
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
The following example command displays details of a request.
curl --insecure -H "Content-Type: application/json" -H "Authorization: Bearer $token
https://$host/catalog-service/api/consumer/requests/7aaf9baf-aa4e-47c4-997b-edd7c7983a5b
Example: JSON Output
The following sample output contains information about the catalog item request 7aaf9baf-aa4e-47c4-997b-
edd7c7983a5b.
{
"@type": "CatalogItemRequest",
"id": "7aaf9baf-aa4e-47c4-997b-edd7c7983a5b",
"iconId": "cafe_default_icon_genericCatalogItem",
"version": 6,
"requestNumber": 8,
"state": "SUCCESSFUL",
"description": "API test",
"reasons": null,
"requestedFor": "csummers@example.com",
"requestedBy": "csummers@example.com",
"organization": {
"tenantRef": "mycompany",
"tenantLabel": "mycompany",
"subtenantRef": "c0683388-6db2-4cb5-9033-b24d15ad3766",
"subtenantLabel": "Demo Group"
},
"requestorEntitlementId": "1b409157-152c-43c4-b4cc-1cdef7f6adf8",
"preApprovalId": null,
"postApprovalId": null,
"dateCreated": "2015-07-29T13:50:33.689Z",
"lastUpdated": "2015-07-29T13:55:35.951Z",
"dateSubmitted": "2015-07-29T13:50:33.689Z",
"dateApproved": null,
"dateCompleted": "2015-07-29T13:55:35.949Z",
"quote": {},
"requestCompletion": {
"requestCompletionState": "SUCCESSFUL",
"completionDetails": null
Chapter 3 REST API Use Cases
VMware, Inc. 49