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

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

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:

1. Publish the TXT record `verification_record.name` with the value `verification_record.value` in your DNS zone, and point the hostname (CNAME) at your Uptimeify status page host.
2. Verify and activate: `uptimeify_status_page_domain_activation` (runs verify + activate once), or `POST /api/status-pages/domains/verify` and `.../activate` with `{"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

```terraform
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 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`.
- `verification_record` (Attributes) DNS TXT record that proves control of the hostname. (siehe [verschachteltes Schema](#verschachteltes-schema-für-verification_record))
- `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`](https://developer.hashicorp.com/terraform/cli/commands/import), zum Beispiel:

```shell
# Numeric domain id
terraform import uptimeify_status_page_domain.acme 17
```
