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

Add instances to your Elastigroup

URL Parameters

ParameterTypeDescription
GROUP_ID * String

The Elastigroup ID you want to query

Example: sig-12345
ADJUSTMENT * Integer

The number of instances to add 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": "b57207d0-3ab1-4170-8122-a3db9ac92093",
    "url": "/aws/ec2/group/sig-abcd1234/scale/up?adjustment=2",
    "method": "PUT",
    "timestamp": "2017-10-04T08:56:38.071Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:scale",
    "items": [
      {
        "newSpotRequests": [
          {
            "spotInstanceRequestId": "sir-45sr8c7n",
            "instanceId": "i-12345abcde12345",
            "availabilityZone": "us-west-2a",
            "instanceType": "m3.medium"
          },
          {
            "spotInstanceRequestId": "sir-pzb8a2an",
            "instanceId": "i-abcde12345abcde",
            "availabilityZone": "us-west-2a",
            "instanceType": "m3.medium"
          }
        ],
        "newInstances": null
      }
    ],
    "count": 1
  }
}