---
title: "uptimeify_status_page_domain_activation"
description: "Verifies a status page domain's DNS TXT record and activates the domain, once. Create fails with the API's answer when the TXT record is not visible yet; publish it (see uptimeify_status_page_domain) and apply again. There is no waiting or retrying. Needs an organization admin token. When the domain is no longer active (e.g. a later re-verification failed), the next plan runs verify + activate again. Destroying this resource does not deactivate the domain; destroy the uptimeify_status_page_domain for that. Import with the domain id."
---

Verifies a status page domain's DNS TXT record and activates the domain, once. Create fails with the API's answer when the TXT record is not visible yet; publish it (see `uptimeify_status_page_domain`) and apply again. There is no waiting or retrying. Needs an organization admin token. When the domain is no longer `active` (e.g. a later re-verification failed), the next plan runs verify + activate again. Destroying this resource does not deactivate the domain; destroy the `uptimeify_status_page_domain` for that. Import with the domain id.

## Example Usage

```terraform
# The TXT record from uptimeify_status_page_domain, published with your DNS provider.
resource "dns_txt_record_set" "acme_status" {
  zone = "acme.example."
  name = trimsuffix(uptimeify_status_page_domain.acme.verification_record.name, ".acme.example")
  txt  = [uptimeify_status_page_domain.acme.verification_record.value]
  ttl  = 300
}

# Verifies the TXT record and activates the domain once. Fails (no retry) while the
# record is not visible yet; apply again after DNS has propagated.
resource "uptimeify_status_page_domain_activation" "acme" {
  domain_id  = tonumber(uptimeify_status_page_domain.acme.id)
  depends_on = [dns_txt_record_set.acme_status]
}
```

## Schema

### Required

- `domain_id` (Number) `uptimeify_status_page_domain.<name>.id` as number.

### Read-Only

- `id` (String) Same as `domain_id`.
- `status` (String) `active` after a successful run.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
# Numeric domain id
terraform import uptimeify_status_page_domain_activation.acme 7
```
