Ressourcen
uptimeify_customer
Ressource uptimeify_customer: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
A customer of the organization. Needs an organization token with write access (customer tokens cannot create customers). Destroying it deletes the customer with its monitors and history. Import with the numeric id or the public id. delete_user_action cannot be read back; the permission overrides are read back only with a token that may write them, otherwise they stay unset after an import.
Beispiel
resource "uptimeify_customer" "shop" {
name = "Example Shop GmbH"
package_type = "business" # or package_id = 3
notification_email = "ops@example-shop.com"
custom_fields = jsonencode({ contract = "A-1" })
notification_targets = { email = "customer", sms = "organization" }
allow_self_service = true
}Schema
Pflichtfelder
name(String)
Optional
allow_self_service(Boolean) Customer logins may add their own monitors. Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).can_edit_managed(Boolean) Customer logins may edit managed monitors. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).company_name(String)custom_fields(String) Values of the organization's custom fields as a JSON object (jsonencode({ contract = "A-1" })), keyed byfield_key. Replaced as a whole.delete_user_action(String) On destroy, logins assigned only to this customer aredeactivated (default) ordeleted.email(String) Contact email of the customer.email_language(String) Language of mails to this customer. Unset = organization language.enable_email_alerts(Boolean) Email alerts. Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).enable_integration_alerts(Boolean) Integration alerts (Slack, PagerDuty, ...). Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).enable_post_request_escalation(Boolean) POST request escalation. Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).enable_sms_alerts(Boolean) SMS alerts. Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).enable_webhook_alerts(Boolean) Webhook alerts. Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).max_self_service_urls(Number) Cap for self-service monitors. Unset = package default. Only an organization admin token with unrestricted customer scope sets and reads it (otherwise the API ignores it and leaves it out of the answer, so changes made outside Terraform are not detected).monthly_reports_enabled(Boolean) Monthly report mails. Unset at create = package default; unset later = keep.notification_email(String) Alert recipient address of this customer.notification_phone_number(String) Alert SMS number of this customer.notification_targets(Map of String) Who receives each channel type: keyssms,email,webhook,integrations; valuescustomerororganization. Unset = organization default.package_id(Number) Package configuration id of the organization. Set this orpackage_type. Changing the package needs organization write access.package_type(String) Package key or display name, resolved topackage_id. Set this orpackage_id. Kept as written while the package stays the same; otherwise (import, unset, package changed elsewhere) the API's package key.status(String)activeorinactive;inactivepauses every monitor of the customer.
Nur lesbar
created_at(String)id(String) Numeric customer id. Usetonumber(id)forcustomer_idarguments.organization_id(Number)package_display_name(String)public_id(String)updated_at(String)
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# Numeric id or public id
terraform import uptimeify_customer.shop 12