Skip to main content

workflow_triggers

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

Overview

Nameworkflow_triggers
TypeResource
Idazure.web.workflow_triggers

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.
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". (NotSpecified, Accepted, Running, Ready, Creating, Created, Deleting, Deleted, Canceled, Failed, Succeeded, Moving, Updating, Registering, Registered, Unregistering, Unregistered, Completed)
recurrenceobjectGets the workflow trigger recurrence.
statestringGets the state. Known values are: "NotSpecified", "Completed", "Enabled", "Disabled", "Deleted", and "Suspended". (NotSpecified, Completed, Enabled, Disabled, Deleted, Suspended)
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.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
workflowobjectGets the reference to workflow.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, name, workflow_name, trigger_name, subscription_idGets a workflow trigger.
listselectresource_group_name, name, workflow_name, subscription_id$top, $filterGets a list of workflow triggers.
list_callback_urlexecresource_group_name, name, workflow_name, trigger_name, subscription_idGet the callback URL for a workflow trigger.
get_schema_jsonexecresource_group_name, name, workflow_name, trigger_name, subscription_idGet the trigger schema as JSON.
runexecresource_group_name, name, workflow_name, trigger_name, subscription_idRuns 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
namestringSite name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. 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,
systemData,
type,
workflow
FROM azure.web.workflow_triggers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ 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.web.workflow_triggers.list_callback_url 
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@workflow_name='{{ workflow_name }}' --required,
@trigger_name='{{ trigger_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;