共用方式為


AlertDefinitionsOperations 類別

警告

請勿直接具現化此類別。

相反地,您應該透過 存取下列作業

AuthorizationManagementClient's

<xref:alert_definitions> 屬性。

繼承
builtins.object
AlertDefinitionsOperations

建構函式

AlertDefinitionsOperations(*args, **kwargs)

方法

get

取得指定的警示定義。

list_for_scope

取得資源範圍的警示定義。

get

取得指定的警示定義。

get(scope: str, alert_definition_id: str, **kwargs: Any) -> AlertDefinition

參數

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-type}/{resource-type}/{resource-name}' 。 必要。

alert_definition_id
str
必要

要取得的警示定義名稱。 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

AlertDefinition 或 cls (回應的結果)

傳回類型

例外狀況

list_for_scope

取得資源範圍的警示定義。

list_for_scope(scope: str, **kwargs: Any) -> Iterable[AlertDefinition]

參數

scope
str
必要

警示定義的範圍。 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

反覆運算器,例如 AlertDefinition 的實例或 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'>