Migrate VS

To migrate a VS to another compute resource inside one compute resource zone, use the following request:

POST /virtual_machines/:virtual_machine_identifier/migration.json

JSON Request Example 

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"virtual_machine":{"destination":"1","cold_migrate_on_rollback":"1"}}' --url http://onapp.test/virtual_machines/:virtual_machine_identifier/migration.json

Where:

destination* - the ID of a target compute resource where you migrate a VS

cold_migrate_on_rollback - set to 1 if you wish to switch to a cold migration if the hot migration fails, otherwise, set 0


Page History

v.5.5

  • removed deprecated API requests:

    • POST /virtual_machines/:virtual_machine_id/migrate.xml 
    • POST /virtual_machines/:virtual_machine_id/migrate.json

v.5.4

  • added API request for OnApp 5.4  and up