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

Get all the custom launch configurations for given Ocean cluster in the specified account.

URL Parameters

Parameter Type Description
OCEAN_ID * String

Ocean cluster's 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?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": [],
              	"autoscale": {
		        	"headrooms": [
	    		    {
    	    		  "cpuPerUnit": 1000,
	        		  "memoryPerUnit": 2048,
			          "gpuPerUnit": 0,
    			      "numOfUnits": 3
        			}]
		      	},
                "createdAt": "2019-03-07T10:38:30.000Z",
                "updatedAt": "2019-03-07T10:40:59.000Z"
            }
        ],
        "count": 1
    }
}