Skip to content
Start here

Registrar

RegistrarDomains

resource cloudflare_registrar_domain

required Expand Collapse
account_id: String

Identifier.

domain_name: String

Provides a fully qualified domain name (FQDN), including the extension (e.g., example.com, mybrand.app). The domain name uniquely identifies a registration. Cloudflare permits only one registration per domain, making the domain name a natural idempotency key for registration requests.

optional Expand Collapse
auto_renew?: Bool

Auto-renew controls whether subscription is automatically renewed upon domain expiration.

locked?: Bool

Shows whether a registrar lock is in place for a domain.

privacy?: Bool

Privacy option controls redacting WHOIS information.

cloudflare_registrar_domain

resource "cloudflare_registrar_domain" "example_registrar_domain" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  domain_name = "example.com"
  auto_renew = true
  locked = false
  privacy = true
}

data cloudflare_registrar_domain

required Expand Collapse
account_id: String

Identifier.

domain_name: String

Provides a fully qualified domain name (FQDN), including the extension (e.g., example.com, mybrand.app). The domain name uniquely identifies a registration. Cloudflare permits only one registration per domain, making the domain name a natural idempotency key for registration requests.

cloudflare_registrar_domain

data "cloudflare_registrar_domain" "example_registrar_domain" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  domain_name = "example.com"
}

data cloudflare_registrar_domains

required Expand Collapse
account_id: String

Identifier.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Domain identifier.

available: Bool

Shows if a domain is available for transferring into Cloudflare Registrar.

can_register: Bool

Indicates eligibility to register the domain as a new domain.

created_at: Time

Shows time of creation.

current_registrar: String

Shows name of current registrar.

expires_at: Time

Shows when domain name registration expires.

locked: Bool

Shows whether a registrar lock is in place for a domain.

registrant_contact: Attributes

Shows contact information for domain registrant.

address: String

Address.

city: String

City.

country: String

The country in which the user lives.

first_name: String

User’s first name.

last_name: String

User’s last name.

organization: String

Name of organization.

phone: String

User’s telephone number.

state: String

State.

zip: String

The zipcode or postal code where the user lives.

id: String

Contact Identifier.

address2: String

Optional address line for unit, floor, suite, etc.

email: String

The contact email address of the user.

fax: String

Contact fax number.

registry_statuses: String

A comma-separated list of registry status codes. Refer to EPP Status Codes for the full list.

supported_tld: Bool

Indicates whether Cloudflare Registrar currently supports a particular TLD. Refer to TLD Policies for a list of supported TLDs.

transfer_in: Attributes

Statuses for domain transfers into Cloudflare Registrar.

accept_foa: String

Status of the registrant authorization step.

approve_transfer: String

Status of the registry transfer-approval step.

can_cancel_transfer: Bool

Indicates if cancellation is still possible.

disable_privacy: String

Status of the privacy-guard disabling step at the foreign registrar.

enter_auth_code: String

Status of the auth-code entry and verification step.

unlock_domain: String

Status of the domain-unlock step at the foreign registrar.

updated_at: Time

Last updated.

cloudflare_registrar_domains

data "cloudflare_registrar_domains" "example_registrar_domains" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}