Skip to main content

accounts_pipelines

Creates, updates, deletes, gets or lists an accounts_pipelines resource.

Overview

Nameaccounts_pipelines
TypeResource
Idcloudflare.pipelines.accounts_pipelines

Fields

The following fields are returned by SELECT queries:

[DEPRECATED] Describes the configuration of a pipeline.

NameDatatypeDescription
idstringSpecifies the pipeline identifier. (example: 123f8a8258064ed892a347f173372359)
namestringDefines the name of the pipeline. (example: sample_pipeline)
destinationobject
endpointstringIndicates the endpoint URL to send traffic. (example: https://123f8a8258064ed892a347f173372359.pipelines.cloudflare.com)
sourcearray
versionnumberIndicates the version number of last saved configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_accountselectaccount_id, pipeline_name[DEPRECATED] Get configuration of a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.
listselectaccount_idsearch, page, per_page[DEPRECATED] List, filter, and paginate pipelines in an account. Use the new /pipelines/v1/pipelines endpoint instead.
createinsertaccount_id, name, source, destination[DEPRECATED] Create a new pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

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.
pipeline_namestring
pagestring
per_pagestring

SELECT examples

[DEPRECATED] Get configuration of a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

SELECT
id,
name,
destination,
endpoint,
source,
version
FROM cloudflare.pipelines.accounts_pipelines
WHERE account_id = '{{ account_id }}' -- required
AND pipeline_name = '{{ pipeline_name }}' -- required
;

INSERT examples

[DEPRECATED] Create a new pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

INSERT INTO cloudflare.pipelines.accounts_pipelines (
destination,
name,
source,
account_id
)
SELECT
'{{ destination }}' /* required */,
'{{ name }}' /* required */,
'{{ source }}' /* required */,
'{{ account_id }}'
RETURNING
result,
success
;