dokploy_slack_notification (Data Source)
Looks up a Slack notification channel that already exists in Dokploy (Settings > Notifications):
data "dokploy_slack_notification" "ops" {
name = "ops"
}~> The data source does not expose the webhook URL (webhook_url). The attribute exists on the dokploy_slack_notification resource, but not here, by design. A consumer needs only the id.
~> Dokploy does not enforce name uniqueness. If two Slack notification channels share a name, this data source fails instead of a guess. Look the record up by id in that case.
Example Usage
data "dokploy_slack_notification" "example" {
id = "your-notification-id"
}
data "dokploy_slack_notification" "ops" {
name = "ops"
}Schema
Optional
id(String) Slack notification channel id. Set it for a lookup by id, or leave it unset and setname.name(String) Display name as shown in Dokploy. Set exactly one ofidorname.
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.volume_backup(Boolean) Whether the channel gets a message when a volume backup runs.