Skip to main content

v1_pipelines

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

Overview​

Namev1_pipelines
TypeResource
Idcloudflare.pipelines.v1_pipelines

Fields​

The following fields are returned by SELECT queries:

Indicates a successfully retrieved Pipeline.

NameDatatypeDescription
idstringIndicates a unique identifier for this pipeline.
namestringIndicates the name of the Pipeline.
created_atstring
failure_reasonstringIndicates the reason for the failure of the Pipeline.
modified_atstring
sqlstringSpecifies SQL for the Pipeline processing flow.
statusstringIndicates the current status of the Pipeline.
tablesarrayList of streams and sinks used by this pipeline.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_accountselectaccount_id, pipeline_idGet Pipelines Details.
listselectaccount_idpage, per_pageList/Filter Pipelines in Account.
create_v1insertaccount_id, name, sqlCreate a new Pipeline.

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_idstring
pagenumber
per_pagenumber

SELECT examples​

Get Pipelines Details.

SELECT
id,
name,
created_at,
failure_reason,
modified_at,
sql,
status,
tables
FROM cloudflare.pipelines.v1_pipelines
WHERE account_id = '{{ account_id }}' -- required
AND pipeline_id = '{{ pipeline_id }}' -- required
;

INSERT examples​

Create a new Pipeline.

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