# getSecretMetadata

> Function getSecretMetadata in pulumi-infisical.

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

Function getSecretMetadata in pulumi-infisical.

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

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

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

## Arguments

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

## Result

| Property          | Type                                | Always present | Description |
| ----------------- | ----------------------------------- | -------------- | ----------- |
| `environmentSlug` | `string`                            | yes            |             |
| `folderPath`      | `string`                            | yes            |             |
| `name`            | `string`                            | yes            |             |
| `projectId`       | `string`                            | yes            |             |
| `secretMetadatas` | `GetSecretMetadataSecretMetadata[]` | yes            |             |
| `secretType`      | `string`                            | yes            |             |
| `secretVersion`   | `number`                            | yes            |             |
| `tags`            | `GetSecretMetadataTag[]`            | yes            |             |

## `GetSecretMetadataSecretMetadata`

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

| Property      | Type      | Always present | Description |
| ------------- | --------- | -------------- | ----------- |
| `isEncrypted` | `boolean` | no             |             |
| `key`         | `string`  | no             |             |
| `value`       | `string`  | no             |             |

## `GetSecretMetadataTag`

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

| Property | Type     | Always present | Description |
| -------- | -------- | -------------- | ----------- |
| `color`  | `string` | no             |             |
| `id`     | `string` | no             |             |
| `name`   | `string` | no             |             |
| `slug`   | `string` | no             |             |
