Skip to main content

triggers

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

Overview

Nametriggers
TypeResource
Idazure.data_factory.triggers

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
descriptiontextfield from the properties object
annotationstextfield from the properties object
etagtextEtag identifies change in the resource.
factoryNametextfield from the properties object
resourceGroupNametextfield from the properties object
runtime_statetextfield from the properties object
subscriptionIdtextfield from the properties object
triggerNametextfield from the properties object
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfactoryName, resourceGroupName, subscriptionId, triggerNameGets a trigger.
list_by_factorySELECTfactoryName, resourceGroupName, subscriptionIdLists triggers.
create_or_updateINSERTfactoryName, resourceGroupName, subscriptionId, triggerName, data__propertiesCreates or updates a trigger.
deleteDELETEfactoryName, resourceGroupName, subscriptionId, triggerNameDeletes a trigger.
query_by_factoryEXECfactoryName, resourceGroupName, subscriptionIdQuery triggers.
startEXECfactoryName, resourceGroupName, subscriptionId, triggerNameStarts a trigger.
stopEXECfactoryName, resourceGroupName, subscriptionId, triggerNameStops a trigger.
subscribe_to_eventsEXECfactoryName, resourceGroupName, subscriptionId, triggerNameSubscribe event trigger to events.
unsubscribe_from_eventsEXECfactoryName, resourceGroupName, subscriptionId, triggerNameUnsubscribe event trigger from events.

SELECT examples

Lists triggers.

SELECT
id,
name,
description,
annotations,
etag,
factoryName,
resourceGroupName,
runtime_state,
subscriptionId,
triggerName,
type
FROM azure.data_factory.vw_triggers
WHERE factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new triggers resource.

/*+ create */
INSERT INTO azure.data_factory.triggers (
factoryName,
resourceGroupName,
subscriptionId,
triggerName,
data__properties,
properties
)
SELECT
'{{ factoryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ triggerName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified triggers resource.

/*+ delete */
DELETE FROM azure.data_factory.triggers
WHERE factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND triggerName = '{{ triggerName }}';