AlertDefinitionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient's
<xref:alert_definitions> attribute.
- Inheritance
-
builtins.objectAlertDefinitionsOperations
Constructor
AlertDefinitionsOperations(*args, **kwargs)
Methods
get |
Get the specified alert definition. |
list_for_scope |
Gets alert definitions for a resource scope. |
get
Get the specified alert definition.
get(scope: str, alert_definition_id: str, **kwargs: Any) -> AlertDefinition
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert definition. 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_definition_id
Required
|
The name of the alert definition to get. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
AlertDefinition or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_for_scope
Gets alert definitions for a resource scope.
list_for_scope(scope: str, **kwargs: Any) -> Iterable[AlertDefinition]
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert definition. 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 AlertDefinition 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