# getOmniServiceAccount

> Function getOmniServiceAccount in pulumi-portainer.

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

Function getOmniServiceAccount in pulumi-portainer.

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

## 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.getOmniServiceAccount({
  endpoint: "<endpoint>",
  serviceAccountKey: "<serviceAccountKey>",
})
```

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

## Arguments

| Property            | Type      | Required | Description |
| ------------------- | --------- | -------- | ----------- |
| `endpoint`          | `string`  | yes      |             |
| `failOnError`       | `boolean` | no       |             |
| `id`                | `string`  | no       |             |
| `serviceAccountKey` | `string`  | yes      |             |

## Result

| Property            | Type      | Always present | Description |
| ------------------- | --------- | -------------- | ----------- |
| `endpoint`          | `string`  | yes            |             |
| `error`             | `string`  | yes            |             |
| `failOnError`       | `boolean` | no             |             |
| `id`                | `string`  | yes            |             |
| `serviceAccountKey` | `string`  | yes            |             |
| `valid`             | `boolean` | yes            |             |
