fbpx
GEThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/roll/{ROLL_ID}?accountId={ACCOUNT_ID}

Get status of a specific deployment

URL Parameters

ParameterTypeDescription
GROUP_ID * String

The Elastigroup ID you want to get the deployments status for

Example: sig-12345
ROLL_ID * String

The deployment id you want to query

Example: sbgd-9876
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": "f80321c9-23f0-4d90-a142-72e8083e1a73",
        "url": "/aws/ec2/group/sig-d8489594/deployment/sbgd-3e158755/details?spotinstAccountId=act-d48178ad",
        "method": "GET",
        "timestamp": "2019-09-03T15:16:05.298Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:aws:ec2:group:roll:details",
        "items": [
            {
                "detailsOverview": {
                    "deploymentId": "sbgd-3e158755",
                    "numberOfBatches": 2,
                    "currentBatch": 1,
                    "gracePeriod": 600,
                    "strategyAction": "REPLACE_SERVER",
                    "blueInstances": 2,
                    "greenInstances": 1,
                    "createdAt": "2019-09-03T15:12:02.000Z",
                    "healthCheck": "NONE"
                },
                "batches": [
                    {
                        "batch": 1,
                        "blue": [
                            {
                                "instanceId": "i-05e0e4d5a66a16e40",
                                "spotRequestId": "sir-1dxg95bn",
                                "batchNum": 1,
                                "status": "RUNNING",
                                "type": "OLD",
                                "updatedAt": "2019-09-03T15:12:02.000Z"
                            }
                        ],
                        "green": [
                            {
                                "instanceId": "i-0a13d50e91a5ed068",
                                "spotRequestId": "sir-vxkga1zp",
                                "batchNum": 1,
                                "status": "RUNNING",
                                "type": "NEW",
                                "updatedAt": "2019-09-03T15:13:26.000Z"
                            }
                        ]
                    },
                    {
                        "batch": 2,
                        "blue": [
                            {
                                "instanceId": "i-0d7c9b2cfec26aa34",
                                "spotRequestId": "sir-bkig9g6p",
                                "batchNum": 2,
                                "status": "RUNNING",
                                "type": "OLD",
                                "updatedAt": "2019-09-03T15:12:02.000Z"
                            }
                        ],
                        "green": []
                    }
                ],
                "events": [
                    {
                        "status": "Deployment Start",
                        "eventType": null,
                        "timestamp": "2019-09-03T15:12:02.000Z"
                    },
                    {
                        "status": "Deployment In Progress",
                        "eventType": "Batch 1 - Launching New instances",
                        "timestamp": "2019-09-03T15:12:46.000Z"
                    }
                ]
            }
        ],
        "count": 1
    }
}