7.2

Table Of Contents
Filtering and Formatting REST API
Information 5
You can lter and format your vRealize Automation REST API command line and command line output.
You can use lters in your command line to limit JSON output to specic conditions. For example, you can
use a lter in a catalog item request to display only catalog items that contain a specic catalog ID. Or you
can use the requestID resource call to format the output of a command that displays request status. You can
also use an Odata equivalent to format that same information For details, see “Syntax for Geing
Information for a Catalog Item,” on page 38.
Note You must URL encode all lter parameters when using Curl commands.
You can also reduce command line errors by using a JSON formaer to validate the JSON data and present
it in an easy-to-read format.
You can use command line options or JSON formaing tools, such as Open Data Protocol (OData), to control
the JSON results of your vRealize Automation REST API commands.
To simplify your JSON output, consider using command line options or a to lter out unnecessary data and
display only the information that you are interested in, such as the following information categories:
n
Published catalog items
n
Request status
n
Provisioned machine identiers
For information about requesting a bearer token, and about available pagination, sorting, and ltering
options for any given command, see the Tips option on the vRealize Automation API landing page for the
selected service API.
VMware, Inc.
361