uptimeify_whitelabel_domain
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.
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.
Example Usage
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
Required
hostname(String) Hostname, e.g.status.example.com. No wildcards, no platform hostnames.
Read-Only
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 is supported using the following syntax:
The terraform import command can be used, for example:
# Numeric domain id
terraform import uptimeify_whitelabel_domain.app 7uptimeify_website
A website monitor: HTTP(S) check (combined, http_status, ssl_check) or heartbeat (heartbeat, the monitored system pings Uptimeify). Import with the numeric id or the public id. Updates use the partial mode of PATCH /api/websites/{id} whenever every changed field is one that mode accepts (name, url, status, interval, timeout, checks, keyword, expected response, connect target, SSL/domain days, page sizes, grace period). Changes to the customer, countries, HTTP method, redirects, cookies, auth or the write-only secrets need the full mode, which resets omitted fields to defaults, so the provider then sends every attribute and re-applies any value the full mode coerced (ssl_error_days = 0, min_page_size = 0) with a partial PATCH. Secrets (custom headers, request body, authorization header, basic auth password) are write-only: the API never returns them. Bump the matching *_wo_version to send changed values.
uptimeify_custom_field
Look up one active custom field by id or by field_key (exactly one).