Skip to main content

workflow_instances

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

Overview

Nameworkflow_instances
TypeResource
Iddatadog.software_delivery.workflow_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectThe attributes of the instance response data.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflow_instanceselectworkflow_id, instance_id, regionGet a specific execution of a given workflow. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
list_workflow_instancesselectworkflow_id, regionpage[size], page[number]List all instances of a given workflow. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
create_workflow_instanceinsertworkflow_id, regionExecute the given workflow. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
cancel_workflow_instanceexecworkflow_id, instance_id, regionCancels a specific execution of a given workflow. 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
instance_idstringThe ID of the workflow instance.
regionstring(default: datadoghq.com)
workflow_idstringThe ID of the workflow.
page[number]integer (int64)Specific page number to return.
page[size]integer (int64)Size for a given page. The maximum allowed value is 100.

SELECT examples

Get a specific execution of a given workflow. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

SELECT
attributes
FROM datadog.software_delivery.workflow_instances
WHERE workflow_id = '{{ workflow_id }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Execute the given workflow. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

INSERT INTO datadog.software_delivery.workflow_instances (
data__meta,
workflow_id,
region
)
SELECT
'{{ meta }}',
'{{ workflow_id }}',
'{{ region }}'
RETURNING
data
;

Lifecycle Methods

Cancels a specific execution of a given workflow. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.

EXEC datadog.software_delivery.workflow_instances.cancel_workflow_instance 
@workflow_id='{{ workflow_id }}' --required,
@instance_id='{{ instance_id }}' --required,
@region='{{ region }}' --required
;