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

URL Parameters

Parameter Type Description
OCEAN_CLUSTER_ID * String

The Ocean cluster to update.

ACCOUNT_ID * String

Your Spotinst accountId associated with your token.

All Ocean parameters are updatable, excluding the Region and Id. This API supports partial updates, so specific fields can be updated separately.

Request

Headers
{
  "Authorization": "Bearer ${token}",
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "cluster": {
    "name": "newName"
   }
}
Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "f77f3705-589f-4059-9c44-325b1d654c42",
        "url": "/ocean/aws/k8s/cluster/o-482d9d26?accountId=act-594fb635",
        "method": "PUT",
        "timestamp": "2018-11-05T12:59:35.207Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:k8s",
        "items": [
            {
                "id": "o-482d9d26",
                "name": "blacklistTest",
                "controllerClusterId": "from.opt.test3",
                "region": "us-west-2",
                "autoScaler": {
                    "cooldown": 180,
                    "down": {
                        "evaluationPeriods": 3
                    }
                },
                "capacity": {
                    "minimum": 0,
                    "maximum": 1000,
                    "target": 1
                },
                "compute": {
                    "subnetIds": [
                        "subnet-cb6c3ab2"
                    ],
                    "instanceTypes": {},
                    "launchSpecification": {
                        "securityGroupIds": [
                            "sg-c3d914b0"
                        ],
                        "iamInstanceProfile": {},
                        "tags": [
                            {
                                "tagKey": "or",
                                "tagValue": "from"
                            }
                        ]
                    }
                },
                "createdAt": "2018-11-05T12:55:50.000+0000",
                "updatedAt": "2018-11-05T12:58:15.000+0000"
            }
        ],
        "count": 1
    }
}