Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idazure.logic.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id.
namestringGets the resource name.
accessControlobjectThe access control configuration.
accessEndpointstringGets the access endpoint.
changedTimestring (date-time)Gets the changed time.
createdTimestring (date-time)Gets the created time.
definitionobjectThe definition.
endpointsConfigurationobjectThe endpoints configuration.
identityobjectManaged service identity properties.
integrationAccountobjectThe resource reference. Variables are only populated by the server, and will be ignored when sending a request.
integrationServiceEnvironmentobjectThe resource reference. Variables are only populated by the server, and will be ignored when sending a request.
locationstringThe resource location.
parametersobjectThe parameters.
provisioningStatestringGets the provisioning state. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", "Unregistered", "Completed", "Renewing", "Pending", "Waiting", and "InProgress".
skuobjectThe sku.
statestringThe state. Known values are: "NotSpecified", "Completed", "Enabled", "Disabled", "Deleted", and "Suspended".
tagsobjectThe resource tags.
typestringGets the resource type.
versionstringGets the version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workflow_name, subscription_idGets a workflow.
list_by_resource_groupselectresource_group_name, subscription_id$top, $filterGets a list of workflows by resource group.
list_by_subscriptionselectsubscription_id$top, $filterGets a list of workflows by subscription.
create_or_updateinsertresource_group_name, workflow_name, subscription_idCreates or updates a workflow.
updateupdateresource_group_name, workflow_name, subscription_idUpdates a workflow.
create_or_updatereplaceresource_group_name, workflow_name, subscription_idCreates or updates a workflow.
deletedeleteresource_group_name, workflow_name, subscription_idDeletes a workflow.
list_callback_urlexecresource_group_name, workflow_name, subscription_idGet the workflow callback Url.
list_swaggerexecresource_group_name, workflow_name, subscription_idGets an OpenAPI definition for the workflow.
disableexecresource_group_name, workflow_name, subscription_idDisables a workflow.
enableexecresource_group_name, workflow_name, subscription_idEnables a workflow.
generate_upgraded_definitionexecresource_group_name, workflow_name, subscription_idGenerates the upgraded definition for a workflow.
moveexecresource_group_name, workflow_name, subscription_idMoves an existing workflow.
regenerate_access_keyexecresource_group_name, workflow_name, subscription_idRegenerates the callback URL access key for request triggers.
validate_by_resource_groupexecresource_group_name, workflow_name, subscription_idValidates the workflow.
validate_by_locationexecresource_group_name, location, workflow_name, subscription_idValidates the workflow definition.

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

SELECT examples

Gets a workflow.

SELECT
id,
name,
accessControl,
accessEndpoint,
changedTime,
createdTime,
definition,
endpointsConfiguration,
identity,
integrationAccount,
integrationServiceEnvironment,
location,
parameters,
provisioningState,
sku,
state,
tags,
type,
version
FROM azure.logic.workflows
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workflow_name = '{{ workflow_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workflow.

INSERT INTO azure.logic.workflows (
location,
tags,
identity,
properties,
resource_group_name,
workflow_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workflow_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
tags,
type
;

UPDATE examples

Updates a workflow.

UPDATE azure.logic.workflows
SET
-- No updatable properties
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workflow_name = '{{ workflow_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
tags,
type;

REPLACE examples

Creates or updates a workflow.

REPLACE azure.logic.workflows
SET
location = '{{ location }}',
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workflow_name = '{{ workflow_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
tags,
type;

DELETE examples

Deletes a workflow.

DELETE FROM azure.logic.workflows
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workflow_name = '{{ workflow_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Get the workflow callback Url.

EXEC azure.logic.workflows.list_callback_url 
@resource_group_name='{{ resource_group_name }}' --required,
@workflow_name='{{ workflow_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"notAfter": "{{ notAfter }}",
"keyType": "{{ keyType }}"
}'
;