You can use the REST API catalog service to view details of your vCloud Air machine request.

Input

Use the supported input parameters to control the command output.

Input

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.

$requestId

Specifies a request ID. Specifies the UUID of the request. See Syntax for Viewing All of Your Requests to view all of your requests and search for the request ID.

The required request ID is located at the end of the Location URL in the response header.

The request ID is located in the Location field of the response header if you submitted the request with the –headers flag.

Output

The command output contains property names and values based on the command input parameters.

Property

Description

version

Displays the object version number.

state

Specifies the item state, such as submitted.

approvalStatus

Specifies a status indicating whether this request has been approved, rejected, or is still pending some form of approval.

waitingStatus

Specifies a status indicating whether this request is waiting on any external users or services before it is able to progress.

requestNumber

Specifies a more user-friendly identifier for this request.

executionStatus

Specifies the current execution status of the request.

stateName

Specifies the localized state name.

phase

Specifies the current phase of the request, which is more coarse grained and easier for users to understand.

id

Specifies the unique identifier of this resource.

iconId

Specifies an icon for this request based on the requested object type.

description

Contains a brief description of this request.

reasons

Specifies the business reasons entered by the requestor or owner of this request.

requestedFor

Specifies the ID of the user for whom this request is logged.

requestedBy

Specifies the ID of the user who actually submitted the request

organization

Subtenant and/or tenant owner of this request.

requestorEntitlementId

Specified the value of the requestorEntitlement setting.

preApprovalId

Specifies the ID of the preApproval setting.

postApprovalId

Specifies the ID of the approval generated for the post-provisioning workflow step.

dateCreated

Specifies the date when this request was sent to the catalog.

lastUpdated

Specifies the date when this request was last updated.

dateSubmitted

Specifies the date when this request was first submitted.

dateApproved

Specifies the date when this request was approved.

dateCompleted

Specifies the date when this request was completed.

quote

Contains a quote made by the provider defining 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-specific field-value pairs collected for this request.

retriesRemaning

Specifies the number of attempts remaining to move this request from its current state to the next state in the request workflow.

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 defines 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

Specifies the item name.

requestedItemDescription

Specifies the item description.

curl Command

The following example command displays the status of a vCloud Air machine request, where 510051b5-52ce-45db-8889-d4eeabf68da1 is the value of the request ID.

curl --insecure -H "Content-Type: application/json" 
-H "Authorization: Bearer $token" 
https://$host/catalog-service/api/consumer/requests/510051b5-52ce-45db-8889-d4eeabf68da1

JSON Output

The following JSON output is returned based on the command input.

The following sample illustrates example output for a request to query the status of a vCloud Air machine, where 510051b5-52ce-45db-8889-d4eeabf68da1 is the value of the request ID.

