Skip to main content

actions

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

Overview

Nameactions
TypeResource
Idazure.sentinel.actions

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
actionIdtextfield from the properties object
etagtextEtag of the action.
logic_app_resource_idtextfield from the properties object
resourceGroupNametextfield from the properties object
ruleIdtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
workflow_idtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTactionId, resourceGroupName, ruleId, subscriptionId, workspaceNameGets the action of alert rule.
list_by_alert_ruleSELECTresourceGroupName, ruleId, subscriptionId, workspaceNameGets all actions of alert rule.
create_or_updateINSERTactionId, resourceGroupName, ruleId, subscriptionId, workspaceNameCreates or updates the action of alert rule.
deleteDELETEactionId, resourceGroupName, ruleId, subscriptionId, workspaceNameDelete the action of alert rule.

SELECT examples

Gets all actions of alert rule.

SELECT
id,
name,
actionId,
etag,
logic_app_resource_id,
resourceGroupName,
ruleId,
subscriptionId,
system_data,
type,
workflow_id,
workspaceName
FROM azure.sentinel.vw_actions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sentinel.actions (
actionId,
resourceGroupName,
ruleId,
subscriptionId,
workspaceName,
etag,
properties
)
SELECT
'{{ actionId }}',
'{{ resourceGroupName }}',
'{{ ruleId }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ etag }}',
'{{ properties }}'
;

DELETE example

Deletes the specified actions resource.

/*+ delete */
DELETE FROM azure.sentinel.actions
WHERE actionId = '{{ actionId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';