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

 

         List Elastigroup clusters

URL Parameters

Parameter Type Description
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": "753d6fc1-7359-4de8-bdd4-6d717609cfc9",
        "url": "/compute/azure/group?accountId=act-9ba79a4a",
        "method": "GET",
        "timestamp": "2018-06-20T11:34:42.261Z"
    },
    "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": "IyEvYmluL2Jhc333355555IC9ob21lL29oYWQvZ76541234nR4dA==",
                            "network": {
                                "resourceGroupName": "testing",
                                "virtualNetworkName": "Test-vnet",
                                "subnetName": "default",
                                "assignPublicIp": true
                            },
                            "login": {
                                "sshPublicKey": "ssh-rsa BuQfLT4o2Sk7dIYijzt9jBuQfLT4o2Sk7dIYijzt9jBuQfLT4o2Sk7dIYijzt9j==",
                                "userName": "ohad"
                            }
                        }
                    },
                    "createdAt": "2018-06-20T09:42:24.000Z",
                    "updatedAt": "2018-06-20T10:20:46.000Z"
                },
                {
                    "id": "sig-a0183ca4",
                    "name": "nirTestReplacement",
                    "region": "westus2",
                    "resourceGroupName": "nirTest1",
                    "strategy": {
                        "lowPriorityPercentage": 100,
                        "odCount": 1,
                        "drainingTimeout": 300
                    },
                    "capacity": {
                        "minimum": 1,
                        "maximum": 1,
                        "target": 1
                    },
                    "compute": {
                        "product": "Linux",
                        "vmSizes": {
                            "odSizes": [
                                "standard_nv24"
                            ],
                            "lowPrioritySizes": [
                                "standard_nv24"
                            ]
                        },
                        "launchSpecification": {
                            "image": {
                                "marketplace": {
                                    "publisher": "OpenLogic",
                                    "offer": "CentOS",
                                    "sku": "7.2"
                                }
                            },
                            "userData": "PD5iYXNlNjQ=",
                            "network": {
                                "resourceGroupName": "nirTest4",
                                "virtualNetworkName": "VN1",
                                "subnetName": "default",
                                "assignPublicIp": true
                            },
                            "login": {
                                "sshPublicKey": "ssh-rsa BuQfLT4o2Sk7dIYijzt9jBuQfLT4o2Sk7dIYijzt9jBuQfLT4o2Sk7dIYijzt9j==",
                                "userName": "nir"
                            },
                            "health": {
                                "healthCheckType": "INSTANCE_STATE",
                                "autoHealing": true,
                                "gracePeriod": 60
                            }
                        }
                    },
                    "createdAt": "2018-06-20T11:02:24.000Z",
                    "updatedAt": "2018-06-20T11:02:24.000Z"
                }
            ]
        ],
        "count": 2
    }
}