Skip to main content

searches

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

Overview

Namesearches
TypeResource
Idcloudflare.load_balancers.searches

Fields

The following fields are returned by SELECT queries:

Search Resources response.

NameDatatypeDescription
resource_idstring (example: 17b5962d775c646f3f9725cbc7a53df4)
resource_namestringThe human-identifiable name of the resource. (example: primary-dc-1)
reference_typestringWhen listed as a reference, the type (direction) of the reference. (referral, referrer)
referencesarrayA list of references to (referrer) or from (referral) this resource.
resource_typestringThe type of the resource. (load_balancer, monitor, pool) (example: pool)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idquery, references, page, per_pageSearch for Load Balancing resources.

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.
pagenumber
per_pagenumber
querystring
referencesstring

SELECT examples

Search for Load Balancing resources.

SELECT
resource_id,
resource_name,
reference_type,
references,
resource_type
FROM cloudflare.load_balancers.searches
WHERE account_id = '{{ account_id }}' -- required
AND query = '{{ query }}'
AND references = '{{ references }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;