Ressourcen
uptimeify_sso_domain_verification
Ressource uptimeify_sso_domain_verification: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
Verifies the SSO domain's DNS TXT record once (POST /api/organization/sso/verify-domain). Create fails with the expected and the found TXT values when the record is not visible yet; publish uptimeify_sso_oidc.verification_record and apply again. There is no waiting or retrying. Needs an organization admin token.
Set domain = uptimeify_sso_oidc.<name>.domain, so a new domain verifies again in the same apply. A new issuer also resets the verification: the next plan shows this resource again. Destroying it changes nothing in Uptimeify. Import with the id sso.
Beispiel
# The TXT record from uptimeify_sso_oidc, published with your DNS provider.
resource "dns_txt_record_set" "sso" {
zone = "example.com."
name = trimsuffix(uptimeify_sso_oidc.corp.verification_record.name, ".example.com")
txt = [uptimeify_sso_oidc.corp.verification_record.value]
ttl = 300
}
# Verifies the TXT record once. Fails (no retry) while the record is not visible
# yet; apply again after DNS has propagated.
resource "uptimeify_sso_domain_verification" "corp" {
domain = uptimeify_sso_oidc.corp.domain
depends_on = [dns_txt_record_set.sso]
}Schema
Pflichtfelder
domain(String) The SSO domain; changing it verifies again.
Nur lesbar
id(String) Alwayssso.
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# Always the id sso
terraform import uptimeify_sso_domain_verification.corp sso