fbpx
POSThttps://api.spotinst.io/aws/ec2/instance/{INSTANCE_ID}/standby/enter?accountId={ACCOUNT_ID}

Instance Standby enables you to put an instance in Standby state , update or troubleshoot the instance, and then return the instance to service. Instances that are on standby are still part of the Elastigroup, but they don’t get application traffic.

Whenever instance is standby state:

  • It will be de-registered from all the ELBs / ALBs in the Elastigroup
  • It won’t be affected from Scale down activities in the Elastigroup
  • The instance health won’t be checked, and it won’t be replaced

When the instance exits the Standby state:

  • The instance will be register back to all the ELBs / ALBs that are defined in the Elastigroup
  • It will be considered and affected from all the Elastigroup activities (helth checks, scaling, etc.)

URL Parameters

Parameter Type Description
INSTANCE_ID * String

The instance ID you want to put in standby state

Example: i-123456
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "4d7f52d7-c784-4ebf-be49-f1bd54844c0d",
    "url": "/aws/ec2/instance/i-123456/standby/enter",
    "method": "POST",
    "timestamp": "2016-11-17T19:07:00.439Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}