Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Iddatadog.software_delivery.workflows

Fields

The following fields are returned by SELECT queries:

Successfully got a workflow.

NameDatatypeDescription
idstringThe workflow identifier
attributesobjectThe definition of WorkflowDataAttributes object.
relationshipsobjectThe definition of WorkflowDataRelationships object.
typestringThe definition of WorkflowDataType object. (example: workflows)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflowselectworkflow_id, regionGet a workflow by ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
create_workflowinsertregion, data__dataCreate a new workflow, returning the workflow ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
update_workflowupdateworkflow_id, region, data__dataUpdate a workflow by ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
delete_workflowdeleteworkflow_id, regionDelete a workflow by ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

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
regionstring(default: datadoghq.com)
workflow_idstringThe ID of the workflow.

SELECT examples

Get a workflow by ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

SELECT
id,
attributes,
relationships,
type
FROM datadog.software_delivery.workflows
WHERE workflow_id = '{{ workflow_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new workflow, returning the workflow ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

INSERT INTO datadog.software_delivery.workflows (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;

UPDATE examples

Update a workflow by ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

UPDATE datadog.software_delivery.workflows
SET
data__data = '{{ data }}'
WHERE
workflow_id = '{{ workflow_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a workflow by ID. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

DELETE FROM datadog.software_delivery.workflows
WHERE workflow_id = '{{ workflow_id }}' --required
AND region = '{{ region }}' --required
;