ActionGroupsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:action_groups> attribute.

Constructor

ActionGroupsOperations(*args, **kwargs)

Methods

begin_create_notifications_at_action_group_resource_level

Send test notifications to a set of provided receivers.

create_or_update

Create a new action group or update an existing one.

delete

Delete an action group.

enable_receiver

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.

get

Get an action group.

get_test_notifications_at_action_group_resource_level

Get the test notifications by the notification id.

list_by_resource_group

Get a list of all action groups in a resource group.

list_by_subscription_id

Get a list of all action groups in a subscription.

update

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

begin_create_notifications_at_action_group_resource_level

Send test notifications to a set of provided receivers.

begin_create_notifications_at_action_group_resource_level(resource_group_name: str, action_group_name: str, notification_request: _models.NotificationRequestBody, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.TestNotificationDetailsResponse]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

notification_request
Required

The notification request body which includes the contact details. Is either a NotificationRequestBody type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either TestNotificationDetailsResponse or the result of cls(response)

Exceptions

Type Description

create_or_update

Create a new action group or update an existing one.

create_or_update(resource_group_name: str, action_group_name: str, action_group: _models.ActionGroupResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ActionGroupResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

action_group
Required

The action group to create or use for the update. Is either a ActionGroupResource type or a IO[bytes] type. Required.

Returns

Type Description

ActionGroupResource or the result of cls(response)

Exceptions

Type Description

delete

Delete an action group.

delete(resource_group_name: str, action_group_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

enable_receiver

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.

enable_receiver(resource_group_name: str, action_group_name: str, enable_request: _models.EnableRequest, *, content_type: str = 'application/json', **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

enable_request
Required

The receiver to re-enable. Is either a EnableRequest type or a IO[bytes] type. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get an action group.

get(resource_group_name: str, action_group_name: str, **kwargs: Any) -> ActionGroupResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

Returns

Type Description

ActionGroupResource or the result of cls(response)

Exceptions

Type Description

get_test_notifications_at_action_group_resource_level

Get the test notifications by the notification id.

get_test_notifications_at_action_group_resource_level(resource_group_name: str, action_group_name: str, notification_id: str, **kwargs: Any) -> TestNotificationDetailsResponse

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

notification_id
Required
str

The notification id. Required.

Returns

Type Description

TestNotificationDetailsResponse or the result of cls(response)

Exceptions

Type Description

list_by_resource_group

Get a list of all action groups in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[ActionGroupResource]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

An iterator like instance of either ActionGroupResource or the result of cls(response)

Exceptions

Type Description

list_by_subscription_id

Get a list of all action groups in a subscription.

list_by_subscription_id(**kwargs: Any) -> ItemPaged[ActionGroupResource]

Returns

Type Description

An iterator like instance of either ActionGroupResource or the result of cls(response)

Exceptions

Type Description

update

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

update(resource_group_name: str, action_group_name: str, action_group_patch: _models.ActionGroupPatchBody, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ActionGroupResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

action_group_name
Required
str

The name of the action group. Required.

action_group_patch
Required

Parameters supplied to the operation. Is either a ActionGroupPatchBody type or a IO[bytes] type. Required.

Returns

Type Description

ActionGroupResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.monitor.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv181\\Lib\\site-packages\\azure\\mgmt\\monitor\\models\\__init__.py'>