destination_exists
Creates, updates, deletes, gets or lists a destination_exists resource.
Overview
| Name | destination_exists |
| Type | Resource |
| Id | cloudflare.logpush.destination_exists |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
destination_exists_by_account | insert | account_id, destination_conf | Checks if there is an existing job with a destination. | |
destination_exists_by_zone | insert | zone_id, destination_conf | Checks if there is an existing job with a destination. |
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. |
zone_id | string | The Cloudflare zone ID. |
INSERT examples
- destination_exists_by_account
- destination_exists_by_zone
- Manifest
Checks if there is an existing job with a destination.
INSERT INTO cloudflare.logpush.destination_exists (
destination_conf,
account_id
)
SELECT
'{{ destination_conf }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;
Checks if there is an existing job with a destination.
INSERT INTO cloudflare.logpush.destination_exists (
destination_conf,
zone_id
)
SELECT
'{{ destination_conf }}' /* required */,
'{{ zone_id }}'
RETURNING
errors,
messages,
result,
success
;
# Description fields are for documentation purposes
- name: destination_exists
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the destination_exists resource.
- name: zone_id
value: "{{ zone_id }}"
description: Required parameter for the destination_exists resource.
- name: destination_conf
value: "{{ destination_conf }}"
description: |
Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.