fonts
Creates, updates, deletes, gets or lists a fonts resource.
Overview
| Name | fonts |
| Type | Resource |
| Id | cloudflare.zones.fonts |
Fields
The following fields are returned by SELECT queries:
- list
Get Cloudflare Fonts setting response.
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the zone setting. (fonts) (example: fonts) |
editable | boolean | Whether or not this setting can be modified for this zone (based on your Cloudflare plan level). (true, false) |
modified_on | string (date-time) | last time this setting was modified. (example: 2014-01-01T05:20:00.12345Z) |
value | string | Current value of the zone setting. (on, off) (example: on) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | Enhance your website's font delivery with Cloudflare Fonts. Deliver Google Hosted fonts from your own domain, boost performance, and enhance user privacy. Refer to the Cloudflare Fonts documentation for more information. | |
zone_settings_change_fonts_setting | update | zone_id, value | Enhance your website's font delivery with Cloudflare Fonts. Deliver Google Hosted fonts from your own domain, boost performance, and enhance user privacy. Refer to the Cloudflare Fonts documentation for more information. |
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
Enhance your website's font delivery with Cloudflare Fonts. Deliver Google Hosted fonts from your own domain, boost performance, and enhance user privacy. Refer to the Cloudflare Fonts documentation for more information.
SELECT
id,
editable,
modified_on,
value
FROM cloudflare.zones.fonts
WHERE zone_id = '{{ zone_id }}' -- required
;
UPDATE examples
- zone_settings_change_fonts_setting
Enhance your website's font delivery with Cloudflare Fonts. Deliver Google Hosted fonts from your own domain, boost performance, and enhance user privacy. Refer to the Cloudflare Fonts documentation for more information.
UPDATE cloudflare.zones.fonts
SET
value = '{{ value }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND value = '{{ value }}' --required
RETURNING
errors,
messages,
result,
success;