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

Describe a specific Elastigroup JSON

URL Parameters

Parameter Type Description
GROUP_ID * String

The group ID you want to query

Example: sig-1234567
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "67582d0c-108b-4ef7-9fdc-d39678a30844",
    "url": "/gcp/gce/group?accountId=act-123abc",
    "method": "GET",
    "timestamp": "2018-01-07T07:30:58.622Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:gcp:gce:group",
    "items": [
      {
        "id": "sig-1234567",
        "name": "EG name",
        "description": "validation",
        "capacity": {
          "minimum": 1,
          "maximum": 1,
          "target": 1,
          "unit": "instance"
        },
        "strategy": {
                    "preemptiblePercentage": 99,
                    "onDemandCount": null,
                    "drainingTimeout": null
            },
        "compute": {
                    "launchSpecification": {
                        "disks": [
                            {
                                "deviceName": null,
                                "initializeParams": {
                                    "diskSizeGb": 10,
                                    "diskType": "pd-standard",
                                    "sourceImage": "https://www.googleapis.com/compute/v1/projects/test/global/images/docker-image-1"
                                },
                                "mode": "READ_WRITE",
                                "source": null,
                                "type": "PERSISTENT",
                                "autoDelete": true,
                                "boot": true,
                                "interface": null
                            }
                        ],
                        "startupScript": null,
                        "networkInterfaces": [
                            {
                                "network": "dev"
                            }
                        ],
                        "serviceAccount": "test@spotinst.com"
                    },
                    "instanceTypes": {
                        "ondemand": "n1-standard-1",
                        "preemptible": [
                            "n1-standard-1",
                            "n1-standard-2"
                        ]
                    },
                    "availabilityZones": [
                        "asia-east1-a",
                        "asia-east1-b",
                        "asia-east1-c"
                    ],
                    "subnets": [
                        {
                            "region": "us-west1",
                            "subnetNames": [
                                "private"
                            ]
                        }
                    ],
                    "elasticIps": null
                },
        "createdAt": "2016-02-16T09:03:23.000Z",
        "updatedAt": "2018-01-07T00:10:30.000Z"
      }
    ],
    "count": 1
  }
}