vCloud API Programming Guide
Example 6-6. Modify an Organization
Request:
PUT http://vcloud.example.com/api/v1.0/admin/org/26
Content-Type: application/vnd.vmware.admin.organization+xml
...
<AdminOrg xmlns="http://www.vmware.com/vcloud/v1" name="ExampleFinance">
<Description>Example Corporation's Finance Organization</Description>
<FullName>Finance</FullName>
<Settings>
<OrgLeaseSettings>
<DeleteOnStorageLeaseExpiration>true</DeleteOnStorageLeaseExpiration>
<DeploymentLeaseSeconds>1209600</DeploymentLeaseSeconds>
<StorageLeaseSeconds>7776000</StorageLeaseSeconds>
</OrgLeaseSettings>
<OrgLdapMode>SYSTEM</OrgLdapMode>
</Settings>
</AdminOrg>
Response:
200 OK
Content-Type: application/vnd.vmware.admin.organization+xml
...
<AdminOrg name="ExampleFinance" type="application/vnd.vmware.admin.organization+xml" ...>
<Link rel="add" type="application/vnd.vmware.admin.catalog+xml"
<Link rel="add" type="application/vnd.vmware.admin.user+xml"
...
<Settings>
...
<OrgLeaseSettings>
<DeleteOnStorageLeaseExpiration>true</DeleteOnStorageLeaseExpiration>
<DeploymentLeaseSeconds>1209600</DeploymentLeaseSeconds>
<StorageLeaseSeconds>7776000</StorageLeaseSeconds>
</OrgLeaseSettings>
</Settings>
...
</AdminOrg>
Enable or Disable an Organization
An administrator can use the enable or disable action links in an AdminOrg body to enable or disable an
organization, as shown in Example
element.
Example 6-7. Disable an Organization
Request:
POST http://vcloud.example.com/api/v1.0/admin/org/26/action/disable
Response:
204 No Content
98
href="http://vcloud.example.com/api/v1.0/admin/org/26/catalogs"/>
href="http://vcloud.example.com/api/v1.0/admin/org/26/users"/>
6‐7. The enablement state of the AdminOrg is shown in its IsEnabled
VMware, Inc.
Need help?
Do you have a question about the VCLOUD API 1.0 - API and is the answer not in the manual?
Questions and answers