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": "e1aba6b3-d1be-419f-b19a-9542e09716a5",
        "url": "/ocean/gcp/k8s/cluster/launchSpec/CLUST-LAUNCHS-1?spotinstAccountId=act-7461862f",
        "method": "GET",
        "timestamp": "2018-11-05T15:43:16.306Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:gcp:k8s",
        "items": [
			{
			    "launchSpec": {
			        "oceanId" : "o-1fff54ed",
			        "sourceImage":"https://www.googleapis.com/compute/v1/projects/gke-node-images/global/images/container-v1-3-v20160517",
			        "metadata": [
						  {
                              "key": "example_key1",
                              "value": "exmample_value1"
                          },
                          {
                              "key": "example_key2",
                              "value": "example_value2"
                          }
					],
					"taints": [
						{
							"key":"test",
			                "value":"test",
			                "effect":"NoExecute"
			            }
			            ],
			        "labels":[
			            {
			                "key":"test",
			                "value":"test"
			            },
                        {
			                "key":"env",
			                "value":"test"
			            }
					]
			    }
			}
		],
        "count": 1
    }
}