fbpx
PUThttps://api.spotinst.io/gcp/gce/group/{GROUP_ID}/scale/up?adjustment={NUMBER_OF_INSTANCES}&accountId={ACCOUNT_ID}

Add instances to the Elastigroup

Parameter Type Description
GROUP_ID * String

The group ID you want to query

Example: sig-98765
NUMBER_OF_INSTANCES * Integer

The amount of instances to add the the group

Example: 1
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
    "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "3213e42e-455e-4901-a185-cc3eb65fac5f",
    "url": "/gcp/gce/group/sig-98765/scale/up?adjustment=1",
    "method": "PUT",
    "time": "2015-06-28T15:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:gcp:gce:preemptible",
    "items": [
      {
        "newPreemptibles": [
          {
            "instanceName": "sin-9da52709"
          }
        ],
        "newInstances": [
          {
            "instanceName": "sin-1591c0b6"
          }
        ]
      }
    ],
    "count": 1
  }
}