1.5

Table Of Contents
Example: Add Resource Pools to a Provider vDC
This example adds a resource pool to the Provider vDC created in “Example: Create a Provider vDC,” on
page 174. The additional resource pool is hosted on the same vCenter server that hosts the existing resource
pool. See “Retrieve a List of Resource Pools from a vCenter Server,” on page 168 for an example that lists the
resource pools available on that server.
Request:
POST https://vcloud.example.com/api/admin/extension/providervdc/35/action/updateResourcePools
Content-Type: application/vnd.vmware.admin.resourcePoolSetUpdateParams+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<vmext:UpdateResourcePoolSetParams
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
<vmext:AddItem>
<vmext:VimServerRef
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9" />
<vmext:MoRef>resgroup-230</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:AddItem>
</vmext:UpdateResourcePoolSetParams>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... >
...
</Task>
Remove Resource Pools From a Provider vDC
A system administrator can remove secondary resource pools from a provider vDC. The primary resource
pool cannot be changed or removed.
Prerequisites
n
Verify that you are logged in as a system administrator.
n
Retrieve the resource pool list from the provider vDC. See “Retrieve a Provider vDC Resource Pool
Set,” on page 176. The VMWProviderVdcResourcePoolSet lists the provider vDC's existing resource pools.
Procedure
1 Examine the resource pool list and find the pool to remove.
2 Verify that no virtual machines are using the resource pool.
3 Create an UpdateResourcePoolSetParams element that contains a DeleteItem element for each resource
pool to remove.
4 POST the UpdateResourcePoolSetParams element you created in Step 3 to the provider vDC's
resourcePools link.
Chapter 7 Using vCloud API Extensions to Provision and Manage a Cloud
VMware, Inc. 179