Skip to content
Start here

Networks

NetworksRoutes

resource cloudflare_zero_trust_tunnel_cloudflared_route

required Expand Collapse
account_id: String

Cloudflare account ID

network: String

The private IPv4 or IPv6 range connected by the route, in CIDR notation.

tunnel_id: String

UUID of the tunnel.

optional Expand Collapse
comment?: String

Optional remark describing the route.

virtual_network_id?: String

UUID of the virtual network.

computed Expand Collapse
id: String

UUID of the route.

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.

cloudflare_zero_trust_tunnel_cloudflared_route

resource "cloudflare_zero_trust_tunnel_cloudflared_route" "example_zero_trust_tunnel_cloudflared_route" {
  account_id = "699d98642c564d2e855e9661899b7252"
  network = "172.16.0.0/16"
  tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
  comment = "Example comment for this route."
  virtual_network_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}

data cloudflare_zero_trust_tunnel_cloudflared_route

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
route_id?: String

UUID of the route.

filter?: Attributes
comment?: String

Optional remark describing the route.

existed_at?: String

If provided, include only resources that were created (and not deleted) before this time. URL encoded.

is_deleted?: Bool

If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.

network_subset?: String

If set, only list routes that are contained within this IP range.

network_superset?: String

If set, only list routes that contain this IP range.

tun_types?: List[String]

The types of tunnels to filter by, separated by commas.

tunnel_id?: String

UUID of the tunnel.

virtual_network_id?: String

UUID of the virtual network.

computed Expand Collapse
id: String

UUID of the route.

comment: String

Optional remark describing the route.

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.

network: String

The private IPv4 or IPv6 range connected by the route, in CIDR notation.

tunnel_id: String

UUID of the tunnel.

virtual_network_id: String

UUID of the virtual network.

cloudflare_zero_trust_tunnel_cloudflared_route

data "cloudflare_zero_trust_tunnel_cloudflared_route" "example_zero_trust_tunnel_cloudflared_route" {
  account_id = "699d98642c564d2e855e9661899b7252"
  route_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}

data cloudflare_zero_trust_tunnel_cloudflared_routes

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
existed_at?: String

If provided, include only resources that were created (and not deleted) before this time. URL encoded.

is_deleted?: Bool

If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.

network_subset?: String

If set, only list routes that are contained within this IP range.

network_superset?: String

If set, only list routes that contain this IP range.

route_id?: String

UUID of the route.

tunnel_id?: String

UUID of the tunnel.

virtual_network_id?: String

UUID of the virtual network.

tun_types?: List[String]

The types of tunnels to filter by, separated by commas.

comment?: String

Optional remark describing the route.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

UUID of the route.

comment: String

Optional remark describing the route.

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.

network: String

The private IPv4 or IPv6 range connected by the route, in CIDR notation.

tun_type: String

The type of tunnel.

tunnel_id: String

UUID of the tunnel.

tunnel_name: String

A user-friendly name for a tunnel.

virtual_network_id: String

UUID of the virtual network.

virtual_network_name: String

A user-friendly name for the virtual network.

cloudflare_zero_trust_tunnel_cloudflared_routes

data "cloudflare_zero_trust_tunnel_cloudflared_routes" "example_zero_trust_tunnel_cloudflared_routes" {
  account_id = "699d98642c564d2e855e9661899b7252"
  existed_at = "2019-10-12T07%3A20%3A50.52Z"
  is_deleted = true
  network_subset = "172.16.0.0/16"
  network_superset = "172.16.0.0/16"
  route_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
  tun_types = ["cfd_tunnel"]
  tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
  virtual_network_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}

NetworksVirtual Networks

resource cloudflare_zero_trust_tunnel_cloudflared_virtual_network

required Expand Collapse
account_id: String

Cloudflare account ID

name: String

A user-friendly name for the virtual network.

optional Expand Collapse
Deprecatedis_default?: Bool
Use the is_default_network property instead.

If true, this virtual network is the default for the account.

comment?: String

Optional remark describing the virtual network.

is_default_network?: Bool

If true, this virtual network is the default for the account.

computed Expand Collapse
id: String

UUID of the virtual network.

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.

cloudflare_zero_trust_tunnel_cloudflared_virtual_network

resource "cloudflare_zero_trust_tunnel_cloudflared_virtual_network" "example_zero_trust_tunnel_cloudflared_virtual_network" {
  account_id = "699d98642c564d2e855e9661899b7252"
  name = "us-east-1-vpc"
  comment = "Staging VPC for data science"
  is_default = true
  is_default_network = false
}

data cloudflare_zero_trust_tunnel_cloudflared_virtual_network

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
virtual_network_id?: String

UUID of the virtual network.

filter?: Attributes
id?: String

