Skip to main content

automation_rules

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

Overview

Nameautomation_rules
TypeResource
Idazure.sentinel.automation_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringEtag of the azure resource
propertiesobjectAutomation rule properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName, automationRuleIdGets the automation rule.
listselectsubscriptionId, resourceGroupName, workspaceNameGets all automation rules.
create_or_updateinsertsubscriptionId, resourceGroupName, workspaceName, automationRuleId, data__propertiesCreates or updates the automation rule.
deletedeletesubscriptionId, resourceGroupName, workspaceName, automationRuleIdDelete the automation 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
automationRuleIdstringAutomation rule ID
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets the automation rule.

SELECT
etag,
properties
FROM azure.sentinel.automation_rules
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND automationRuleId = '{{ automationRuleId }}' -- required
;

INSERT examples

Creates or updates the automation rule.

INSERT INTO azure.sentinel.automation_rules (
data__etag,
data__properties,
subscriptionId,
resourceGroupName,
workspaceName,
automationRuleId
)
SELECT
'{{ etag }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}',
'{{ automationRuleId }}'
RETURNING
etag,
properties
;

DELETE examples

Delete the automation rule.

DELETE FROM azure.sentinel.automation_rules
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND automationRuleId = '{{ automationRuleId }}' --required
;