ServerMania logo

Desegregate VS

To desegregate a VS (that is, cancel the instruction for it to never reside on the same compute resource as another VS), use the following request:

DELETE /virtual_machines/:virtual_machine_id/segregation.xml
DELETE /virtual_machines/:virtual_machine_id/segregation.json

XML Request Example 

curl -i -X DELETE -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<virtual_machine><strict_virtual_machine_id>123</strict_virtual_machine_id></virtual_machine>' --url http://test/virtual_machines/12/segregation.xml

JSON Request Example 

curl -i -X DELETE -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"virtual_machine":{"strict_virtual_machine_id":"123"}}' --url http://test/virtual_machines/12/segregation.json

Where:

strict_virtual_machine_id * - the ID of virtual server you wish to desegregate from the given VS


Page History

v. 5.3:

  • removed deprecated POST /virtual_machines/:virtual_machine_id/strict_vm request