---
title: "Get Kubernetes volumes within the given Portainer environment"
method: GET
path: "/kubernetes/{id}/volumes"
tags: ["kubernetes"]
---

# Get Kubernetes volumes within the given Portainer environment

`GET /kubernetes/{id}/volumes`

Get a list of all kubernetes volumes within the given environment (Endpoint). The Endpoint ID must be a valid Portainer environment identifier.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Query parameters

- `withApplications` boolean

## Response `200`

Success

- object

## Other responses

- `400` — Invalid request payload, such as missing required fields or fields not meeting validation criteria.
- `403` — Unauthorized access or operation not allowed.
- `500` — Server error occurred while attempting to retrieve kubernetes volumes.

---

[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)
