v1
latestOpenAPI 3.0.02026-08-0645003.8 MBElastigroup 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
Query parameters
accountIdstring
ID of the account associated with your token
Request body
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"
}
}
}