Ressourcen
uptimeify_user
Ressource uptimeify_user: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
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.
Beispiel
# 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
Pflichtfelder
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)
Nur lesbar
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 geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# User id
terraform import uptimeify_user.ops 3f1c0a8e-...