# getKubernetesVolume

> Function getKubernetesVolume in pulumi-portainer.

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

Function getKubernetesVolume in pulumi-portainer.

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

## 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.getKubernetesVolume({
  endpointId: 0,
  namespace: "<namespace>",
  volume: "<volume>",
})
```

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

## Arguments

| Property     | Type     | Required | Description |
| ------------ | -------- | -------- | ----------- |
| `endpointId` | `number` | yes      |             |
| `id`         | `string` | no       |             |
| `namespace`  | `string` | yes      |             |
| `volume`     | `string` | yes      |             |

## Result

| Property                        | Type     | Always present | Description |
| ------------------------------- | -------- | -------------- | ----------- |
| `claimName`                     | `string` | yes            |             |
| `claimPhase`                    | `string` | yes            |             |
| `claimStorageRequest`           | `string` | yes            |             |
| `details`                       | `string` | yes            |             |
| `endpointId`                    | `number` | yes            |             |
| `id`                            | `string` | yes            |             |
| `namespace`                     | `string` | yes            |             |
| `persistentVolumeName`          | `string` | yes            |             |
| `persistentVolumeReclaimPolicy` | `string` | yes            |             |
| `persistentVolumeStatus`        | `string` | yes            |             |
| `storageClassName`              | `string` | yes            |             |
| `storageClassProvisioner`       | `string` | yes            |             |
| `volume`                        | `string` | yes            |             |
