Skip to main content

settings

Creates, updates, deletes, gets or lists a settings resource.

Overview

Namesettings
TypeResource
Idcloudflare.hostnames.settings

Fields

The following fields are returned by SELECT queries:

Get TLS setting for hostname response

NameDatatypeDescription
created_atstring (date-time)This is the time the tls setting was originally created for this hostname. (example: 2023-07-10T20:01:50.219171Z)
hostnamestringThe hostname for which the tls settings are set. (example: app.example.com)
statusstringDeployment status for the given tls setting. (example: pending_deployment)
updated_atstring (date-time)This is the time the tls setting was updated. (example: 2023-07-10T20:01:50.219171Z)
valuearrayThe 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") (1.0, 1.1, 1.2, 1.3)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectzone_id, setting_id, hostnameGet the requested TLS setting for the hostname.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hostnamestring
setting_idstring
zone_idstringThe Cloudflare zone ID.

SELECT examples

Get the requested TLS setting for the hostname.

SELECT
created_at,
hostname,
status,
updated_at,
value
FROM cloudflare.hostnames.settings
WHERE zone_id = '{{ zone_id }}' -- required
AND setting_id = '{{ setting_id }}' -- required
AND hostname = '{{ hostname }}' -- required
;