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

List all stateful instances associated with the Elastigroup

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup id you want to query

Example: sig-12345
ACCOUNT_ID * String

Your account id in spotinst

Example: act-12345
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "b36bd842-4d8d-4f30-b665-151936ed4eff",
    "url": "/aws/ec2/group/sig-8c8be13a/statefulInstance?accountId=act-57765941",
    "method": "GET",
    "timestamp": "2017-08-22T15:52:42.105Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:statefulInstance",
    "items": [
      {
        "id": "ssi-7ccf5af5",
        "instanceId": "i-07d8a71cc865ecaab",
        "privateIp": "172.31.23.191",
        "state": "ACTIVE",
        "devices": [
          {
            "deviceName": "/dev/xvda",
            "volumeId": "vol-0c9c8747b2bf9a497"
          }
        ]
      }
    ],
    "count": 1
  }
}