Ressourcen
uptimeify_status_page_domain
Ressource uptimeify_status_page_domain: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
A custom domain of a status page (at most one per page). Creating it registers the hostname as pending; nothing is verified or activated here. To go live:
- Publish the TXT record
verification_record.namewith the valueverification_record.valuein your DNS zone, and point the hostname (CNAME) at your Uptimeify status page host. - Verify and activate:
uptimeify_status_page_domain_activation(runs verify + activate once), orPOST /api/status-pages/domains/verifyand.../activatewith{"domainId": <id>}.
status is read from the API: pending, verified or active. Deleting the status page deletes its domain. Import with the numeric domain id.
Beispiel
resource "uptimeify_status_page_domain" "acme" {
status_page_id = tonumber(uptimeify_status_page.acme.id)
hostname = "status.acme.example"
}
# Publish this TXT record in your DNS zone (any DNS provider), e.g.:
output "acme_status_txt" {
value = uptimeify_status_page_domain.acme.verification_record
}Schema
Pflichtfelder
hostname(String) Lowercase hostname, e.g.status.example.com. Changing it replaces the domain.status_page_id(Number) Numeric status page id. Changing it replaces the domain.
Nur lesbar
created_at(String)id(String) Numeric domain id.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.verification_record(Attributes) DNS TXT record that proves control of the hostname. (siehe verschachteltes Schema)verified_at(String)
Verschachteltes Schema für verification_record
Read-Only:
name(String) Name of the TXT record.value(String) Value of the TXT record.
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# Numeric domain id
terraform import uptimeify_status_page_domain.acme 17