Skip to main content

triggers

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

Overview

Nametriggers
TypeResource
Idazure.data_share.triggers

Fields

NameDatatypeDescription
idstringThe resource id of the azure resource
namestringName of the azure resource
kindstringKind of synchronization on trigger.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringType of the azure resource

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, shareSubscriptionName, subscriptionId, triggerNameGet a Trigger in a shareSubscription
list_by_share_subscriptionSELECTaccountName, resourceGroupName, shareSubscriptionName, subscriptionIdList Triggers in a share subscription
createINSERTaccountName, resourceGroupName, shareSubscriptionName, subscriptionId, triggerName, data__kindCreate a Trigger
deleteDELETEaccountName, resourceGroupName, shareSubscriptionName, subscriptionId, triggerNameDelete a Trigger in a shareSubscription

SELECT examples

List Triggers in a share subscription

SELECT
id,
name,
kind,
systemData,
type
FROM azure.data_share.triggers
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareSubscriptionName = '{{ shareSubscriptionName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_share.triggers (
accountName,
resourceGroupName,
shareSubscriptionName,
subscriptionId,
triggerName,
data__kind,
kind
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ shareSubscriptionName }}',
'{{ subscriptionId }}',
'{{ triggerName }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified triggers resource.

/*+ delete */
DELETE FROM azure.data_share.triggers
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareSubscriptionName = '{{ shareSubscriptionName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND triggerName = '{{ triggerName }}';