fbpx
GEThttps://api.spotinst.io/aws/ec2/statefulMigrationGroup/{statefulMigrationGroupId}?accountId={ACCOUNT_ID}

Get the current status of the import process.
Possible values are:

  • MIGRATE_PREPARE_AWS_INSTANCE
  • MIGRATE_CREATE_IMAGE
  • MIGRATE_AWAIT_FOR_IMAGE
  • MIGRATE_AWAIT_USER_ACTION
  • MIGRATE_TERMINATE_INSTANCE
  • MIGRATE_AWAIT_INSTANCE_TERMINATION
  • MIGRATE_UPDATE_GROUP
  • MIGRATE_LAUNCH_INSTANCE
  • MIGRATE_AWAIT_INSTANCE_RUNNING
  • MIGRATE_RESUME_STATEFUL_INSTANCE
  • MIGRATE_AWAIT_STATEFUL_INSTANCE_RUNNING
  • MIGRATE_CANCEL MIGRATE_FINISH
  • MIGRATE_ERROR

URL Parameters

Parameter Type Description
statefulMigrationGroupId * String

The Process id you want to query

Example: smg-7f041234
ACCOUNT_ID * String

Your account id in spotinst

Example: act-12345
Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "6d03ec45-4857-4c0f-b564-826bb5bbb57a",
    "url": "/aws/ec2/statefulMigrationGroup/smg-0779e81b?spotinstAccountId=act-57761234",
    "method": "GET",
    "timestamp": "2018-01-23T11:46:32.929Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:statefulMigrationGroup",
    "items": [
      {
        "statefulMigrationId": "smg-07791234",
        "groupId": "sig-cc6b1234",
        "instanceId": "i-05ab1b1c2b95a1234",
        "state": "MIGRATE_START",
        "stateDescription": "Creating an image from the instance, Instance Id: i-05ab1b1c2b95a1234"
      }
    ],
    "count": 1
  }
}