# getSecrets

> Function getSecrets in pulumi-infisical.

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

Function getSecrets in pulumi-infisical.

Invoke token: `infisical:index/getSecrets:getSecrets`.

## 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 infisical from "pulumi-infisical"

const result = await infisical.getSecrets({
  envSlug: "<envSlug>",
  folderPath: "<folderPath>",
})
```

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

## Arguments

| Property      | Type     | Required | Description |
| ------------- | -------- | -------- | ----------- |
| `envSlug`     | `string` | yes      |             |
| `folderPath`  | `string` | yes      |             |
| `workspaceId` | `string` | no       |             |

## Result

| Property      | Type                                   | Always present | Description |
| ------------- | -------------------------------------- | -------------- | ----------- |
| `envSlug`     | `string`                               | yes            |             |
| `folderPath`  | `string`                               | yes            |             |
| `secrets`     | `{ [key: string]: GetSecretsSecrets }` | yes            |             |
| `workspaceId` | `string`                               | yes            |             |

## `GetSecretsSecrets`

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

| Property     | Type     | Always present | Description                          |
| ------------ | -------- | -------------- | ------------------------------------ |
| `comment`    | `string` | yes            | The secret comment                   |
| `secretType` | `string` | yes            | The secret type (shared or personal) |
| `value`      | `string` | yes            | The secret value                     |
