Get CPU Quota for Compute Resource

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

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

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u account_email:API_key --url http://onapp.test/settings/hypervisors/35/cpu_quota.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u account_email:API_key --url http://onapp.test/settings/hypervisors/35/cpu_quota.json

XML Output Example

<cpu_quota>
  <enabled type="boolean">false</enabled>
  <value type="integer">0</value>
</cpu_quota>

Where:

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

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