EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VMware, Inc. 97
Chapter 6 Administrative Operations
<FullName>Finance</FullName>
...
<Settings>
...
</Settings>
</AdminOrg>
List All Tasks Owned by an Organization
AnadministrativeviewofanorganizationincludesaLinkwitharel="down"attributethattheadministrator
canusetoretrievealistofalltasksownedbyauserorobjectinanorganization.TherequestinExample 65
usesthetasksListURLreturnedinExample 64toreturnaTasksList
elementthatcontainsseveralTask
elements.
Example 6-5. List All Tasks Owned by an Organization
Request:
GET http://vcloud.example.com/api/v1.0/tasksList/26
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.tasksList+xml
...
<TasksList name="Tasks Lists" type="application/vnd.vmware.vcloud.tasksList+xml"
href="http://vcloud.example.com/api/v1.0/tasksList/18" ...>
<Task... status="success" ... operation="Deleted Virtual Application Template (21)" ... >
...
</Task>
<Task... status="error" ... operation="Powered On Virtual Machine WIn2K8 (15)" ... >
<Error stackTrace="com.vmware.ssdc.library.exceptions.VimInvalidStateException
The operation could not be performed because the object is in an invalid
state. Current state of the the VM is VMOn.
at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.throwVimInvalidStateE
xception(VC20VirtualServer.java:292)
at ...">
...
</Task>
<Task... status="running" ... operation="Deleting Virtual Application (44)" ... >
...
</Task>
...
</TasksList>
Modify an Organization
AsshowninExample 63,anAdminOrgbodyincludesrel="add"linksfornetworks,vDCs,users,groups,
andcatalogs.Anorganizationadministratorcanusetheselinkstoaddobjectsofthosetypestothe
organization.TomodifyotherattributesorelementsofanAdminOrg,anorganizationadministratorcanmake
aPUT
requesttoitsrel="edit"linkandsupplyamodifiedversionoftheAdminOrgbody.Therequestin
Example 66modifiesthedefaultleasesettingsoftheorganizationcreatedinExample 63.
NOTEIfyoumodifyanorganization’scatalogpublishingpolicyorLDAPoptionsormodifyarole,the
changesdonottakeeffectforloggedinusersuntilthecacheforthecurrentsessionexpiresortheuserlogs
outandlogsinagain.

Table of Contents

Related product manuals