5.5

Table Of Contents
3 Retrieve the VCloud element by making a GET request to the href value of the Link described in Step 2.
See “Example: Retrieve an Administrative View of a Cloud,” on page 51
Example: Retrieve an Administrative View of a Cloud
Request:
GET https://vcloud.example.com/api/admin
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vcloud+xml
...
<VCloud
xmlns="http://www.vmware.com/vcloud/v1.5"
name="vCloud"
href="https://vcloud.example.com/api/admin">
<Link
rel="add"
type="application/vnd.vmware.admin.role+xml"
href="https://vcloud.example.com/api/admin/roles" />
<Link
rel="add"
type="application/vnd.vmware.admin.organization+xml"
href="https://vcloud.example.com/api/admin/orgs" />
<Link
rel="down"
type="application/vnd.vmware.admin.systemOrganization+xml"
name="System"
href="https://vcloud.example.com/api/admin/org/99" />
<Link ... />
...
<Description>Example Corporation’s vCloud</Description>
<OrganizationReferences>
<OrganizationReference
type="application/vnd.vmware.admin.organization+xml"
name="Engineering"
href="https://vcloud.example.com/api/admin/org/1"/>
<OrganizationReference
type="application/vnd.vmware.admin.organization+xml"
name="Engineering"
href="https://vcloud.example.com/api/admin/org/44"/>
<OrganizationReference ... />
...
</OrganizationReferences>
<ProviderVdcReferences>
<ProviderVdcReference
type="application/vnd.vmware.admin.providervdc+xml"
name="Main Provider"
href="https://vcloud.example.com/api/admin/providervdc/2" />
<ProviderVdcReference ... />
...
</ProviderVdcReferences>
<RightReferences>
<RightReference
Chapter 3 Exploring a Cloud
VMware, Inc. 51