Elastigroup AWS

Simulate an Instance Interruption

The simulate instance interruption API is used for simulating a spot interruption in AWS, so that customers can verify specific applicative behaviors in case an interruption takes place. Once the interruption api is called, instances posted in the API body will be terminated in AWS, thus mocking a spot interruption.

post/aws/ec2/instance/interruption

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/aws/ec2/instance/interruption
  • Auth
    HTTP bearer

Query parameters

accountIdstring

ID of the account associated with your token

Request body

instancesToInterruptstring[]

A list of group's instance ids to interrupt

Example request

{
  "instancesToInterrupt": [
    "i-123456",
    "i-9876543"
  ]
}

Response

Simulate An Instance Interruption

Example response

{
  "request": {
    "id": "ff3e1e5b-91b8-42fa-8267-b988efc7f662",
    "url": "/aws/ec2/instance/interruption?accountId=act-4fb595c6",
    "method": "POST",
    "timestamp": "2015-06-29T13:01:55.060Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}

Changes

No recorded changes to this operation across all 12 revisions of this API.