monitors_references
Creates, updates, deletes, gets or lists a monitors_references resource.
Overview
| Name | monitors_references |
| Type | Resource |
| Id | cloudflare.load_balancers.monitors_references |
Fields
The following fields are returned by SELECT queries:
- list_by_account
- list_by_user
List Monitor References response.
| Name | Datatype | Description |
|---|---|---|
resource_id | string | |
resource_name | string | |
reference_type | string | (*, referral, referrer) |
resource_type | string |
List Monitor References response.
| Name | Datatype | Description |
|---|---|---|
resource_id | string | |
resource_name | string | |
reference_type | string | (*, referral, referrer) |
resource_type | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_account | select | monitor_id, account_id | Get the list of resources that reference the provided monitor. | |
list_by_user | select | monitor_id | Get the list of resources that reference the provided monitor. |
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. |
monitor_id | string | The Load Balancer monitor ID. |
SELECT examples
- list_by_account
- list_by_user
Get the list of resources that reference the provided monitor.
SELECT
resource_id,
resource_name,
reference_type,
resource_type
FROM cloudflare.load_balancers.monitors_references
WHERE monitor_id = '{{ monitor_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;
Get the list of resources that reference the provided monitor.
SELECT
resource_id,
resource_name,
reference_type,
resource_type
FROM cloudflare.load_balancers.monitors_references
WHERE monitor_id = '{{ monitor_id }}' -- required
;