Skip to main content

workflow_runs

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

Overview

Nameworkflow_runs
TypeResource
Idazure.web.workflow_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
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". (NotSpecified, Paused, Running, Waiting, Succeeded, Skipped, Suspended, Cancelled, Failed, Faulted, TimedOut, Aborted, Ignored)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
triggerobjectGets the fired trigger.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
waitEndTimestring (date-time)Gets the wait end time.
workflowobjectGets the reference to workflow version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, name, workflow_name, run_name, subscription_idGets a workflow run.
listselectresource_group_name, name, workflow_name, subscription_id$top, $filterGets a list of workflow runs.
cancelexecresource_group_name, 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
namestringSite name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. 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,
systemData,
trigger,
type,
waitEndTime,
workflow
FROM azure.web.workflow_runs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ 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.web.workflow_runs.cancel 
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@workflow_name='{{ workflow_name }}' --required,
@run_name='{{ run_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;