Managing approvals

In this section, we will discuss how to manage approvals in the vRA environment. First, let's see a list of workitems that are available. In the following command, I am just getting a list of the content:

PS C:\> (Invoke-RestMethod -Method Get -Uri 
"https://vra.lab.com/workitem-service/api/workitems" -Headers $headers).content | ConvertTo-Json

Part of the output is provided here:

{
    "@type":  "WorkItem",
    "id":  "2a11c987-dd8f-4a2d-a15a-b048ca64d729", "version": 1, "workItemNumber": 2, "assignees": [ { "principalId": "vradmin@lab.com", "principalType": "USER" } ], "subTenantId": "5c91a267-581a-4e00-9895-cf6e9c6b313a", "tenantId": "vsphere.local", "callbackEntityId": "2a11c987-dd8f-4a2d-a15a-b048ca64d729", "workItemType": { "id": ...

Get Mastering PowerCLI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.