> This page is for NVIDIA Kubernetes Engine.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nvke/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nvke/_mcp/server.

# Get a cluster

GET https://nvke.acme.example/api/clusters/{clusterID}

Returns one cluster. Once provisioning finishes, `conditions.provisioning`
is False and `conditions.provisioned` is True.


Reference: https://docs.nvidia.com/nvke/rest-api-reference/clusters/get-cluster

## Authentication

- `Authorization` header (bearer token, required) — A JWT from an issuer the Operator has configured, carried as `Authorization: Bearer <token>`.

## Request

### Path parameters

- `clusterID` (string, required) — Cluster ID.

## Response

### 200

The requested cluster

- `id` (string, required) — Cluster ID.
- `name` (string, required) — Cluster name.
- `controlPlaneKubernetesVersion` (string, required) — Desired control-plane Kubernetes version. The running version is in ControlPlaneStatus.
- `cniPlugin` (string, required) — CNI plugin.
- `cniVersion` (string, required) — CNI version.
- `etcdEncrypted` (boolean, required) — Whether etcd is encrypted at rest.
- `network` (ClusterNetwork, required) — Pod and service network.
- `createdAt` (datetime, required) — Creation time.
- `conditions` (ClusterConditions, required) — Lifecycle conditions.
- `controlPlaneVIP` (string, optional) — API server VIP, if configured.
- `enableCPNodeRecycling` (boolean, optional, default: false) — When true, control-plane upgrades and configuration changes replace nodes automatically. When false, nodes needing replacement are reported as pending and wait for an operator.
- `controlPlaneConfig` (ControlPlaneConfig, optional) — Current control-plane configuration.
- `nico` (NicoClusterProvider, optional) — NICo identifiers.
- `launchLayer` (LaunchLayerClusterProvider, optional) — LaunchLayer identifiers.
- `nodeAgentUpgrade` (NodeAgentUpgradeStatus, optional) — The active agent upgrade and latest retry error.

## Errors

### 401 Unauthorized Error

No valid bearer token was presented.

- `message` (string, required) — What went wrong.

### 403 Forbidden Error

The token verified, but its subject matches no admission rule.

- `message` (string, required) — What went wrong.

### 404 Not Found Error

Cluster not found. No body is returned.

- `any`

## Types

### ClusterNetwork

Pod and service network in effect. Both fields are always present.

- `podCIDR` (string, required) — Comma-separated IPv4 pod CIDRs in effect.
- `serviceCIDR` (string, required) — IPv4 service CIDR in effect.

### ClusterConditions

Lifecycle conditions of a cluster. Each is a Condition.

- `provisioning` (Condition, required) — The cluster is provisioning.
- `provisioned` (Condition, required) — The cluster is provisioned.
- `deleting` (Condition, required) — The cluster is being deleted.
- `cpNodesRecycling` (Condition, optional) — Control-plane nodes are being replaced.
- `controlPlaneUpgrading` (Condition, optional) — The control plane is being upgraded.
- `updateInProgress` (UpdateInProgress, optional) — The mutually exclusive cluster operation in progress, if any. Absent when none.
- `updateFailed` (Condition, optional) — The most recent cluster update failed.

### ControlPlaneConfig

The control-plane configuration in effect, including the desired node-agent version.

- `configurationId` (string, optional) — ID of the current configuration snapshot.
- `desiredCount` (integer, optional) — The desired number of cluster-level control plane nodes. Creating a cluster with or increasing this count above 1 requires controlPlaneVIP on the cluster.
- `maxSurge` (integer, optional) — Extra control-plane nodes allowed during a rollout (0 or 1).
- `provisioningMonitorDisabled` (boolean, optional) — When true, nodes stuck in provisioning past the timeout are not replaced automatically.
- `systemReservedMemory` (string, optional) — Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
- `machineAnnotations` (map from string to string, optional) — Annotations applied to control-plane CAPI Machines at creation, including scale-out and replacement Machines. Fixed at cluster creation and not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
- `machineLabels` (map from string to string, optional) — Labels applied to control-plane CAPI Machines at creation, including scale-out and replacement Machines. Fixed at cluster creation and not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
- `nodeLabels` (map from string to string, optional) — Labels applied to control-plane nodes, as a map of keys to values. Set at creation.
- `nico` (NicoControlPlaneProvider, optional) — NICo settings for control-plane nodes.
- `launchLayer` (LaunchLayerControlPlaneProvider, optional) — LaunchLayer settings for control-plane nodes.
- `nodeAgentConfig` (NodeAgentConfig, optional) — Desired control-plane node-agent configuration.

### NicoClusterProvider

NICo identifiers for the cluster. Fixed at creation.

- `orgID` (string, optional) — Organization that owns the cluster.
- `siteID` (string, optional) — NICo site ID.
- `vpcID` (string, optional) — NICo VPC ID.

### LaunchLayerClusterProvider

LaunchLayer identifiers for the cluster. Exactly one of vpcID or orgID must be set, and siteID is required. All fields are fixed at creation.

