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

Get status of a specific roll

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elasticgroup id you want to roll

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountid associated with your token

Example: act-123abc
ROLL_ID * String

The roll id you want to query

Example: sbgd-9876
Request - Update group

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

Body Attributes:


Attribute Type Description
batchSizePercentage * Integer

Indicates (in percentage) the batch size of the roll (meaning, how many nodes to replace in each batch)

gracePeriod * Integer

Indicates (in seconds) the timeout to wait until node become healthy in the ELB

healthCheckType String

Define a health check type. valid values: mlb, node_state, none (wait the entire grace period for each batch). If no value is set the roll will use the group’s auto-healing health check.

strategy Object

The roll strategy

strategy.action String

The roll action to perform. valid values: REPLACE_NODE(more strategies soon to be implemented)

Response - 200

Headers
{
  Content-Type: application/json
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "57f6db69-35ba-4e58-be37-290d6df72bb5",
    "url": "/compute/azure/group/sig-12345/roll/sbgd-dfb956b4",
    "method": "GET",
    "timestamp": "2017-02-02T00:27:01.023Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:azure:compute:group:roll",
    "items": [
      {
        "id": "sbgd-9876",
        "status": "ROLL_FINISHED",
        "progress": {
          "unit": "percent",
          "value": 100
        },
        "createdAt": "2017-01-31T13:54:53.000+0000",
        "updatedAt": "2017-01-31T14:26:37.000+0000"
      }
    ],
    "count": 1
  }
}