AlertConfigurationsOperations 類別
- 繼承
-
builtins.objectAlertConfigurationsOperations
建構函式
AlertConfigurationsOperations(*args, **kwargs)
方法
get |
取得指定的警示組態。 |
list_for_scope |
取得資源範圍的警示組態。 |
update |
更新警示組態。 |
get
取得指定的警示組態。
async get(scope: str, alert_id: str, **kwargs: Any) -> AlertConfiguration
參數
- scope
- str
必要
警示設定的範圍。 範圍可以是任何 REST 資源實例。 例如,針對訂用帳戶使用 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' 資源群組的 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}',以及資源的 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'。 必要。
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
AlertConfiguration 或 cls 的結果 (回應)
傳回類型
例外狀況
list_for_scope
取得資源範圍的警示組態。
list_for_scope(scope: str, **kwargs: Any) -> AsyncIterable[AlertConfiguration]
參數
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
例如 AlertConfiguration 實例或 cls (回應結果的反覆運算器)
傳回類型
例外狀況
update
更新警示組態。
async update(scope: str, alert_id: str, parameters: _models.AlertConfiguration, *, content_type: str = 'application/json', **kwargs: Any) -> None
參數
- content_type
- str
本文參數內容類型。 已知值為:'application/json'。 預設值為 [無]。
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
無或 cls (回應的結果)
傳回類型
例外狀況
屬性
models
models = <module 'azure.mgmt.authorization.v2022_08_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2022_08_01_preview\\models\\__init__.py'>