fbpx
GEThttps://api.spotinst.io/aws/ec2/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-12345
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": "b06e8598-9800-4893-1234-400f4ab647a6",
        "url": "/aws/ec2/group/sig-1234567",
        "method": "GET",
        "timestamp": "2018-08-01T14:27:44.987Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:aws:ec2:group",
        "items": [
            {
                "id": "sig-1234567",
                "name": "EG",
                "capacity": {
                    "minimum": 1,
                    "maximum": 1,
                    "target": 1,
                    "unit": "instance"
                },
                "strategy": {
                    "risk": 100,
                    "onDemandCount": null,
                    "availabilityVsCost": "balanced",
                    "lifetimePeriod": "days",
                    "fallbackToOd": true,
                    "persistence": {},
                    "revertToSpot": {
                        "performAt": "always"
                    }
                },
                "compute": {
                    "instanceTypes": {
                        "ondemand": "c3.4xlarge",
                        "spot": [
                            "c3.2xlarge",
                            "c4.2xlarge"
                        ]
                    },
                    "availabilityZones": [
                        {
                            "name": "eu-west-1b",
                            "subnetIds": [
                                "subnet-123456"
                            ]
                        }
                    ],
                    "product": "Linux/UNIX (Amazon VPC)",
                    "launchSpecification": {
                        "loadBalancerNames": null,
                        "loadBalancersConfig": {
                            "loadBalancers": null
                        },
                        "healthCheckType": null,
                        "healthCheckGracePeriod": 300,
                        "securityGroupIds": [
                            "sg-1234567"
                        ],
                        "monitoring": false,
                        "ebsOptimized": false,
                        "imageId": "ami-1234567",
                        "iamRole": {
                            "name": null,
                            "arn": "arn:aws:iam::1234356789:instance-profile/Loader"
                        },
                        "keyPair": "PA",
                        "userData": "sldkfoisnfgodng",
                        "shutdownScript": null,
                        "tags": [
                            {
                                "tagKey": "Env",
                                "tagValue": "TEST"
                            }
                        ],
                        "tenancy": "default"
                    }
                },
                "scaling": {},
                "scheduling": {
                    "tasks": [
                        {
                            "isEnabled": true,
                            "taskType": "scale",
                            "cronExpression": "1 5 * * 0-4",
                            "scaleTargetCapacity": 1,
                            "scaleMinCapacity": 1,
                            "scaleMaxCapacity": 1
                        },
                        {
                            "isEnabled": true,
                            "taskType": "scale",
                            "cronExpression": "55 19 * * 0-4",
                            "scaleTargetCapacity": 1,
                            "scaleMinCapacity": 1,
                            "scaleMaxCapacity": 1
                        },
                        {
                            "frequency": "hourly",
                            "taskType": "backup_ami"
                        }
                    ]
                },
                "thirdPartiesIntegration": {},
                "multai": null,
                "createdAt": "2015-10-23T09:00:00.000Z",
                "updatedAt": "2018-08-01T14:11:39.000Z"
            }
        ],
        "count": 1
    }
}