Skip to content
Start here

Connectivity

ConnectivityDirectoryServices

resource cloudflare_connectivity_directory_service

required Expand Collapse
account_id: String

Account identifier

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
app_protocol?: String
http_port?: Int64
https_port?: Int64
tcp_port?: Int64
tls_settings?: Attributes

TLS settings for a connectivity service.

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

disabled cannot be combined with certificate_authority: a custom CA is only used to verify the server certificate.

certificate_authority?: String

UUID of the custom CA certificate or chain.

client_certificate?: String

UUID of the mTLS client certificate and private key.

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"
    certificate_authority = "705db030-8247-489b-80dd-0d6256e5950d"
    client_certificate = "a493fbb4-34bc-4218-a63c-61a9323ac725"
  }
}

data cloudflare_connectivity_directory_service

required Expand Collapse
account_id: String
optional Expand Collapse
service_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.

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

disabled cannot be combined with certificate_authority: a custom CA is only used to verify the server certificate.

certificate_authority: String

UUID of the custom CA certificate or chain.

client_certificate: String

UUID of the mTLS client certificate and private key.

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

required Expand Collapse
account_id: String

Account identifier

optional Expand Collapse
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.

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

disabled cannot be combined with certificate_authority: a custom CA is only used to verify the server certificate.

certificate_authority: String

UUID of the custom CA certificate or chain.

client_certificate: String

UUID of the mTLS client certificate and private key.

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