7.2

Table Of Contents
{
"key": "provider-VirtualMachine.Disk0.Letter",
"value": {
"type": "string",
"value": "C"
}
},
{
"key": "provider-VirtualMachine.Disk0.Label",
"value": {
"type": "string",
"value": "main"
}
}]
}
}
Syntax for Approving a Submitted Machine Request
You can approve a work item request to complete the request by using the vRealize Automation REST API.
To construct the approval command, you add work item and work item form details to a JSON le, and call
that JSON le from the command line. Use a template to correctly format the JSON le content.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL hps://$host/workitem-service/api/workitems/workitem_ID
$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.
workitem_ID Species the unique identier of a work item. See “Syntax for
Listing Work Items,” on page 51.
Output
The command output contains property names and values based on the command input parameters.
Property Description
Links Species an array of link objects, each of which contains the following parts:
n
rel
Species the name of the link.
n
Self refers to the object that was returned or requested. This property does not
exist when you query for a single prole.
n
First, Previous, Next, and Last refer to corresponding pages of pageable
lists.
n
Species the application or service that determines the other names.
n
href
Species the URL that produces the result.
work itemNumber Displays a reference number for the work item.
id Species the unique identier of this resource.
Chapter 3 REST API Use Cases
VMware, Inc. 65