Skip to content
Start here

Data Localization Suite

Data Localization SuiteRegional ServicesPrefix Bindings

resource cloudflare_dls_prefix_binding

required Expand Collapse
account_id: Int64
cidr: String

IP prefix in CIDR notation to bind.

prefix_id: String

The ID of the parent IP prefix that contains the CIDR.

region_key: String

Region key from managed regions (e.g., “us”, “eu”).

computed Expand Collapse
id: String

The ID of the binding.

cloudflare_dls_prefix_binding

resource "cloudflare_dls_prefix_binding" "example_dls_prefix_binding" {
  account_id = 0
  cidr = "10.0.1.0/24"
  prefix_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  region_key = "eu"
}

data cloudflare_dls_prefix_binding

required Expand Collapse
binding_id: String

Unique identifier for the prefix binding.

account_id: Int64
computed Expand Collapse
id: String

Unique identifier for the prefix binding.

cidr: String

The CIDR that is bound.

prefix_id: String

The ID of the parent prefix.

region_key: String

The region key used for the binding.

cloudflare_dls_prefix_binding

data "cloudflare_dls_prefix_binding" "example_dls_prefix_binding" {
  account_id = 0
  binding_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

data cloudflare_dls_prefix_bindings

required Expand Collapse
account_id: Int64
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

The ID of the binding.

cidr: String

The CIDR that is bound.

prefix_id: String

The ID of the parent prefix.

region_key: String

The region key used for the binding.

cloudflare_dls_prefix_bindings

data "cloudflare_dls_prefix_bindings" "example_dls_prefix_bindings" {
  account_id = 0
}