fbpx
GEThttps://api.spotinst.io/compute/azure/group/{GROUP_ID}?accountId={ACCOUNT_ID}

 

       Get status of Elastigroup cluster

URL Parameters

Parameter Type Description
GROUP_ID * String

The ID of the Elastigroup to list.

ACCOUNT_ID * String

Your Spotinst accountid associated with your token

Example: act-123abc
Request

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

Body
Copied!
Downloaded!
{
    "request": {
        "id": "1f899dac-5831-4c65-8ed6-ca1e7c32d431",
        "url": "/compute/azure/group/sig-3b6f09aa/status?accountId=act-9ba79a4a",
        "method": "GET",
        "timestamp": "2018-06-20T11:35:40.003Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:compute:azure:group:status",
        "items": [
            {
                "instanceId": "ec5410ea-fec7-4a03-a989-3b27b7ee2ed5",
                "region": "eastus",
                "vmSize": "standard_a1_v2",
                "lifeCycle": "low_priority",
                "privateIp": "10.0.0.8",
                "publicIp": "168.62.168.93",
                "state": "running",
                "createdAt": "2018-06-20T11:16:32.000Z"
            },
            {
                "instanceId": "f224db00-5a32-41a0-ae4b-b561c36f2ea1",
                "region": "eastus",
                "vmSize": "standard_a2_v2",
                "lifeCycle": "low_priority",
                "privateIp": "10.0.0.6",
                "publicIp": "168.62.41.74",
                "state": "running",
                "createdAt": "2018-06-20T10:21:32.000Z"
            },
            {
                "instanceId": "f9351f4e-d5b4-4706-b348-e61cdf3afecd",
                "region": "eastus",
                "vmSize": "standard_a2_v2",
                "lifeCycle": "low_priority",
                "privateIp": "10.0.0.4",
                "publicIp": "137.117.34.30",
                "state": "running",
                "createdAt": "2018-06-20T11:16:31.000Z"
            }
        ],
        "count": 3
    }
}