List the Contents of a vDC
The response in Example
Example
3‐4 shows a request to browse one of those vDCs and shows a subset of the response.
Example 3-4. List the Contents of a vDC
Request:
GET http://vcloud.example.com/api/v1.0/vdc/5
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.vdc+xml
...
<Vdc name="ExampleVdc01" type="application/vnd.vmware.vcloud.vdc+xml"
<Link rel="up" type="application/vnd.vmware.vcloud.org+xml"
<Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml"
<Link rel="add" type="application/vnd.vmware.vcloud.media+xml"
<Link rel="add" type="application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml"
<Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppParams+xml"
<Link rel="add" type="application/vnd.vmware.vcloud.captureVAppParams+xml"
<Link rel="add" type="application/vnd.vmware.vcloud.composeVAppParams+xml"
<AllocationModel>AllocationPool</AllocationModel>
<Description>Example Corp. Primary vDC</Description>
<StorageCapacity>
<Units>MB</Units>
<Allocated>1000</Allocated>
<Limit>1000</Limit>
<Used>512</Used>
<Overhead>0</Overhead>
</StorageCapacity>
<ComputeCapacity>
<Cpu>
<Units>MHz</Units>
<Allocated>100</Allocated>
<Limit>100</Limit>
<Used>32</Used>
<Overhead>0</Overhead>
</Cpu>
<Memory>
<Units>MB</Units>
<Allocated>100</Allocated>
<Limit>100</Limit>
<Used>64</Used>
<Overhead>0</Overhead>
</Memory>
</ComputeCapacity>
<ResourceEntities>
<ResourceEntity href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-111"
<ResourceEntity href="http://vcloud.example.com/api/v1.0/media/112"
<ResourceEntity href="http://vcloud.example.com/api/v1.0/media/113"
VMware, Inc.
3‐1 also contains several Vdc elements, each of which represents a vDC object.
href="http://vcloud.example.com/api/v1.0/vdc/5" ...>
href="http://vcloud.example.com/api/v1.0/org/5"/>
href="http://vcloud.example.com/api/v1.0/vdc/5/action/uploadVAppTemplate"/>
href="http://vcloud.example.com/api/v1.0/vdc/5/media"/>
href="http://vcloud.example.com/api/v1.0/vdc/5/action/instantiateVAppTemplate"
/>
href="http://vcloud.example.com/api/v1.0/vdc/5/action/cloneVApp"/>
href="http://vcloud.example.com/api/v1.0/vdc/5/action/captureVApp"/>
href="http://vcloud.example.com/api/v1.0/vdc/5/action/composeVApp"/>
type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="Ubuntu
Template with vsftpd"/>
type="application/vnd.vmware.vcloud.media+xml" name="Ubuntu Boot
Floppy"/>
type="application/vnd.vmware.vcloud.media+xml" name="Ubuntu ISO Image"/>
Chapter 3 Browsing
37
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