action_groups
Creates, updates, deletes, gets or lists a action_groups
resource.
Overview
Name | action_groups |
Type | Resource |
Id | azure.monitor.action_groups |
Fields
- vw_action_groups
- action_groups
Name | Datatype | Description |
---|---|---|
id | text | The resource Id. |
name | text | The name of the resource. |
actionGroupName | text | field from the properties object |
action_group_id | text | field from the properties object |
location | text | The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions. |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | The tags of the resource. |
type | text | The type of the resource. |
webhook_properties | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The resource Id. |
name | string | The name of the resource. |
location | string | The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions. |
properties | object | A pointer to an Azure Action Group. |
tags | object | The tags of the resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | actionGroupName, resourceGroupName, subscriptionId | Get an action group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get a list of all action groups in a resource group. |
list_by_subscription_id | SELECT | subscriptionId | Get a list of all action groups in a subscription. |
create_or_update | INSERT | actionGroupName, resourceGroupName, subscriptionId | Create a new action group or update an existing one. |
delete | DELETE | actionGroupName, resourceGroupName, subscriptionId | Delete an action group. |
update | UPDATE | actionGroupName, resourceGroupName, subscriptionId | Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. |
enable_receiver | EXEC | actionGroupName, resourceGroupName, subscriptionId, data__receiverName | Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. |
reconcile_nsp | EXEC | actionGroupName, networkSecurityPerimeterConfigurationName, resourceGroupName, subscriptionId | Reconciles a specified NSP configuration for specified action group. |
SELECT
examples
Get a list of all action groups in a subscription.
- vw_action_groups
- action_groups
SELECT
id,
name,
actionGroupName,
action_group_id,
location,
resourceGroupName,
subscriptionId,
tags,
type,
webhook_properties
FROM azure.monitor.vw_action_groups
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.monitor.action_groups
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new action_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.monitor.action_groups (
actionGroupName,
resourceGroupName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ actionGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: actionGroupId
value: string
- name: webhookProperties
value: string
UPDATE
example
Updates a action_groups
resource.
/*+ update */
UPDATE azure.monitor.action_groups
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
actionGroupName = '{{ actionGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified action_groups
resource.
/*+ delete */
DELETE FROM azure.monitor.action_groups
WHERE actionGroupName = '{{ actionGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';