O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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": ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required