7.3

Table Of Contents
Approving a Machine Request 5
You use a series of work item service commands to approve a machine request.
Basic components of the work item service are the work item and the assignment. The work item service
provides a standard way to present work items to users. For example, a user can view all work items and
select the item to perform such as approving a machine request.
This chapter includes the following topics:
n
Approve a Machine Request
n
Work Item Service Examples for Approving a Machine Request
Approve a Machine Request
To approve a machine request, you first get a work item ID, then specify the ID in the approval.
Prerequisites
n
Log in to vRealize Automation as an approver with at least one of the following qualifications:
n
You are designated as an approver in an approval policy.
n
You belong to a group which has been designated as an approval group in an approval policy.
n
You are designated as a delegate for someone who is an approver.
n
Verify that the appliance name and fully qualified domain name of the vRealize Automation instance
are available.
n
Verify that you have a valid HTTP bearer token that matches your login credentials. See Chapter 2
REST API Authentication.
Procedure
1 List all available work item IDs.
curl --insecure -H "Content-Type: application/json"
-H "Authorization: Bearer $token"
https://$vRA/workitem-service/api/workitems
For details regarding input and output for this request, see Syntax for Listing Work Items.
2 Examine the response to find the workItemId
VMware, Inc.
63