AlertConfigurationsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient's
<xref:alert_configurations> attribute.
- Inheritance
-
builtins.objectAlertConfigurationsOperations
Constructor
AlertConfigurationsOperations(*args, **kwargs)
Methods
get |
Get the specified alert configuration. |
list_for_scope |
Gets alert configurations for a resource scope. |
update |
Update an alert configuration. |
get
Get the specified alert configuration.
get(scope: str, alert_id: str, **kwargs: Any) -> AlertConfiguration
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert configuration. 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 configuration to get. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
AlertConfiguration or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_for_scope
Gets alert configurations for a resource scope.
list_for_scope(scope: str, **kwargs: Any) -> Iterable[AlertConfiguration]
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert configuration. 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 AlertConfiguration or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Update an alert configuration.
update(scope: str, alert_id: str, parameters: _models.AlertConfiguration, *, content_type: str = 'application/json', **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the alert configuration. Required. |
alert_id
Required
|
The name of the alert configuration to update. Required. |
parameters
Required
|
Parameters for the alert configuration. Is either a AlertConfiguration type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
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 |
---|---|
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