GEThttps://api.spotinst.io/azure/compute/group/{GROUP_ID}/deployment?accountId={ACCOUNT_ID}&limit={LIMIT}&sort={SORT}

Get a list of all the deployments of a specific Elastigroup and the status of each one.

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elasticgroup ID you want to get deployment statuses for.

Example: sig-12345
ACCOUNT_ID String

Your Spot accountId associated with your token.

Example: act-123abc
LIMIT Integer

Limits the number of deployments returned.

Example: 14
Default: 5
SORT String

Field by which to sort the results.

Example: createdAt:DESC
Default: createdAt:DESC
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": "e2b9b1ae-4b4d-442a-8ac2-dd826832c476",
        "url": "/azure/compute/group/sig-a7aa60cd/deployment?accountId=act-49372faf&limit=14&sort=createdAt:desc",
        "method": "GET",
        "timestamp": "2020-06-22T08:44:26.038Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:azure:compute:group:deployment",
        "items": [
            {
                "id": "sbgd-04c4658b",
                "status": "deploymenInProgress",
                "progress": {
                    "unit": "percent",
                    "value": 50.0
                },
                "updatedAt": "2020-06-18T11:40:57.000Z",
                "createdAt": "2020-06-18T05:33:18.000Z"
            }
        ],
        "count": 1
    }
}

Response Attributes


  • items.status String
    Possible status: DEPLOYMENT_STARTING: The deployment is starting. DEPLOYMENT_FINISHED: The deployment successfully completed. DEPLOYMENT_STOPPED The deployment was manually stopped by user. DEPLOYMENT_ERROR: deployment failed. DEPLOYMENT_INPROGRESS: deployment is still in progress.