Skip to content
Start here

Address Maps

resource cloudflare_address_map

required Expand Collapse
account_id: String

Identifier of a Cloudflare account.

optional Expand Collapse
ips?: List[String]
memberships?: List[Attributes]

Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership.

identifier?: String

The identifier for the membership (eg. a zone or account tag).

kind?: String

The type of the membership.

default_sni?: String

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.

description?: String

An optional description field which may be used to describe the types of IPs or zones on the map.

enabled?: Bool

Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.

computed Expand Collapse
id: String

Identifier of an Address Map.

can_delete: Bool

If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.

can_modify_ips: Bool

If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.

created_at: Time
modified_at: Time

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 Expand Collapse
address_map_id: String

Identifier of an Address Map.

account_id: String

Identifier of a Cloudflare account.

computed Expand Collapse
id: String

Identifier of an Address Map.

can_delete: Bool

If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.

can_modify_ips: Bool

If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.

created_at: Time
default_sni: String

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.

description: String

An optional description field which may be used to describe the types of IPs or zones on the map.

enabled: Bool

Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.

modified_at: Time
ips: List[Attributes]

The set of IPs on the Address Map.

created_at: Time
ip: String

An IPv4 or IPv6 address.

memberships: List[Attributes]

Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership.

can_delete: Bool

Controls whether the membership can be deleted via the API or not.

created_at: Time
identifier: String

The identifier for the membership (eg. a zone or account tag).

kind: String

The type of the membership.

cloudflare_address_map

data "cloudflare_address_map" "example_address_map" {
  account_id = "258def64c72dae45f3e4c8516e2111f2"
  address_map_id = "055817b111884e0227e1be16a0be6ee0"
}

data cloudflare_address_maps

required Expand Collapse
account_id: String

Identifier of a Cloudflare account.

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

Identifier of an Address Map.

can_delete: Bool

If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.

can_modify_ips: Bool

If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.

created_at: Time
default_sni: String

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.

description: String

An optional description field which may be used to describe the types of IPs or zones on the map.

enabled: Bool

Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.

modified_at: Time

cloudflare_address_maps

data "cloudflare_address_maps" "example_address_maps" {
  account_id = "258def64c72dae45f3e4c8516e2111f2"
}