VMware Cloud Director API - GET-PvdcResourcePoolSet
GET /admin/extension/providervdc/{id}/resourcePools
- Operation:
- GET /admin/extension/providervdc/{id}/resourcePools
- Description:
- Retrieve a provider vDC resource pool set.
- Since:
- 1.5
- Input parameters
-
- Consume media type(s):
- None
- Input type:
- None
- Output parameters
-
{@link PvdcResourcePoolSetType}
- Produce media type(s):
-
application/vnd.vmware.admin.vmwProviderVdcResourcePoolSet+xml
application/vnd.vmware.admin.vmwProviderVdcResourcePoolSet+json
- Output type:
- VMWProviderVdcResourcePoolSetType
- Examples
-
- Request
-
HTTP 1.1
GET /api/admin/extension/providervdc/bde68d2b-d0c3-4dff-999d-1a3bfa6ba887/resourcePools
Headers:
x-vcloud-authorization: X600Twh81GezzqBm3B3GXTe8r9U8+U5kIrA3X4H2ctE=
Body:
- Response
-
HTTP/1.1 200 OK
Headers:
Content-Length: 1728
Content-Type: application/vnd.vmware.admin.vmwprovidervdcresourcepoolset+xml;version=5.1
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:VMWProviderVdcResourcePoolSet
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/providervdc/bde68d2b-d0c3-4dff-999d-1a3bfa6ba887"
rel="up"
type="application/vnd.vmware.admin.vmwprovidervdc+xml"/>
<vmext:VMWProviderVdcResourcePool
primary="true">
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/ee1a5c56-f1d0-4183-a150-27df59c4afb0/action/migrateVms"
rel="migrateVms"/>
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/ee1a5c56-f1d0-4183-a150-27df59c4afb0/vmList"
rel="resourcePoolVmList"/>
<vmext:ResourcePoolVimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/3691f5d6-32eb-44f6-804a-1d30d17068c3"
name="VC-2"
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>resgroup-49</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:ResourcePoolVimObjectRef>
<vmext:ResourcePoolRef
href="https://vcloud.example.com/api/admin/extension/resourcePool/ee1a5c56-f1d0-4183-a150-27df59c4afb0"
type="application/vnd.vmware.admin.vmwProviderVdcResourcePool+xml"/>
<vmext:Enabled>true</vmext:Enabled>
</vmext:VMWProviderVdcResourcePool>
</vmext:VMWProviderVdcResourcePoolSet>
Added resource pool. - Request
-
HTTP 1.1
GET /api/admin/extension/providervdc/bde68d2b-d0c3-4dff-999d-1a3bfa6ba887/resourcePools
Headers:
x-vcloud-authorization: X600Twh81GezzqBm3B3GXTe8r9U8+U5kIrA3X4H2ctE=
Body:
- Response
-
HTTP/1.1 200 OK
Headers:
Content-Length: 2950
Content-Type: application/vnd.vmware.admin.vmwprovidervdcresourcepoolset+xml;version=5.1
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:VMWProviderVdcResourcePoolSet
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/providervdc/bde68d2b-d0c3-4dff-999d-1a3bfa6ba887"
rel="up"
type="application/vnd.vmware.admin.vmwprovidervdc+xml"/>
<vmext:VMWProviderVdcResourcePool
primary="false">
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/e84ed5d3-1de7-4a10-b7c0-7efcdab40ec0/action/disable"
rel="disable"/>
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/e84ed5d3-1de7-4a10-b7c0-7efcdab40ec0/action/migrateVms"
rel="migrateVms"/>
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/e84ed5d3-1de7-4a10-b7c0-7efcdab40ec0/vmList"
rel="resourcePoolVmList"/>
<vmext:ResourcePoolVimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/3691f5d6-32eb-44f6-804a-1d30d17068c3"
name="VC-2"
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>resgroup-27</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:ResourcePoolVimObjectRef>
<vmext:ResourcePoolRef
href="https://vcloud.example.com/api/admin/extension/resourcePool/e84ed5d3-1de7-4a10-b7c0-7efcdab40ec0"
type="application/vnd.vmware.admin.vmwProviderVdcResourcePool+xml"/>
<vmext:Enabled>true</vmext:Enabled>
</vmext:VMWProviderVdcResourcePool>
<vmext:VMWProviderVdcResourcePool
primary="true">
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/ee1a5c56-f1d0-4183-a150-27df59c4afb0/action/migrateVms"
rel="migrateVms"/>
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/resourcePool/ee1a5c56-f1d0-4183-a150-27df59c4afb0/vmList"
rel="resourcePoolVmList"/>
<vmext:ResourcePoolVimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/3691f5d6-32eb-44f6-804a-1d30d17068c3"
name="VC-2"
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>resgroup-49</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:ResourcePoolVimObjectRef>
<vmext:ResourcePoolRef
href="https://vcloud.example.com/api/admin/extension/resourcePool/ee1a5c56-f1d0-4183-a150-27df59c4afb0"
type="application/vnd.vmware.admin.vmwProviderVdcResourcePool+xml"/>
<vmext:Enabled>true</vmext:Enabled>
</vmext:VMWProviderVdcResourcePool>
</vmext:VMWProviderVdcResourcePoolSet>