6.2

Table Of Contents
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/3a5d9697-e3c8-476f-9754-29e773af
Example: JSON Output
The following sample output contains information about the catalog item request 3a5d9697-
e3c8-476f-9754-29e773af4aa8.
{
"@type" : "CatalogItemRequest",
"id" : "3a5d9697-e3c8-476f-9754-29e773af4aa8",
"iconId" : "cafe_default_icon_genericCatalogItem",
"version" : 5,
"requestNumber" : 5,
"state" : "SUCCESSFUL",
"description" : "MYCOMPANY machine",
"reasons" : "New QE hire",
"requestedFor" : "fritz@example.mycompany.com",
"requestedBy" : "fritz@example.mycompany.com",
"organization" : {
"tenantRef" : "MYCOMPANY",
"tenantLabel" : "QETenant",
"subtenantRef" : "cccd7a7e-5283-416b-beb0-45eb4e924dcb",
"subtenantLabel" : "MyTestAgentBusinessGroup"
},
"requestorEntitlementId" : "1d896d03-96ad-4aae-9900-75f49b57a6bf",
"preApprovalId" : null,
"postApprovalId" : null,
"dateCreated" : "2014-09-19T20:58:35.854Z",
"lastUpdated" : "2014-09-19T20:59:14.014Z",
"dateSubmitted" : "2014-09-19T20:58:35.854Z",
"dateApproved" : null,
"dateCompleted" : "2014-09-19T20:59:13.994Z",
"quote" : null,
"requestCompletion" : {
"requestCompletionState" : "SUCCESSFUL",
"completionDetails" : "Request succeeded. Created tyler-prefix04."
},
"requestData" : {
"entries" : [ {
"key" : "provider-blueprintId",
"value" : {
"type" : "string",
"value" : "e16edcf9-6a10-4bc7-98e2-a33361aeb857"
}
}, {
"key" : "provider-Cafe.Shim.VirtualMachine.MaxCost",
"value" : {
"type" : "string",
"value" : "0.0000000000"
Programming Guide
VMware, Inc. 57