---
title: "Get the total number of kubernetes volumes within the given Portainer environment."
method: GET
path: "/kubernetes/{id}/volumes/count"
tags: ["kubernetes"]
---

# Get the total number of kubernetes volumes within the given Portainer environment.

`GET /kubernetes/{id}/volumes/count`

Get the total number of kubernetes volumes within the given environment (Endpoint). The total count depends on the user's role and permissions. The Endpoint ID must be a valid Portainer environment identifier.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Response `200`

Success

- integer

## 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 count.

---

[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/ec51a8194ac0/schema)
