Skip to content
Start here

WARP

resource cloudflare_zero_trust_device_subnet

required Expand Collapse
account_id: String

Cloudflare account ID

name: String

A user-friendly name for the subnet.

network: String

The private IPv4 or IPv6 range defining the subnet, in CIDR notation.

optional Expand Collapse
comment?: String

An optional description of the subnet.

is_default_network?: Bool

If true, this is the default subnet for the account. There can only be one default subnet per account.

computed Expand Collapse
id: String

The UUID of the subnet.

created_at: Time

Timestamp of when the resource was created.

deleted_at: Time

Timestamp of when the resource was deleted. If null, the resource has not been deleted.

subnet_type: String

The type of subnet.

cloudflare_zero_trust_device_subnet

resource "cloudflare_zero_trust_device_subnet" "example_zero_trust_device_subnet" {
  account_id = "699d98642c564d2e855e9661899b7252"
  name = "IPv4 Cloudflare Source IPs"
  network = "100.64.0.0/12"
  comment = "example comment"
  is_default_network = true
}

data cloudflare_zero_trust_device_subnet

required Expand Collapse
subnet_id: String

The UUID of the subnet.

account_id: String

Cloudflare account ID

computed Expand Collapse
id: String

The UUID of the subnet.

comment: String

An optional description of the subnet.

created_at: Time

Timestamp of when the resource was created.

deleted_at: Time

Timestamp of when the resource was deleted. If null, the resource has not been deleted.

is_default_network: Bool

If true, this is the default subnet for the account. There can only be one default subnet per account.

name: String

A user-friendly name for the subnet.

network: String

The private IPv4 or IPv6 range defining the subnet, in CIDR notation.

subnet_type: String

The type of subnet.

cloudflare_zero_trust_device_subnet

data "cloudflare_zero_trust_device_subnet" "example_zero_trust_device_subnet" {
  account_id = "699d98642c564d2e855e9661899b7252"
  subnet_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}