Enable Maintenance Mode for Xen/KVM Compute Resource

Maintenance mode is available both for Static and CloudBoot compute resources.

To enable maintenance mode for Xen/KVM compute resource, use the following request:

PUT http://onapp.test/settings/hypervisors/:hypervisor_id/maintenance_mode/enable.xml
PUT http://onapp.test/settings/hypervisors/:hypervisor_id/maintenance_mode/enable.json

XML Request Example

curl -X PUT http://onapp.test/settings/hypervisors/14/maintenance_mode/enable.xml -d '<force>1</force>' -u account_email:API_key -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -X PUT http://onapp.test/settings/hypervisors/14/maintenance_mode/enable.json -d '{"force":"1"}' -u account_email:API_key -H 'Accept: application/json' -H 'Content-type: application/json'

force - set 1 to enable maintenance node forcefully

Returns HTTP 204 response on success, or HTTP 422 on failure.