- `siteID` (string, required) — Names the LaunchLayer datahall this cluster's machines come from.
- `vpcID` (string, optional) — An existing LaunchLayer VPC that CAPLL observes but never deletes.
- `orgID` (string, optional) — Organization in which CAPLL creates a VPC when vpcID is omitted.
- `vpcType` (enum, optional) — Network type for a managed or existing VPC. When omitted, CAPLL treats the VPC as VIRTUALIZED. A VIRTUALIZED security group needs a VIRTUALIZED VPC.
  - Allowed values: `BARE_METAL`, `VIRTUALIZED`
- `cloudProviderEnabled` (boolean, optional) — Set true where a cloud controller manager runs, so CAPLL leaves the Node's provider ID to it. NVKE runs no CCM, so true is rejected.
- `owner` (LaunchLayerClusterOwner, optional) — The LaunchLayer identity requests are attributed to.
- `securityGroups` (list of LaunchLayerSecurityGroup, optional) — Security groups CAPLL creates with the cluster and deletes with it.

### NodeAgentUpgradeStatus

The active agent upgrade and latest retry error.

- `nodeId` (string, required) — ID of the selected control-plane node.
- `targetVersion` (string, required) — Exact version accepted for this upgrade.
- `method` (string, required) — Installation method from the controller configuration.
- `phase` (enum, required) — Pending before installation starts. Running includes retries.
  - Allowed values: `Pending`, `Running`
- `errorMessage` (string, required) — Latest failure message while retries continue.

### Condition

A status, when it last changed, and a message.

- `status` (enum, required) — Condition status.
  - Allowed values: `True`, `False`, `Unknown`
- `lastTransitionTime` (datetime, required) — When the status last changed.
- `message` (string, required) — Human-readable detail. May be empty.

### UpdateInProgress

The mutually exclusive cluster operation in progress. Absent when none.

- `type` (enum, required) — Operation in progress.
  - Allowed values: `etcd_encryption`, `k8s_upgrade`, `cp_nodes_recycling`, `oidc_enable`
- `startedAt` (datetime, required) — Start time.
- `message` (string, optional) — Detail.

### NicoControlPlaneProvider

NICo settings for the control-plane nodes, as reported on read. Requests use NicoControlPlaneProviderCreate and NicoControlPlaneProviderUpdate, which omit the fields that direction cannot set.

- `instanceTypePreference` (list of string, optional) — Ordered list of acceptable NICo instance types; index 0 is the highest priority.
- `subnetIDs` (list of string, optional) — Subnets, for sites without native networking.
- `vpcPrefixIDs` (list of string, optional) — VPC prefixes, for sites with native networking.
- `release` (string, optional) — Name of a release the Operator has supplied to the management plane.
- `diskSelectionStrategy` (enum, optional) — Always smallest for control-plane nodes. Not configurable through the API.
  - Allowed values: `smallest`, `largest`
- `sshKeyGroupIDs` (list of string, optional) — SSH key groups for node access. Can be updated.

### LaunchLayerControlPlaneProvider

LaunchLayer settings for the control-plane nodes. Same shape as LaunchLayerNodePoolProvider — control-plane nodes are still LaunchLayer machines. Fixed at creation.

- `instanceType` (string, required) — Requests capacity of a given shape, for example "vm200".
- `hostOSProfile` (string, optional) — Bare-metal profile, as "\<name>" or "\<name>:\<version>". Mutually exclusive with vmProfile.
- `vmProfile` (string, optional) — Virtual profile, as "\<name>" or "\<name>:\<version>". Mutually exclusive with hostOSProfile.
- `fulfillmentStrategy` (enum, optional) — Controls how the Compute Allocation Operator places the request.
  - Allowed values: `BEST_EFFORT`, `ALL_OR_NOTHING`, `WAIT_FOR_RESOURCE`
- `securityGroupRefs` (LaunchLayerSecurityGroupRefs, optional) — Names of the owning cluster's managed security groups to attach, per network interface. Mutually exclusive with securityGroups (existing group IDs) per interface — CAPLL supports both but NVKE always creates groups through the cluster, so NVKE only exposes refs.

### NodeAgentConfig

Desired control-plane node-agent configuration.

- `version` (string, optional) — Exact agent release version. An empty value disables agent convergence.

### LaunchLayerClusterOwner

The LaunchLayer identity requests are attributed to.

- `userID` (string, optional) — LaunchLayer user ID.
- `username` (string, optional) — LaunchLayer username.

### LaunchLayerSecurityGroup

A security group LaunchLayer creates with the cluster and deletes with it.

- `name` (string, required) — Security group name, referenced by node pools via securityGroupRefs. A DNS label of at most 24 characters, unique within the cluster.
- `type` (enum, required) — Immutable. A virtual VPC can contain both kinds of groups.
  - Allowed values: `BARE_METAL`, `VIRTUALIZED`
- `networkType` (enum, optional) — Required for a VIRTUALIZED group and rejected for a BARE_METAL group.
  - Allowed values: `primary`, `secondary`

### LaunchLayerSecurityGroupRefs

Names of the owning cluster's managed security groups to attach, per network interface. Mutually exclusive with securityGroups (existing group IDs) per interface — CAPLL supports both but NVKE always creates groups through the cluster, so NVKE only exposes refs.

