---
title: "uptimeify_whitelabel_domain"
description: "Ressource uptimeify_whitelabel_domain: Beispiel, alle Attribute, Import."
---

<Callout>Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.</Callout>

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

```terraform
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 with `jsondecode()`; null when the last verification succeeded or none failed yet.
- `last_verification_error_at` (String) When `last_verification_error` happened (RFC 3339).
- `status` (String) `pending`, `verified` or `active`.
- `verified_at` (String)

## Import

Import geht so:

Mit [`tofu import` bzw. `terraform import`](https://developer.hashicorp.com/terraform/cli/commands/import), zum Beispiel:

```shell
# Numeric domain id
terraform import uptimeify_whitelabel_domain.app 7
```
