searches
Creates, updates, deletes, gets or lists a searches resource.
Overview
| Name | searches |
| Type | Resource |
| Id | cloudflare.load_balancers.searches |
Fields
The following fields are returned by SELECT queries:
- list
Search Resources response.
| Name | Datatype | Description |
|---|---|---|
resource_id | string | (example: 17b5962d775c646f3f9725cbc7a53df4) |
resource_name | string | The human-identifiable name of the resource. (example: primary-dc-1) |
reference_type | string | When listed as a reference, the type (direction) of the reference. (referral, referrer) |
references | array | A list of references to (referrer) or from (referral) this resource. |
resource_type | string | The type of the resource. (load_balancer, monitor, pool) (example: pool) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | query, references, page, per_page | Search 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
page | number | |
per_page | number | |
query | string | |
references | string |
SELECT examples
- list
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 }}'
;