fbpx
PUThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/scale/down?adjustment={ADJUSTMENT}&accountId={ACCOUNT_ID}

Remove instances from your Elastigroup

Note: Scale Advanced expression Remove instances from your Elastigroup

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to query

Example: sig-12345
ADJUSTMENT * Integer

The number of instances to remove to the Elastigroup

Example: 1
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": "ff3e1e5b-91b8-42fa-8267-b988efc7f662",
    "url": "/aws/ec2/group/sig-12345/scale/down?adjustment=1",
    "method": "PUT",
    "time": "2015-06-29T13:01:55.060Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "items": [
      {
        "victimSpotRequests": [
          {
            "spotInstanceRequestId": "sir-02447qg2",
            "instanceId": "i-933esr1"
          }
        ],
        "victimInstances": [
          {
            "instanceId": "i-02447t22"
          }
        ]
      }
    ],
    "count": 1
  }
}