Edit CPU Quota for Compute Resource

To edit CPU Quota for compute resource, use the following request:

PUT /settings/hypervisors/:hv_id/cpu_quota.xml
PUT /settings/hypervisors/:hv_id/cpu_quota.json

XML Request Example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u account_email:API_key -d '<cpu_quota><enabled>true</enabled><value>19</value></cpu_quota>' --url http://onapp.test/settings/hypervisors/14/cpu_quota.xml

JSON Request Example

curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u account_email:API_key -d '{"cpu_quota": {"enabled": true,"value": 19}}' --url http://onapp.test/settings/hypervisors/14/cpu_quota.json

XML Output Example

<cpu-quota>
  <enabled type="boolean">true</enabled>
  <value type="integer">19</value>
</cpu-quota>

Where:

enabled - true, if CPU Quota is enabled, otherwise, false

value - set the value of CPU Quota. The maximum value is 99%.