Skip to main content
GET
/
v1
/
regions
/
{region}
/
compute
/
clusters
/
{clusterId}
Get cluster
const options = {method: 'GET'};

fetch('https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "projectId": "<string>",
    "regionId": "<string>",
    "kubernetesVersion": "<string>",
    "status": "provisioning",
    "createdAt": "2023-11-07T05:31:56Z",
    "health": {
      "status": "healthy",
      "lastChecked": "2023-11-07T05:31:56Z"
    },
    "endpoint": "<string>",
    "nodeCount": 123,
    "metadata": {},
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

region
string
required

Region identifier

clusterId
string
required

Cluster identifier

Response

Cluster details

success
enum<boolean>
Available options:
true
data
object

Kubernetes cluster resource