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

Get the configurations for all Ocean On-Prem entities within the specified Spotinst account.

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Response - 200

Body
Copied!
Downloaded!
{
  	"response": {
	"status": { "code": 200, "message": "OK" },
	"kind": "spotinst:ocean:onprem:k8s",
	"items": [
	  	{
		"id": "o-18887922",
		"name": "ocean",
		"description": "Development",
		"controllerClusterIdentifier": "k8sCluster",
		"pricePerUnit":
      	{
        	"cpuHour": 0.015,
        	"memoryHour": 0.002
      	},
		"createdAt": "2018-11-26T09:39:52.933Z",
		"updatedAt": "2018-11-26T09:39:52.933Z"
	  	},
        {
          "id": "o-58117349",
          "name": "ocean2",
          "description": "Staging",
          "controllerClusterIdentifier": "k8sCluster2",
          "pricePerUnit":
          {
              "cpuHour": 0.013,
              "memoryHour": 0.018
          },
          "createdAt": "2018-11-26T09:39:52.933Z",
          "updatedAt": "2018-11-26T09:39:52.933Z"
         }
	  ],
	"count": 2
	}
}