Elastigroup AWS

Instance Healthiness

Get a list of instances with health status. In case a shutdown script is configured for the group, it will also retrieve the Spot Agent health status.

get/aws/ec2/group/{groupId}/instanceHealthiness

Query parameters

accountIdstring

ID of the account associated with your token

Parameters

#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/0 — unresolved $ref

Response

Instance Healthiness Response

Example response

{
  "request": {
    "id": "ff3e1e5b-91b8-42fa-8267-b988efc7f662",
    "url": "/aws/ec2/group/sig-1b656b92/instanceHealthiness",
    "method": "GET",
    "timestamp": "2015-06-29T13:01:55.060Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:group:instanceHealthiness",
    "items": [
      {
        "instanceId": "i-07593cd9173cd9667",
        "spotRequestId": "sir-xjag9yqp",
        "groupId": "sig-1b656b92",
        "availabilityZone": "us-west-2b",
        "lifeCycle": "SPOT",
        "healthStatus": "HEALTHY",
        "agentHealth": {
          "status": "HEALTHY",
          "lastChecked": "2021-12-15T14:43:46.000Z"
        }
      }
    ],
    "count": 1
  }
}