# getKubernetesServiceAccount

> Function getKubernetesServiceAccount in pulumi-portainer.

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

Function getKubernetesServiceAccount in pulumi-portainer.

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

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

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

## Arguments

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

## Result

| Property                       | Type                        | Always present | Description |
| ------------------------------ | --------------------------- | -------------- | ----------- |
| `annotations`                  | `{ [key: string]: string }` | yes            |             |
| `automountServiceAccountToken` | `boolean`                   | yes            |             |
| `creationDate`                 | `string`                    | yes            |             |
| `endpointId`                   | `number`                    | yes            |             |
| `id`                           | `string`                    | yes            |             |
| `imagePullSecrets`             | `string[]`                  | yes            |             |
| `isSystem`                     | `boolean`                   | yes            |             |
| `labels`                       | `{ [key: string]: string }` | yes            |             |
| `name`                         | `string`                    | yes            |             |
| `namespace`                    | `string`                    | yes            |             |
| `uid`                          | `string`                    | yes            |             |
