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

URL Parameters

Parameter Type Description
OCEAN_LAUNCH_SPEC_ID * String

Ocean cluster launchSpec ID.

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "9ba4964d-bd1a-486a-93b9-16885f6726b0",
        "url": "/ocean/gcp/k8s/launchSpec/ols-9a63a123?oceanId=o-50683abc",
        "method": "GET",
        "timestamp": "2019-07-07T10:41:40.574Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:gcp:k8s:launchSpec",
        "items": [
            {
                "id": "ols-9a63a123",
                "oceanId": "o-50683abc",
                "serviceAccount": "default",
                "sourceImage": "https://www.googleapis.com/compute/v1/projects/gke-node-images/global/images/gke-1127-gke10-cos-69-10895-211-0-v190416-pre",
                "metadata": [
                    {
                        "key": "node-pool-name",
                        "value": "default-pool"
                    }
                ],
                "labels": [
                    {
                        "key": "env",
                        "value": "prod"
                    },
                    {
                        "key": "a1",
                        "value": "a2"
                    }
                ],
                "taints": [],
                "createdAt": "2019-03-07T10:38:30.000Z",
                "updatedAt": "2019-03-07T10:40:59.000Z"
            }
        ],
        "count": 1
    }
}