Skip to main content

total_tls

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

Overview

Nametotal_tls
TypeResource
Idcloudflare.acm.total_tls

Fields

The following fields are returned by SELECT queries:

Total TLS Settings Details response

NameDatatypeDescription
certificate_authoritystringThe Certificate Authority that Total TLS certificates will be issued through. (google, lets_encrypt, ssl_com) (example: google)
enabledbooleanIf enabled, Total TLS will order a hostname specific TLS certificate for any proxied A, AAAA, or CNAME record in your zone.
validity_periodintegerThe validity period in days for the certificates ordered via Total TLS. (90)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idGet Total TLS Settings for a Zone.
updateinsertzone_id, enabledSet Total TLS Settings or disable the feature for a Zone.

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
zone_idstringThe Cloudflare zone ID.

SELECT examples

Get Total TLS Settings for a Zone.

SELECT
certificate_authority,
enabled,
validity_period
FROM cloudflare.acm.total_tls
WHERE zone_id = '{{ zone_id }}' -- required
;

INSERT examples

Set Total TLS Settings or disable the feature for a Zone.

INSERT INTO cloudflare.acm.total_tls (
certificate_authority,
enabled,
zone_id
)
SELECT
'{{ certificate_authority }}',
{{ enabled }} /* required */,
'{{ zone_id }}'
RETURNING
errors,
messages,
result,
success
;