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

## List VAST storage views {#list-vast-storage-views}

`GET /v1/fleets/{fleetId}/storage/views`

Lists the physical VAST storage views (mount points and their quotas) provisioned for the fleet. The fleet must belong to the caller's organization. Each returned view carries a `state` field; use it to confirm provisioning completion (poll until `state == "active"`). If the fleet exists but storage has not been materialized yet, returns 200 with `items: []` and `storagePending: true`.

**Parameters**

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

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Storage views for the fleet. When the fleet exists but storage has not been materialized yet, `items` is empty and `storagePending` is true. | [StorageViewListResponse](/docs/platform/cluster/api-reference/schemas.md#storageviewlistresponse) |
| `400` | The fleet's storage configuration is invalid. Contact support. | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Missing or invalid JWT | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found (or not owned by the caller's org) | [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` | Upstream infrastructure service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

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

**Example response** (`200`)

```json
{
  "items": [
    {
      "mountPoint": "/data",
      "size": 536870912000,
      "softLimit": 53687091200,
      "hardLimit": 64424509440,
      "state": "active"
    }
  ]
}
```

## Add a VAST storage view {#add-a-vast-storage-view}

`POST /v1/fleets/{fleetId}/storage/views`

Adds a new physical VAST storage view (mount point with size/quota) to the fleet, optionally triggering VAST provisioning. The fleet must belong to the caller's organization. Returns 202 with the freshly-added view carrying `state: "provisioning"`; callers should poll `GET /v1/fleets/{fleetId}/storage/views/{view}` until `state == "active"` to confirm provisioning completion.

**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`, required)

[AddStorageViewRequest](/docs/platform/cluster/api-reference/schemas.md#addstorageviewrequest)

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `202` | Storage view add accepted. | [StorageView](/docs/platform/cluster/api-reference/schemas.md#storageview) |
| `400` | Invalid fleet identifier or invalid request body | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Missing or invalid JWT | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found (or not owned by the caller's org) | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `409` | A storage view with this mount point already exists | [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` | Upstream infrastructure 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/storage/views" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mountPoint":"/data","size":536870912000}'
```

**Example response** (`202`)

```json
{
  "mountPoint": "/data",
  "size": 536870912000,
  "softLimit": 53687091200,
  "hardLimit": 64424509440,
  "state": "active"
}
```

## Get a VAST storage view {#get-a-vast-storage-view}

`GET /v1/fleets/{fleetId}/storage/views/{view}`

Returns a single physical VAST storage view by mount point. The fleet must belong to the caller's organization. The `state` field on the response is the source of truth for provisioning progress; poll this endpoint after a 202 from add/update until `state == "active"` (or `unhealthy` to fail fast).

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `view` | path | string | Yes | Storage view identifier (mount point, without a leading slash). |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | The storage view. | [StorageView](/docs/platform/cluster/api-reference/schemas.md#storageview) |
| `400` | Invalid fleet identifier or invalid view path segment | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Missing or invalid JWT | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found (or not owned by the caller's org), or storage view not found | [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` | Upstream infrastructure service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

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

**Example response** (`200`)

```json
{
  "mountPoint": "/data",
  "size": 536870912000,
  "softLimit": 53687091200,
  "hardLimit": 64424509440,
  "state": "active"
}
```

## Update a VAST storage view {#update-a-vast-storage-view}

`PATCH /v1/fleets/{fleetId}/storage/views/{view}`

Updates the size/quota of a single physical VAST storage view by mount point. The fleet must belong to the caller's organization. Returns 202 with the post-update view state.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `view` | path | string | Yes | Storage view identifier (mount point, without a leading slash). |

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

[UpdateStorageViewRequest](/docs/platform/cluster/api-reference/schemas.md#updatestorageviewrequest)

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `202` | Storage view update accepted. | [StorageView](/docs/platform/cluster/api-reference/schemas.md#storageview) |
| `400` | Invalid fleet identifier, invalid view path segment, or invalid request body | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Missing or invalid JWT | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found (or not owned by the caller's org), or storage view not found | [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` | Upstream infrastructure service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example response** (`202`)

```json
{
  "mountPoint": "/data",
  "size": 536870912000,
  "softLimit": 53687091200,
  "hardLimit": 64424509440,
  "state": "active"
}
```

## Delete a VAST storage view {#delete-a-vast-storage-view}

`DELETE /v1/fleets/{fleetId}/storage/views/{view}`

Deletes a single physical VAST storage view by mount point. The fleet must belong to the caller's organization.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `view` | path | string | Yes | Storage view identifier (mount point, without a leading slash). |

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `204` | Storage view deleted. | None |
| `400` | Invalid fleet identifier or invalid view path segment | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `401` | Missing or invalid JWT | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found (or not owned by the caller's org), or storage view not found | [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` | Upstream infrastructure service returned an error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl -X DELETE "$API_URL/v1/fleets/$FLEET_ID/storage/views/$VIEW" \
  -H "Authorization: Bearer $TOKEN"
```

---

**Navigation**

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