Skip to main content

dag

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

Overview

Namedag
TypeResource
Idcloudflare.workflows.dag

Fields

The following fields are returned by SELECT queries:

Get the parsed DAG for a specific workflow version.

NameDatatypeDescription
idstring (uuid)
workflow_idstring (uuid)
class_namestring
created_onstring (date-time)
dagobject
modified_onstring (date-time)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectworkflow_name, version_id, account_idRetrieves the directed acyclic graph (DAG) representation of a workflow version.

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.
version_idstring (uuid)
workflow_namestringThe Workflow name.

SELECT examples

Retrieves the directed acyclic graph (DAG) representation of a workflow version.

SELECT
id,
workflow_id,
class_name,
created_on,
dag,
modified_on
FROM cloudflare.workflows.dag
WHERE workflow_name = '{{ workflow_name }}' -- required
AND version_id = '{{ version_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;