Show / Hide Table of Contents

    Class DatabaseSecurityAlertPolicy

    Contains information about a database Threat Detection policy.

    Inheritance
    Object
    Resource
    ProxyResource
    DatabaseSecurityAlertPolicy
    Inherited Members
    Resource.Id
    Resource.Name
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Sql.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class DatabaseSecurityAlertPolicy : Microsoft.Azure.Management.Sql.Models.ProxyResource

    Constructors

    DatabaseSecurityAlertPolicy()

    Initializes a new instance of the DatabaseSecurityAlertPolicy class.

    Declaration
    public DatabaseSecurityAlertPolicy ();

    DatabaseSecurityAlertPolicy(SecurityAlertPolicyState, String, String, String, String, String, String, String, Nullable<SecurityAlertPolicyEmailAccountAdmins>, String, String, Nullable<Int32>, Nullable<SecurityAlertPolicyUseServerDefault>)

    Initializes a new instance of the DatabaseSecurityAlertPolicy class.

    Declaration
    public DatabaseSecurityAlertPolicy (Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyState state, string id = null, string name = null, string type = null, string location = null, string kind = null, string disabledAlerts = null, string emailAddresses = null, Nullable<Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyEmailAccountAdmins> emailAccountAdmins = null, string storageEndpoint = null, string storageAccountAccessKey = null, Nullable<int> retentionDays = null, Nullable<Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyUseServerDefault> useServerDefault = null);
    Parameters
    SecurityAlertPolicyState state

    Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: 'New', 'Enabled', 'Disabled'

    String id

    Resource ID.

    String name

    Resource name.

    String type

    Resource type.

    String location

    The geo-location where the resource lives

    String kind

    Resource kind.

    String disabledAlerts

    Specifies the semicolon-separated list of alerts that are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Data_Exfiltration; Unsafe_Action.

    String emailAddresses

    Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.

    Nullable<SecurityAlertPolicyEmailAccountAdmins> emailAccountAdmins

    Specifies that the alert is sent to the account administrators. Possible values include: 'Enabled', 'Disabled'

    String storageEndpoint

    Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required.

    String storageAccountAccessKey

    Specifies the identifier key of the Threat Detection audit storage account. If state is Enabled, storageAccountAccessKey is required.

    Nullable<Int32> retentionDays

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

    Nullable<SecurityAlertPolicyUseServerDefault> useServerDefault

    Specifies whether to use the default server policy. Possible values include: 'Enabled', 'Disabled'

    Properties

    DisabledAlerts

    Gets or sets specifies the semicolon-separated list of alerts that are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Data_Exfiltration; Unsafe_Action.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.disabledAlerts")]
    public string DisabledAlerts { get; set; }
    Property Value
    String

    EmailAccountAdmins

    Gets or sets specifies that the alert is sent to the account administrators. Possible values include: 'Enabled', 'Disabled'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.emailAccountAdmins")]
    public Nullable<Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyEmailAccountAdmins> EmailAccountAdmins { get; set; }
    Property Value
    Nullable<SecurityAlertPolicyEmailAccountAdmins>

    EmailAddresses

    Gets or sets specifies the semicolon-separated list of e-mail addresses to which the alert is sent.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.emailAddresses")]
    public string EmailAddresses { get; set; }
    Property Value
    String

    Kind

    Gets resource kind.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="kind")]
    public string Kind { get; }
    Property Value
    String

    Location

    Gets or sets the geo-location where the resource lives

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="location")]
    public string Location { get; set; }
    Property Value
    String

    RetentionDays

    Gets or sets specifies the number of days to keep in the Threat Detection audit logs.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.retentionDays")]
    public Nullable<int> RetentionDays { get; set; }
    Property Value
    Nullable<Int32>

    State

    Gets or sets specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: 'New', 'Enabled', 'Disabled'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.state")]
    public Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyState State { get; set; }
    Property Value
    SecurityAlertPolicyState

    StorageAccountAccessKey

    Gets or sets specifies the identifier key of the Threat Detection audit storage account. If state is Enabled, storageAccountAccessKey is required.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.storageAccountAccessKey")]
    public string StorageAccountAccessKey { get; set; }
    Property Value
    String

    StorageEndpoint

    Gets or sets specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.storageEndpoint")]
    public string StorageEndpoint { get; set; }
    Property Value
    String

    UseServerDefault

    Gets or sets specifies whether to use the default server policy. Possible values include: 'Enabled', 'Disabled'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.useServerDefault")]
    public Nullable<Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyUseServerDefault> UseServerDefault { get; set; }
    Property Value
    Nullable<SecurityAlertPolicyUseServerDefault>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net