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

To segregate a VS (that is, instruct it never to reside on the same compute resource as another VS), use the following method:

For OnApp 4.3  and up:

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

For OnApp 4.2 and below. In the nearest major release this method will be deprecated:

POST /virtual_machines/:virtual_machine_id/strict_vm.xml
POST /virtual_machines/:virtual_machine_id/strict_vm.json

XML Request example 1

curl -i -X PUT -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://onapp.test/virtual_machines/:virtual_machine_id/segregation.xml

JSON Request example 1

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

XML Request example 2

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<?xml version="1.0" encoding="UTF-8"?><virtual_machine><strict_virtual_machine_id>123</strict_virtual_machine_id></virtual_machine>' --url http://onapp.test/virtual_machines/:virtual_machine_id/strict_vm.xml

JSON Request example 2

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

Where:

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

 

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