Skip to content
Start here

Settings

SettingsTLS

resource cloudflare_hostname_tls_setting

required Expand Collapse
setting_id: String

The TLS Setting name. The value type depends on the setting:

  • ciphers: value is an array of cipher suite strings (e.g., ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"])
  • min_tls_version: value is a TLS version string ("1.0", "1.1", "1.2", or "1.3")
  • http2: value is "on" or "off"
zone_id: String

Identifier.

value: String

The TLS setting value. The type depends on the setting_id used in the request path:

  • ciphers: an array of allowed cipher suite strings in BoringSSL format (e.g., ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"])
  • min_tls_version: a string indicating the minimum TLS version — one of "1.0", "1.1", "1.2", or "1.3" (e.g., "1.2")
  • http2: a string indicating whether HTTP/2 is enabled — "on" or "off" (e.g., "on")
optional Expand Collapse
hostname?: String

The hostname for which the tls settings are set.

computed Expand Collapse
id: String

The TLS Setting name. The value type depends on the setting:

  • ciphers: value is an array of cipher suite strings (e.g., ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"])
  • min_tls_version: value is a TLS version string ("1.0", "1.1", "1.2", or "1.3")
  • http2: value is "on" or "off"
created_at: Time

This is the time the tls setting was originally created for this hostname.

status: String

Deployment status for the given tls setting.

updated_at: Time

This is the time the tls setting was updated.

cloudflare_hostname_tls_setting

resource "cloudflare_hostname_tls_setting" "example_hostname_tls_setting" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  setting_id = "ciphers"
  hostname = "app.example.com"
  value = "1.0"
}

data cloudflare_hostname_tls_setting

required Expand Collapse
setting_id: String

The TLS Setting name. The value type depends on the setting:

  • ciphers: value is an array of cipher suite strings (e.g., ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"])
  • min_tls_version: value is a TLS version string ("1.0", "1.1", "1.2", or "1.3")
  • http2: value is "on" or "off"
zone_id: String

Identifier.

computed Expand Collapse
id: String

The TLS Setting name. The value type depends on the setting:

  • ciphers: value is an array of cipher suite strings (e.g., ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"])
  • min_tls_version: value is a TLS version string ("1.0", "1.1", "1.2", or "1.3")
  • http2: value is "on" or "off"
created_at: Time

This is the time the tls setting was originally created for this hostname.

hostname: String

The hostname for which the tls settings are set.

status: String

Deployment status for the given tls setting.

updated_at: Time

This is the time the tls setting was updated.

value: String

The TLS setting value. The type depends on the setting_id used in the request path:

  • ciphers: an array of allowed cipher suite strings in BoringSSL format (e.g., ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"])
  • min_tls_version: a string indicating the minimum TLS version — one of "1.0", "1.1", "1.2", or "1.3" (e.g., "1.2")
  • http2: a string indicating whether HTTP/2 is enabled — "on" or "off" (e.g., "on")

cloudflare_hostname_tls_setting

data "cloudflare_hostname_tls_setting" "example_hostname_tls_setting" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  setting_id = "ciphers"
}