# getKubernetesPersistentVolumes

> Function getKubernetesPersistentVolumes in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getKubernetesPersistentVolumes in pulumi-portainer.

Invoke token: `portainer:index/getKubernetesPersistentVolumes:getKubernetesPersistentVolumes`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getKubernetesPersistentVolumes({
  environmentId: 0,
})
```

`getKubernetesPersistentVolumesOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property        | Type     | Required | Description |
| --------------- | -------- | -------- | ----------- |
| `environmentId` | `number` | yes      |             |
| `id`            | `string` | no       |             |

## Result

| Property            | Type                                               | Always present | Description |
| ------------------- | -------------------------------------------------- | -------------- | ----------- |
| `environmentId`     | `number`                                           | yes            |             |
| `id`                | `string`                                           | yes            |             |
| `persistentVolumes` | `GetKubernetesPersistentVolumesPersistentVolume[]` | yes            |             |
| `releasedCount`     | `number`                                           | yes            |             |

## `GetKubernetesPersistentVolumesPersistentVolume`

Output object `GetKubernetesPersistentVolumesPersistentVolume`. Fields below belong to this object.

| Property        | Type       | Always present | Description |
| --------------- | ---------- | -------------- | ----------- |
| `accessModes`   | `string[]` | no             |             |
| `capacity`      | `string`   | no             |             |
| `claimRef`      | `string`   | no             |             |
| `name`          | `string`   | no             |             |
| `phase`         | `string`   | no             |             |
| `reclaimPolicy` | `string`   | no             |             |
| `storageClass`  | `string`   | no             |             |
