⚠️ Experimental — Lists Guild chat channels registered for the organization.
# When to use: List Slack/Teams channels in the org allowlist, optionally
# filtered by provider, tag, or enabled-only.
data "sg_chat_channels" "slack_incidents" {
chat_provider = "slack"
tag = "incidents"
enabled_only = true
}
output "slack_channel_ids" {
value = [for c in data.sg_chat_channels.slack_incidents.channels : c.id]
}
chat_provider (String) Filter by chat provider (slack or teams).enabled_only (Boolean) When true, return only enabled channels.tag (String) Filter channels that include this operator tag.channels (Attributes List) Chat channels matching the query. (see below for nested schema)channelsRead-Only:
attach_channel_context (Boolean) Whether platform channel metadata is attached to agent context (Slack topic description and pinned messages when available); false by default.channel_id (String) Provider-native channel identifier.channel_name (String) Human-readable channel name.chat_provider (String) Chat provider (slack or teams).created_at (String) Creation timestamp (RFC 3339).enabled (Boolean) Whether the channel is enabled.id (String) Server-assigned chat channel UUID.tags (List of String) Operator tags.thread_follow (String) Thread-follow mode (off or while_waiting).updated_at (String) Last modification timestamp (RFC 3339).visibility (String) Channel visibility (public or private).workspace_id (String) Provider workspace or team identifier.