Get List of Resource Pools

To view a list of resource pools, use the following request:

1
2
GET /vdcs.xml
GET /vdcs.json

XML Request Example

1
curl -i -X GET -u user:userpass --url http://onapp.test/vdcs.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -i -X GET -u user:userpass --url http://onapp.test/vdcs.json -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<vdc>
    <identifier>85ed3313-4d02-4128-86af-d1686de265f1</identifier>
    <label>ote_static_vcd_e_res_pool</label>
    <fast_provisioning type="boolean">false</fast_provisioning>
    <allocation_model>AllocationVApp</allocation_model>
    <enabled type="boolean">true</enabled>
    <vcpu_speed type="integer">1000</vcpu_speed>
    <thin_provisioning type="boolean">false</thin_provisioning>
    <network_quota type="integer">100</network_quota>
    <updated_at type="dateTime">2021-04-06T09:52:27+03:00</updated_at>
    <organization_id type="integer">2</organization_id>
    <provider_vdc_id type="integer">1</provider_vdc_id>
    <created_at type="dateTime">2021-04-06T09:07:39+03:00</created_at>
    <id type="integer">2</id>
    <cpu_allocated type="float">0.0</cpu_allocated>
    <cpu_limit type="float">0.0</cpu_limit>
    <cpu_used type="float">6.0</cpu_used>
    <cpu_reserved type="float">0.0</cpu_reserved>
    <guaranteed_cpu type="float">20.0</guaranteed_cpu>
    <memory_allocated type="float">0.0</memory_allocated>
    <memory_limit type="float">0.0</memory_limit>
    <memory_used type="float">11.0</memory_used>
    <memory_reserved type="float">0.0</memory_reserved>
    <guaranteed_memory type="float">20.0</guaranteed_memory>
    <locked type="boolean">false</locked>
    <network_provider_type>NSX_T</network_provider_type>
    <vm_quota type="integer">0</vm_quota>
</vdc>

Where:

identifier - the identifier of the resource pool

label - the name of the resource pool

fast_provisioning - true if the fast provisioning is enabled for this resource pool; otherwise false

allocation_model - the type resource pool

enabled - true if the resource pool is enabled; otherwise false

vcpu_speed - the speed of vCPU (in MHz)

thin_provisioning - true if the thin provisioning is enabled for this resource pool; otherwise, false

network_quota - the number of networks that can be created within this resource pool

updated_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

organization_id - the ID of the organization, to which the resource pool is assigned

provider_vdc_id - the provider resource pool ID

created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

id - the ID of the resource pool

cpu_allocated - the amount of CPU (MHz) allocated to this resource pool

cpu_limit - the maximum amount of CPU resources that can be used

cpu_used - the number of used CPU resources

cpu_reserved - the number of reserved CPU resources

guaranteed_cpu - the number of CPU resources (%) guaranteed to this resource pool

memory_allocated - the amount of memory (MB) allocated to this resource pool

memory_limit - the maximum amount of memory that can be used

memory_used - the amount of used memory (MB)

memory_reserved - the amount of reserved memory (MB)

guaranteed_memory - the amount of memory (%) guaranteed to this resource pool

locked - true if the resource pool is locked; otherwise, false

network_provider_type - the type of the network provider, can be NSX_T, NSX_V, or NONE

vm_quota - the number of virtual servers that can be created within this resource pool

Page History

v. 6.6 Edge 4

  • Added network_provider_type parameter.

v. 5.6

  • Added the provider_vdc_id parameter.