---
title: Fleets
description: 'Fleets endpoints: 4 operations.'
canonical: 'https://lightning.ai/docs/platform/cluster/api-reference/fleets'
---
# Fleets {#fleets}

## List your fleets {#list-your-fleets}

`GET /v1/fleets`

Get all GPU fleets in your organization. Each fleet represents a cluster of GPU nodes ready for your workloads.

**When to use:**
- Display fleets in your dashboard
- Check which fleets are currently active
- Get an overview of your GPU infrastructure

**Response Format:** Always returns ListFleetsResponse with `fleets` array, `limit`, and `nextToken` fields.

**Pagination:** Optional - add `limit` parameter to paginate. Without `limit`, returns all fleets with `limit: null` and `nextToken: null`.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `limit` | query | integer | No | Optional: Maximum number of fleets to return per page (0-100). Use 0 to get all results in paginated format. If provided, response includes pagination metadata. Minimum: 0. Maximum: 100. |
| `nextToken` | query | string | No | Optional: Pagination token from previous response to retrieve the next page. Only valid when 'limit' is provided. |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | List of fleets retrieved successfully. Always returns ListFleetsResponse with unified format. When pagination not used, limit and nextToken are null. | [ListFleetsResponse](/docs/platform/cluster/api-reference/schemas.md#listfleetsresponse) |
| `400` | Bad request - invalid pagination parameters | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

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

**Example response** (`200`)

```json
{
  "fleets": [
    {
      "fleetId": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
      "name": "text-to-video-demo",
      "status": "ACTIVE",
      "requestedAt": 1755817319000,
      "provisionedAt": 1755831319000,
      "createdAt": 1755817319000,
      "updatedAt": 1755831319000,
      "computeType": "BARE_METAL",
      "infrastructure": {
        "network": "infiniband"
      },
      "bootstrap": {
        "cloudInit": "sudo ls -a",
        "machineImage": "Ubuntu 24.04",
        "sshUsers": [
          "john_doe",
          "jane_smith"
        ],
        "ssh-pub-keys": [
          "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC...",
          "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG..."
        ],
        "sudoAccess": "enabled"
      },
      "fleetApps": {
        "mk8s": "disabled",
        "mks2": "disabled",
        "slurm": "disabled",
        "mk8sCluster": {
          "clusterId": "cluster-123-abc",
          "clusterName": "my-fleet-k8s-cluster",
          "kubernetesVersion": "1.32",
          "installationStatus": "ACTIVE",
          "clusterStatus": "READY",
          "kubeconfig": "apiVersion: v1\\nkind: Config\\n...",
          "controlPlaneNodeCount": 3,
          "readyControlPlaneNodeCount": 3,
          "workerNodeCount": 8,
          "readyWorkerNodeCount": 8,
          "addons": [
            "prometheus"
          ],
          "createdAt": "2025-01-15T10:30:00Z"
        },
        "mks2Cluster": {
          "clusterId": "11111111-2222-3333-4444-555555555555",
          "clusterName": "my-fleet-k8s-cluster",
          "kubernetesVersion": "v1.35.0",
          "clusterStatus": "ready",
          "controlPlaneReplicas": 2,
          "controlPlaneSize": "medium",
          "datastoreType": "dedicated",
          "nvidiaDriverVersion": "580.126.20",
          "createdAt": "2026-01-15T10:30:00Z"
        }
      },
      "osConfig": {
        "cpuProfiling": "disabled",
        "gpuProfiling": "disabled"
      },
      "orderId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    }
  ],
  "nextToken": "<next-token>",
  "limit": 50
}
```

## Get fleet details {#get-fleet-details}

`GET /v1/fleets/{fleetId}`

Get complete information about a specific fleet, including configuration, status, and current node count.

**When to use:**
- Display fleet details in your application
- Check current fleet configuration before scaling
- Monitor fleet status and health

**Response includes:** GPU type, node count, region, networking, storage, and current operational status.

**Parameters**

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

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Success - returns complete fleet information | [Fleet](/docs/platform/cluster/api-reference/schemas.md#fleet) |
| `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) |

**Example request**

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

**Example response** (`200`)

```json
{
  "fleetId": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
  "name": "text-to-video-demo",
  "status": "ACTIVE",
  "requestedAt": 1755817319000,
  "provisionedAt": 1755831319000,
  "createdAt": 1755817319000,
  "updatedAt": 1755831319000,
  "computeType": "BARE_METAL",
  "minimumFootprint": {
    "gpuNodes": {
      "instanceType": "h100-8x-bm",
      "replicas": 2,
      "reserved_nodes": [
        "g0386",
        "g0387"
      ],
      "nodes": [
        {
          "nodeName": "g0386",
          "publicIp": "10.9.41.182",
          "state": "ACTIVE"
        }
      ]
    }
  },
  "expandableCapacity": {
    "gpuNodes": {
      "instanceType": "h100-8x-bm",
      "maxReplicas": 20,
      "nodes": [
        {
          "nodeName": "g0386",
          "publicIp": "10.9.41.182",
          "state": "ACTIVE"
        }
      ]
    }
  },
  "infrastructure": {
    "network": "infiniband",
    "vast": [
      {
        "mountPoint": "/data",
        "size": 10737418240
      }
    ]
  },
  "bootstrap": {
    "cloudInit": "sudo ls -a",
    "machineImage": "Ubuntu 24.04",
    "sshUsers": [
      "john_doe",
      "jane_smith"
    ],
    "ssh-pub-keys": [
      "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC...",
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG..."
    ],
    "sudoAccess": "enabled"
  },
  "fleetApps": {
    "mk8s": "disabled",
    "mks2": "disabled",
    "slurm": "disabled",
    "mk8sCluster": {
      "clusterId": "cluster-123-abc",
      "clusterName": "my-fleet-k8s-cluster",
      "kubernetesVersion": "1.32",
      "installationStatus": "ACTIVE",
      "clusterStatus": "READY",
      "kubeconfig": "apiVersion: v1\\nkind: Config\\n...",
      "serviceLinks": {
        "grafana": "https://grafana.voltagepark.com/d/abc123/cluster-overview"
      },
      "controlPlaneNodeCount": 3,
      "readyControlPlaneNodeCount": 3,
      "workerNodeCount": 8,
      "readyWorkerNodeCount": 8,
      "addons": [
        "prometheus"
      ],
      "createdAt": "2025-01-15T10:30:00Z"
    },
    "mks2Cluster": {
      "clusterId": "11111111-2222-3333-4444-555555555555",
      "clusterName": "my-fleet-k8s-cluster",
      "kubernetesVersion": "v1.35.0",
      "clusterStatus": "ready",
      "controlPlaneReplicas": 2,
      "controlPlaneSize": "medium",
      "datastoreType": "dedicated",
      "nvidiaDriverVersion": "580.126.20",
      "createdAt": "2026-01-15T10:30:00Z",
      "nodeCounts": {
        "total": 4,
        "ready": 3,
        "notReady": 1,
        "pending": 0
      }
    },
    "slurmParameters": {
      "sshKeys": [
        {
          "name": "user",
          "keys": [
            "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl user@voltagepark.com"
          ]
        }
      ],
      "externalStorage": {
        "mountPath": "/data",
        "size": "128GB"
      }
    }
  },
  "osConfig": {
    "cpuProfiling": "disabled",
    "gpuProfiling": "disabled"
  },
  "orderId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
```

## Get fleet health metrics {#get-fleet-health-metrics}

`GET /v1/fleets/{fleetId}/health`

Get detailed health information about fleet nodes, including connectivity and operational status. Only available for ACTIVE fleets with nodes.

**When to use:**
- Check if nodes are healthy before running workloads
- Diagnose connectivity or performance issues
- Monitor fleet operational health

**Note:** Returns 422 if fleet is not active or has no nodes yet.

**Parameters**

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

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Success - returns health metrics for all nodes in the fleet | [FleetHealthResponse](/docs/platform/cluster/api-reference/schemas.md#fleethealthresponse) |
| `404` | Fleet not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `422` | Fleet is not in ACTIVE status or has inconsistent state (ACTIVE fleet with no nodes) | object |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**`422` response body**

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `error` | string | Yes | Error message describing why health cannot be retrieved |
| `fleetId` | string | Yes | Unique identifier for the fleet |
| `status` | string | Yes | Current fleet status |

**Example request**

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

**Example response** (`200`)

```json
{
  "fleetId": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
  "status": "healthy",
  "node_health": [
    {
      "nodeId": "node-12345",
      "status": "healthy",
      "lastUpdatedAt": 1755817319000
    }
  ]
}
```

## Get fleet event history {#get-fleet-event-history}

`GET /v1/fleets/{fleetId}/history`

Get the lifecycle history for a fleet, newest first: creation, status changes (including scaling and termination), storage changes, and node remediation requests.

**When to use:**
- Show fleet activity timeline in your UI
- Audit what happened to a fleet
- Debug issues by reviewing recent events

**Pagination:** Some events are omitted from the history, so a page can contain fewer events than `limit`, or none, while `nextToken` is still returned. Keep requesting pages until `nextToken` is absent.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `limit` | query | integer | No | Maximum number of events per page (default: 1000, max: 1000) Default: `1000`. Minimum: 1. Maximum: 1000. |
| `nextToken` | query | string | No | Token from previous response to get next page of events |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Success - returns paginated fleet history events | [FleetHistoryResponse](/docs/platform/cluster/api-reference/schemas.md#fleethistoryresponse) |
| `404` | Fleet not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

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

---

**Navigation**

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