---
title: Cluster Validation
description: 'Cluster Validation endpoints: 5 operations.'
canonical: 'https://lightning.ai/docs/platform/cluster/api-reference/cluster-validation'
---
# Cluster Validation {#cluster-validation}

## List recent cluster validation runs {#list-recent-cluster-validation-runs}

`GET /v1/fleets/{fleetId}/cluster-validation`

Returns up to the 10 most recent cluster-validation runs for your fleet, newest first.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Recent cluster-validation runs (max 10, newest first). | [ClusterValidationListResponse](/docs/platform/cluster/api-reference/schemas.md#clustervalidationlistresponse) |
| `400` | Fleet does not support cluster validation | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Authentication required | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | Upstream service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl "$API_URL/v1/fleets/$FLEET_ID/cluster-validation" \
  -H "Authorization: Bearer $TOKEN"
```

**Example response** (`200`)

```json
{
  "items": [
    {
      "validationId": 4213,
      "state": "RUNNING",
      "nodeNames": [
        "g0546",
        "g0547"
      ]
    }
  ]
}
```

## Start a cluster validation run {#start-a-cluster-validation-run}

`POST /v1/fleets/{fleetId}/cluster-validation`

Starts a cluster-validation run against your fleet's nodes and returns the run id (use it to poll status, view details, or fetch the report). Runs are always multi-host. An optional node subset and an optional list of tests (from the test catalog) are honored; omit the tests to run the default set. Kubernetes-aware runs require a Kubernetes-enabled fleet; the required cluster credential is obtained automatically.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `Idempotency-Key` | header | string | No | Unique key that makes retrying this request safe: a retry with the same key returns the first response instead of running the request again. Optional, but strongly recommended. Use a new UUID v4 for each operation, up to 255 characters. Most responses are kept for 24 hours. See API conventions for conflicts, mismatched retries and errors. Maximum length: 255. |

**Request body** (`application/json`)

Optional run parameters. Omit the body to validate all fleet nodes with the default set of tests.

[CustomerTriggerClusterValidationRequest](/docs/platform/cluster/api-reference/schemas.md#customertriggerclustervalidationrequest)

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `202` | Validation run accepted and started. | [ClusterValidationResponse](/docs/platform/cluster/api-reference/schemas.md#clustervalidationresponse) |
| `400` | Fleet does not support cluster validation, or the request is invalid | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Authentication required | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `409` | A cluster validation is already running for this fleet | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `412` | GPU validation has not finished on one or more of the target nodes, so the run cannot start. The message names each node and its state. Retry once validation has finished on those nodes, or leave them out of the run with `nodeNames`. If a node failed GPU validation or stays blocked, contact support. | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | Upstream service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl -X POST "$API_URL/v1/fleets/$FLEET_ID/cluster-validation" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"nodeNames":["g0546","g0547"],"tests":["nccl","gpu-burn"]}'
```

**Example response** (`202`)

```json
{
  "validationId": 4213,
  "status": "RUNNING"
}
```

## Get cluster validation run details {#get-cluster-validation-run-details}

`GET /v1/fleets/{fleetId}/cluster-validation/{validationId}/details`

Returns the full detail for a specific cluster-validation run on your fleet: run state, the node names included, whether it was a Kubernetes-aware run, and timestamps.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `validationId` | path | integer | Yes | Cluster-validation run id (from the trigger or list response). |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Cluster-validation run detail | [ClusterValidationDetail](/docs/platform/cluster/api-reference/schemas.md#clustervalidationdetail) |
| `400` | Fleet does not support cluster validation, or the validation id is invalid | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Authentication required | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet or validation run not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | Upstream service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl "$API_URL/v1/fleets/$FLEET_ID/cluster-validation/$VALIDATION_ID/details" \
  -H "Authorization: Bearer $TOKEN"
```

**Example response** (`200`)

```json
{
  "validationId": 4213,
  "state": "RUNNING",
  "nodeNames": [
    "g0546",
    "g0547"
  ]
}
```

## Get cluster validation run report {#get-cluster-validation-run-report}

`GET /v1/fleets/{fleetId}/cluster-validation/{validationId}/report`

Returns the per-node pass/fail report for a specific cluster-validation run on your fleet, including a summary for each result. When a result has no summary available (for example, a test that could not run), a generic message is returned in its place.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `validationId` | path | integer | Yes | Cluster-validation run id (from the trigger or list response). |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Cluster-validation report | [ClusterValidationReportResponse](/docs/platform/cluster/api-reference/schemas.md#clustervalidationreportresponse) |
| `400` | Fleet does not support cluster validation, or the validation id is invalid | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Authentication required | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet or validation run not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | Upstream service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl "$API_URL/v1/fleets/$FLEET_ID/cluster-validation/$VALIDATION_ID/report" \
  -H "Authorization: Bearer $TOKEN"
```

## List available cluster validation tests {#list-available-cluster-validation-tests}

`GET /v1/fleets/{fleetId}/cluster-validation/tests`

Lists the cluster-validation tests available for your fleet, grouped by category, each with a short description. Which tests are returned depends on the fleet's type.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Available cluster-validation tests grouped by category | [ClusterValidationCatalogResponse](/docs/platform/cluster/api-reference/schemas.md#clustervalidationcatalogresponse) |
| `401` | Authentication required | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | Upstream service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl "$API_URL/v1/fleets/$FLEET_ID/cluster-validation/tests" \
  -H "Authorization: Bearer $TOKEN"
```

---

**Navigation**

- Parent: [API reference](/docs/platform/cluster/api-reference.md)
