Skip to main content

fonts

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

Overview

Namefonts
TypeResource
Idcloudflare.zones.fonts

Fields

The following fields are returned by SELECT queries:

Get Cloudflare Fonts setting response.

NameDatatypeDescription
idstringID of the zone setting. (fonts) (example: fonts)
editablebooleanWhether or not this setting can be modified for this zone (based on your Cloudflare plan level). (true, false)
modified_onstring (date-time)last time this setting was modified. (example: 2014-01-01T05:20:00.12345Z)
valuestringCurrent value of the zone setting. (on, off) (example: on)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idEnhance 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_settingupdatezone_id, valueEnhance 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.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples

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

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;