---
title: Addressing
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/terraform)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Addressing

#### AddressingRegional 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`

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20hostname>)

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

region\_key: String

Identifying key for the region

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20region_key>)

##### optional Expand Collapse

routing?: String

Configure which routing method to use for the regional hostname

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20routing>)

##### 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`

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created\_on: Time

When the regional hostname was created

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

### cloudflare\_regional\_hostname

Terraform

HTTPTypeScriptPythonGoTerraform

```
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`

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20hostname>)

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### 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`

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created\_on: Time

When the regional hostname was created

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_on>)

region\_key: String

Identifying key for the region

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20region_key>)

routing: String

Configure which routing method to use for the regional hostname

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20routing>)

### cloudflare\_regional\_hostname

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

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

<a href="#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

created\_on: Time

When the regional hostname was created

<a href="#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_on">Link to this property</a>

hostname: String

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

<a href="#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20hostname">Link to this property</a>

region\_key: String

Identifying key for the region

<a href="#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20region_key">Link to this property</a>

routing: String

Configure which routing method to use for the regional hostname

<a href="#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20routing">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.regional_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_regional\_hostnames

Terraform

HTTPTypeScriptPythonGoTerraform

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

#### AddressingAddress Maps

#### resource cloudflare\_address\_map

##### required Expand Collapse

account\_id: String

Identifier of a Cloudflare account.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

ips?: List\[String]

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ips>)

<details>

<summary>

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.

</summary>

identifier?: String

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

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20memberships%20%3E%20(attribute)%20identifier">Link to this property</a>

kind?: String

The type of the membership.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20memberships%20%3E%20(attribute)%20kind">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20memberships>)

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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20default_sni>)

description?: String

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

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20description>)

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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

##### computed Expand Collapse

id: String

Identifier of an Address Map.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

can\_delete: Bool

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

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20can_delete>)

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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20can_modify_ips>)

created\_at: Time

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_at>)

modified\_at: Time

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_at>)

### cloudflare\_address\_map

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20address_map_id>)

account\_id: String

Identifier of a Cloudflare account.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### computed Expand Collapse

id: String

Identifier of an Address Map.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

can\_delete: Bool

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

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20can_delete>)

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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20can_modify_ips>)

created\_at: Time

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_at>)

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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20default_sni>)

description: String

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

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20description>)

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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20enabled>)

modified\_at: Time

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_at>)

<details>

<summary>

ips: List\[Attributes]

The set of IPs on the Address Map.

</summary>

created\_at: Time

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ips%20%3E%20(attribute)%20created_at">Link to this property</a>

ip: String

An IPv4 or IPv6 address.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ips%20%3E%20(attribute)%20ip">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ips>)

<details>

<summary>

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.

</summary>

can\_delete: Bool

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

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20memberships%20%3E%20(attribute)%20can_delete">Link to this property</a>

created\_at: Time

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20memberships%20%3E%20(attribute)%20created_at">Link to this property</a>

identifier: String

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

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20memberships%20%3E%20(attribute)%20identifier">Link to this property</a>

kind: String

The type of the membership.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20memberships%20%3E%20(attribute)%20kind">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20memberships>)

### cloudflare\_address\_map

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Identifier of an Address Map.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

can\_delete: Bool

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

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20can_delete">Link to this property</a>

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.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20can_modify_ips">Link to this property</a>

created\_at: Time

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_at">Link to this property</a>

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.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20default_sni">Link to this property</a>

description: String

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

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20description">Link to this property</a>

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.

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20enabled">Link to this property</a>

modified\_at: Time

<a href="#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_address\_maps

Terraform

HTTPTypeScriptPythonGoTerraform

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

#### AddressingPrefixes

#### resource cloudflare\_byo\_ip\_prefix

##### required Expand Collapse

account\_id: String

Identifier of a Cloudflare account.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

asn: Int64

Autonomous System Number (ASN) the prefix will be advertised under.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20asn>)

cidr: String

IP Prefix in Classless Inter-Domain Routing format.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cidr>)

##### optional Expand Collapse

loa\_document\_id?: String

Identifier for the uploaded LOA document.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20loa_document_id>)

delegate\_loa\_creation?: Bool

Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20delegate_loa_creation>)

description?: String

Description of the prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20description>)

##### computed Expand Collapse

id: String

Identifier of an IP Prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

Deprecatedadvertised: Bool

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Prefix advertisement status to the Internet. This field is only not ‘null’ if on demand is enabled.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20advertised>)

Deprecatedadvertised\_modified\_at: Time

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Last time the advertisement status was changed. This field is only not ‘null’ if on demand is enabled.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20advertised_modified_at>)

approved: String

Approval state of the prefix (P = pending, V = active).

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20approved>)

created\_at: Time

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_at>)

irr\_validation\_state: String

State of one kind of validation for an IP prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20irr_validation_state>)

