brand_protection_logos
Creates, updates, deletes, gets or lists a brand_protection_logos resource.
Overview
| Name | brand_protection_logos |
| Type | Resource |
| Id | cloudflare.brand_protection.brand_protection_logos |
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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | insert | account_id | tag, match_type, threshold | Return new saved logo queries created from image files |
delete_by_account | delete | account_id, logo_id | Return a success message after deleting saved logo queries by ID |
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. |
logo_id | string | |
match_type | string | |
tag | string | |
threshold | number |
INSERT examples
- create
- Manifest
Return new saved logo queries created from image files
INSERT INTO cloudflare.brand_protection.brand_protection_logos (
image,
account_id,
tag,
match_type,
threshold
)
SELECT
'{{ image }}',
'{{ account_id }}',
'{{ tag }}',
'{{ match_type }}',
'{{ threshold }}'
RETURNING
id,
tag,
upload_path
;
# Description fields are for documentation purposes
- name: brand_protection_logos
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the brand_protection_logos resource.
- name: image
value: "{{ image }}"
- name: tag
value: "{{ tag }}"
- name: match_type
value: "{{ match_type }}"
- name: threshold
value: {{ threshold }}
DELETE examples
- delete_by_account
Return a success message after deleting saved logo queries by ID
DELETE FROM cloudflare.brand_protection.brand_protection_logos
WHERE account_id = '{{ account_id }}' --required
AND logo_id = '{{ logo_id }}' --required
;