Skip to main content

ssl_automatic_mode

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

Overview

Namessl_automatic_mode
TypeResource
Idcloudflare.zones.ssl_automatic_mode

Fields

The following fields are returned by SELECT queries:

Get Automatic SSL/TLS Enrollment status response.

NameDatatypeDescription
idstring (example: ssl_automatic_mode)
editablebooleanWhether this setting can be updated or not.
modified_onstring (date-time)Last time this setting was modified. (example: 2014-01-01T05:20:00.12345Z)
next_scheduled_scanstring (date-time)Next time this zone will be scanned by the Automatic SSL/TLS. (example: 2014-01-01T05:20:00.12345Z)
valuestringCurrent setting of the automatic SSL/TLS. (auto, custom) (example: auto)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idIf the system is enabled, the response will include next_scheduled_scan, representing the next time this zone will be scanned and the zone's ssl/tls encryption mode is potentially upgraded by the system. If the system is disabled, next_scheduled_scan will not be present in the response body.
ssl_detector_automatic_mode_patch_enrollmentupdatezone_id, valueThe automatic system is enabled when this endpoint is hit with value in the request body is set to "auto", and disabled when the request body value is set to "custom".

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

If the system is enabled, the response will include next_scheduled_scan, representing the next time this zone will be scanned and the zone's ssl/tls encryption mode is potentially upgraded by the system. If the system is disabled, next_scheduled_scan will not be present in the response body.

SELECT
id,
editable,
modified_on,
next_scheduled_scan,
value
FROM cloudflare.zones.ssl_automatic_mode
WHERE zone_id = '{{ zone_id }}' -- required
;

UPDATE examples

The automatic system is enabled when this endpoint is hit with value in the request body is set to "auto", and disabled when the request body value is set to "custom".

UPDATE cloudflare.zones.ssl_automatic_mode
SET
value = '{{ value }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND value = '{{ value }}' --required
RETURNING
errors,
messages,
result,
success;