Skip to main content

actions

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

Overview

Nameactions
TypeResource
Idazure.security_insight.actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
etagstringEtag of the action.
logicAppResourceIdstringLogic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
workflowIdstringThe name of the logic app's workflow.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, rule_id, action_id, subscription_idGets the action of alert rule.
list_by_alert_ruleselectresource_group_name, workspace_name, rule_id, subscription_idGets all actions of alert rule.
create_or_updateinsertresource_group_name, workspace_name, rule_id, action_id, subscription_idCreates or updates the action of alert rule.
create_or_updatereplaceresource_group_name, workspace_name, rule_id, action_id, subscription_idCreates or updates the action of alert rule.
deletedeleteresource_group_name, workspace_name, rule_id, action_id, subscription_idDelete the action of alert rule.

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
action_idstringAction ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
rule_idstringAlert rule ID. Required.
subscription_idstring
workspace_namestringThe name of the monitor workspace. Required.

SELECT examples

Gets the action of alert rule.

SELECT
id,
name,
etag,
logicAppResourceId,
systemData,
type,
workflowId
FROM azure.security_insight.actions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND rule_id = '{{ rule_id }}' -- required
AND action_id = '{{ action_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the action of alert rule.

INSERT INTO azure.security_insight.actions (
etag,
properties,
resource_group_name,
workspace_name,
rule_id,
action_id,
subscription_id
)
SELECT
'{{ etag }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ rule_id }}',
'{{ action_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates the action of alert rule.

REPLACE azure.security_insight.actions
SET
etag = '{{ etag }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND rule_id = '{{ rule_id }}' --required
AND action_id = '{{ action_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Delete the action of alert rule.

DELETE FROM azure.security_insight.actions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND rule_id = '{{ rule_id }}' --required
AND action_id = '{{ action_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;