fbpx
PUThttps://api.spotinst.io/ocean/aws/k8s/cluster/{OCEAN_CLUSTER_ID}/roll/{ROLL_ID}?accountId={ACCOUNT_ID}

Update a roll of an Ocean cluster.

Performing the request will stop next batch in roll.

URL Parameters

Parameter Type Description
OCEAN_CLUSTER_ID * String

The Ocean cluster to roll.

Example: o-12345678
ROLL_ID * String

The Ocean cluster roll ID

Example: scr-12345678
ACCOUNT_ID * String

Your Spotinst accountId associated with your token.

Request

Headers
{
  "Authorization": "Bearer ${token}",
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{ 
	"roll" : 
	{
		"status" : "STOPPED"
	}
}
Attribute Type Description
roll Object

Settings for roll operation

roll.status String

Set status to roll. Valid values: "STOPPED"

Example: STOPPED
Response - 200

Body
Copied!
Downloaded!
{
	"id": "scr-12345678",
    "status": "STOPPED",
    "currentBatch": 3,
     "numOfBatches": 5,
     "progress": {
          "unit": "percentage",
          "value": 40
         },
       "oceanId": "o-12345678",
       "createdAt": "2019-03-24T15:50:09.000Z"
       "updatedAt": "2019-03-24T15:46:09.000Z"
}