fbpx
PUThttps://api.spotinst.io/gcp/gce/group/{GROUP_ID}/roll?accountId={ACCOUNT}

Deploy your Elastigroup (triggers Blue/Green Deployment that replaces the existing instances in the Elastigroup)

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to deploy

Example: sig-12345
ACCOUNT * String

The Spotinst Account ID

Example: act-123567
Request

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

Body Attributes


Attribute Type Description
batchSizePercentage * Integer

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

gracePeriod * Integer

Indicates (in seconds) the timeout to wait until instance become healthy in the Load Balncer

Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
      "request": {
          "id": "52b0a53c-d6a7-4674-9638-1b15371804ea",
          "url": "/gcp/gce/group/sig-68fb1234/roll?accountId=act-f79a1234",
          "method": "PUT",
          "timestamp": "2018-02-07T12:35:26.814Z"
      },
      "response": {
          "status": {
              "code": 200,
              "message": "OK"
          },
          "kind": "spotinst:gcp:gce:group:roll",
          "items": [
              {
                  "id": "sbgd-01f01234",
                  "status": "STARTING",
                  "currentBatch": 1,
                  "numOfBatches": 2,
                  "progress": {
                      "unit": "percentage",
                      "value": 0
                  }
              }
          ],
          "count": 1
      }
  }