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

Get the detailed status of a specific deployment. This includes status details per batch and other information.

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to roll.

Example: sig-12345
ACCOUNT_ID String

Your Spot accountId associated with your token.

Example: act-123abc
DEPLOYMENT_ID * String

The deployment ID you want to query.

Example: sbgd-9876
Request - Update group

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

Headers
Copied!
Downloaded!
{
  Content-Type: application/json
}
Body
Copied!
Downloaded!
{
    "request": {
        "id": "e749a27b-2d2a-4ef3-9a67-782a2862ba0c",
        "url": "/azure/compute/group/sig-a7aa60cd/deployment/sbgd-04c4658b/details?accountId=act-49372faf",
        "method": "GET",
        "timestamp": "2020-06-22T12:01:42.255Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:azure:compute:deployment:details",
        "items": [
            {
                "detailsOverview": {
                    "deploymentId": "sbgd-04c4658b",
                    "numberOfBatches": 2,
                    "currentBatch": 2,
                    "gracePeriod": 2,
                    "blueVms": 2,
                    "greenVms": 1,
                    "description": null,
                    "errorMessage": null,
                    "createdAt": "2020-06-18T05:33:18.000Z",
                    "healthCheck": [
                        "instanceState"
                    ]
                },
                "batches": [
                    {
                        "batch": 1,
                        "blue": [
                            {
                                "vmName": "i-57ef3cf7a694",
                                "batchNum": 1,
                                "status": "detached",
                                "type": "old",
                                "updatedAt": "2020-06-18T11:16:58.000Z"
                            }
                        ],
                        "green": [
                            {
                                "vmName": "i-f2a44ba41875",
                                "batchNum": 1,
                                "status": "running",
                                "type": "new",
                                "updatedAt": "2020-06-18T11:16:58.000Z"
                            }
                        ]
                    },
                    {
                        "batch": 2,
                        "blue": [
                            {
                                "vmName": "i-a81b80eeb691",
                                "batchNum": 2,
                                "status": "running",
                                "type": "old",
                                "updatedAt": "2020-06-18T05:29:10.000Z"
                            }
                        ],
                        "green": []
                    }
                ],
                "events": [
                    {
                        "status": "deploymentStart",
                        "eventType": "Batch 1 - Launching New instances",
                        "timestamp": "2020-06-18T05:33:18.000Z"
                    },
                    {
                        "status": "deploymentInProgress",
                        "eventType": "Batch 2 - Launching New instances",
                        "timestamp": "2020-06-18T11:42:05.000Z"
                    }
                ]
            }
        ],
        "count": 1
    }
}