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

               Roll the Elastigroup. This triggers a Blue/Green deployment that replaces the existing VMs in the Elastigroup.

  

 

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
Request - Update group

Headers
{  
   "Content-Type": "application/json",
   "Authorization": "Bearer ${token}" 
}
Body
Copied!
Downloaded!
{
  "batchSizePercentage": 50,
  "gracePeriod": 300,
  "healthCheckType": "instance_state",
}

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.

Response - 200

Headers
{
  Content-Type: application/json
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "3213e42e-455e-4901-a185-cc3eb65fac5f",
    "url": "/compute/azure/group/sig-12345/roll",
    "method": "PUT",
    "time": "2016-02-10T15:49:11.911Z"
  },
   "response": {
     "status": {
       "code": 200,
       "message": "OK"
     },
     "kind": "spotinst:azure:compute:group:roll",
     "items": [
       {
         "id": "sbgd-9876",
         "status": "ROLL_STARTING",
         "currentBatch": 1,
         "numOfBatches": 2,
         "progress": {
           "unit": "percentage",
           "value": 0
         },
         "groupId": "sig-12345"
       }
     ],
     "count": 1
   }