GEThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/instanceHealthiness?accountId={ACCOUNT_ID}
Get a list of instances with health status.
URL Parameters
Parameter | Type | Description |
---|---|---|
GROUP_ID * | Integer | The Elastigroup id you want to query Example: sig-12345 |
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
{ "request": { "id": "c31e4f9a-e6b0-4177-8899-6c327368b640", "url": "/aws/ec2/group/sig-1b656b92/instanceHealthiness", "method": "GET", "timestamp": "2017-03-26T13:13:57.762Z" }, "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" } ], "count": 1 } }