The start-migrate command migrates (moves) the instance to another Sky Node.

JSON Input Data Format
{
    "sourceid": string,
    "tocloudnode": string,
    "migrateas": string
}
sourceid * Specifies the ID of the instance to be migrated.
tocloudnode * Specifies the ID of the destination Sky Node.
migrateas * Specifies the migration type that will be initiated, which includes:
  • migrate-compute
    This will migrate the CPU, RAM, and Network resources to the target Sky Node.
  • migrate-move
    This will migrate the CPU, RAM, Network, and Disk resources to the target Sky Node.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "Instance was migarted"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}