fbpx
GEThttps://api.spotinst.io/ocean/onPrem/k8s/cluster/{CLUSTER_ID}?accountId={ACCOUNT_ID}

URL Parameters

Parameter Type Description
OCEAN_CLUSTER_ID * String

The Ocean cluster to update.

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

All Ocean on-prem parameters are updatable. This API supports partial updates, so specific fields can be updated separately.

Request

Body
Copied!
Downloaded!
{ 
  "cluster":{ 
      "pricePerUnit":
      {
        "cpuHour":0.2
      }
  }
}
Response - 200

Body
Copied!
Downloaded!
{
  "response": {
  "status":
  { "code": 200, "message": "OK" }
  ,
  "kind": "spotinst:ocean:onprem:k8s",
  "items": [
  {
  "id": "o-18887922",
  "name": "ocean",
  "description": "Development",
  "controllerClusterIdentifier": "k8sCluster",
  "pricePerUnit":

  { "cpuHour": 0.2, "memoryHour": 0.002 }
  ,
  "createdAt": "2018-11-26T09:39:52.933Z",
  "updatedAt": "2018-11-26T09:39:52.933Z"
  }
  ],
  "count": 1
}