AlertsSuppressionRulesOperations Class
AlertsSuppressionRulesOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectAlertsSuppressionRulesOperations
Constructor
AlertsSuppressionRulesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| delete |
Delete dismiss alert rule for this subscription. |
| get |
Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription. |
| list |
List of all the dismiss rules for the given subscription. |
| update |
Update existing rule or create new rule if it doesn't exist. |
delete
Delete dismiss alert rule for this subscription.
async delete(alerts_suppression_rule_name: str, **kwargs) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
async get(alerts_suppression_rule_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.AlertsSuppressionRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AlertsSuppressionRule, or the result of cls(response)
Return type
Exceptions
list
List of all the dismiss rules for the given subscription.
list(alert_type: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.AlertsSuppressionRulesList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AlertsSuppressionRulesList or the result of cls(response)
Return type
Exceptions
update
Update existing rule or create new rule if it doesn't exist.
async update(alerts_suppression_rule_name: str, alerts_suppression_rule: azure.mgmt.security.models._models_py3.AlertsSuppressionRule, **kwargs) -> azure.mgmt.security.models._models_py3.AlertsSuppressionRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AlertsSuppressionRule, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>
Feedback
Submit and view feedback for