VMware, Inc.
37
Chapter 3 Browsing
List the Contents of a vDC
The
response
in
Example 3
‐
1
also
contains
several
Vdc
elements,
each
of
which
represents
a
vDC
object.
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"
href="http://vcloud.example.com/api/v1.0/vdc/5" ...>
<Link rel="up" type="application/vnd.vmware.vcloud.org+xml"
href="http://vcloud.example.com/api/v1.0/org/5"/>
<Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplatxml"
href="http://vcloud.example.com/api/v1.0/vdc/5/action/uploadVAppTemplate"/>
<Link rel="add" type="application/vnd.vmware.vcloud.media+xml"
href="http://vcloud.example.com/api/v1.0/vdc/5/media"/>
<Link rel="add" type="application/vnd.vmware.vcloud.instantiateVAppTemplatxml"
href="http://vcloud.example.com/api/v1.0/vdc/5/action/instantiateVAppTemplate"
/>
<Link rel="add" type="application/vnd.vmware.vcloud.cloneVApxml"
href="http://vcloud.example.com/api/v1.0/vdc/5/action/cloneVApp"/>
<Link rel="add" type="application/vnd.vmware.vcloud.captureVApxml"
href="http://vcloud.example.com/api/v1.0/vdc/5/action/captureVApp"/>
<Link rel="add" type="application/vnd.vmware.vcloud.composeVApxml"
href="http://vcloud.example.com/api/v1.0/vdc/5/action/composeVApp"/>
<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"
type="application/vnd.vmware.vcloud.vAppTxml" name="Ubuntu
Template with vsftpd"/>
<ResourceEntity href="http://vcloud.example.com/api/v1.0/media/112"
type="application/vnd.vmware.vcloud.media+xml" name="Ubuntu Boot
Floppy"/>
<ResourceEntity href="http://vcloud.example.com/api/v1.0/media/113"
type="application/vnd.vmware.vcloud.media+xml" name="Ubuntu ISO Image"/>
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...