Page tree
Skip to end of metadata
Go to start of metadata

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/:id/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/:id/set_vip.json -d '{"vip": true}'

Where:

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.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels