Skip to main content

logo_queries

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

Overview

Namelogo_queries
TypeResource
Idcloudflare.brand_protection.logo_queries

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertaccount_id, tag, image_data, similarity_thresholdCreate a new saved brand protection logo query for visual similarity matching
delete_by_accountdeleteaccount_id, query_idDelete a saved brand protection logo query. Returns 404 if the query ID doesn't exist.

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.
query_idstring

INSERT examples

Create a new saved brand protection logo query for visual similarity matching

INSERT INTO cloudflare.brand_protection.logo_queries (
image_data,
search_lookback,
similarity_threshold,
tag,
account_id
)
SELECT
'{{ image_data }}' /* required */,
{{ search_lookback }},
{{ similarity_threshold }} /* required */,
'{{ tag }}' /* required */,
'{{ account_id }}'
RETURNING
query_id,
message,
success
;

DELETE examples

Delete a saved brand protection logo query. Returns 404 if the query ID doesn't exist.

DELETE FROM cloudflare.brand_protection.logo_queries
WHERE account_id = '{{ account_id }}' --required
AND query_id = '{{ query_id }}' --required
;