Ressourcen
uptimeify_whitelabel_domain
Ressource uptimeify_whitelabel_domain: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
A custom app domain (white label) of the organization. Terraform creates it as pending and outputs the DNS TXT record that proves control. Verifying and activating are one-off actions, not managed here: POST /api/organization/whitelabel/domains/verify with { "domainId": <id> } once the record is live, then POST /api/organization/whitelabel/domains/activate (optionally makePrimary). Organization admins only. Import with the numeric id.
Beispiel
resource "uptimeify_whitelabel_domain" "app" {
hostname = "monitoring.example.com"
}
# Publish this TXT record, then verify once:
# POST /api/organization/whitelabel/domains/verify { "domainId": <id> }
output "txt_record" {
value = "${uptimeify_whitelabel_domain.app.dns_txt_name} TXT ${uptimeify_whitelabel_domain.app.dns_txt_value}"
}Schema
Pflichtfelder
hostname(String) Hostname, e.g.status.example.com. No wildcards, no platform hostnames.
Nur lesbar
created_at(String)dns_txt_name(String) Name of the TXT record to publish.dns_txt_value(String) Value of the TXT record.id(String) Numeric domain id (domainId).is_primary(Boolean) The first app domain becomes primary.last_verification_error(String) JSON diagnosis of the last failed TXT verification (recordName,expected,lookup,observed,nameservers,authoritative,propagation), decode withjsondecode(); null when the last verification succeeded or none failed yet.last_verification_error_at(String) Whenlast_verification_errorhappened (RFC 3339).status(String)pending,verifiedoractive.verified_at(String)
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# Numeric domain id
terraform import uptimeify_whitelabel_domain.app 7