graph
Creates, updates, deletes, gets or lists a graph resource.
Overview
| Name | graph |
| Type | Resource |
| Id | cloudflare.workflows.graph |
Fields
The following fields are returned by SELECT queries:
- list
Get the parsed graph for a specific workflow version.
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | |
workflow_id | string (uuid) | |
class_name | string | |
created_on | string (date-time) | |
graph | object | Versioned workflow graph payload. |
modified_on | string (date-time) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | workflow_name, version_id, account_id | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
version_id | string (uuid) | |
workflow_name | string | The Workflow name. |
SELECT examples
- list
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
;