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

# [Beta] Rank nodes, NVLink domains or racks within a scope

GET /v1/predicted_health_rankings

Beta feature. Returns 501 with error feature_not_available when the feature is disabled. Rank non-deleted customer nodes with active in-band enrollment using usable predictions within the configured freshness limit (24 hours by default). OOB-only nodes and nodes with deleted or missing in-band enrollment are excluded before aggregation, ranks, deciles and counts. Dual-source and offline in-band nodes remain eligible. For node ranking, agentStatuses optionally filters returned nodes by in-band agent status without changing scope ranks, deciles or coverage counts; omitting it includes Online and Offline nodes. Lower internal risk ranks first, with deterministic unique ranks. Scope parameters select nodes before ranking or aggregation. Each domain or rack aggregates only its selected members. Physical membership does not require a compute-zone hierarchy. Deleted nodes are excluded. Return parameters preserve full-scope ranks, deciles and counts. Groups with no usable scores remain unranked. allNodesRanked measures selected-node score coverage. For domain and rack ranking, complete also requires resolved membership and a rank for every group. Rack identifiers are case-sensitive chassis serial numbers. Each page reads current data, so changes between pages can cause repeats or omissions. Scores, aggregate values and numeric confidence are never returned. Lists use repeated query keys. Unknown parameters, empty values, repeated scalars and incompatible parameters are rejected.

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

## Request

### Query parameters

- `rankUnit` (enum, optional, default: node) — Ranking unit; rack uses the reported chassis serial number
  - Allowed values: `node`, `nvlinkDomain`, `rack`
- `aggregation` (enum, optional) — Required for domain or rack ranking. max uses the highest usable member risk score; nthMax uses the Nth highest; mean averages usable scores; countAbove counts scores strictly above threshold. Lower aggregate values rank first
  - Allowed values: `max`, `nthMax`, `mean`, `countAbove`
- `aggregationN` (integer, optional) — Positive member position; required only for nthMax
- `threshold` (double, optional) — Finite score threshold; required only for countAbove; counts values strictly above it
- `missingScorePolicy` (enum, optional, default: ignore) — Domain or rack ranking only: ignore unusable scores or require every selected member
  - Allowed values: `ignore`, `requireAll`
- `nodeUUIDs` (list of string, optional) — Node UUIDs defining the scope
- `nodeGroupIds` (list of string, optional) — Node group IDs defining the scope
- `computeZoneIds` (list of string, optional) — Compute zone IDs defining the scope
- `nvlinkDomainIds` (list of string, optional) — NVLink domain UUIDs defining the node scope
- `chassisSNs` (list of string, optional) — Case-sensitive chassis serial numbers defining the node scope
- `tags` (list of string, optional) — Tags defining the scope
- `tagMatch` (enum, optional, default: any) — Tag matching rule; requires tags
  - Allowed values: `any`, `all`
- `excludeNodeUUIDs` (list of string, optional) — Remove these nodes before ranking
- `returnNvlinkDomainIds` (list of string, optional) — Return these domains or their nodes; preserve full scope ranks, deciles and counts
- `returnChassisSNs` (list of string, optional) — Return these racks or their nodes; preserve full scope ranks, deciles and counts. Requires rankUnit=node or rack
- `returnNodeUUIDs` (list of string, optional) — Node ranking only: return these nodes with their ranks in the full scope
- `returnTags` (list of string, optional) — Node ranking only: return nodes with any matching inventory tag; preserve full scope ranks, deciles and counts
- `healthStatuses` (list of enum, optional) — Node ranking only: return nodes matching current inventory health; case-insensitive
  - Allowed values: `Healthy`, `Degraded`, `Unhealthy`, `Unknown`
- `agentStatuses` (list of enum, optional) — Node ranking only: filter by in-band agent status; case-insensitive. Missing status is Offline. Omitted or both statuses include all nodes. Preserves full-scope ranks, deciles and coverage counts
  - Allowed values: `Online`, `Offline`
- `maxRank` (integer, optional) — Return rank \<= maxRank; excludes unranked nodes
- `deciles` (list of integer, optional) — Return rank deciles 1-10; null deciles do not match. Deciles are null when the full comparison scope has fewer than 10 ranked items
- `order` (enum, optional, default: bestFirst) — Display order; ranks stay the same and unranked nodes stay last
  - Allowed values: `bestFirst`, `worstFirst`
- `page` (integer, optional, default: 0) — Page number, starting at zero
- `pageSize` (integer, optional, default: 100) — Page size

## Response

### 200

OK

- `allNodesRanked` (boolean, optional)
- `complete` (boolean, optional) — Complete requires usable scores, resolved membership and rankable groups. It is omitted for node ranking, which retains allNodesRanked semantics.
- `hasMore` (boolean, optional)
- `items` (list of models.PredictedHealthRankingItem, optional)
- `page` (integer, optional)
- `pageSize` (integer, optional)
- `rankUnit` (enum, optional) — RankUnit identifies the type of entity returned in items.
  - Allowed values: `node`, `nvlinkDomain`, `rack`
- `rankedCount` (integer, optional)
- `total` (integer, optional)
- `unmappedNodeCount` (integer, optional)
- `unrankedCount` (integer, optional)

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

Inventory-read permission denied by UAM

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

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

### 501 Not Implemented Error

Beta feature disabled (feature_not_available)

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

Ranking data 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.PredictedHealthRankingItem

- `computeZoneId` (string, optional, nullable)
- `decile` (integer, optional, nullable)
- `entityId` (string, optional) — EntityID is the node UUID, domain UUID or chassis serial selected by rankUnit.
- `explanation` (string, optional, nullable)
- `hostname` (string, optional, nullable)
- `memberCount` (integer, optional)
- `nodeGroupId` (string, optional, nullable)
- `predictionAt` (datetime, optional, nullable)
- `predictionStatus` (enum, optional)
  - Allowed values: `ranked`, `unranked`
- `rank` (integer, optional, nullable)
- `scoredCount` (integer, optional)
- `unrankedReason` (string, optional, nullable)
- `unscoredCount` (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

## Examples

**Response**

```json
{
  "allNodesRanked": true,
  "complete": true,
  "hasMore": true,
  "items": [
    {
      "computeZoneId": "string",
      "decile": 1,
      "entityId": "string",
      "explanation": "string",
      "hostname": "string",
      "memberCount": 1,
      "nodeGroupId": "string",
      "predictionAt": "2024-01-15T09:30:00Z",
      "predictionStatus": "ranked",
      "rank": 1,
      "scoredCount": 1,
      "unrankedReason": "string",
      "unscoredCount": 1
    }
  ],
  "page": 1,
  "pageSize": 1,
  "rankUnit": "node",
  "rankedCount": 1,
  "total": 1,
  "unmappedNodeCount": 1,
  "unrankedCount": 1
}
```

**SDK Code**

```python
import requests

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

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/v1/predicted_health_rankings';
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/predicted_health_rankings"

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

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/predicted_health_rankings")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp
using RestSharp;

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