uptimeify_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.
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.
Example Usage
# Sends an invitation mail; the person sets their own password.
resource "uptimeify_user" "ops" {
email = "ops@example.com"
first_name = "Olivia"
last_name = "Ops"
role = "editor"
}
# A customer login, limited to one customer.
resource "uptimeify_user" "shop_owner" {
email = "owner@shop.example"
role = "readonly"
customer_ids = [12]
language = "en"
}Schema
Required
email(String) Login address. Changing it invites a new login (replacement).role(String)admin,editor,readonlyorresponder.
Optional
customer_ids(Set of Number) Customers areadonlylogin is limited to (customer user). Empty = all customers. Only allowed withrole = "readonly".first_name(String)is_active(Boolean)falsedeactivates the login without deleting it.language(String) Language of the login (dashboard, mails, SMS):de,enorda; null = organization language. Always read from the API, so a language the person picks in their profile shows as drift. A change is sent in place (PATCH); removing it from the configuration keeps the current language.last_name(String)
Read-Only
created_at(String)id(String) User id, asuser_idin IM resources.name(String) Display name the server derives from first and last name.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# User id
terraform import uptimeify_user.ops 3f1c0a8e-...uptimeify_tcp_monitor
A TCP monitor: connects to hostname:port, optionally expecting a banner. The hostname must resolve to a public address when it is set. Import with the numeric id or the public id.
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.