Reader small image

You're reading from  Mastering PowerCLI

Product typeBook
Published inOct 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785286858
Edition1st Edition
Languages
Right arrow
Author (1)
Sajal Debnath
Sajal Debnath
author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath

Right arrow

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":  "com.vmware.csp.core.approval.workitem.request",
                      ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PowerCLI
Published in: Oct 2015Publisher: PacktISBN-13: 9781785286858

Author (1)

author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath