uptimeify_im_channel
An Incident Management paging channel (Slack incoming webhook, generic webhook or email). Escalation tiers and the organization fallback page through it. Incident Management must be active for the organization. The webhook URL and header values are secrets: the API never returns them, so they are write-only here. Import with the numeric id.
An Incident Management paging channel (Slack incoming webhook, generic webhook or email). Escalation tiers and the organization fallback page through it. Incident Management must be active for the organization. The webhook URL and header values are secrets: the API never returns them, so they are write-only here. Import with the numeric id.
Example Usage
variable "slack_webhook_url" {
type = string
sensitive = true
}
# Organization-wide Slack channel, also usable as the escalation fallback.
resource "uptimeify_im_channel" "ops_slack" {
name = "Ops Slack"
type = "slack"
webhook_url_wo = var.slack_webhook_url
secrets_wo_version = 1 # bump to resend the URL after rotating it
}
# Team-scoped email channel.
resource "uptimeify_im_channel" "dba_mail" {
name = "DBA mailbox"
type = "email"
team_id = 9
email = "dba-oncall@example.com"
}
resource "uptimeify_im_org_settings" "this" {
fallback_channel_id = tonumber(uptimeify_im_channel.ops_slack.id)
}Schema
Required
name(String) 1 to 120 characters, no surrounding whitespace.type(String)webhook,slackoremail.
Optional
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
email(String)type = "email": recipient address (required there).headers_wo(Map of String, Sensitive, Write-only)webhook/slack: extra request headers (noHost). Write-only: sent on create and wheneversecrets_wo_versionchanges, then replacing the stored set (unset = remove all). The names are readable asheader_names.is_active(Boolean) Defaulttrue. The organization fallback channel cannot be deactivated.secrets_wo_version(Number) Change to resendwebhook_url_woandheaders_wo.team_id(Number) Team of the organization; unset = organization-wide channel.webhook_url_wo(String, Sensitive, Write-only)webhook/slack: public http(s) URL, required on create. Write-only: sent on create, on atypechange and wheneversecrets_wo_versionchanges.
Read-Only
created_at(String)has_webhook_url(Boolean) Whether a webhook URL is stored.header_names(List of String) Names of the stored headers, sorted (values are never returned).id(String) Numeric channel id.organization_id(Number)updated_at(String)
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import uptimeify_im_channel.ops_slack 12uptimeify_im_alert_source
An Incident Management alert source (inbound integration). Incident Management must be active for the organization. Import with the numeric id; the server-minted tokens are shown by the API only once and are therefore null after an import until rotated.
uptimeify_im_escalation_tier
An escalation tier of an Incident Management team. Creating a tier also creates its default schedule (default_schedule_id, rotation mode none) whose single rotation is member_user_ids; further schedules of the tier are uptimeify_im_schedule. Import with <team_id>/<tier_id>.