You can use the vRealize Automation REST API catalog service to view the details of a machine request.

Input

Use the supported input parameters to control the command output.

Parameter

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 the request ID. See Syntax for Viewing All of Your Requests to view all of your requests and search for a 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 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

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"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.TotalStorageSize",
      "value" : {
        "type" : "decimal",
        "value" : 1.0
      }
    }, {
      "key" : "provider-provisioningGroupId",
      "value" : {
        "type" : "string",
        "value" : "cccd7a7e-5283-416b-beb0-45eb4e924dcb"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.AssignToUser",
      "value" : {
        "type" : "string",
        "value" : "fritz@example.mycompany.com"
      }
    }, {
      "key" : "provider-VirtualMachine.LeaseDays",
      "value" : {
        "type" : "integer",
        "value" : 30
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.Description",
      "value" : {
        "type" : "string",
        "value" : "MYCOMPANY machine"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.Reason",
      "value" : {
        "type" : "string",
        "value" : "New QE hire"
      }
    }, {
      "key" : "provider-VirtualMachine.CPU.Count",
      "value" : {
        "type" : "integer",
        "value" : 1
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.NumberOfInstances",
      "value" : {
        "type" : "integer",
        "value" : 1
      }
    }, {
      "key" : "provider-VirtualMachine.Disk0.Letter",
      "value" : {
        "type" : "string",
        "value" : "C"
      }
    }, {
      "key" : "provider-__Notes",
      "value" : {
        "type" : "string",
        "value" : "MYCOMPANY machine"
      }
    }, {
      "key" : "provider-Cafe.Shim.VirtualMachine.MinCost",
      "value" : {
        "type" : "string",
        "value" : "0.0000000000"
      }
    }, {
      "key" : "provider-VirtualMachine.Disk0.Label",
      "value" : {
        "type" : "string",
        "value" : "main"
      }
    }, {
      "key" : "provider-VirtualMachine.Disk0.Size",
      "value" : {
        "type" : "string",
        "value" : "1"
      }
    }, {
      "key" : "provider-VirtualMachine.Memory.Size",
      "value" : {
        "type" : "integer",
        "value" : 1
      }
    } ]
  },
  "retriesRemaining" : 3,
  "phase" : "SUCCESSFUL",
  "executionStatus" : "STOPPED",
  "waitingStatus" : "NOT_WAITING",
  "approvalStatus" : "POST_APPROVED",
  "catalogItemRef" : {
    "id" : "65fbca06-a28e-46f3-bced-c6e5fb3a66f9",
    "label" : "RHEL 6-vsphere"
  }
}