---
title: "Get all StorageClasses"
method: GET
path: "/kubernetes/{id}/storage_classes"
tags: ["kubernetes"]
---

# Get all StorageClasses

`GET /kubernetes/{id}/storage_classes`

Get a list of all StorageClasses in the given environment.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Response `200`

Success

- KubernetesK8sStorageClass[]
  - `allowVolumeExpansion` boolean
  - `annotations` object
  - `creationDate` string
  - `isDefault` boolean
  - `labels` object
  - `mountOptions` string[]
  - `name` string
  - `parameters` object
  - `provisioner` string
  - `reclaimPolicy` 'Recycle' | 'Delete' | 'Retain'

## Other responses

- `400` — Invalid request payload.
- `403` — Unauthorized access or operation not allowed.
- `500` — Server error occurred while attempting to retrieve storage classes.

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
