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

## List nodes in a fleet {#list-nodes-in-a-fleet}

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

Get all GPU nodes in a fleet with their current status, IP addresses, and health information.

**When to use:**
- Display node list in your fleet dashboard
- Check which nodes are ready for workloads
- Monitor node health across the fleet
- Get SSH connection details for nodes

**Response includes:** Node status, private/public IPs, GPU info, and health status.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `limit` | query | integer | No | Nodes per page (default: 100) Default: `100`. Minimum: 1. Maximum: 100. |
| `nextToken` | query | string | No | Token from previous response for next page |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Success - returns paginated list of nodes | [ListNodesResponse](/docs/platform/cluster/api-reference/schemas.md#listnodesresponse) |
| `400` | Bad request - invalid pagination parameters | [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) |

**Example request**

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

**Example response** (`200`)

```json
{
  "nodes": [
    {
      "nodeName": "g0388",
      "state": "ACTIVE",
      "publicIp": "10.9.41.182",
      "fleetId": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
      "gpuType": "H200_BM"
    }
  ],
  "nextToken": "<next-token>",
  "limit": 100
}
```

## Get node details {#get-node-details}

`GET /v1/fleets/{fleetId}/nodes/{nodeId}`

Get detailed information about a specific GPU node, including IP addresses, health status, and connection details.

**When to use:**
- Get SSH connection info for a specific node
- Check detailed health status of a node
- Troubleshoot issues with a particular node
- Display node details in your UI

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `nodeId` | path | string | Yes | Node identifier (from list nodes response) |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Success - returns complete node information | [Node](/docs/platform/cluster/api-reference/schemas.md#node) |
| `404` | Node 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/nodes/$NODE_ID" \
  -H "Authorization: Bearer $TOKEN"
```

**Example response** (`200`)

```json
{
  "nodeName": "g0388",
  "state": "ACTIVE",
  "publicIp": "10.9.41.182",
  "fleetId": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
  "gpuType": "H200_BM"
}
```

## Get consolidated node details {#get-consolidated-node-details}

`GET /v1/fleets/{fleetId}/nodes/{nodeId}/details`

Returns consolidated single-node details for the node-details page: base physical fields (publicIp only), advisory powerActionReadiness, and optional managed-service data. The fleet must belong to the caller's organization, and the node to that fleet.

This is separate from `GET /v1/fleets/{fleetId}/nodes/{nodeId}`, which still works.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `nodeId` | path | string | Yes | Node identifier (fleet node id) |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Success - returns consolidated node details | [NodeDetails](/docs/platform/cluster/api-reference/schemas.md#nodedetails) |
| `401` | Authentication required | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet or node not found, or node not in the caller's org/fleet | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | Upstream infrastructure failure | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

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

## Get node power state {#get-node-power-state}

`GET /v1/fleets/{fleetId}/nodes/{nodeId}/power`

Returns the node's power state and, when available, the most recent power operation. This read is eventually consistent. powerState is the last confirmed value, not a live hardware read on every call. It can stay at the previous value while a power operation is in progress, and a power change that did not go through this API can take up to 5 minutes to appear. The value is refreshed from the hardware when the confirmation is older than 5 minutes, and again when the operation finishes. While lastOperation is ACCEPTED or IN_PROGRESS, wait 10 to 15 seconds between calls. The response includes Retry-After while that operation is still running.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `nodeId` | path | string | Yes | Node identifier (from list nodes response) |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | The node's last confirmed power state. | [NodePowerState](/docs/platform/cluster/api-reference/schemas.md#nodepowerstate) |
| `400` | The fleet's configuration is invalid, or nodeId is invalid | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet or node not found, or the fleet has not been provisioned yet | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal failure before the upstream call | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | The node's power controller returned an error or could not be reached | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

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

**Example response** (`200`)

```json
{
  "nodeId": "g311",
  "powerState": "On",
  "lastOperation": {
    "resetType": "ForceRestart"
  }
}
```

---

**Navigation**

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