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

Get the configurations for a specified Ocean cluster.

URL Parameters

Parameter Type Description
OCEAN_CLUSTER_ID * String

The Ocean cluster to retrieve the configurations from.

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "e1aba6b3-d1be-419f-b19a-9542e09716a5",
        "url": "/ocean/aws/k8s/cluster/o-210e0c0b?spotinstAccountId=act-7461862f",
        "method": "GET",
        "timestamp": "2018-11-05T15:43:16.306Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:k8s",
        "items": [
            {
                "id": "o-210e0c0b",
                "name": "blacklistTest",
                "controllerClusterId": "from.opt.test2",
                "region": "us-west-2",
                "autoScaler": {
                    "cooldown": 180,
                    "down": {
                        "evaluationPeriods": 3
                    }
                },
                "capacity": {
                    "minimum": 0,
                    "maximum": 1,
                    "target": 0
                },
                "compute": {
                    "subnetIds": [
                        "subnet-cb6c3ab2"
                    ],
                    "instanceTypes": {
                        "blacklist": [
                            "c3.large"
                        ]
                    },
                    "launchSpecification": {
                        "securityGroupIds": [
                            "sg-c3d914b0"
                        ],
                        "iamInstanceProfile": {}
                    }
                },
                "createdAt": "2018-11-04T12:48:32.000+0000",
                "updatedAt": "2018-11-04T12:49:12.000+0000"
            }
        ],
        "count": 1
    }
}