Skip to main content

automations

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

Overview

Nameautomations
TypeResource
Idazure.security.automations

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
actionstextfield from the properties object
automationNametextfield from the properties object
is_enabledtextfield from the properties object
resourceGroupNametextfield from the properties object
scopestextfield from the properties object
sourcestextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationName, resourceGroupName, subscriptionIdRetrieves information about the model of a security automation.
listSELECTsubscriptionIdLists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the security automations in the specified resource group. Use the 'nextLink' property in the response to get the next page of security automations for the specified resource group.
create_or_updateINSERTautomationName, resourceGroupName, subscriptionIdCreates or updates a security automation. If a security automation is already created and a subsequent request is issued for the same automation id, then it will be updated.
deleteDELETEautomationName, resourceGroupName, subscriptionIdDeletes a security automation.
updateUPDATEautomationName, resourceGroupName, subscriptionIdUpdates a security automation
validateEXECautomationName, resourceGroupName, subscriptionIdValidates the security automation model before create or update. Any validation errors are returned to the client.

SELECT examples

Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.

SELECT
description,
actions,
automationName,
is_enabled,
resourceGroupName,
scopes,
sources,
subscriptionId
FROM azure.security.vw_automations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.automations (
automationName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ automationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a automations resource.

/*+ update */
UPDATE azure.security.automations
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
automationName = '{{ automationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified automations resource.

/*+ delete */
DELETE FROM azure.security.automations
WHERE automationName = '{{ automationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';