vCloud API Programming Guide
98
VMware, Inc.
Example 6-6.
Modify an Organization
Request:
PUT http://vcloud.example.com/api/v1.0/admin/org/26
Content-Type: application/vnd.vmware.admin.organxml
...
<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.organxml
...
<AdminOrg name="ExampleFinance" type="application/vnd.vmware.admin.organxml" ...>
<Link rel="add" type="application/vnd.vmware.admin.xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/catalogs"/>
<Link rel="add" type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/users"/>
...
<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 6
‐
7
.
The
enablement
state
of
the
AdminOrg
is
shown
in
its
IsEnabled
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
Summary of Contents for VCLOUD API 1.0 - TECHNICAL NOTE
Page 10: ...vCloud API Programming Guide 10 VMware Inc...
Page 20: ...vCloud API Programming Guide 20 VMware Inc...
Page 32: ...vCloud API Programming Guide 32 VMware Inc...
Page 90: ...vCloud API Programming Guide 90 VMware Inc...
Page 150: ...vCloud API Programming Guide 150 VMware Inc...
Page 170: ...vCloud API Programming Guide 170 VMware Inc...