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

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
OCEAN_LAUNCH_SPEC_ID * String

Ocean cluster launchSpec ID. Can get launchSpec id with get call.

Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "XXXXXXX-abce-XXXX-XXXX-XXX11111XXXX",
        "url": "/ocean/aws/k8s/launchSpec/ols-123?accountId=XXXXXXXX",
        "method": "put",
        "timestamp": "2019-02-19T18:25:51.767Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:k8s",
        "items": [
            {
                "id": "ols-123",
                "oceanId": "o-123",
				"labels": [
                    {
                        "key": "env",
                        "value": "test"
                    },
                    {
                        "key": "creator",
                        "value": "test"
                    }
                ],
                "taints": [ 
    				{
				      "key": "taintKey",
				      "value": "taintValue",
				      "effect": "NoSchedule"
				    }
                  ],
                "createdAt": "2019-02-19T18:25:51.752Z",
                "updatedAt": "2019-02-19T18:25:51.752Z"
            }
        ],
        "count": 1
    }
}