GEThttps://api.spotinst.io/aws/ec2/managedInstance/migration/{MIGRATION_ID}?accountId={ACCOUNT_ID}

Get a previously initiated instance migration status.

To initiate an instance migration from AWS use the Import Instance From AWS call.

On initiation, the migration would be in the following state: “MIGRATE_START”.

Possible end states for the migration are: “MIGRATE_CANCEL”, “MIGRATE_FINISH”, “MIGRATE_ERROR”.

URL Parameters

Parameter Type Description
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
MIGRATION_ID * String

The migration ID as returned from import call

Example: smg-123
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "3f8b90f8-2588-4bd0-9dbe-6f9400d13d1f",
    "url": "/aws/ec2/managedInstance/migration/smg-123?accountId=act-123",
    "method": "GET",
    "timestamp": "2020-01-06T07:58:42.117Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:managedInstance:migration",
    "items": [
      {
        "migrationId": "smg-123",
        "managedInstanceId": "smi-123",
        "state": "MIGRATE_FINISH",
        "instanceId": "i-123"
      }
    ],
    "count": 1
  }
}