次の方法で共有


ActionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SecurityInsights's

<xref:actions> attribute.

Constructor

ActionsOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates the action of alert rule.

delete

Delete the action of alert rule.

get

Gets the action of alert rule.

list_by_alert_rule

Gets all actions of alert rule.

create_or_update

Creates or updates the action of alert rule.

create_or_update(resource_group_name: str, workspace_name: str, rule_id: str, action_id: str, action: ActionRequest, **kwargs: Any) -> ActionResponse

Parameters

Name Description
resource_group_name
Required
str

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

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

action_id
Required
str

Action ID.

action
Required

The action.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

ActionResponse, or the result of cls(response)

Exceptions

Type Description

delete

Delete the action of alert rule.

delete(resource_group_name: str, workspace_name: str, rule_id: str, action_id: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

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

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

action_id
Required
str

Action ID.

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

get

Gets the action of alert rule.

get(resource_group_name: str, workspace_name: str, rule_id: str, action_id: str, **kwargs: Any) -> ActionResponse

Parameters

Name Description
resource_group_name
Required
str

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

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

action_id
Required
str

Action ID.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

ActionResponse, or the result of cls(response)

Exceptions

Type Description

list_by_alert_rule

Gets all actions of alert rule.

list_by_alert_rule(resource_group_name: str, workspace_name: str, rule_id: str, **kwargs: Any) -> Iterable[ActionsList]

Parameters

Name Description
resource_group_name
Required
str

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

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

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 ActionsList or the result of cls(response)

Exceptions

Type Description

Attributes

models

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