Get queries
brand_protection.v2.queries.get(QueryGetParams**kwargs) -> QueryGetResponse
GET/accounts/{account_id}/cloudforce-one/v2/brand-protection/domain/queries
Get all saved brand protection queries for an account
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Get queries
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
queries = client.brand_protection.v2.queries.get(
account_id="x",
)
print(queries)[
{
"created": "created",
"parameters": {
"string_matches": [
{
"max_edit_distance": 0,
"pattern": "x"
}
],
"max_time": "max_time",
"min_time": "min_time"
},
"query_id": 0,
"query_tag": "query_tag",
"scan": true,
"updated": "updated"
}
]Returns Examples
[
{
"created": "created",
"parameters": {
"string_matches": [
{
"max_edit_distance": 0,
"pattern": "x"
}
],
"max_time": "max_time",
"min_time": "min_time"
},
"query_id": 0,
"query_tag": "query_tag",
"scan": true,
"updated": "updated"
}
]