Set VIP Status for VS

To set/remove VIP status for a VS, use the following request:

POST /virtual_machines/:id/set_vip.xml
POST /virtual_machines/:id/set_vip.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/virtual_machines/12/set_vip.xml -d '<vip>true</vip>'

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/virtual_machines/12/set_vip.json -d '{"vip": "true"}'


vip - whether VIP status is enabled for the server or not. Set this parameter to 'true' to enable and to 'false' to disable the VIP status.