7.2

Table Of Contents
6 (Optional) View the details of your request.
You can perform a GET on the URI in the Location header to retrieve the updated request details.
curl --insecure -H "Content-Type: application/json"
-H "Authorization: Bearer $token” https://$host/catalog-
service/api/consumer/requests/7aaf9baf-aa4e-47c4-997b-edd7c7983a5b
Accept: application/json
The status information is particularly noteworthy in the request details. The phase eld corresponds to
the status that is displayed in the Requests tab in the user interface.
Syntax for Listing Shared and Private Catalog Items
You can use the REST API catalog service to retrieve a list of all shared viewable catalog items for the current
user. Shared catalog items do not belong to a specic business group. Also, this service retrieves a list of all
shared and private catalog items that can be viewed, including their business groups.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL hps://$host/catalog-service/api/consumer/catalogItems
$host Species the host name and fully qualied domain name or IP address of the
vRealize Automation identity server.
$token Species a valid HTTP bearer token with necessary credentials.
page number The page number. Default is 1.
limit The number of entries per page. The default is 20.
$orderby Multiple comma-separated properties sorted in ascending or descending order. Valid
OData properties include the following:
n
name - lter based on catalog item name.
n
status - lter based on catalog item status.
n
service/id - lter based on catalog item service id.
n
service/name - lter based on catalog item service name.
n
organization/subTenant/id - lter based on catalog item business group ID, which
you can nd in the catalogItem payload under organization > subtenantRef
n
organization/subTenant/name - lter based on catalog item business group name,
which you can nd in catalogItem payload under organization
>subtenantLabel
n
outputResourceType/id - lter based on catalog item output resource type ID, for
example : Infrastructure.Virtual
n
outputResourceType/name - Filter based on catalog item output resource type
name, for example: "VirtualMavhine".
n
catalogItemType/id - lter based on catalog item type ID, for example:
"Infrastructure.Virtual".
n
catalogItemType/name - lter based on catalog item type name, for example:
"VirtualMachine".
n
icon/id - lter based on catalog item icon ID.
$top Sets the number of returned entries from the top of the response
$skip Sets the number of entries to skip.
Chapter 3 REST API Use Cases
VMware, Inc. 35