# getSecretFolders

> Function getSecretFolders in pulumi-infisical.

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

Function getSecretFolders in pulumi-infisical.

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

## 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.getSecretFolders({
  environmentSlug: "<environmentSlug>",
  folderPath: "<folderPath>",
  projectId: "<projectId>",
})
```

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

## Arguments

| Property          | Type     | Required | Description |
| ----------------- | -------- | -------- | ----------- |
| `environmentSlug` | `string` | yes      |             |
| `folderPath`      | `string` | yes      |             |
| `projectId`       | `string` | yes      |             |

## Result

| Property          | Type                       | Always present | Description |
| ----------------- | -------------------------- | -------------- | ----------- |
| `environmentSlug` | `string`                   | yes            |             |
| `folderPath`      | `string`                   | yes            |             |
| `folders`         | `GetSecretFoldersFolder[]` | yes            |             |
| `projectId`       | `string`                   | yes            |             |

## `GetSecretFoldersFolder`

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

| Property | Type     | Always present | Description            |
| -------- | -------- | -------------- | ---------------------- |
| `id`     | `string` | yes            | The ID of the folder   |
| `name`   | `string` | yes            | The name of the folder |
