Migrate Disks

To migrate a VS disk to another data store, use the following request:

POST /virtual_machines/:virtual_machine_identifier/disks/:disk_id/migration.xml
POST /virtual_machines/:virtual_machine_identifier/disks/:disk_id/migration.json

The following requests are still valid but soon will be deprecated:

POST /virtual_machines/:virtual_machine_id/disks/:disk_id/migrate.xml
POST /virtual_machines/:virtual_machine_id/disks/:disk_id/migrate.json

XML Request Example

curl -i -X POST -u user:userpass http://onapp.test/virtual_machines/23/disks/1/migration.xml -d '<disk_migration><type>hot</type><data_store_id>383</data_store_id><virtual_machine_identifier>gdtcetkkxgkhuu</virtual_machine_identifier><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/23/disks/1/migration.json -d '{"disk_migration":{"type":"hot", "data_store_id":"383"}, "virtual_machine_identifier":"gdtcetkkxgkhuu", "disk_id":"94"}' -H 'Accept: application/json' -H 'Content-type: application/json'


type - the type of the migration. Set to hot if you wish to want to run a hot migration. For the cold migration, skip this parameter.

data_store_id* - the ID of the data store you migrate the disk to

virtual_machine_identifier - the identifier of the VS

disk_id - the ID of the disk

Cold Migration Note

Note that you can only move disks between data stores which are attached to the same compute resource or compute zone.

Page History


  • added the following parameters: 
    • type
    • virtual_machine_identifier
    • disk_id