> This page is for version Latest (default).
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/fleet-intel/latest/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/fleet-intel/llms.txt.

# Get node groups

GET /v1/nodegroups

Get list of node groups with optional filtering and different view modes. Use view=detail for comprehensive metrics and view=basic for minimal ID/Name list. Detail view supports additional filters: computeZoneNames (partial match), healthStatuses, and gpuTypes. Detail responses include computeZoneLocation and the deprecated computeZoneGeoLocation alias for backward compatibility.

Reference: https://docs.nvidia.com/fleet-intel/api-explorer/nodegroups/get-v-1-nodegroups

## Request

### Query parameters

- `view` (enum, optional, default: detail) — View mode: 'detail' for comprehensive metrics (default) or 'basic' for minimal list
  - Allowed values: `detail`, `basic`
- `includeMetrics` (boolean, optional, default: true) — [DETAIL VIEW ONLY] Include metrics in response (default: true). Set to false for better performance when metrics are not needed.
- `computeZoneIds` (list of string, optional) — Filter by compute zone IDs (e.g., ?computeZoneIds=id1&computeZoneIds=id2)
- `computeZoneNames` (list of string, optional) — [DETAIL VIEW ONLY] Filter by compute zone names with partial match (e.g., ?computeZoneNames=east&computeZoneNames=west)
- `computeZoneId` (string, optional) — [LEGACY] Single compute zone ID to filter node groups - use computeZoneIds instead
- `nodeGroupIds` (list of string, optional) — List of node group IDs to filter (e.g., ?nodeGroupIds=id1&nodeGroupIds=id2)
- `healthStatuses` (list of enum, optional) — [DETAIL VIEW ONLY] Filter by node health status values (e.g., ?healthStatuses=Healthy&healthStatuses=Degraded)
  - Allowed values: `Healthy`, `Degraded`, `Unhealthy`, `Unknown`
- `gpuTypes` (list of string, optional) — [DETAIL VIEW ONLY] Filter node groups containing nodes with any of the specified GPU types (e.g., ?gpuTypes=NVIDIA-H100-80GB-HBM3).
- `sortBy` (enum, optional, default: health) — Field to sort by: health/nodes in detail view; name in either view
  - Allowed values: `health`, `nodes`, `name`
- `order` (enum, optional, default: desc) — Sort order (asc, desc)
  - Allowed values: `asc`, `desc`
- `page` (integer, optional, default: 0) — Page number (0-indexed)
- `pageSize` (integer, optional, default: 20) — Page size

## Response

### 200

Basic view response (view=basic)

- `nodegroups_getV1Nodegroups_Response_200`
  - models.NodeGroupsResponse: models.NodeGroupsResponse
  - models.ListNodeGroupsResponse: models.ListNodeGroupsResponse

## Errors

### 400 Bad Request Error

Bad Request

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 401 Unauthorized Error

Unauthorized

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 403 Forbidden Error

Forbidden - UAM authorization denied

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 499 Client Closed Request Error

Client Closed Request - request was canceled by the client

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 500 Internal Server Error

Internal Server Error

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 503 Service Unavailable Error

Service Unavailable

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

## Types

### models.NodeGroupsResponse

- `hasMore` (boolean, optional)
- `nodeGroups` (list of models.NodeGroupOverview, optional)
- `page` (integer, optional)
- `pageSize` (integer, optional)
- `total` (integer, optional)

### models.ListNodeGroupsResponse

- `hasMore` (boolean, optional)
- `nodeGroups` (list of models.SimpleNodeGroup, optional)
- `page` (integer, optional)
- `pageSize` (integer, optional)
- `total` (integer, optional)

### models.KASRequestStatus

RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

- `requestId` (string, optional) — Request ID for tracing
- `statusCode` (string, optional) — Status code from KAS
- `statusDescription` (string, optional) — Status description from KAS

### models.NodeGroupOverview

- `id` (string, required)
- `alertOverview` (models.AlertOverview, optional)
- `computeZoneContact` (models.Contact, optional)
- `computeZoneId` (string, optional)
- `computeZoneLocation` (models.Location, optional)
- `computeZoneName` (string, optional)
- `cpuCoresCount` (integer, optional)
- `createdAt` (string, optional)
- `degradedNodesCount` (integer, optional)
- `description` (string, optional)
- `gpusCount` (integer, optional)
- `hasInbandAgent` (boolean, optional) — HasInbandAgent / HasOobAgent are true when at least one node in this group has ever reported in-band / OOB inventory. A group can have both, one, or neither depending on its membership (empty group → both false).
- `hasOobAgent` (boolean, optional)
- `healthPercentage` (double, optional)
- `healthState` (enum, optional)
  - Allowed values: `Healthy`, `Degraded`, `Unhealthy`, `Unknown`, `Unsupported`, `Pending`