modified\_at: Time

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_at>)

Deprecatedon\_demand\_enabled: Bool

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20on_demand_enabled>)

Deprecatedon\_demand\_locked: Bool

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement status of the prefix is locked, meaning it cannot be changed.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20on_demand_locked>)

ownership\_validation\_state: String

State of one kind of validation for an IP prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ownership_validation_state>)

ownership\_validation\_token: String

Token provided to demonstrate ownership of the prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ownership_validation_token>)

rpki\_validation\_state: String

State of one kind of validation for an IP prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rpki_validation_state>)

### cloudflare\_byo\_ip\_prefix

Terraform

HTTPTypeScriptPythonGoTerraform

```
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 Expand Collapse

prefix\_id: String

Identifier of an IP Prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20prefix_id>)

account\_id: String

Identifier of a Cloudflare account.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### computed Expand Collapse

id: String

Identifier of an IP Prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

Deprecatedadvertised: Bool

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Prefix advertisement status to the Internet. This field is only not ‘null’ if on demand is enabled.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20advertised>)

Deprecatedadvertised\_modified\_at: Time

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Last time the advertisement status was changed. This field is only not ‘null’ if on demand is enabled.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20advertised_modified_at>)

approved: String

Approval state of the prefix (P = pending, V = active).

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20approved>)

asn: Int64

Autonomous System Number (ASN) the prefix will be advertised under.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20asn>)

cidr: String

IP Prefix in Classless Inter-Domain Routing format.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cidr>)

created\_at: Time

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_at>)

delegate\_loa\_creation: Bool

Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20delegate_loa_creation>)

description: String

Description of the prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20description>)

irr\_validation\_state: String

State of one kind of validation for an IP prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20irr_validation_state>)

loa\_document\_id: String

Identifier for the uploaded LOA document.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20loa_document_id>)

modified\_at: Time

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_at>)

Deprecatedon\_demand\_enabled: Bool

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20on_demand_enabled>)

Deprecatedon\_demand\_locked: Bool

Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement status of the prefix is locked, meaning it cannot be changed.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20on_demand_locked>)

ownership\_validation\_state: String

State of one kind of validation for an IP prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_validation_state>)

ownership\_validation\_token: String

Token provided to demonstrate ownership of the prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_validation_token>)

rpki\_validation\_state: String

State of one kind of validation for an IP prefix.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rpki_validation_state>)

### cloudflare\_byo\_ip\_prefix

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_byo_ip_prefix" "example_byo_ip_prefix" {
  account_id = "258def64c72dae45f3e4c8516e2111f2"
  prefix_id = "2af39739cc4e3b5910c918468bb89828"
}
```

#### data cloudflare\_byo\_ip\_prefixes

##### required Expand Collapse

account\_id: String

Identifier of a Cloudflare account.

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Identifier of an IP Prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

account\_id: String

Identifier of a Cloudflare account.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20account_id">Link to this property</a>

Deprecatedadvertised: Bool

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Prefix advertisement status to the Internet. This field is only not ‘null’ if on demand is enabled.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20advertised">Link to this property</a>

Deprecatedadvertised\_modified\_at: Time

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Last time the advertisement status was changed. This field is only not ‘null’ if on demand is enabled.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20advertised_modified_at">Link to this property</a>

approved: String

Approval state of the prefix (P = pending, V = active).

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20approved">Link to this property</a>

asn: Int64

Autonomous System Number (ASN) the prefix will be advertised under.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20asn">Link to this property</a>

cidr: String

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cidr">Link to this property</a>

created\_at: Time

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_at">Link to this property</a>

delegate\_loa\_creation: Bool

Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20delegate_loa_creation">Link to this property</a>

description: String

Description of the prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20description">Link to this property</a>

irr\_validation\_state: String

State of one kind of validation for an IP prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20irr_validation_state">Link to this property</a>

loa\_document\_id: String

Identifier for the uploaded LOA document.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20loa_document_id">Link to this property</a>

modified\_at: Time

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified_at">Link to this property</a>

Deprecatedon\_demand\_enabled: Bool

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20on_demand_enabled">Link to this property</a>

Deprecatedon\_demand\_locked: Bool

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement status of the prefix is locked, meaning it cannot be changed.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20on_demand_locked">Link to this property</a>

ownership\_validation\_state: String

State of one kind of validation for an IP prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_validation_state">Link to this property</a>

ownership\_validation\_token: String

Token provided to demonstrate ownership of the prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_validation_token">Link to this property</a>

rpki\_validation\_state: String

State of one kind of validation for an IP prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20rpki_validation_state">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_byo\_ip\_prefixes

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_byo_ip_prefixes" "example_byo_ip_prefixes" {
  account_id = "258def64c72dae45f3e4c8516e2111f2"
}
```