Hot Migrate Disks

To hot migrate disks, use the following request:

POST /virtual_machines/virtual_server_identifier/disks/:id/migration.xml
POST /virtual_machines/virtual_server_identifier/disks/:id/migration.json

XML Request Example

curl -i -X POST -u user:userpass http://onapp.test/virtual_machines/virtual_server_identifier/disks/12/migration.json -d '<disk_migration><type>hot</type><data_store_id>383</data_store_id><virtual_machine_id>gdtcetkkxgkhuu</virtual_machine_id><disk_id>94</disk_id></disk_migration> -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X POST -u user:userpass http://onapp.test/virtual_machines/virtual_server_identifier/disks/12/migration.json -d '{"disk_migration":{"type":"hot", "data_store_id":"383"}, "virtual_machine_id":"gdtcetkkxgkhuu", "disk_id":"94"}' -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

type - the type of migration

data_store_id - the ID of the data store

virtual_machine_id - the ID of the virtual server

disk_id - the ID of the disk