共用方式為


ArmSqlModelFactory.ManagedDatabaseSecurityAlertPolicyData Method

Definition

Initializes a new instance of ManagedDatabaseSecurityAlertPolicyData.

public static Azure.ResourceManager.Sql.ManagedDatabaseSecurityAlertPolicyData ManagedDatabaseSecurityAlertPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Sql.Models.SecurityAlertPolicyState? state = default, System.Collections.Generic.IEnumerable<string> disabledAlerts = default, System.Collections.Generic.IEnumerable<string> emailAddresses = default, bool? sendToEmailAccountAdmins = default, string storageEndpoint = default, string storageAccountAccessKey = default, int? retentionDays = default, DateTimeOffset? createdOn = default);
static member ManagedDatabaseSecurityAlertPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Sql.Models.SecurityAlertPolicyState> * seq<string> * seq<string> * Nullable<bool> * string * string * Nullable<int> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Sql.ManagedDatabaseSecurityAlertPolicyData
Public Shared Function ManagedDatabaseSecurityAlertPolicyData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional state As Nullable(Of SecurityAlertPolicyState) = Nothing, Optional disabledAlerts As IEnumerable(Of String) = Nothing, Optional emailAddresses As IEnumerable(Of String) = Nothing, Optional sendToEmailAccountAdmins As Nullable(Of Boolean) = Nothing, Optional storageEndpoint As String = Nothing, Optional storageAccountAccessKey As String = Nothing, Optional retentionDays As Nullable(Of Integer) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing) As ManagedDatabaseSecurityAlertPolicyData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

state
Nullable<SecurityAlertPolicyState>

Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.

disabledAlerts
IEnumerable<String>

Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force.

emailAddresses
IEnumerable<String>

Specifies an array of e-mail addresses to which the alert is sent.

sendToEmailAccountAdmins
Nullable<Boolean>

Specifies that the alert is sent to the account administrators.

storageEndpoint
String

Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.

storageAccountAccessKey
String

Specifies the identifier key of the Threat Detection audit storage account.

retentionDays
Nullable<Int32>

Specifies the number of days to keep in the Threat Detection audit logs.

createdOn
Nullable<DateTimeOffset>

Specifies the UTC creation time of the policy.

Returns

A new ManagedDatabaseSecurityAlertPolicyData instance for mocking.

Applies to