Addressing
AddressingRegional Hostnames
resource cloudflare_regional_hostname
required
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
cloudflare_regional_hostname
data "cloudflare_regional_hostname" "example_regional_hostname" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
hostname = "foo.example.com"
}
AddressingAddress Maps
resource cloudflare_address_map
optional
If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
cloudflare_address_map
resource "cloudflare_address_map" "example_address_map" {
account_id = "258def64c72dae45f3e4c8516e2111f2"
description = "My Ecommerce zones"
enabled = true
ips = ["192.0.2.1"]
memberships = [{
identifier = "023e105f4ecef8ad9ca31a8372d0c353"
kind = "zone"
}]
}
data cloudflare_address_map
required
computed
If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
An optional description field which may be used to describe the types of IPs or zones on the map.
cloudflare_address_map
data "cloudflare_address_map" "example_address_map" {
account_id = "258def64c72dae45f3e4c8516e2111f2"
address_map_id = "055817b111884e0227e1be16a0be6ee0"
}
AddressingPrefixes
resource cloudflare_byo_ip_prefix
required
optional
computed
Prefix advertisement status to the Internet. This field is only not 'null' if on demand is enabled.
Last time the advertisement status was changed. This field is only not 'null' if on demand is enabled.
Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.
cloudflare_byo_ip_prefix
resource "cloudflare_byo_ip_prefix" "example_byo_ip_prefix" {
account_id = "258def64c72dae45f3e4c8516e2111f2"
asn = 13335
cidr = "192.0.2.0/24"
delegate_loa_creation = true
description = "Internal test prefix"
loa_document_id = "d933b1530bc56c9953cf8ce166da8004"
}
data cloudflare_byo_ip_prefix
required
computed
Prefix advertisement status to the Internet. This field is only not 'null' if on demand is enabled.
Last time the advertisement status was changed. This field is only not 'null' if on demand is enabled.
Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.
Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.
cloudflare_byo_ip_prefix
data "cloudflare_byo_ip_prefix" "example_byo_ip_prefix" {
account_id = "258def64c72dae45f3e4c8516e2111f2"
prefix_id = "2af39739cc4e3b5910c918468bb89828"
}
data cloudflare_byo_ip_prefixes
cloudflare_byo_ip_prefixes
data "cloudflare_byo_ip_prefixes" "example_byo_ip_prefixes" {
account_id = "258def64c72dae45f3e4c8516e2111f2"
}