You can use the REST API catalog service with a request ID to find its corresponding resource.

Input

Use the supported input parameters to control the command output.

Parameter

Description

URL

https://$host/catalog-service/api/consumer/resources?$filter=request/id+eq+%27requestId%27

$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 ID of the request used for the resource, for example, 9e3e2e33-2361-4c0a-8dcf-ff0a347bb08e.

Add one of the following strings to the URL in the command line. Replace requestId with the actual request ID.

  • ?$filter=request/id eq 'requestId'

  • ?$filter=request/id%20eq%20%27requestId%27

  • ?$filter=request/id+eq+%27requestId%27

Output

Use the supported input parameters to control the command output.

Property

Description

Links

Specifies an array of link objects, each of which contains the following parts:

  • rel

    Specifies the name of the link.

    • Self refers to the object that was returned or requested.

    • First, Previous, Next, and Last refer to corresponding pages of pageable lists.

    • Specifies the application or service that determines the other names.

  • href

    Specifies the URL that produces the result.

work itemNumber

Displays a reference number for the work item.

id

Specifies the unique identifier of this resource.

version

Displays the object version number.

assignees

Displays the list of work item assignees.

subTenantId

Optionally associates the work item with a specific business group granting users with management responsibilities over that business group permission to see the approval.

tenantId

Specifies the tenant ID for the work item.

callbackEntityId

Specifies the callback entity ID for the work item.

work itemType

Specifies the work item type for the work item.

completedDate

Specifies the date when the work item was completed.

assignedDate

Specifies the date when the work item was assigned.

createdDate

Specifies the created date of this instance.

assignedOrCompletedDate

Specifies the date to be displayed on UI.

formUrl

Specifies the URL from which the layout for this work item can be retrieved.

serviceId

Specifies the service ID that generated this work item instance.

work itemRequest

Specifies the corresponding work item request object.

status

Specifies the status of the work item.

completedBy

Specifies the principal ID of user who completed the work item.

availableActions

Contains a list of relevant work item actions.

Metadata

Specifies the paging-related data:

  • Size: Specifies the maximum number of rows per page.

  • totalElement: Specifies the number of rows returned.

  • totalPages: Specifies the total number of pages of data available.

  • Number: Specifies the current page number.

  • Offset: Specifies the number of rows skipped.

curl Command

The following example command locates a resource by using its resource ID.

curl --insecure -H "Content-Type: application/json" 
-H "Authorization: Bearer $token” 
https://$host/catalog-service/api/consumer/resources/?$filter=request/id+eq+%279e3
e2e33-2361-4c0a-8dcf-ff0a347bb08e%27