Skip to main content

search

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

Overview

Namesearch
TypeResource
Idcloudflare.radar.search

Fields

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
namestring
codestring
typestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlimit, limitPerGroup, query, include, exclude, formatSearches for locations, autonomous systems, reports, bots, certificate logs, certificate authorities, industries and verticals. Location names can be localized by sending an Accept-Language HTTP header with a BCP 47 language tag (e.g., Accept-Language: pt-PT). The full quality-value chain is supported (e.g., pt-PT,pt;q=0.9,en;q=0.8).

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
excludearraySearch types excluded from results.
formatstringFormat in which results will be returned.
includearraySearch types included in results.
limitintegerLimits the number of objects returned in the response.
limitPerGroupnumberLimits the number of objects per search category.
querystringString used to perform the search operation.

SELECT examples

Searches for locations, autonomous systems, reports, bots, certificate logs, certificate authorities, industries and verticals. Location names can be localized by sending an Accept-Language HTTP header with a BCP 47 language tag (e.g., Accept-Language: pt-PT). The full quality-value chain is supported (e.g., pt-PT,pt;q=0.9,en;q=0.8).

SELECT
name,
code,
type
FROM cloudflare.radar.search
WHERE limit = '{{ limit }}'
AND limitPerGroup = '{{ limitPerGroup }}'
AND query = '{{ query }}'
AND include = '{{ include }}'
AND exclude = '{{ exclude }}'
AND format = '{{ format }}'
;