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

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.

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.

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

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.v2019_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2019_03_01\\models\\__init__.py'>