api.vm.migrate

/vm/(hostname_or_uuid)/migrate

api.vm.migrate.views.vm_migrate(*args, **kwargs)

Migrate (PUT) server to another compute node and/or disks to another storage.

Note

A dummy (DB only) slave server is created during the migration process to reserve the same amount of resources on target compute node in server’s datacenter.

PUT /vm/(hostname_or_uuid)/migrate
DC-bound?:
Permissions:
Asynchronous?:
Parameters:
  • hostname_or_uuid (string) – required - Server hostname or uuid
  • data.node (string) – Target compute node hostname
  • data.root_zpool (string) – New zpool for the VM zone or OS zone including data disk
  • data.disk_zpools (object) – New zpools for VM’s disks ({disk_id: zpool})
  • data.live (boolean) – Whether to perform live migration [KVM only, EXPERIMENTAL] (default: false)
Status Codes:

es example:

es set /vm/example.cust.erigones.com/migrate -node node99.erigones.com
{
    "url": "https://my.erigones.com/api/vm/example.cust.erigones.com/migrate/",
    "status": 200,
    "method": "PUT",
    "text": {
        "status": "SUCCESS",
        "result": {
            "returncode": 0,
            "message": "Successfully migrated VM example.cust.erigones.com"
        },
        "task_id": "0-da1343e4-6010-4939-347d"
    }
}

/vm/(hostname_or_uuid)/migrate/dc

api.vm.migrate.views.vm_dc(*args, **kwargs)

Migrate (PUT) server to another datacenter.

Warning

EXPERIMENTAL API function.

PUT /vm/(hostname_or_uuid)/migrate/dc
DC-bound?:
Permissions:
Asynchronous?:
Parameters:
  • hostname_or_uuid (string) – required - Server hostname or uuid
  • data.target_dc (string) – Target datacenter
Status Codes: