> 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 control-plane config history

GET https://nvke.acme.example/api/clusters/{clusterID}/control-plane/configHistory

Returns the control-plane configuration change history, oldest first.
Each entry shows which rollout-relevant fields changed relative to the
previous snapshot. Use it to resolve the `pinnedConfigurationID` on each
control-plane node and the cluster's desired `configurationId`.


Reference: https://docs.nvidia.com/nvke/rest-api-reference/control-plane/get-cluster-control-plane-config-history

## 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 control-plane config history

- `changes` (list of ControlPlaneConfigChange, required) — Oldest first. A node's pinnedConfigurationID and the cluster's desired configurationId both refer to entries here.

## 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

### ControlPlaneConfigChange

One control-plane configuration snapshot and what changed in it.

- `configurationID` (string, required) — The configuration snapshot.
- `createdAt` (datetime, required) — When the change took effect.
- `isCurrent` (boolean, required) — Whether this is the cluster's current desired configuration.
- `changedFields` (list of ControlPlaneConfigField, required) — Fields that changed relative to the previous snapshot. Empty for the first entry.
- `changeReason` (string, optional) — Why the snapshot was created, when recorded.
- `createdBy` (string, optional) — Who created the snapshot, when recorded.

### ControlPlaneConfigField

One field that changed between two snapshots. Values are JSON-encoded.

- `field` (string, required) — The field that changed.
- `to` (string, required) — JSON-encoded new value.
- `from` (string, optional) — JSON-encoded previous value. Omitted for the first entry.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "changes": [
    {
      "configurationID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "createdAt": "2024-01-10T08:00:00Z",
      "isCurrent": false,
      "changedFields": [],
      "changeReason": "Initial control-plane configuration",
      "createdBy": "admin@acme.example"
    },
    {
      "configurationID": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "createdAt": "2024-02-14T11:22:00Z",
      "isCurrent": false,
      "changedFields": [
        {
          "field": "kubernetesVersion",
          "to": "\"1.29.2\"",
          "from": "\"1.28.5\""
        }
      ],
      "changeReason": "Kubernetes version upgrade to 1.29",
      "createdBy": "ops-bot@acme.example"
    },
    {
      "configurationID": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "createdAt": "2024-03-05T15:45:00Z",
      "isCurrent": true,
      "changedFields": [
        {
          "field": "nico.release",
          "to": "\"nvke-cp-2024.03.1\"",
          "from": "\"nvke-cp-2024.01.1\""
        }
      ],
      "changeReason": "OS release update for security patch",
      "createdBy": "platform-engineer@acme.example"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://nvke.acme.example/api/clusters/clusterID/control-plane/configHistory"

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/control-plane/configHistory';
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/control-plane/configHistory"

	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/control-plane/configHistory")

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/control-plane/configHistory")
  .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/control-plane/configHistory', [
  '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/control-plane/configHistory");
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/control-plane/configHistory")! 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()
```