Zones
resource cloudflare_zone
required
The domain name. Per RFC 1035 the overall zone name can be up to 253 characters, with each segment ("label") not exceeding 63 characters.
optional
cloudflare_zone
resource "cloudflare_zone" "example_zone" {
account = {
id = "023e105f4ecef8ad9ca31a8372d0c353"
}
name = "example.com"
type = "full"
}
data cloudflare_zone
computed
The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is 0.
The domain name. Per RFC 1035 the overall zone name can be up to 253 characters, with each segment ("label") not exceeding 63 characters.
Indicates whether the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits.
A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup.
cloudflare_zone
data "cloudflare_zone" "example_zone" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
data cloudflare_zones
cloudflare_zones
data "cloudflare_zones" "example_zones" {
account = {
id = "id"
name = "name"
}
direction = "desc"
name = "name"
order = "status"
status = "initializing"
}
ZonesSettings
resource cloudflare_zone_setting
cloudflare_zone_setting
resource "cloudflare_zone_setting" "example_zone_setting" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
setting_id = "always_online"
enabled = true
}
data cloudflare_zone_setting
computed
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
cloudflare_zone_setting
data "cloudflare_zone_setting" "example_zone_setting" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
setting_id = "always_online"
}
ZonesHolds
resource cloudflare_zone_hold
optional
If hold_after is provided and future-dated, the hold will be temporarily disabled,
then automatically re-enabled by the system at the time specified
in this RFC3339-formatted timestamp. A past-dated hold_after value will have
no effect on an existing, enabled hold. Providing an empty string will set its value
to the current time.
If true, the zone hold will extend to block any subdomain of the given zone, as well
as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname
'example.com' and include_subdomains=true will block 'example.com',
'staging.example.com', 'api.staging.example.com', etc.
cloudflare_zone_hold
resource "cloudflare_zone_hold" "example_zone_hold" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
ZonesSubscriptions
resource cloudflare_zone_subscription
cloudflare_zone_subscription
resource "cloudflare_zone_subscription" "example_zone_subscription" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
frequency = "monthly"
rate_plan = {
id = "free"
currency = "USD"
externally_managed = false
is_contract = false
public_name = "Business Plan"
scope = "zone"
sets = ["string"]
}
}
data cloudflare_zone_subscription
cloudflare_zone_subscription
data "cloudflare_zone_subscription" "example_zone_subscription" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}