UUID of the virtual network.

is_default?: Bool

If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.

is_default_network?: Bool

If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.

is_deleted?: Bool

If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.

name?: String

A user-friendly name for the virtual network.

computed Expand Collapse
id: String

UUID of the virtual network.

comment: String

Optional remark describing the virtual network.

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 virtual network is the default for the account.

name: String

A user-friendly name for the virtual network.

cloudflare_zero_trust_tunnel_cloudflared_virtual_network

data "cloudflare_zero_trust_tunnel_cloudflared_virtual_network" "example_zero_trust_tunnel_cloudflared_virtual_network" {
  account_id = "699d98642c564d2e855e9661899b7252"
  virtual_network_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}

data cloudflare_zero_trust_tunnel_cloudflared_virtual_networks

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
id?: String

UUID of the virtual network.

is_default?: Bool

If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.

is_default_network?: Bool

If true, only include the default virtual network. If false, exclude the default virtual network. If empty, all virtual networks will be included.

is_deleted?: Bool

If true, only include deleted virtual networks. If false, exclude deleted virtual networks. If empty, all virtual networks will be included.

name?: String

A user-friendly name for the virtual network.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

UUID of the virtual network.

comment: String

Optional remark describing the virtual network.

created_at: Time

Timestamp of when the resource was created.

is_default_network: Bool

If true, this virtual network is the default for the account.

name: String

A user-friendly name for the virtual network.

deleted_at: Time

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

cloudflare_zero_trust_tunnel_cloudflared_virtual_networks

data "cloudflare_zero_trust_tunnel_cloudflared_virtual_networks" "example_zero_trust_tunnel_cloudflared_virtual_networks" {
  account_id = "699d98642c564d2e855e9661899b7252"
  id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
  is_default = true
  is_default_network = true
  is_deleted = true
  name = "us-east-1-vpc"
}

NetworksSubnetsWARP

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"
}

NetworksHostname Routes

resource cloudflare_zero_trust_network_hostname_route

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
comment?: String

An optional description of the hostname route.

hostname?: String

The hostname of the route.

tunnel_id?: String

UUID of the tunnel.

computed Expand Collapse
id: String

The hostname route ID.

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.

tunnel_name: String

A user-friendly name for a tunnel.

cloudflare_zero_trust_network_hostname_route

resource "cloudflare_zero_trust_network_hostname_route" "example_zero_trust_network_hostname_route" {
  account_id = "699d98642c564d2e855e9661899b7252"
  comment = "example comment"
  hostname = "office-1.local"
  tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}

data cloudflare_zero_trust_network_hostname_route

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
hostname_route_id?: String

The hostname route ID.

filter?: Attributes
id?: String

The hostname route ID.

comment?: String

If set, only list hostname routes with the given comment.

existed_at?: String

If provided, include only resources that were created (and not deleted) before this time. URL encoded.

hostname?: String

If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.

is_deleted?: Bool

If true, only return deleted hostname routes. If false, exclude deleted hostname routes.

tunnel_id?: String

If set, only list hostname routes that point to a specific tunnel.

computed Expand Collapse
id: String

The hostname route ID.

comment: String

An optional description of the hostname route.

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.

hostname: String

The hostname of the route.

tunnel_id: String

UUID of the tunnel.

tunnel_name: String

A user-friendly name for a tunnel.

cloudflare_zero_trust_network_hostname_route

data "cloudflare_zero_trust_network_hostname_route" "example_zero_trust_network_hostname_route" {
  account_id = "699d98642c564d2e855e9661899b7252"
  hostname_route_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}

data cloudflare_zero_trust_network_hostname_routes

required Expand Collapse
account_id: String

Cloudflare account ID

optional Expand Collapse
comment?: String

If set, only list hostname routes with the given comment.

existed_at?: String

If provided, include only resources that were created (and not deleted) before this time. URL encoded.

hostname?: String

If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.

id?: String

The hostname route ID.

tunnel_id?: String

If set, only list hostname routes that point to a specific tunnel.

is_deleted?: Bool

If true, only return deleted hostname routes. If false, exclude deleted hostname routes.

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 hostname route ID.

comment: String

An optional description of the hostname route.

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.

hostname: String

The hostname of the route.

tunnel_id: String

UUID of the tunnel.

tunnel_name: String

A user-friendly name for a tunnel.

cloudflare_zero_trust_network_hostname_routes

data "cloudflare_zero_trust_network_hostname_routes" "example_zero_trust_network_hostname_routes" {
  account_id = "699d98642c564d2e855e9661899b7252"
  id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
  comment = "example%20comment"
  existed_at = "2019-10-12T07%3A20%3A50.52Z"
  hostname = "office-1.local"
  tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}