terraform-provider-stackgen

sg_notification_channels (Data Source)

⚠️ Experimental — Lists Guild notification channels in the organization. Use optional type and enabled_only filters. Respects provider workspace_id for workspace scoping.

Example Usage

# When to use: List email/Slack notification channels for the current owner.
data "sg_notification_channels" "email" {
  type         = "email"
  enabled_only = true
}

output "email_channel_ids" {
  value = [for c in data.sg_notification_channels.email.channels : c.id]
}

Schema

Optional

Read-Only

Nested Schema for channels

Read-Only: