Skip to main content

workflow_triggers

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

Overview

Nameworkflow_triggers
TypeResource
Idazure.logic.workflow_triggers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id.
namestringGets the workflow trigger name.
changedTimestring (date-time)Gets the changed time.
createdTimestring (date-time)Gets the created time.
lastExecutionTimestring (date-time)Gets the last execution time.
nextExecutionTimestring (date-time)Gets the next execution time.
provisioningStatestringGets the provisioning state. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", "Unregistered", and "Completed".
recurrenceobjectGets the workflow trigger recurrence.
statestringGets the state. Known values are: "NotSpecified", "Completed", "Enabled", "Disabled", "Deleted", and "Suspended".
statusstringGets the status. Known values are: "NotSpecified", "Paused", "Running", "Waiting", "Succeeded", "Skipped", "Suspended", "Cancelled", "Failed", "Faulted", "TimedOut", "Aborted", and "Ignored".
typestringGets the workflow trigger type.
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, trigger_name, subscription_idGets a workflow trigger.
listselectresource_group_name, workflow_name, subscription_id$top, $filterGets a list of workflow triggers.
list_callback_urlexecresource_group_name, workflow_name, trigger_name, subscription_idGet the callback URL for a workflow trigger.
get_schema_jsonexecresource_group_name, workflow_name, trigger_name, subscription_idGet the trigger schema as JSON.
resetexecresource_group_name, workflow_name, trigger_name, subscription_idResets a workflow trigger.
runexecresource_group_name, workflow_name, trigger_name, subscription_idRuns a workflow trigger.
set_stateexecresource_group_name, workflow_name, trigger_name, subscription_id, sourceSets the state of a workflow trigger.

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.
subscription_idstring
trigger_namestringThe workflow trigger name. Required.
workflow_namestringThe workflow name. Required.
$filterstringThe filter to apply on the operation. Default value is None.
$topintegerThe number of items to be included in the result. Default value is None.

SELECT examples

Gets a workflow trigger.

SELECT
id,
name,
changedTime,
createdTime,
lastExecutionTime,
nextExecutionTime,
provisioningState,
recurrence,
state,
status,
type,
workflow
FROM azure.logic.workflow_triggers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workflow_name = '{{ workflow_name }}' -- required
AND trigger_name = '{{ trigger_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Get the callback URL for a workflow trigger.

EXEC azure.logic.workflow_triggers.list_callback_url 
@resource_group_name='{{ resource_group_name }}' --required,
@workflow_name='{{ workflow_name }}' --required,
@trigger_name='{{ trigger_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;