Skip to main content

logos

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

Overview

Namelogos
TypeResource
Idcloudflare.brand_protection.logos

Fields

The following fields are returned by SELECT queries:

Successfully retrieved logo queries

NameDatatypeDescription
idinteger
content_typestringMIME type of the image (only present when download=true)
image_datastringBase64-encoded image data (only present when download=true)
r2_pathstring
similarity_thresholdnumber
tagstring
uploaded_atstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idid, downloadGet all saved brand protection logo queries for an account. Optionally specify id to get a single query. Set download=true to include base64-encoded image data.

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.
downloadstringIf true, include base64-encoded image data in the response
idstringOptional query ID to retrieve a specific logo query

SELECT examples

Get all saved brand protection logo queries for an account. Optionally specify id to get a single query. Set download=true to include base64-encoded image data.

SELECT
id,
content_type,
image_data,
r2_path,
similarity_threshold,
tag,
uploaded_at
FROM cloudflare.brand_protection.logos
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}'
AND download = '{{ download }}'
;