# getKubernetesVolumes

> Function getKubernetesVolumes in pulumi-portainer.

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

Function getKubernetesVolumes in pulumi-portainer.

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

## 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.getKubernetesVolumes({
  endpointId: 0,
})
```

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

## Arguments

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

## Result

| Property           | Type      | Always present | Description |
| ------------------ | --------- | -------------- | ----------- |
| `endpointId`       | `number`  | yes            |             |
| `id`               | `string`  | yes            |             |
| `namespace`        | `string`  | no             |             |
| `volumes`          | `string`  | yes            |             |
| `withApplications` | `boolean` | no             |             |
