Skip to main content

triggers

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

Overview

Nametriggers
TypeResource
Idazure.data_box_edge.triggers

Fields

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe object name.
kindstringTrigger Kind.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe hierarchical type of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, name, resourceGroupName, subscriptionIdGet a specific trigger by name.
list_by_data_box_edge_deviceSELECTdeviceName, resourceGroupName, subscriptionIdLists all the triggers configured in the device.
create_or_updateINSERTdeviceName, name, resourceGroupName, subscriptionId, data__kindCreates or updates a trigger.
deleteDELETEdeviceName, name, resourceGroupName, subscriptionIdDeletes the trigger on the gateway device.

SELECT examples

Lists all the triggers configured in the device.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.data_box_edge.triggers
WHERE deviceName = '{{ deviceName }}'
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_box_edge.triggers (
deviceName,
name,
resourceGroupName,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ deviceName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified triggers resource.

/*+ delete */
DELETE FROM azure.data_box_edge.triggers
WHERE deviceName = '{{ deviceName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';