uptimeify_user_notification_settings
Personal Incident Management notification settings of one user of the organization, set by an organization admin (PUT /api/im/users/{userId}/notification-settings). The last write wins: the user can change them afterwards, which shows up as drift. Destroying only removes them from the state, the user keeps the chain. Import with the user id.
Personal Incident Management notification settings of one user of the organization, set by an organization admin (PUT /api/im/users/{userId}/notification-settings). The last write wins: the user can change them afterwards, which shows up as drift. Destroying only removes them from the state, the user keeps the chain. Import with the user id.
Example Usage
# An org admin sets up how a responder is paged. SMS and voice steps wait until the
# responder confirms the number (they are asked to on their next sign-in).
data "uptimeify_user" "rita" {
email = "rita@example.com"
}
resource "uptimeify_user_notification_settings" "rita" {
user_id = data.uptimeify_user.rita.id
phone_number = "+491701234567"
rules = [
{ urgency = "high", delay_minutes = 0, channel = "push" },
{ urgency = "high", delay_minutes = 5, channel = "sms" },
{ urgency = "high", delay_minutes = 15, channel = "voice" },
{ urgency = "low", delay_minutes = 0, channel = "email" },
]
}Schema
Required
rules(Attributes Set) The whole notification chain; replaces every existing rule of the user. (see below for nested schema)user_id(String) User of this organization with role admin, editor or responder.
Optional
channels(Map of Boolean) Delivery switchespush,sms,voice,email. Unset = on exactly for the channels the rules use.phone_number(String) E.164 number, e.g.+491701234567. Unset = keep the user's number. A new number is unverified until the user confirms the SMS code.
Read-Only
id(String) The user id.phone_verified(Boolean) Whether the user confirmed the number. Until thensmsandvoicesteps are skipped.
Nested Schema for rules
Required:
channel(String)push,sms,voiceoremail.smsandvoicewait until the phone number is verified.delay_minutes(Number) Minutes after the page starts, 0 to 1440.urgency(String)highorlow.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# The import id is the user id.
terraform import uptimeify_user_notification_settings.rita usr_8f2cuptimeify_user
A login of the organization. Creating it sends an invitation mail; the person sets their own password (Terraform never sets one). Destroying it deletes the login. Needs an organization admin token. Import with the user id.
uptimeify_website
A website monitor: HTTP(S) check (combined, http_status, ssl_check) or heartbeat (heartbeat, the monitored system pings Uptimeify). Import with the numeric id or the public id. Updates use the partial mode of PATCH /api/websites/{id} whenever every changed field is one that mode accepts (name, url, status, interval, timeout, checks, keyword, expected response, connect target, SSL/domain days, page sizes, grace period). Changes to the customer, countries, HTTP method, redirects, cookies, auth or the write-only secrets need the full mode, which resets omitted fields to defaults, so the provider then sends every attribute and re-applies any value the full mode coerced (ssl_error_days = 0, min_page_size = 0) with a partial PATCH. Secrets (custom headers, request body, authorization header, basic auth password) are write-only: the API never returns them. Bump the matching *_wo_version to send changed values.