Skip to main content

flat

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

Overview

Nameflat
TypeResource
Idcloudflare.images.flat

Fields

The following fields are returned by SELECT queries:

Variant details flat response

NameDatatypeDescription
idstring (example: hero)
neverRequireSignedURLsbooleanIndicates whether the variant can access an image without a signature, regardless of image access control.
optionsobjectAllows you to define image resizing sizes for different use cases.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectvariant_id, account_idFetch details for a single variant with properties at the top level of the result.

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
account_idstringThe Cloudflare account ID.
variant_idstring

SELECT examples

Fetch details for a single variant with properties at the top level of the result.

SELECT
id,
neverRequireSignedURLs,
options
FROM cloudflare.images.flat
WHERE variant_id = '{{ variant_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;