ActionGroupsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:action_groups> attribute.

Inheritance
builtins.object
ActionGroupsOperations

Constructor

ActionGroupsOperations(*args, **kwargs)

Methods

begin_create_notifications_at_action_group_resource_level

Send test notifications to a set of provided receivers.

begin_create_notifications_at_resource_group_level

Send test notifications to a set of provided receivers.

begin_post_test_notifications

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

Get the test notifications by the notification id.

get_test_notifications_at_action_group_resource_level

Get the test notifications by the notification id.

get_test_notifications_at_resource_group_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 type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

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

Exceptions

Type Description

begin_create_notifications_at_resource_group_level

Send test notifications to a set of provided receivers.

begin_create_notifications_at_resource_group_level(resource_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.

notification_request
Required

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

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

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

Exceptions

Type Description

begin_post_test_notifications

Send test notifications to a set of provided receivers.

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

Parameters

Name Description
notification_request
Required

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

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

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 type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

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.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

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 type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

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.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

ActionGroupResource or the result of cls(response)

Exceptions

Type Description

get_test_notifications

Get the test notifications by the notification id.

get_test_notifications(notification_id: str, **kwargs: Any) -> TestNotificationDetailsResponse

Parameters

Name Description
notification_id
Required
str

The notification id. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

TestNotificationDetailsResponse 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.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

TestNotificationDetailsResponse or the result of cls(response)

Exceptions

Type Description

get_test_notifications_at_resource_group_level

Get the test notifications by the notification id.

get_test_notifications_at_resource_group_level(resource_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.

notification_id
Required
str

The notification id. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

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) -> Iterable[ActionGroupResource]

Parameters

Name Description
resource_group_name
Required
str

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

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

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) -> Iterable[ActionGroupResource]

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

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 type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

ActionGroupResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.monitor.v2021_09_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2021_09_01\\models\\__init__.py'>