VMware, Inc.
103
Chapter 6 Administrative Operations
Examine the Contents of a Provider vDC
ProviderVdc
objects
are
listed
among
the
top
‐
level
objects
in
a
vCloud.
in
Example 6
‐
2
on
page 94
illustrates
such
a
listing,
which
includes
a
ProviderVdcReferences
element
that
contains
references
to
the
provider
vDCs
registered
to
this
vCloud.
<ProviderVdcReferences>
<ProviderVdcReference type="application/vnd.vmware.admin.provxml"
name="Main Provider"
href="http://vcloud.example.com/api/v1.0/admin/providervdc/2"/>
<ProviderVdcReference ... />
...
</ProviderVdcReferences>
An
administrator
can
use
the
value
of
the
href
attribute
in
any
ProviderVdcReference
as
the
target
of
a
GET
request.
The
response
is
a
ProviderVdc
body,
as
shown
in
Example 6
‐
14
.
Example 6-14.
Examine the Contents of a Provider vDC
Request:
GET http://vcloud.example.com/api/v1.0/admin/providervdc/2
Response:
200 OK
Content-Type: application/vnd.vmware.admin.provxml
...
<ProviderVdc xmlns="http://www.vmware.com/vcloud/v1" status="1" name="PVDC_VC2"
type="application/vnd.vmware.admin.provxml"
href="http://vcloud.example.com/api/v1.0/admin/providervdc/2" ... >
<Link rel="up" href="http://vcloud.example.com/api/v1.0/admin/"/>
<Link rel="down" type="application/vnd.vmware.admin.vdcRefxml"
href="http://vcloud.example.com/api/v1.0/admin/providervdc/2/vdcReferences"/>
<Description>PVDC_VC2</Description>
<ComputeCapacity>
<Cpu>
<Units>MHz</Units>
<Allocation>21929</Allocation>
<Total>24675</Total>
<Used>10053</Used>
<Overhead>384</Overhead>
</Cpu>
<Memory>
<Units>MB</Units>
<Allocation>16207</Allocation>
<Total>24475</Total>
<Used>15771</Used>
<Overhead>977</Overhead>
</Memory>
</ComputeCapacity>
<StorageCapacity>
<Units>MB</Units>
<Allocation>1311368</Allocation>
<Total>2097152</Total>
<Used>489361</Used>
<Overhead>2436</Overhead>
</StorageCapacity>
<AvailableNetworks>
<Network type="application/vnd.vmware.admin.xml" name="External Network VC2"
href="http://vcloud.example.com/api/v1.0/admin/network/54"/>
</AvailableNetworks>
<IsEnabled>true</IsEnabled>
<NetworkPoolReferences>
<NetworkPoolReference type="application/vnd.vmware.admin.netwxml"
name="VC2-Direct"
href="http://vcloud.example.com/api/v1.0/admin/extension/
networkPool/22"/>
Содержание VCLOUD API 1.0 - TECHNICAL NOTE
Страница 10: ...vCloud API Programming Guide 10 VMware Inc...
Страница 20: ...vCloud API Programming Guide 20 VMware Inc...
Страница 32: ...vCloud API Programming Guide 32 VMware Inc...
Страница 90: ...vCloud API Programming Guide 90 VMware Inc...
Страница 150: ...vCloud API Programming Guide 150 VMware Inc...
Страница 170: ...vCloud API Programming Guide 170 VMware Inc...
Страница 202: ...vCloud API Programming Guide 202 VMware Inc...
Страница 212: ...vCloud API Programming Guide 212 VMware Inc...