settings
Creates, updates, deletes, gets or lists a settings resource.
Overview
| Name | settings |
| Type | Resource |
| Id | cloudflare.ssl.settings |
Fields
The following fields are returned by SELECT queries:
- list
Universal SSL Settings Details response
| Name | Datatype | Description |
|---|---|---|
enabled | boolean | Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS. By disabling Universal SSL, you understand that the following Cloudflare settings and preferences will result in visitors being unable to visit your domain unless you have uploaded a custom certificate or purchased an advanced certificate. * HSTS * Always Use HTTPS * Opportunistic Encryption * Onion Routing * Any Page Rules redirecting traffic to HTTPS Similarly, any HTTP redirect to HTTPS at the origin while the Cloudflare proxy is enabled will result in users being unable to visit your site without a valid certificate at Cloudflare's edge. If you do not have a valid custom or advanced certificate at Cloudflare's edge and are unsure if any of the above Cloudflare settings are enabled, or if any HTTP redirects exist at your origin, we advise leaving Universal SSL enabled for your domain. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | Get Universal SSL Settings for a Zone. | |
edit | update | zone_id | Patch Universal SSL Settings 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.
| Name | Datatype | Description |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
SELECT examples
- list
Get Universal SSL Settings for a Zone.
SELECT
enabled
FROM cloudflare.ssl.settings
WHERE zone_id = '{{ zone_id }}' -- required
;
UPDATE examples
- edit
Patch Universal SSL Settings for a Zone.
UPDATE cloudflare.ssl.settings
SET
enabled = {{ enabled }}
WHERE
zone_id = '{{ zone_id }}' --required
RETURNING
errors,
messages,
result,
success;