Provides a Cloudflare Zone resource. Zone is the basic resource for working with Cloudflare and is roughly equivalent to a domain name that the user purchases.
resource "cloudflare_zone" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
zone = "example.com"
}
account_id
(String) Account ID to manage the zone resource in.zone
(String) The DNS zone name which will be added. Modifying this attribute will force creation of a new resource.jump_start
(Boolean) Whether to scan for DNS records on creation. Ignored after zone is created.paused
(Boolean) Whether this zone is paused (traffic bypasses Cloudflare). Defaults to false
.plan
(String) The name of the commercial plan to apply to the zone. Available values: free
, lite
, pro
, pro_plus
, business
, enterprise
, partners_free
, partners_pro
, partners_business
, partners_enterprise
.type
(String) A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. Available values: full
, partial
, secondary
. Defaults to full
.id
(String) The ID of this resource.meta
(Map of Boolean)name_servers
(List of String) Cloudflare-assigned name servers. This is only populated for zones that use Cloudflare DNS.status
(String) Status of the zone. Available values: active
, pending
, initializing
, moved
, deleted
, deactivated
.vanity_name_servers
(List of String) List of Vanity Nameservers (if set).verification_key
(String) Contains the TXT record value to validate domain ownership. This is only populated for zones of type partial
.Import is supported using the following syntax:
$ terraform import cloudflare_zone.example <zone_id>