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": "890a90c2-5264-482b-a72b-e021557227e4",
        "url": "/aws/ec2/group/sig-12345678/status",
        "method": "GET",
        "timestamp": "2018-06-25T11:51:42.629Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:aws:ec2:group",
        "items": [
            {
                "spotInstanceRequestId": "sir-3thgagpn",
                "instanceId": "i-0cc289f12538e4758",
                "instanceType": "t2.micro",
                "product": "Linux/UNIX",
                "groupId": "sig-12345678",
                "availabilityZone": "us-west-2a",
                "privateIp": "172.31.28.210",
                "createdAt": "2018-06-25T11:49:00.000Z",
                "publicIp": "10.10.10.10",
                "status": "fulfilled"
            },
            {
                "spotInstanceRequestId": null,
                "instanceId": "i-05ebb28abebdc718b",
                "instanceType": "t2.medium",
                "product": "Linux/UNIX",
                "groupId": "sig-05417358",
                "availabilityZone": "us-west-2a",
                "privateIp": "172.31.17.189",
                "createdAt": "2018-06-25T11:49:02.000Z",
                "publicIp": "10.10.10.10",
                "status": "running"
            }
        ],
        "count": 2
    }
}