Show / Hide Table of Contents

    Class ServerSecurityAlertPolicy

    A server security alert policy.

    Inheritance
    Object
    Resource
    ProxyResource
    ServerSecurityAlertPolicy
    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 ServerSecurityAlertPolicy : Microsoft.Azure.Management.Sql.Models.ProxyResource

    Constructors

    ServerSecurityAlertPolicy()

    Initializes a new instance of the ServerSecurityAlertPolicy class.

    Declaration
    public ServerSecurityAlertPolicy ();

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

    Initializes a new instance of the ServerSecurityAlertPolicy class.

    Declaration
    public ServerSecurityAlertPolicy (Microsoft.Azure.Management.Sql.Models.SecurityAlertPolicyState state, string id = null, string name = null, string type = null, System.Collections.Generic.IList<string> disabledAlerts = null, System.Collections.Generic.IList<string> emailAddresses = null, Nullable<bool> emailAccountAdmins = null, string storageEndpoint = null, string storageAccountAccessKey = null, Nullable<int> retentionDays = null, Nullable<DateTime> creationTime = null);
    Parameters
    SecurityAlertPolicyState state

    Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled'

    String id

    Resource ID.

    String name

    Resource name.

    String type

    Resource type.

    IList<String> disabledAlerts

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

    IList<String> emailAddresses

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

    Nullable<Boolean> emailAccountAdmins

    Specifies that the alert is sent to the account administrators.

    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.

    String storageAccountAccessKey

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

    Nullable<Int32> retentionDays

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

    Nullable<DateTime> creationTime

    Specifies the UTC creation time of the policy.

    Properties

    CreationTime

    Gets specifies the UTC creation time of the policy.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.creationTime")]
    public Nullable<DateTime> CreationTime { get; }
    Property Value
    Nullable<DateTime>

    DisabledAlerts

    Gets or sets specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action

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

    EmailAccountAdmins

    Gets or sets specifies that the alert is sent to the account administrators.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.emailAccountAdmins")]
    public Nullable<bool> EmailAccountAdmins { get; set; }
    Property Value
    Nullable<Boolean>

    EmailAddresses

    Gets or sets specifies an array of e-mail addresses to which the alert is sent.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.emailAddresses")]
    public System.Collections.Generic.IList<string> EmailAddresses { get; set; }
    Property Value
    IList<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, whether it is enabled or disabled or a policy has not been applied yet on the specific database. 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.

    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.

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

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net