# dokploy_mattermost_notification (Data Source)

Looks up a Mattermost notification channel that already exists in Dokploy (Settings > Notifications):

```terraform
data "dokploy_mattermost_notification" "ops" {
  name = "ops"
}
```

~> **The data source does not expose the webhook URL (`webhook_url`).** The attribute exists on the `dokploy_mattermost_notification` resource, but not here, by design. A consumer needs only the id.

~> Dokploy does not enforce name uniqueness. If two Mattermost notification channels share a name, this data source fails instead of a guess. Look the record up by `id` in that case.

## Example Usage

```terraform
data "dokploy_mattermost_notification" "example" {
  id = "your-notification-id"
}

data "dokploy_mattermost_notification" "ops" {
  name = "ops"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Mattermost notification channel id. Set it for a lookup by id, or leave it unset and set `name`.
- `name` (String) Display name as shown in Dokploy. Set exactly one of `id` or `name`.

### Read-Only

- `app_build_error` (Boolean) Whether the channel gets a message when a build fails.
- `app_deploy` (Boolean) Whether the channel gets a message when an application or a compose deploys.
- `channel` (String) Channel that receives the message, or null for the default channel of the webhook.
- `created_at` (String) Creation timestamp from the server.
- `database_backup` (Boolean) Whether the channel gets a message when a database backup runs.
- `docker_cleanup` (Boolean) Whether the channel gets a message when the Docker cleanup runs.
- `dokploy_backup` (Boolean) Whether the channel gets a message when the Dokploy server backup runs.
- `dokploy_restart` (Boolean) Whether the channel gets a message when Dokploy restarts.
- `server_threshold` (Boolean) Whether the channel gets a message when a server crosses a resource threshold.
- `username` (String) Display name of the poster, or null.
- `volume_backup` (Boolean) Whether the channel gets a message when a volume backup runs.