Skip to content
Start here

Regional Hostnames

resource cloudflare_regional_hostname

required Expand Collapse
hostname: String

DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g *.example.com

zone_id: String

Identifier.

region_key: String

Identifying key for the region

optional Expand Collapse
routing?: String

Configure which routing method to use for the regional hostname

computed Expand Collapse
id: String

DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g *.example.com

created_on: Time

When the regional hostname was created

cloudflare_regional_hostname

resource "cloudflare_regional_hostname" "example_regional_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  hostname = "foo.example.com"
  region_key = "ca"
  routing = "dns"
}

data cloudflare_regional_hostname

required Expand Collapse
hostname: String

DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g *.example.com

zone_id: String

Identifier.

computed Expand Collapse
id: String

DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g *.example.com

created_on: Time

When the regional hostname was created

region_key: String

Identifying key for the region

routing: String

Configure which routing method to use for the regional hostname

cloudflare_regional_hostname

data "cloudflare_regional_hostname" "example_regional_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  hostname = "foo.example.com"
}

data cloudflare_regional_hostnames

required Expand Collapse
zone_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

DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g *.example.com

created_on: Time

When the regional hostname was created

hostname: String

DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g *.example.com

region_key: String

Identifying key for the region

routing: String

Configure which routing method to use for the regional hostname

cloudflare_regional_hostnames

data "cloudflare_regional_hostnames" "example_regional_hostnames" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}