Edit Resource Pool

To edit a resource pool, use the following request:

1
2
PUT /vdcs/:id.xml
PUT /vdcs/:id.json

XML Request example:

1
curl -i -X PUT -u user:userpass --url http://onapp.test/vdcs/:id.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<vdc><cpu_allocated>3.3</cpu_allocated></vdc>'

JSON Request example:

1
curl -i -X PUT -u user:userpass --url http://onapp.test/vdcs/:id.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"vdc": {"cpu_allocated": "2.2"}}'

Where:

Depending on the resource pool type, the following parameters can be edited:

network_pool_identifier - fill in the ID of the default network pool for the resource pool

cpu_allocated - specify the amount of CPU resources (GHz) that will be allocated after the resource pool is created

memory_allocated - specify the amount of memory (in GB) allocated to this resource pool

guaranteed_cpu - specify the amount of guaranteed CPU allocation (%)

guaranteed_memory - specify the amount of guaranteed memory allocation (%)

vm_quota - specify the number of VSs that can be created after the resource pool is deployed

network_quota - specify the number of org networks that can be created after the resource pool is deployed

cpu_limit - specify the maximum amount of CPU (in GHz) that can be requested

memory_limit - specify the maximum amount of memory (in GB) which can be used

vcpu_speed - specify the vCPU speed that can be consumed after the resource pool is created (in MHz)

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

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

Page History:

v 6.0

  • Added the network_quota parameter.

v 5.1

  • Added the network_pool_identifier parameter.