Examine The Contents Of A Provider Vdc - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

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
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.providervdc+xml"
<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
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.providervdc+xml
...
<ProviderVdc xmlns="http://www.vmware.com/vcloud/v1" status="1" name="PVDC_VC2"
<Link rel="up" href="http://vcloud.example.com/api/v1.0/admin/"/>
<Link rel="down" type="application/vnd.vmware.admin.vdcReferences+xml"
<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.network+xml" name="External Network VC2"
</AvailableNetworks>
<IsEnabled>true</IsEnabled>
<NetworkPoolReferences>
<NetworkPoolReference type="application/vnd.vmware.admin.networkPool+xml"
VMware, Inc.
name="Main Provider"
href="http://vcloud.example.com/api/v1.0/admin/providervdc/2"/>
type="application/vnd.vmware.admin.providervdc+xml"
href="http://vcloud.example.com/api/v1.0/admin/providervdc/2" ... >
href="http://vcloud.example.com/api/v1.0/admin/providervdc/2/vdcReferences"/>
href="http://vcloud.example.com/api/v1.0/admin/network/54"/>
name="VC2-Direct"
href="http://vcloud.example.com/api/v1.0/admin/extension/
networkPool/22"/>
Chapter 6 Administrative Operations
6‐14.
94 illustrates 
103

Advertisement

Table of Contents
loading

Table of Contents