Class: Azure::ARM::SQL::Models::DatabaseSecurityAlertPolicy

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb

Overview

Contains information about a database Threat Detection policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disabled_alertsString

are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Usage_Anomaly.

Returns:

  • (String)

    Specifies the semicolon-separated list of alerts that



31
32
33
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 31

def disabled_alerts
  @disabled_alerts
end

#email_account_adminsSecurityAlertPolicyEmailAccountAdmins

alert is sent to the account administrators. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



40
41
42
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 40

def 
  @email_account_admins
end

#email_addressesString

addresses to which the alert is sent.

Returns:

  • (String)

    Specifies the semicolon-separated list of e-mail



35
36
37
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 35

def email_addresses
  @email_addresses
end

#kindString

Returns Resource kind.

Returns:

  • (String)

    Resource kind.



20
21
22
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 20

def kind
  @kind
end

#locationString

Returns The geo-location where the resource lives.

Returns:

  • (String)

    The geo-location where the resource lives



17
18
19
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 17

def location
  @location
end

#retention_daysInteger

Detection audit logs.

Returns:

  • (Integer)

    Specifies the number of days to keep in the Threat



55
56
57
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 55

def retention_days
  @retention_days
end

#stateSecurityAlertPolicyState

If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: ‘New’, ‘Enabled’, ‘Disabled’

Returns:



25
26
27
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 25

def state
  @state
end

#storage_account_access_keyString

audit storage account. If state is Enabled, storageAccountAccessKey is required.

Returns:

  • (String)

    Specifies the identifier key of the Threat Detection



51
52
53
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 51

def 
  @storage_account_access_key
end

#storage_endpointString

MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required.

Returns:

  • (String)

    Specifies the blob storage endpoint (e.g.



46
47
48
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 46

def storage_endpoint
  @storage_endpoint
end

#use_server_defaultSecurityAlertPolicyUseServerDefault

the default server policy. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



60
61
62
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 60

def use_server_default
  @use_server_default
end

Class Method Details

.mapperObject

Mapper for DatabaseSecurityAlertPolicy class as Ruby Hash. This will be used for serialization/deserialization.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 67

def self.mapper()
  {
    required: false,
    serialized_name: 'DatabaseSecurityAlertPolicy',
    type: {
      name: 'Composite',
      class_name: 'DatabaseSecurityAlertPolicy',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        kind: {
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        state: {
          required: true,
          serialized_name: 'properties.state',
          type: {
            name: 'Enum',
            module: 'SecurityAlertPolicyState'
          }
        },
        disabled_alerts: {
          required: false,
          serialized_name: 'properties.disabledAlerts',
          type: {
            name: 'String'
          }
        },
        email_addresses: {
          required: false,
          serialized_name: 'properties.emailAddresses',
          type: {
            name: 'String'
          }
        },
        email_account_admins: {
          required: false,
          serialized_name: 'properties.emailAccountAdmins',
          type: {
            name: 'Enum',
            module: 'SecurityAlertPolicyEmailAccountAdmins'
          }
        },
        storage_endpoint: {
          required: false,
          serialized_name: 'properties.storageEndpoint',
          type: {
            name: 'String'
          }
        },
        storage_account_access_key: {
          required: false,
          serialized_name: 'properties.storageAccountAccessKey',
          type: {
            name: 'String'
          }
        },
        retention_days: {
          required: false,
          serialized_name: 'properties.retentionDays',
          type: {
            name: 'Number'
          }
        },
        use_server_default: {
          required: false,
          serialized_name: 'properties.useServerDefault',
          type: {
            name: 'Enum',
            module: 'SecurityAlertPolicyUseServerDefault'
          }
        }
      }
    }
  }
end