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

# Get all PersistentVolumeClaims

`GET /kubernetes/{id}/persistent_volume_claims`

Get a list of all PersistentVolumeClaims within the given environment. Scoped by namespace for non-admin users.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Response `200`

Success

- KubernetesK8sPersistentVolumeClaim[]
  - `accessModes` string[]
  - `allowVolumeExpansion` boolean
  - `creationDate` string
  - `humanReadableAccessModes` V1PersistentVolumeAccessMode[]
  - `id` string
  - `labels` object
  - `name` string
  - `namespace` string
  - `owningApplications` KubernetesK8sApplication[]
    - `Annotations` object
    - `ApplicationOwner` string
    - `ApplicationType` string
    - `Configurations` KubernetesConfiguration[]
      - `ConfigurationOwner` string
      - `Data` object
      - `Kind` string
    - `Containers` unknown[]
      - unknown
    - `CreationDate` string
    - `CustomResourceMetadata` KubernetesCustomResourceMetadata
      - `apiVersion` string
      - `kind` string
      - `name` string
      - `plural` string
      - `scope` string
    - `DeploymentType` string
    - `Id` string
    - `Image` string
    - `Kind` string
    - `Labels` object
    - `LoadBalancerIPAddress` string
    - `MatchLabels` object
    - `Metadata` KubernetesMetadata
      - `annotations` object
      - `labels` object
    - `Name` string
    - `Namespace` string
    - `Pods` KubernetesPod[]
      - `ContainerName` string
      - `CreationDate` string
      - `Image` string
      - `ImagePullPolicy` string
      - `Name` string
      - `NodeName` string
      - `PodIP` string
      - `Resource` KubernetesK8sApplicationResource
        - `CpuLimit` number
        - `CpuRequest` number
        - `MemoryLimit` integer
        - `MemoryRequest` integer
      - `Status` string
      - `Uid` string
    - `PublishedPorts` KubernetesPublishedPort[]
      - `IngressRules` KubernetesIngressRule[]
        - `Host` string
        - `IP` string
        - `Path` string
        - `TLS` KubernetesTLSInfo[]
          - `hosts` string[]
      - `Port` integer
    - `Resource` KubernetesK8sApplicationResource
      - `CpuLimit` number
      - `CpuRequest` number
      - `MemoryLimit` integer
      - `MemoryRequest` integer
    - `ResourcePool` string
    - `RunningPodsCount` integer
    - `ServiceId` string
    - `ServiceName` string
    - `ServiceType` string
    - `StackId` string
    - `StackKind` string
    - `StackName` string
    - `Status` string
    - `TotalPodsCount` integer
    - `Uid` string
  - `phase` 'Pending' | 'Bound' | 'Lost'
  - `resourcesRequests` V1ResourceList
  - `storage` integer
  - `storageClass` string
  - `storageRequest` string
  - `volumeMode` 'Block' | 'Filesystem'
  - `volumeName` string

## Other responses

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

---

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