uptimeify_escalation_config
The organization's escalation webhook (one per organization; organization token with write access). Creating it adopts the stored configuration and applies the configured values. The webhook URL also drives the organization webhook channel (Organization Webhook), so do not manage that channel as uptimeify_notification_channel too. Destroying it sets is_active = false and clears the URL, which deactivates the organization-level webhook channels; the row stays. Import with the organization id.
The organization's escalation webhook (one per organization; organization token with write access). Creating it adopts the stored configuration and applies the configured values. The webhook URL also drives the organization webhook channel (Organization Webhook), so do not manage that channel as uptimeify_notification_channel too. Destroying it sets is_active = false and clears the URL, which deactivates the organization-level webhook channels; the row stays. Import with the organization id.
Example Usage
variable "escalation_token" {
type = string
sensitive = true
}
resource "uptimeify_escalation_config" "this" {
webhook_url = "https://hooks.example.com/uptimeify"
webhook_method = "POST"
webhook_timeout = 10
expected_status_codes = "200,202,204"
is_active = true
webhook_headers_wo = { "X-Api-Token" = var.escalation_token }
webhook_headers_wo_version = 1
}Schema
Optional
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
expected_status_codes(String) Comma-separated, e.g.200,201,202,204. Unset = keep.is_active(Boolean)organization_id(Number) Unset = the token's organization.webhook_body_template(String) JSON template with placeholders such as{{websiteName}}. Unset = keep.webhook_headers_wo(Map of String, Sensitive, Write-only) Write-only request headers (they may carry tokens). Sent with create and wheneverwebhook_headers_wo_versionchanges; replaces all stored headers. Authorization, Cookie, Host, X-Forwarded-* and Proxy-* are refused by the API.webhook_headers_wo_version(Number) Change to resendwebhook_headers_wo.webhook_method(String)POST,PUTorPATCH. Unset = keep (defaultPOST).webhook_retry_attempts(Number) 0 to 10. Unset = keep (default 3).webhook_retry_delay(Number) Seconds, 0 to 60. Unset = keep (default 60).webhook_timeout(Number) Seconds, 1 to 30. Unset = keep (default 30).webhook_url(String) Target URL (http/https, must resolve to a public address). Give it normalized (asnew URL()prints it, e.g. with the trailing/of a bare host). Unset clears it and switches the organization webhook channel off.
Read-Only
id(String) The organization id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# The organization id
terraform import uptimeify_escalation_config.this 2uptimeify_dns_monitor
A DNS monitor: resolves hostname and compares the answers per record type with expected_values. Import with the numeric id or the public id.
uptimeify_ftp_monitor
An FTP monitor: logs in (check_mode protocol) or only checks the port (tcp). The hostname must resolve to a public address. Import with the numeric id or the public id.