fbpx
GEThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/status?accountId={ACCOUNT_ID}

Describes the current status of a specific Elastigroup – entailing information regarding running instance and their status

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to get a status for

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request - Get Status

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "c090574f-2168-4a4c-b097-99be6d3d5dbc",
    "url": "/aws/ec2/group/sig-12345/status",
    "method": "GET",
    "time": "2015-06-28T15:45:36.881Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:group",
    "items": [
      {
        "createdAt": "2015-06-28T15:45:31.000Z",
        "instanceId": null,
        "spotRequestId": "sir-02b5n3tx",
        "instanceType": "r3.large",
        "privateIp": "1.2.3.4",
        "availabilityZone": "us-east-1e",
        "product": "Linux/UNIX",
        "status": "pending-evaluation"
      },
      {
        "createdAt": "2015-06-28T15:45:31.000Z",
        "instanceId": "i-123abcd",
        "spotRequestId": "sir-02ef26dk",
        "instanceType": "c3.large",
        "privateIp": "11.22.33.44",
        "availabilityZone": "us-east-1b",
        "product": "Linux/UNIX",
        "status": "pending-evaluation"
      }
    ],
    "count": 2
  }
}