共用方式為


ManagedServerSecurityAlertPolicy 類別

受控伺服器安全性警示原則。

變數只會由伺服器填入,而且會在傳送要求時予以忽略。

繼承
azure.mgmt.sql.models._models_py3.ProxyResource
ManagedServerSecurityAlertPolicy

建構函式

ManagedServerSecurityAlertPolicy(*, state: str | SecurityAlertsPolicyState | None = None, disabled_alerts: List[str] | None = None, email_addresses: List[str] | None = None, email_account_admins: bool | None = None, storage_endpoint: str | None = None, storage_account_access_key: str | None = None, retention_days: int | None = None, **kwargs)

參數

名稱 Description
state
必要

指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。 可能的值包括:「Enabled」、「Disabled」。

disabled_alerts
必要

指定已停用的警示陣列。 允許的值為:Sql_Injection、Sql_Injection_Vulnerability、Access_Anomaly、Data_Exfiltration、Unsafe_Action Brute_Force。

email_addresses
必要

指定傳送警示的電子郵件地址陣列。

email_account_admins
必要

指定警示會傳送給帳戶管理員。

storage_endpoint
必要
str

指定 blob 儲存體端點 (例如 https://MyAccount.blob.core.windows.net) 。 此 Blob 儲存體會保存所有威脅偵測稽核記錄。

storage_account_access_key
必要
str

指定威脅偵測稽核儲存體帳戶的識別碼金鑰。

retention_days
必要
int

指定要保留在威脅偵測稽核記錄中的天數。

僅限關鍵字參數

名稱 Description
state
必要
disabled_alerts
必要
email_addresses
必要
email_account_admins
必要
storage_endpoint
必要
storage_account_access_key
必要
retention_days
必要

變數

名稱 Description
id
str

資源識別碼。

name
str

資源名稱。

type
str

資源類型。

system_data

SecurityAlertPolicyResource 的 SystemData。

creation_time

指定原則的 UTC 建立時間。