AlertIncidentsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient's
<xref:alert_incidents> attribute.
- Inheritance
-
builtins.objectAlertIncidentsOperations
Constructor
AlertIncidentsOperations(*args, **kwargs)
Methods
get |
Get the specified alert incident. |
list_for_scope |
Gets alert incidents for a resource scope. |
remediate |
Remediate an alert incident. |
get
Get the specified alert incident.
get(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> AlertIncident
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert incident. The scope can be any REST resource instance. For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. Required. |
alert_id
Required
|
The name of the alert. Required. |
alert_incident_id
Required
|
The name of the alert incident to get. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
AlertIncident or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_for_scope
Gets alert incidents for a resource scope.
list_for_scope(scope: str, alert_id: str, **kwargs: Any) -> Iterable[AlertIncident]
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert incident. Required. |
alert_id
Required
|
The name of the alert. 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 AlertIncident or the result of cls(response) |
Exceptions
Type | Description |
---|---|
remediate
Remediate an alert incident.
remediate(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert incident. Required. |
alert_id
Required
|
The name of the alert. Required. |
alert_incident_id
Required
|
The name of the alert incident to remediate. 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 |
---|---|
Attributes
models
models = <module 'azure.mgmt.authorization.v2022_08_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2022_08_01_preview\\models\\__init__.py'>
Azure SDK for Python