- `healthyNodesCount` (integer, optional)
- `metrics` (list of models.Metric, optional)
- `name` (string, optional)
- `nodesCount` (integer, optional)
- `tags` (list of string, optional)
- `unhealthyNodesCount` (integer, optional)
- `unknownNodesCount` (integer, optional)
- `updatedAt` (string, optional)
- `computeZoneGeoLocation` (models.GeoLocation, optional, deprecated) — Deprecated: use computeZoneLocation.

### models.SimpleNodeGroup

- `id` (string, required)
- `computeZoneId` (string, optional)
- `computeZoneName` (string, optional)
- `name` (string, optional)

### models.AlertOverview

- `criticalCount` (integer, optional)
- `infoCount` (integer, optional)
- `lastCriticalAlert` (string, optional)
- `lastWarningAlert` (string, optional)
- `totalCount` (integer, optional)
- `unknownCount` (integer, optional)
- `warningCount` (integer, optional)

### models.Contact

- `email` (string, optional)
- `pic` (string, optional)

### models.Location

- `city` (string, optional)
- `country` (string, optional)
- `latitude` (double, optional)
- `longitude` (double, optional)
- `region` (string, optional)

### models.Metric

- `aggregation` (enum, optional)
  - Allowed values: `average`, `sum`, `min`, `max`, `none`
- `description` (string, optional)
- `lastUpdated` (string, optional)
- `name` (string, optional)
- `unit` (enum, optional)
  - Allowed values: `MHz`, `count`, `°C`, `°F`, `celsius`, `watts`, `boolean`, `MB`, `ratio`, `MB/s`, `ber`, `nanoseconds`, `ms`, `seconds`, `s`, `bytes`, `bytes/s`, `millijoules`, `load`, `cores`, `percent`, `rpm`, `volts`
- `value` (double, optional)

### models.GeoLocation

Deprecated: use Location.

- `city` (string, optional)
- `country` (string, optional)
- `latitude` (double, optional)
- `longitude` (double, optional)
- `region` (string, optional)

## Examples

**Response**

```json
{
  "hasMore": false,
  "nodeGroups": [
    {
      "alertOverview": {
        "criticalCount": 2,
        "infoCount": 15,
        "lastCriticalAlert": "2024-01-15T14:15:00Z",
        "lastWarningAlert": "2024-01-15T14:28:00Z",
        "totalCount": 24,
        "unknownCount": 15,
        "warningCount": 7
      },
      "computeZoneContact": {
        "email": "admin@example.com",
        "pic": "John Doe"
      },
      "computeZoneGeoLocation": {
        "city": "Baltimore",
        "country": "United States",
        "latitude": 39.0458,
        "longitude": -76.6413,
        "region": "us-east-1"
      },
      "computeZoneId": "cz-us-east-1",
      "computeZoneLocation": {
        "city": "Baltimore",
        "country": "United States",
        "latitude": 39.0458,
        "longitude": -76.6413,
        "region": "us-east-1"
      },
      "computeZoneName": "US East 1 ComputeZone",
      "cpuCoresCount": 40,
      "createdAt": "2024-01-10T09:00:00Z",
      "degradedNodesCount": 2,
      "description": "High-performance GPU nodes for ML workloads",
      "gpusCount": 80,
      "hasInbandAgent": true,
      "hasOobAgent": false,
      "healthPercentage": 95,
      "healthState": "Healthy",
      "healthyNodesCount": 38,
      "id": "ng-gpu-cluster-1",
      "metrics": [
        {
          "aggregation": "average",
          "description": "System memory metrics",
          "lastUpdated": "2024-01-15T14:30:00Z",
          "name": "memory",
          "unit": "ratio",
          "value": 72.3
        }
      ],
      "name": "GPU Compute Cluster 1",
      "nodesCount": 40,
      "tags": [
        "ml-training",
        "gpu-intensive",
        "high-memory"
      ],
      "unhealthyNodesCount": 0,
      "unknownNodesCount": 0,
      "updatedAt": "2024-01-15T14:28:00Z"
    }
  ],
  "page": 0,
  "pageSize": 20,
  "total": 0
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/v1/nodegroups"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/v1/nodegroups';
const options = {method: 'GET'};

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"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/v1/nodegroups"

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

	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://api.example.com/v1/nodegroups")

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

request = Net::HTTP::Get.new(url)

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://api.example.com/v1/nodegroups")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/v1/nodegroups');

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

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/v1/nodegroups");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/v1/nodegroups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```