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

Remove instances from 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 remove from 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": "ff3e1e5b-91b8-42fa-8267-b988efc7f662",
    "url": "/gcp/gce/group/sig-98765/scale/down?adjustment=1",
    "method": "PUT",
    "time": "2015-06-29T13:01:55.060Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:gcp:gce:scale",
    "items": [
      {
        "victimPreemptibles": [
          {
            "instanceName": "sin-4ecd5037",
            "zone": "asia-east1-b",
            "machineType": "N1_STANDARD_2"
          },
          {
            "instanceName": "sin-79f99d7c",
            "zone": "europe-west1-c",
            "machineType": "N1_STANDARD_1"
          },
          {
            "instanceName": "sin-5465440e",
            "zone": "asia-east1-b",
            "machineType": "N1_STANDARD_1"
          },
          {
            "instanceName": "sin-824f1d4a",
            "zone": "asia-east1-a",
            "machineType": "N1_STANDARD_2"
          },
          {
            "instanceName": "sin-cf3f148b",
            "zone": "europe-west1-c",
            "machineType": "N1_STANDARD_2"
          },
          {
            "instanceName": "sin-bba1c52e",
            "zone": "us-central1-a",
            "machineType": "N1_STANDARD_2"
          },
          {
            "instanceName": "sin-2aa2e923",
            "zone": "asia-east1-a",
            "machineType": "N1_STANDARD_1"
          }
        ],
        "victimInstances": [
          {
            "instanceName": "sin-31e0596a",
            "zone": "europe-west1-c",
            "machineType": "N1_STANDARD_1"
          },
          {
            "instanceName": "sin-2e41f26b",
            "zone": "asia-east1-a",
            "machineType": "N1_STANDARD_1"
          },
          {
            "instanceName": "sin-1f217b6b",
            "zone": "asia-east1-b",
            "machineType": "N1_STANDARD_1"
          }
        ]
      }
    ],
    "count": 1
  }
}