你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagedDatabaseSecurityAlertPolicy 构造函数

定义

重载

ManagedDatabaseSecurityAlertPolicy()

初始化 ManagedDatabaseSecurityAlertPolicy 类的新实例。

ManagedDatabaseSecurityAlertPolicy(SecurityAlertPolicyState, String, String, String, IList<String>, IList<String>, Nullable<Boolean>, String, String, Nullable<Int32>, Nullable<DateTime>)

初始化 ManagedDatabaseSecurityAlertPolicy 类的新实例。

ManagedDatabaseSecurityAlertPolicy()

初始化 ManagedDatabaseSecurityAlertPolicy 类的新实例。

public ManagedDatabaseSecurityAlertPolicy ();
Public Sub New ()

适用于

ManagedDatabaseSecurityAlertPolicy(SecurityAlertPolicyState, String, String, String, IList<String>, IList<String>, Nullable<Boolean>, String, String, Nullable<Int32>, Nullable<DateTime>)

初始化 ManagedDatabaseSecurityAlertPolicy 类的新实例。

public ManagedDatabaseSecurityAlertPolicy (Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyState state, string id = default, string name = default, string type = default, System.Collections.Generic.IList<string> disabledAlerts = default, System.Collections.Generic.IList<string> emailAddresses = default, bool? emailAccountAdmins = default, string storageEndpoint = default, string storageAccountAccessKey = default, int? retentionDays = default, DateTime? creationTime = default);
new Microsoft.Azure.Management.Sql.Models.ManagedDatabaseSecurityAlertPolicy : Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyState * string * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Nullable<bool> * string * string * Nullable<int> * Nullable<DateTime> -> Microsoft.Azure.Management.Sql.Models.ManagedDatabaseSecurityAlertPolicy
Public Sub New (state As SecurityAlertPolicyState, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional disabledAlerts As IList(Of String) = Nothing, Optional emailAddresses As IList(Of String) = Nothing, Optional emailAccountAdmins As Nullable(Of Boolean) = Nothing, Optional storageEndpoint As String = Nothing, Optional storageAccountAccessKey As String = Nothing, Optional retentionDays As Nullable(Of Integer) = Nothing, Optional creationTime As Nullable(Of DateTime) = Nothing)

参数

state
SecurityAlertPolicyState

指定策略的状态,无论是启用或禁用策略,还是尚未对特定数据库应用策略。 可能的值包括:“New”、“Enabled”、“Disabled”

id
String

资源 ID。

name
String

资源名称。

type
String

资源类型。

disabledAlerts
IList<String>

指定禁用的警报数组。 允许的值为:Sql_Injection、Sql_Injection_Vulnerability、Access_Anomaly、Data_Exfiltration、Unsafe_Action、Brute_Force

emailAddresses
IList<String>

指定警报要发送到的电子邮件地址数组。

emailAccountAdmins
Nullable<Boolean>

指定将警报发送给帐户管理员。

storageEndpoint
String

指定 blob 存储终结点 (例如 https://MyAccount.blob.core.windows.net) 。 此 Blob 存储将保存所有威胁检测审核日志。

storageAccountAccessKey
String

指定威胁检测审核存储帐户的标识符密钥。

retentionDays
Nullable<Int32>

指定要在威胁检测审核日志中保留的天数。

creationTime
Nullable<DateTime>

指定策略的 UTC 创建时间。

适用于