Skip to content
Start here

Prefixes

resource cloudflare_byo_ip_prefix

required Expand Collapse
account_id: String

Identifier of a Cloudflare account.

asn: Int64

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

cidr: String

IP Prefix in Classless Inter-Domain Routing format.

optional Expand Collapse
loa_document_id?: String

Identifier for the uploaded LOA document.

delegate_loa_creation?: Bool

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

description?: String

Description of the prefix.

computed Expand Collapse
id: String

Identifier of an IP Prefix.

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.

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.

approved: String

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

created_at: Time
irr_validation_state: String

State of one kind of validation for an IP prefix.

modified_at: Time
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.

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.

ownership_validation_state: String

State of one kind of validation for an IP prefix.

ownership_validation_token: String

Token provided to demonstrate ownership of the prefix.

rpki_validation_state: String

State of one kind of validation for an IP prefix.

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

Identifier of an IP Prefix.

account_id: String

Identifier of a Cloudflare account.

computed Expand Collapse
id: String

Identifier of an IP Prefix.

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.

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.

approved: String

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

asn: Int64

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

cidr: String

IP Prefix in Classless Inter-Domain Routing format.

created_at: Time
delegate_loa_creation: Bool

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

description: String

Description of the prefix.

irr_validation_state: String

State of one kind of validation for an IP prefix.

loa_document_id: String

Identifier for the uploaded LOA document.

modified_at: Time
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.

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.

ownership_validation_state: String

State of one kind of validation for an IP prefix.

ownership_validation_token: String

Token provided to demonstrate ownership of the prefix.

rpki_validation_state: String

State of one kind of validation for an IP prefix.

cloudflare_byo_ip_prefix

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.

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 IP Prefix.

account_id: String

Identifier of a Cloudflare account.

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.

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.

approved: String

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

asn: Int64

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

cidr: String

IP Prefix in Classless Inter-Domain Routing format.

created_at: Time
delegate_loa_creation: Bool

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

description: String

Description of the prefix.

irr_validation_state: String

State of one kind of validation for an IP prefix.

loa_document_id: String

Identifier for the uploaded LOA document.

modified_at: Time
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.

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.

ownership_validation_state: String

State of one kind of validation for an IP prefix.

ownership_validation_token: String

Token provided to demonstrate ownership of the prefix.

rpki_validation_state: String

State of one kind of validation for an IP prefix.

cloudflare_byo_ip_prefixes

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