uptimeify_im_outbound_integration
An Incident Management outbound integration: forwards incident events to Slack, Microsoft Teams, Discord, Jira, PagerDuty (Events v2), Opsgenie or a generic webhook. Incident Management must be active for the organization. URLs, tokens, keys and header values are secrets the API never returns, so they are write-only here; has_* tells whether one is stored. Import with the numeric id.
An Incident Management outbound integration: forwards incident events to Slack, Microsoft Teams, Discord, Jira, PagerDuty (Events v2), Opsgenie or a generic webhook. Incident Management must be active for the organization. URLs, tokens, keys and header values are secrets the API never returns, so they are write-only here; has_* tells whether one is stored. Import with the numeric id.
Example Usage
variable "teams_webhook_url" {
type = string
sensitive = true
}
variable "jira_api_token" {
type = string
sensitive = true
}
# Post every sev1/sev2 incident event of the platform team to a Microsoft Teams channel.
resource "uptimeify_im_outbound_integration" "teams" {
name = "Platform Teams"
type = "teams"
team_id = 7
filter_severities = ["sev1", "sev2"]
webhook_url_wo = var.teams_webhook_url
secrets_wo_version = 1
}
# Open a Jira issue per new incident (the server default event_kinds for jira).
resource "uptimeify_im_outbound_integration" "jira" {
name = "Jira OPS"
type = "jira"
email = "bot@example.com"
base_url = "https://example.atlassian.net"
project_key = "OPS"
api_token_wo = var.jira_api_token
}Schema
Required
name(String) 1 to 200 characters, no surrounding whitespace.type(String)slack,teams,discord,jira,pagerduty_v2,opsgenieorwebhook. Changing it replaces the integration.
Optional
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
api_key_wo(String, Sensitive, Write-only)opsgenie: API key, required. Write-only: sent on create and wheneversecrets_wo_versionchanges.api_token_wo(String, Sensitive, Write-only)jira: API token, required. Write-only: sent on create and wheneversecrets_wo_versionchanges.base_url(String)jira: site URL, https only, required.bearer_token_wo(String, Sensitive, Write-only)webhook: sent asAuthorization: Bearer. Write-only: sent on create and wheneversecrets_wo_versionchanges.email(String)jira: account email, required.event_kinds(List of String) Events to forward:incident_created,acknowledged,severity_changed,status_changed,comment,resolved. Unset = all, exceptjira, where the server stores["incident_created"]. Removing it from the configuration keeps the stored list.filter_severities(List of String) Only these severities,sev1tosev4. Unset = all.filter_team_ids(List of Number) Only incidents of these teams (of the organization). Unset = all.headers_wo(Map of String, Sensitive, Write-only)webhook: extra request headers. Write-only: sent on create and wheneversecrets_wo_versionchanges, then replacing the stored set (unset = remove all).is_active(Boolean) Defaulttrue.project_key(String)jira: project key, required.routing_key_wo(String, Sensitive, Write-only)pagerduty_v2: integration routing key, required. Write-only: sent on create and wheneversecrets_wo_versionchanges.secrets_wo_version(Number) Change to resend every*_wovalue.team_id(Number) Owning team; unset = organization-wide (needs an org admin).webhook_url_wo(String, Sensitive, Write-only)slack/teams/discord/webhook: target URL (public http(s)), required. Write-only: sent on create and wheneversecrets_wo_versionchanges.
Read-Only
created_at(String)has_api_key(Boolean) Whether an Opsgenie API key is stored.has_api_token(Boolean) Whether a Jira API token is stored.has_bearer_token(Boolean) Whether a bearer token is stored.has_headers(Boolean) Whether custom headers are stored.has_routing_key(Boolean) Whether a PagerDuty routing key is stored.has_webhook_url(Boolean) Whether a webhook URL is stored.id(String) Numeric integration 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_outbound_integration.jira 21uptimeify_im_org_settings
Incident Management settings of the token's organization (one per organization). Creating it adopts the existing settings and applies the configured values; destroying it only removes it from the state, the settings stay. Import with any id, e.g. org.
uptimeify_im_routing_rule
An Incident Management routing rule: incidents whose alert matches go to team_id. Rules run in ascending priority. Incident Management must be active for the organization. Import with the numeric id.