vCloud API Programming Guide
96 VMware, Inc.
<Link rel="add" type="application/vnd.vmware.admin.vdc+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/vdcs"/>
<Link rel="add" type="application/vnd.vmware.admin.network+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/networks"/>
<Link rel="edit" type="application/vnd.vmware.admin.organization+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/org/26"/>
<Link rel="disable" href="http://vcloud.example.com/api/v1.0/admin/org/26/action/disable"/>
<Link rel="alternate" type="application/vnd.vmware.vcloud.org+xml"
href="http://vcloud.example.com/api/v1.0/org/26"/>
<Description>Example Corporation’s Finance Organization</Description>
<FullName>Finance</FullName>
<Settings>
<IsEnabled>false</IsEnabled>
<CanPublishCatalogs>true</CanPublishCatalogs>
<DeployedVMQuota>0</DeployedVMQuota>
<StoredVmQuota>0</StoredVmQuota>
<OrgLeaseSettings>
<DeleteOnStorageLeaseExpiration>false</DeleteOnStorageLeaseExpiration>
<DeploymentLeaseSeconds>604800</DeploymentLeaseSeconds>
<StorageLeaseSeconds>2592000</StorageLeaseSeconds>
</OrgLeaseSettings>
<OrgLdapMode>SYSTEM</OrgLdapMode>
<OrgEmailSettings>
<IsDefaultSmtpServer>true</IsDefaultSmtpServer>
<IsDefaultOrgEmail>true</IsDefaultOrgEmail>
<FromEmailAddress>Admin@example.com</FromEmailAddress>
<DefaultSubjectPrefix>Attention</DefaultSubjectPrefix>
<IsAlertEmailToAllAdmins>true</IsAlertEmailToAllAdmins>
<SmtpServerSettings>
<IsUseAuthentication>true</IsUseAuthentication>
<Host>smtp.example.com</Host>
<Username>admin@smtp.example.com</Username>
</SmtpServerSettings>
</OrgEmailSettings>
</Settings>
</AdminOrg>
Get an Administrative View of an Organization
Toseeanadministrativeviewofanorganization,anadministratorcanmakeaGETrequesttothe
organization’sadminURL(thehrefelementoftheAdminOrgbody),asshowninExample 6‐4.Withthe
exceptionoftheHTTPresponsecode(200OKinsteadof201Created),theresponsetothis
requestisidentical
totheonereturnedinExample 6‐3,soweomitmostofitfromtheexample.
Example 6-4. Get an Administrative View of an Organization
Request:
GET http://vcloud.example.com/api/v1.0/admin/org/26
Response:
200 OK
Content-Type:application/vnd.vmware.admin.organization+xml
...
<AdminOrg xmlns="http://www.vmware.com/vcloud/v1"
href="http://vcloud.example.com/api/v1.0/admin/org/26" name="ExampleFinance"
type="application/vnd.vmware.admin.organization+xml">
<Link rel="down" type="application/vnd.vmware.vcloud.tasksList+xml"
href="http://vcloud.example.com/api/v1.0/tasksList/26"/>
<Description>Example Corporation’s Finance Organization</Description>