Ressourcen
uptimeify_status_page_domain_activation
Ressource uptimeify_status_page_domain_activation: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
Verifies a status page domain's DNS TXT record and activates the domain, once. Create fails with the API's answer when the TXT record is not visible yet; publish it (see uptimeify_status_page_domain) and apply again. There is no waiting or retrying. Needs an organization admin token. When the domain is no longer active (e.g. a later re-verification failed), the next plan runs verify + activate again. Destroying this resource does not deactivate the domain; destroy the uptimeify_status_page_domain for that. Import with the domain id.
Beispiel
# The TXT record from uptimeify_status_page_domain, published with your DNS provider.
resource "dns_txt_record_set" "acme_status" {
zone = "acme.example."
name = trimsuffix(uptimeify_status_page_domain.acme.verification_record.name, ".acme.example")
txt = [uptimeify_status_page_domain.acme.verification_record.value]
ttl = 300
}
# Verifies the TXT record and activates the domain once. Fails (no retry) while the
# record is not visible yet; apply again after DNS has propagated.
resource "uptimeify_status_page_domain_activation" "acme" {
domain_id = tonumber(uptimeify_status_page_domain.acme.id)
depends_on = [dns_txt_record_set.acme_status]
}Schema
Pflichtfelder
domain_id(Number)uptimeify_status_page_domain.<name>.idas number.
Nur lesbar
id(String) Same asdomain_id.status(String)activeafter a successful run.
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# Numeric domain id
terraform import uptimeify_status_page_domain_activation.acme 7