Skip to main content

graph

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

Overview

Namegraph
TypeResource
Idcloudflare.workflows.graph

Fields

The following fields are returned by SELECT queries:

Get the parsed graph for a specific workflow version.

NameDatatypeDescription
idstring (uuid)
workflow_idstring (uuid)
class_namestring
created_onstring (date-time)
graphobjectVersioned workflow graph payload.
modified_onstring (date-time)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectworkflow_name, version_id, account_idRetrieves the graph visualization 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 graph visualization of a workflow version.

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