# DockerSecret

> Resource DockerSecret in pulumi-portainer.

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

Resource DockerSecret in pulumi-portainer.

Pulumi type: `portainer:index/dockerSecret:DockerSecret`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## 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 resource = new portainer.DockerSecret("dockerSecret", {
  endpointId: 0,
})
```

## Arguments

| Property         | Type                        | Required | Description                                                                                                                                                                                  |
| ---------------- | --------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data`           | `string`                    | no       | Base64-encoded secret data (stored in Terraform state).                                                                                                                                      |
| `dataWo`         | `string`                    | no       | **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. Write-only secret data (supports ephemeral values; not stored in Terraform state). |
| `dataWoVersion`  | `number`                    | no       | Version flag for write-only data; must be set when using `dataWo` to trigger updates.                                                                                                        |
| `dockerSecretId` | `string`                    | no       |                                                                                                                                                                                              |
| `driver`         | `{ [key: string]: string }` | no       | External secret driver configuration used to fetch the secret value at runtime.                                                                                                              |
| `endpointId`     | `number`                    | yes      | ID of the Portainer environment (Docker Swarm) where the secret is created.                                                                                                                  |
| `labels`         | `{ [key: string]: string }` | no       | Key/value labels attached to the Docker Swarm secret.                                                                                                                                        |
| `name`           | `string`                    | no       | Name of the Docker Swarm secret.                                                                                                                                                             |
| `templating`     | `{ [key: string]: string }` | no       | Templating driver configuration applied to the secret payload at runtime.                                                                                                                    |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property            | Type                        | Computed | Description                                                                                                                                                                                  |
| ------------------- | --------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data`              | `string`                    | no       | Base64-encoded secret data (stored in Terraform state).                                                                                                                                      |
| `dataWo`            | `string`                    | no       | **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. Write-only secret data (supports ephemeral values; not stored in Terraform state). |
| `dataWoVersion`     | `number`                    | no       | Version flag for write-only data; must be set when using `dataWo` to trigger updates.                                                                                                        |
| `dockerSecretId`    | `string`                    | no       |                                                                                                                                                                                              |
| `driver`            | `{ [key: string]: string }` | no       | External secret driver configuration used to fetch the secret value at runtime.                                                                                                              |
| `endpointId`        | `number`                    | no       | ID of the Portainer environment (Docker Swarm) where the secret is created.                                                                                                                  |
| `labels`            | `{ [key: string]: string }` | no       | Key/value labels attached to the Docker Swarm secret.                                                                                                                                        |
| `name`              | `string`                    | no       | Name of the Docker Swarm secret.                                                                                                                                                             |
| `resourceControlId` | `number`                    | yes      | ID of the Portainer resource control associated with this Docker Swarm secret.                                                                                                               |
| `templating`        | `{ [key: string]: string }` | no       | Templating driver configuration applied to the secret payload at runtime.                                                                                                                    |