{
  "@type" : "CatalogItemRequest",
  "id" : "510051b5-52ce-45db-8889-d4eeabf68da1",
  "iconId" : "cafe_default_icon_genericCatalogItem",
  "version" : 3,
  "requestNumber" : 16,
"state" : "PROVIDER_FAILED",
  "description" : "A simple vCloud Air machine provisioning scenario.",
  "reasons" : "Requesting a vCloud Air machine.",
  "requestedFor" : "Auto.admin@abx.local",
  "requestedBy" : "Auto.admin@abx.local",
  "organization" : {
    "tenantRef" : "abx",
    "tenantLabel" : "ABX",
    "subtenantRef" : "43a2f89a-c04e-4941-abc5-b4dc68a2810d",
    "subtenantLabel" : "vCD business group"
  },
  "requestorEntitlementId" : "3391b550-fd41-413a-8b45-5ae94e34f36a",
  "preApprovalId" : null,
  "postApprovalId" : null,
  "dateCreated" : "2015-08-11T23:58:06.445Z",
  "lastUpdated" : "2015-08-11T23:59:30.151Z",
  "dateSubmitted" : "2015-08-11T23:58:06.445Z",
  "dateApproved" : null,
  "dateCompleted" : null,
  "quote" : {
    "leasePeriod" : {
      "type" : "timeSpan",
      "unit" : "DAYS",
      "amount" : 2
    },
    "leaseRate" : {
      "type" : "moneyTimeRate",
      "cost" : {
        "type" : "money",
        "currencyCode" : null,
        "amount" : 4.0
      },
      "basis" : {
        "type" : "timeSpan",
        "unit" : "DAYS",
        "amount" : 1
      }
    },
    "totalLeaseCost" : {
      "type" : "money",
      "currencyCode" : null,
      "amount" : 8.0
    }
  },
  "requestCompletion" : {
    "requestCompletionState" : "FAILED",
    "completionDetails" : "Request failed: Machine vcd4: an error occurred while creating the virtual machine.."
  },
  "requestData" : {
    "entries" : [ {
      "key" : "provider-ASCT-1.VirtualMachine.Memory.Size",
      "value" : {
        "type" : "string",
        "value" : "1"
      }
    }, {
      "key" : "provider-blueprintId",
      "value" : {
        "type" : "string",
        "value" : "46548940-eb20-4368-9e73-c1685cda8c64"
      }
    }, {
      "key" : "provider-ASCT-1.VirtualMachine.Disk0.Letter",
      "value" : {
        "type" : "string",
        "value" : "c"
      }
    }, {
      "key" : "provider-__requested_allocation_type",
      "value" : {
        "type" : "string",
        "value" : "2"
      }
    }, {
      "key" : "provider-ASCT-1.__Notes",
      "value" : {
        "type" : "string",
        "value" : ""
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.MaxCost",
      "value" : {
        "type" : "string",
        "value" : "4.0000000000"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.TotalStorageSize",
      "value" : {
        "type" : "decimal",
        "value" : 0.0
      }
    }, {
      "key" : "provider-provisioningGroupId",
      "value" : {
        "type" : "string",
        "value" : "43a2f89a-c04e-4941-abc5-b4dc68a2810d"
      }
    }, {
      "key" : "provider-__MultiMachine.Provision.NumberOfInstances",
      "value" : {
        "type" : "string",
        "value" : "<ArrayOfKeyValueOfintint xmlns:i=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns=\\\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\\\">\r\n  
												<KeyValueOfintint>\r\n    <Key>1</Key>\r\n    <Value>1</Value>\r\n
</KeyValueOfintint>\r\n</ArrayOfKeyValueOfintint>"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.AssignToUser",
      "value" : {
        "type" : "string",
        "value" : "Auto.admin@sqa.local"
      }
    }, {
      "key" : "provider-VirtualMachine.LeaseDays",
      "value" : {
        "type" : "integer",
        "value" : 2
      }
    }, {
      "key" : "provider-ASCT-1.VirtualMachine.Disk0.Size",
      "value" : {
        "type" : "string",
        "value" : "1"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.ProvisionInto",
      "value" : {
        "type" : "string",
        "value" : "2"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.Description",
      "value" : {
        "type" : "string",
        "value" : "A simple vCloud Air provisioning scenario."
      }
    }, {
      "key" : "provider-ASCT-1.VirtualMachine.CPU.Count",
      "value" : {
        "type" : "string",
        "value" : "1"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.Reason",
      "value" : {
        "type" : "string",
        "value" : "Requesting a vCloud Air machine."
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.NumberOfInstances",
      "value" : {
        "type" : "integer",
        "value" : 1
      }
    }, {
      "key" : "provider-__Notes",
      "value" : {
        "type" : "string",
        "value" : "A simple vCloud Air machine provisioning scenario."
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.MinCost",
      "value" : {
        "type" : "string",
        "value" : "4.0000000000"
      }
    } ]
  },
  "retriesRemaining" : 3,
  "phase" : "FAILED",
  "executionStatus" : "STOPPED",
  "waitingStatus" : "NOT_WAITING",
  "approvalStatus" : "PRE_APPROVED",
  "catalogItemRef" : {
    "id" : "c2cacf7c-b3c8-47fb-a938-2c09910b6713",
    "label" : "vCloud Air machine"
  }
}