ArmMySqlModelFactory.MySqlServerSecurityAlertPolicyData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MySqlServerSecurityAlertPolicyData.
public static Azure.ResourceManager.MySql.MySqlServerSecurityAlertPolicyData MySqlServerSecurityAlertPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.MySql.Models.MySqlServerSecurityAlertPolicyState? 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);
static member MySqlServerSecurityAlertPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.MySql.Models.MySqlServerSecurityAlertPolicyState> * seq<string> * seq<string> * Nullable<bool> * string * string * Nullable<int> -> Azure.ResourceManager.MySql.MySqlServerSecurityAlertPolicyData
Public Shared Function MySqlServerSecurityAlertPolicyData (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 MySqlServerSecurityAlertPolicyState) = 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) As MySqlServerSecurityAlertPolicyData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
Specifies the state of the policy, whether it is enabled or disabled.
- disabledAlerts
- IEnumerable<String>
Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.
- emailAddresses
- IEnumerable<String>
Specifies an array of e-mail addresses to which the alert is sent.
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.
Specifies the number of days to keep in the Threat Detection audit logs.
Returns
A new MySqlServerSecurityAlertPolicyData instance for mocking.
Applies to
Azure SDK for .NET