# getKubernetesNodes

> Function getKubernetesNodes in pulumi-portainer.

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

Function getKubernetesNodes in pulumi-portainer.

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

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

`getKubernetesNodesOutput` 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            |             |
| `nodes`         | `GetKubernetesNodesNode[]` | yes            |             |

## `GetKubernetesNodesNode`

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

| Property          | Type                        | Always present | Description |
| ----------------- | --------------------------- | -------------- | ----------- |
| `availableCpu`    | `number`                    | no             |             |
| `availableMemory` | `number`                    | no             |             |
| `capacityCpu`     | `string`                    | no             |             |
| `capacityMemory`  | `string`                    | no             |             |
| `internalIp`      | `string`                    | no             |             |
| `kubeletVersion`  | `string`                    | no             |             |
| `labels`          | `{ [key: string]: string }` | no             |             |
| `name`            | `string`                    | no             |             |
| `osImage`         | `string`                    | no             |             |
| `ready`           | `boolean`                   | no             |             |
| `unschedulable`   | `boolean`                   | no             |             |
| `usageCpu`        | `string`                    | no             |             |
| `usageMemory`     | `string`                    | no             |             |
