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

Manually terminate the source stateful instance during an stateful instance import.

URL Parameters

Parameter Type Description
statefulMigrationGroupID * String

The Process id you want to terminate

ACCOUNT_ID * String

Your account id in spotinst

Example: act-12345
Attribute Type Description
userAction Object

userAction.type String

Valid values: "terminate"

Example: terminate
Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
"userAction":
    {
    type: "terminate"
    }
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
      "message": "OK"
  },
  "kind": "spotinst:aws:ec2:StatefulMigrationGroup:userAction",
  "items": [
	{
		"id": "smg-63d3c336",
        "groupId": "sig-de019081",
        "state": "MIGRATE_TERMINATE_INSTANCE"
      }
    ],
	"count": 1
}