azure.mgmt.authorization.v2022_08_01_preview.operations module¶
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’salert_configurationsattribute.Get the specified alert configuration.
- Parameters
scope (str) – 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 (str) – The name of the alert configuration to get. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
AlertConfiguration or the result of cls(response)
- Return type
- Raises
Gets alert configurations for a resource scope.
-
update(scope: str, alert_id: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any) → None Update an alert configuration.
- Parameters
scope (str) – The scope of the alert configuration. Required.
alert_id (str) – The name of the alert configuration to update. Required.
parameters (AlertConfiguration or IO) – Parameters for the alert configuration. Is either a AlertConfiguration type or a IO type. Required.
- Keyword Arguments
- Returns
None or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’salert_definitionsattribute.Get the specified alert definition.
- Parameters
scope (str) – 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 (str) – The name of the alert definition to get. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
AlertDefinition or the result of cls(response)
- Return type
- Raises
Gets alert definitions for a resource scope.
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’salert_incidentsattribute.Get the specified alert incident.
- Parameters
scope (str) – 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 (str) – The name of the alert. Required.
alert_incident_id (str) – The name of the alert incident to get. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
AlertIncident or the result of cls(response)
- Return type
- Raises
Gets alert incidents for a resource scope.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either AlertIncident or the result of cls(response)
- Return type
- Raises
Remediate an alert incident.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
None or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’salert_operationattribute.Get the specified alert operation.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
AlertOperationResult or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’salertsattribute.Refresh an alert.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of LROPoller that returns either AlertOperationResult or the result of cls(response)
- Return type
- Raises
Refresh all alerts for a resource scope.
- Parameters
scope (str) – The scope of the alert. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of LROPoller that returns either AlertOperationResult or the result of cls(response)
- Return type
- Raises
Get the specified alert.
- Parameters
scope (str) – The scope of the alert. 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 (str) – The name of the alert to get. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
Alert or the result of cls(response)
- Return type
- Raises
Gets alerts for a resource scope.
-
update(scope: str, alert_id: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any) → None Update an alert.
- Parameters
- Keyword Arguments
- Returns
None or the result of cls(response)
- Return type
- Raises