Enable Or Disable A Provider Vdc; Remove A Provider Vdc - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

vCloud API Programming Guide
</vcloud:Memory>
</vcloud:ComputeCapacity>
<vcloud:StorageCapacity>
<vcloud:Units>MB</vcloud:Units>
<vcloud:Allocation>18944</vcloud:Allocation>
<vcloud:Total>2260224</vcloud:Total>
</vcloud:StorageCapacity>
<vmext:DataStoreRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
<vmext:MoRef>datastore-418</vmext:MoRef>
<vmext:VimObjectType>DATASTORE</vmext:VimObjectType>
</vmext:VimObjectRef>
</vmext:DataStoreRefs>
<vmext:ResourcePoolRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="VC2"
<vmext:MoRef>resgroup-220</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:ResourcePoolRef>
<vmext:VimServer type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="VC2"
</vmext:VMWProviderVdc>
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vmwprovidervdc+xml
...
<vmext:VMWProviderVdc xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
...
</vmext:VMWProviderVdc>
The response, most of which is not shown here, echoes the request.

Enable or Disable a Provider vDC

A system administrator can use the enable or disable action links in a VMWProviderVdc element to enable 
or disable a provider vDC, as shown in Example
in its IsEnabled element.
Example 7-20. Disable a Provider vDC
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/providervdc/43/action/disable
Response:
204 No Content

Remove a Provider vDC

Before you can remove a provider vDC, you must disable it. After the provider vDC has been disabled, its 
representation includes a rel="remove" link. A system administrator can make a DELETE request to that link 
to remove a provider vDC from a vCloud. The response contains a Task that tracks the delete operation.
132
name="VC2"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/
101"/>
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
xmlns:vcloud="http://www.vmware.com/vcloud/v1" name="PvDC-VC2"
type="application/vnd.vmware.admin.vmwprovidervdc+xml" ... >
7‐20. The enablement state of the VMWProviderVdc is shown 
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents