logos
Creates, updates, deletes, gets or lists a logos resource.
Overview
| Name | logos |
| Type | Resource |
| Id | cloudflare.brand_protection.logos |
Fields
The following fields are returned by SELECT queries:
- list
Successfully retrieved logo queries
| Name | Datatype | Description |
|---|---|---|
id | integer | |
content_type | string | MIME type of the image (only present when download=true) |
image_data | string | Base64-encoded image data (only present when download=true) |
r2_path | string | |
similarity_threshold | number | |
tag | string | |
uploaded_at | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | id, download | 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. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
download | string | If true, include base64-encoded image data in the response |
id | string | Optional query ID to retrieve a specific logo query |
SELECT examples
- list
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 }}'
;