Skip to content
Start here

Connectivity

ConnectivityDirectoryServices

resource cloudflare_connectivity_directory_service

required Expand Collapse
name: String
type: String
host: Attributes
ipv4?: String
network?: Attributes
tunnel_id: String
ipv6?: String
hostname?: String
resolver_network?: Attributes
tunnel_id: String
resolver_ips?: List[String]
optional Expand Collapse
account_id?: String

Account identifier

app_protocol?: String
http_port?: Int64
https_port?: Int64
tcp_port?: Int64
tls_settings?: Attributes

TLS settings for a connectivity service.

If omitted, the default mode (verify_full) is used.

cert_verification_mode: String

TLS certificate verification mode for the connection to the origin.

  • "verify_full" — verify certificate chain and hostname (default)
  • "verify_ca" — verify certificate chain only, skip hostname check
  • "disabled" — do not verify the server certificate at all
computed Expand Collapse
id: String
service_id: String
created_at: Time
updated_at: Time

cloudflare_connectivity_directory_service

resource "cloudflare_connectivity_directory_service" "example_connectivity_directory_service" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  host = {
    ipv4 = "10.0.0.1"
    network = {
      tunnel_id = "0191dce4-9ab4-7fce-b660-8e5dec5172da"
    }
  }
  name = "web-app"
  type = "http"
  http_port = 8080
  https_port = 8443
  tls_settings = {
    cert_verification_mode = "verify_full"
  }
}

data cloudflare_connectivity_directory_service

optional Expand Collapse
service_id?: String
account_id?: String
filter?: Attributes
type?: String
computed Expand Collapse
id: String
app_protocol: String
created_at: Time
http_port: Int64
https_port: Int64
name: String
tcp_port: Int64
type: String
updated_at: Time
host: Attributes
ipv4: String
network: Attributes
tunnel_id: String
ipv6: String
hostname: String
resolver_network: Attributes
tunnel_id: String
resolver_ips: List[String]
tls_settings: Attributes

TLS settings for a connectivity service.

If omitted, the default mode (verify_full) is used.

cert_verification_mode: String

TLS certificate verification mode for the connection to the origin.

  • "verify_full" — verify certificate chain and hostname (default)
  • "verify_ca" — verify certificate chain only, skip hostname check
  • "disabled" — do not verify the server certificate at all

cloudflare_connectivity_directory_service

data "cloudflare_connectivity_directory_service" "example_connectivity_directory_service" {
  account_id = "account_id"
  service_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}

data cloudflare_connectivity_directory_services

optional Expand Collapse
account_id?: String

Account identifier

type?: String
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

host: Attributes
ipv4: String
network: Attributes
tunnel_id: String
ipv6: String
hostname: String
resolver_network: Attributes
tunnel_id: String
resolver_ips: List[String]
name: String
type: String
created_at: Time
http_port: Int64
https_port: Int64
service_id: String
tls_settings: Attributes

TLS settings for a connectivity service.

If omitted, the default mode (verify_full) is used.

cert_verification_mode: String

TLS certificate verification mode for the connection to the origin.

  • "verify_full" — verify certificate chain and hostname (default)
  • "verify_ca" — verify certificate chain only, skip hostname check
  • "disabled" — do not verify the server certificate at all
updated_at: Time
app_protocol: String
tcp_port: Int64

cloudflare_connectivity_directory_services

data "cloudflare_connectivity_directory_services" "example_connectivity_directory_services" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  type = "tcp"
}