Skip to main content

workflow_runs

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

Overview

Nameworkflow_runs
TypeResource
Idazure.logic.workflow_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id.
namestringGets the workflow run name.
codestringGets the code.
correlationobjectThe run correlation.
correlationIdstringGets the correlation id.
endTimestring (date-time)Gets the end time.
errorobjectGets the error.
outputsobjectGets the outputs.
responseobjectGets the response of the flow run.
startTimestring (date-time)Gets the start time.
statusstringGets the status. Known values are: "NotSpecified", "Paused", "Running", "Waiting", "Succeeded", "Skipped", "Suspended", "Cancelled", "Failed", "Faulted", "TimedOut", "Aborted", and "Ignored".
triggerobjectGets the fired trigger.
typestringGets the workflow run type.
waitEndTimestring (date-time)Gets the wait end time.
workflowobjectThe resource reference. Variables are only populated by the server, and will be ignored when sending a request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workflow_name, run_name, subscription_idGets a workflow run.
listselectresource_group_name, workflow_name, subscription_id$top, $filterGets a list of workflow runs.
cancelexecresource_group_name, workflow_name, run_name, subscription_idCancels a workflow run.

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
resource_group_namestringThe resource group name. Required.
run_namestringThe workflow run name. Required.
subscription_idstring
workflow_namestringThe workflow name. Required.
$filterstringThe filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId. Default value is None.
$topintegerThe number of items to be included in the result. Default value is None.

SELECT examples

Gets a workflow run.

SELECT
id,
name,
code,
correlation,
correlationId,
endTime,
error,
outputs,
response,
startTime,
status,
trigger,
type,
waitEndTime,
workflow
FROM azure.logic.workflow_runs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workflow_name = '{{ workflow_name }}' -- required
AND run_name = '{{ run_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Cancels a workflow run.

EXEC azure.logic.workflow_runs.cancel 
@resource_group_name='{{ resource_group_name }}' --required,
@workflow_name='{{ workflow_name }}' --required,
@run_name='{{ run_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;