A system administrator can update the resource pool set of an existing Provider VDC to add or remove resource pools. Adding resource pools allows organization VDCs that reference the Provider VDC to consume additional resources during periods of high demand. Removing resource pools frees the underlying resources.
When you create a Provider VDC, it initially contains a single resource pool, called the primary resource pool. Adding secondary resource pools allows a Provider VDC to support resource elasticity in organization VDCs that use the AllocationPool or AllocationVApp (pay as you go) allocation model. Resource elasticity allows an organization VDC's compute resources to grow or shrink on demand.
All of a Provider VDC's resource pools must come from the same vCenter. See Retrieve a List of Resource Pools from a vCenter Server.
Prerequisites
This operation is restricted to system administrators.
Procedure
Example: Update Provider VDC Resource Pools
This request adds a resource pool to the Provider VDC created in Create a Provider VDC Backed by NSX Data Center for vSphere or NSX-T Data Center. 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 for an example that lists the resource pools available on that server.
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>
202 Accepted Content-Type: application/vnd.vmware.vcloud.task+xml ... <Task ... > ... </Task>
This request removes one of the two resource pools (a secondary resource pool) shown in Retrieve a Provider VDC Resource Pool Set. The response is a task.
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:DeleteItem href="https://vcloud.example.com/api/admin/extension/resourcePool/66" /> </vmext:UpdateResourcePoolSetParams>
202 Accepted Content-Type: application/vnd.vmware.vcloud.task+xml ... <Task ... > ... </Task>