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

Cancel the ongoing stateful import

URL Parameters

Parameter Type Description
statefulMigrationGroupID * String

The Process id you want to delete

Example: smg-7f041234
ACCOUNT_ID * String

Your Spotinst Account id in

Example: act-12345
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "1b6b3b72-5ee1-4eee-8704-4d6559386df6",
    "url": "/aws/ec2/statefulMigrationGroup/smg-07791234?spotinstAccountId=act-57761234",
    "method": "DELETE",
    "timestamp": "2018-01-23T11:46:50.897Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:statefulMigrationGroup",
    "items": [
      {
        "id": "smg-07791234",
        "groupId": "sig-cc6b1234",
        "state": "MIGRATE_CANCEL"
      }
    ],
    "count": 1
  }
}