GEThttps://api.spotinst.io/azure/compute/group/{GROUP_ID}/status?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 Spot accountId associated with your token.

Example: act-123abc
Request

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

Body
Copied!
Downloaded!
{
    "request": {
        "id": "1f899dac-5831-4c65-8ed6-ca1e7c32d431",
        "url": "/azure/compute/group/sig-123123/status?accountId=act-12341234",
        "method": "GET",
        "timestamp": "2018-06-20T11:35:40.003Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:azure:compute:group:status",
        "items": [
            {
                "status": "ready",
                "vms" : [
                  {
                    "vmName" : "vm-12345",
                    "region" : "eastus",
                    "vmSize" : "standard_b1ls",
                    "lifeCycle": "spot",
                    "os" : "Linux",
                    "privateIp" : "192.0.0.1",
                    "publicIp" : "183.123.67.79",
                    "provisioningState" : "succeeded",
                    "powerState" : "running",
                    "createdAt" : "2020-06-18T12:02:49.000Z"
                  },
                  {
                    "vmName" : "vm-12346",
                    "region" : "eastus",
                    "vmSize" : "standard_b1ls",
                    "lifeCycle": "od",
                    "os" : "Linux",
                    "privateIp" : "192.0.0.2",
                    "publicIp" : "183.123.67.89",
                    "provisioningState" : "succeeded",
                    "powerState" : "running",
                    "createdAt" : "2020-06-18T11:40:57.000Z"
                  }
                ]
            }
        ],
        "count": 3
    }
}
Attribute Type Description
status enum: Enumeration

The elastigroup status: [ready, rolling replacing, recycling]

Example: ready