- `primaryNetworkInterface` (list of string, optional) — Managed security group names to attach to the primary network interface.
- `gpuNetworkInterface` (list of string, optional) — Managed security group names to attach to the GPU network interface.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "id": "a3bb189e-8bf9-3888-9912-ace4e6543002",
  "name": "tenant-a-prod",
  "controlPlaneKubernetesVersion": "1.29.4",
  "cniPlugin": "ovn-kubernetes",
  "cniVersion": "2.4.2",
  "etcdEncrypted": true,
  "network": {
    "podCIDR": "192.168.0.0/16",
    "serviceCIDR": "10.96.0.0/12"
  },
  "createdAt": "2024-01-15T09:30:00Z",
  "conditions": {
    "provisioning": {
      "status": "False",
      "lastTransitionTime": "2024-01-15T10:05:42Z",
      "message": "Cluster provisioning completed successfully"
    },
    "provisioned": {
      "status": "True",
      "lastTransitionTime": "2024-01-15T10:05:42Z",
      "message": "Cluster is fully provisioned and ready"
    },
    "deleting": {
      "status": "False",
      "lastTransitionTime": "2024-01-15T09:30:00Z",
      "message": ""
    },
    "cpNodesRecycling": {
      "status": "False",
      "lastTransitionTime": "2024-01-15T10:05:42Z",
      "message": ""
    },
    "controlPlaneUpgrading": {
      "status": "False",
      "lastTransitionTime": "2024-01-15T10:05:42Z",
      "message": ""
    },
    "updateInProgress": {
      "type": "k8s_upgrade",
      "startedAt": "2024-03-20T14:00:00Z",
      "message": "Upgrading control plane from 1.28.7 to 1.29.4"
    },
    "updateFailed": {
      "status": "False",
      "lastTransitionTime": "2024-01-15T10:05:42Z",
      "message": ""
    }
  },
  "controlPlaneVIP": "10.10.0.50",
  "enableCPNodeRecycling": false,
  "controlPlaneConfig": {
    "configurationId": "c7d2e4f1-3a5b-4c8d-9e0f-1a2b3c4d5e6f",
    "desiredCount": 3,
    "maxSurge": 1,
    "provisioningMonitorDisabled": false,
    "systemReservedMemory": "16Gi",
    "machineAnnotations": {},
    "machineLabels": {},
    "nodeLabels": {},
    "nico": {
      "instanceTypePreference": [
        "d4e5f6a7-b8c9-4d0e-a1f2-b3c4d5e6f7a8"
      ],
      "subnetIDs": [
        "e5f6a7b8-c9d0-4e1f-b2a3-c4d5e6f7a8b9"
      ],
      "vpcPrefixIDs": [
        "f6a7b8c9-d0e1-4f2a-c3b4-d5e6f7a8b9c0"
      ],
      "release": "example-ubuntu-24.04-amd64",
      "diskSelectionStrategy": "smallest",
      "sshKeyGroupIDs": [
        "a7b8c9d0-e1f2-4a3b-d4c5-e6f7a8b9c0d1"
      ]
    },
    "launchLayer": {
      "instanceType": "vm200",
      "hostOSProfile": "ubuntu-24.04-baremetal:1.2.0",
      "vmProfile": "ubuntu-24.04-vm:1.0.0",
      "fulfillmentStrategy": "BEST_EFFORT",
      "securityGroupRefs": {
        "primaryNetworkInterface": [
          "cp-primary-sg"
        ],
        "gpuNetworkInterface": [
          "cp-gpu-sg"
        ]
      }
    },
    "nodeAgentConfig": {
      "version": "1.5.3"
    }
  },
  "nico": {
    "orgID": "dipfedrcvjiw",
    "siteID": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e",
    "vpcID": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f"
  },
  "launchLayer": {
    "siteID": "us-west-2-hall-a",
    "vpcID": "vpc-d3e4f5a6-b7c8-4d9e-0f1a-2b3c4d5e6f7a",
    "orgID": "org-acme-infra",
    "vpcType": "BARE_METAL",
    "cloudProviderEnabled": false,
    "owner": {
      "userID": "usr-7f8a9b0c1d2e",
      "username": "platform-admin"
    },
    "securityGroups": [
      {
        "name": "cp-primary-sg",
        "type": "BARE_METAL",
        "networkType": "primary"
      }
    ]
  },
  "nodeAgentUpgrade": {
    "nodeId": "e4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8",
    "targetVersion": "1.5.3",
    "method": "apt",
    "phase": "Running",
    "errorMessage": "Retrying installation: connection timeout on attempt 2"
  }
}
```

**SDK Code**

```python
import requests

url = "https://nvke.acme.example/api/clusters/clusterID"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://nvke.acme.example/api/clusters/clusterID';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://nvke.acme.example/api/clusters/clusterID"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://nvke.acme.example/api/clusters/clusterID")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://nvke.acme.example/api/clusters/clusterID")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://nvke.acme.example/api/clusters/clusterID', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://nvke.acme.example/api/clusters/clusterID");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://nvke.acme.example/api/clusters/clusterID")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```