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

# List node sets

GET https://nvke.acme.example/api/nodeSets

Returns all node sets, or those of one node pool.

Reference: https://docs.nvidia.com/nvke/rest-api-reference/node-sets/list-node-sets

## Authentication

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

## Request

### Query parameters

- `nodePoolID` (string, optional) — Filter by node pool ID

## Response

### 200

A list of node sets

- `nodeSets` (list of NodeSet, required) — Node sets.

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

## Types

### NodeSet

Read-only, immutable snapshot of a node pool's configuration at a point in time.

- `id` (string, required) — NodeSet ID.
- `nodePoolID` (string, required) — Owning node pool.
- `desiredCount` (integer, required) — Number of nodes in the snapshot.
- `kubernetesVersion` (string, required) — Kubernetes version in the snapshot.
- `systemReservedMemory` (string, required) — Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
- `kubeReservedMemory` (string, optional) — Memory reserved for Kubernetes components. Empty when the 2Gi default applies.
- `nico` (NicoNodeSetProvider, optional) — NICo settings in the snapshot.
- `launchLayer` (LaunchLayerNodeSetProvider, optional) — LaunchLayer settings in the snapshot.

### NicoNodeSetProvider

NICo settings in a node set (read-only snapshot).

- `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) — Which disk the OS is installed on. Default smallest.
  - Allowed values: `smallest`, `largest`

### LaunchLayerNodeSetProvider

LaunchLayer settings in a node set (read-only snapshot).

- `instanceType` (string, optional) — 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.

### 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
{
  "nodeSets": [
    {
      "id": "a3f1c2d4-5e6b-7890-abcd-ef1234567890",
      "nodePoolID": "b7e2d3f5-6a7c-8901-bcde-f01234567891",
      "desiredCount": 3,
      "kubernetesVersion": "1.30.2",
      "systemReservedMemory": "16Gi",
      "kubeReservedMemory": "2Gi",
      "nico": {
        "subnetIDs": [
          "c9d4e5f6-7b8a-9012-cdef-012345678902"
        ],
        "vpcPrefixIDs": [
          "d1e2f3a4-8c9b-0123-defa-123456789013"
        ],
        "release": "example-ubuntu-24.04-amd64",
        "diskSelectionStrategy": "smallest"
      },
      "launchLayer": {
        "instanceType": "vm200",
        "hostOSProfile": "nvidia-bare-metal-h100:1.4.2",
        "vmProfile": "",
        "fulfillmentStrategy": "BEST_EFFORT",
        "securityGroupRefs": {
          "primaryNetworkInterface": [
            "tenant-a-prod-primary-sg"
          ],
          "gpuNetworkInterface": [
            "tenant-a-prod-gpu-sg"
          ]
        }
      }
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://nvke.acme.example/api/nodeSets"

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/nodeSets';
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/nodeSets"

	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/nodeSets")

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/nodeSets")
  .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/nodeSets', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://nvke.acme.example/api/nodeSets");
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/nodeSets")! 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()
```