ssl_automatic_mode
Creates, updates, deletes, gets or lists a ssl_automatic_mode resource.
Overview
| Name | ssl_automatic_mode |
| Type | Resource |
| Id | cloudflare.zones.ssl_automatic_mode |
Fields
The following fields are returned by SELECT queries:
- list
Get Automatic SSL/TLS Enrollment status response.
| Name | Datatype | Description |
|---|---|---|
id | string | (example: ssl_automatic_mode) |
editable | boolean | Whether this setting can be updated or not. |
modified_on | string (date-time) | Last time this setting was modified. (example: 2014-01-01T05:20:00.12345Z) |
next_scheduled_scan | string (date-time) | Next time this zone will be scanned by the Automatic SSL/TLS. (example: 2014-01-01T05:20:00.12345Z) |
value | string | Current setting of the automatic SSL/TLS. (auto, custom) (example: auto) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | 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. | |
ssl_detector_automatic_mode_patch_enrollment | update | zone_id, value | 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". |
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.
| Name | Datatype | Description |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
SELECT examples
- list
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
- ssl_detector_automatic_mode_patch_enrollment
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;