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

 

         List an 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": "e593ff58-067d-4340-92f9-8b1c0bad70d7",
        "url": "/compute/azure/group/sig-3b6f09aa?accountId=act-9ba79a4a",
        "method": "GET",
        "timestamp": "2018-06-20T11:35:01.745Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:azure:compute:group",
        "items": [
            {
                "id": "sig-3b6f09aa",
                "name": "ohad-test",
                "region": "eastus",
                "resourceGroupName": "testing",
                "strategy": {
                    "lowPriorityPercentage": 100,
                    "drainingTimeout": 300
                },
                "capacity": {
                    "minimum": 0,
                    "maximum": 10,
                    "target": 3
                },
                "compute": {
                    "product": "Linux",
                    "vmSizes": {
                        "odSizes": [
                            "standard_a1_v2"
                        ],
                        "lowPrioritySizes": [
                            "standard_a1_v2",
                            "standard_a2_v2"
                        ]
                    },
                    "launchSpecification": {
                        "image": {
                            "marketplace": {
                                "publisher": "OpenLogic",
                                "offer": "CentOS",
                                "sku": "7.2"
                            }
                        },
                        "userData": "IyEvYmluL2Jhc2gNCg0KZWNobyAiSGVsbG8gT2hhZCEhIiA+IC9ob21lL29oYWQvZmlsZS0xLnR4dA==",
                        "network": {
                            "resourceGroupName": "testing",
                            "virtualNetworkName": "Test-vnet",
                            "subnetName": "default",
                            "assignPublicIp": true
                        },
                        "login": {
                            "sshPublicKey": "ssh-rsa AAqqbBS5LcnRR64Xum123123123InRR64XumKYwxPBIcvwDCXc/",
                            "userName": "ohad"
                        }
                    }
                },
                "createdAt": "2018-06-20T09:42:24.000Z",
                "updatedAt": "2018-06-20T10:20:46.000Z"
            }
        ],
        "count": 1
    }
}