Skip to main content

destination_exists

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

Overview

Namedestination_exists
TypeResource
Idcloudflare.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:

NameAccessible byRequired ParamsOptional ParamsDescription
destination_exists_by_accountinsertaccount_id, destination_confChecks if there is an existing job with a destination.
destination_exists_by_zoneinsertzone_id, destination_confChecks 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
zone_idstringThe Cloudflare zone ID.

INSERT examples

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
;