---
title: "uptimeify_customer_domain"
description: "A domain of a customer whose registration expiry is watched over RDAP. The top-level domain must support RDAP. Creating one that already exists with the same values fails; import it instead. Import with the numeric id or the public id."
---

A domain of a customer whose registration expiry is watched over RDAP. The top-level domain must support RDAP. Creating one that already exists with the same values fails; import it instead. Import with the numeric id or the public id.

## Example Usage

```terraform
resource "uptimeify_customer_domain" "shop" {
  customer_id         = tonumber(uptimeify_customer.shop.id)
  domain_name         = "example-shop.com"
  expiry_warning_days = 45
}
```

## Schema

### Required

- `customer_id` (Number)
- `domain_name` (String) Registered domain without protocol, lower case, e.g. `example.com`.

### Optional

- `expiry_error_days` (Number) Alert this many days before expiry, 1 to 90.
- `expiry_warning_days` (Number) Warn this many days before expiry, 1 to 365.
- `label` (String)
- `management_type` (String) `managed` or `self_service`. Only organization writers choose it; customer-scoped tokens always create `self_service` entries, everyone else gets `managed` when unset.
- `status` (String) `active` (checked, counts against the monitor quota) or `disabled`.

### Read-Only

- `created_at` (String)
- `id` (String) Numeric id.
- `public_id` (String)
- `updated_at` (String)

## 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 id or public id
terraform import uptimeify_customer_domain.shop 9
```
