Skip to main content

queries

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

Overview

Namequeries
TypeResource
Idcloudflare.brand_protection.queries

Fields

The following fields are returned by SELECT queries:

Successfully retrieved queries

NameDatatypeDescription
query_idinteger
createdstring
parametersobject
query_tagstring
scanboolean
updatedstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_ididGet all saved brand protection queries for an account
deletedeleteaccount_idid, tag, scanReturn a success message after deleting saved string queries by ID
bulkexecaccount_idReturn a success message after creating new saved string queries in bulk

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.
idstring
scanboolean
tagstring

SELECT examples

Get all saved brand protection queries for an account

SELECT
query_id,
created,
parameters,
query_tag,
scan,
updated
FROM cloudflare.brand_protection.queries
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}'
;

DELETE examples

Return a success message after deleting saved string queries by ID

DELETE FROM cloudflare.brand_protection.queries
WHERE account_id = '{{ account_id }}' --required
AND id = '{{ id }}'
AND tag = '{{ tag }}'
AND scan = '{{ scan }}'
;

Lifecycle Methods

Return a success message after creating new saved string queries in bulk

EXEC cloudflare.brand_protection.queries.bulk
@account_id='{{ account_id }}' --required
@@json=
'{
"queries": "{{ queries }}"
}'
;