Interface SqlDatabaseThreatDetectionPolicy
- All Superinterfaces:
ChildResource<SqlDatabase>, ExternalChildResource<SqlDatabaseThreatDetectionPolicy, SqlDatabase>, HasInnerModel<DatabaseSecurityAlertPolicyInner>, HasName, HasParent<SqlDatabase>, HasResourceGroup, Indexable, Refreshable<SqlDatabaseThreatDetectionPolicy>, Updatable<SqlDatabaseThreatDetectionPolicy.Update>
public interface SqlDatabaseThreatDetectionPolicy
extends ExternalChildResource<SqlDatabaseThreatDetectionPolicy, SqlDatabase>, HasParent<SqlDatabase>, HasInnerModel<DatabaseSecurityAlertPolicyInner>, HasResourceGroup, Refreshable<SqlDatabaseThreatDetectionPolicy>, Updatable<SqlDatabaseThreatDetectionPolicy.Update>
A representation of the Azure SQL Database threat detection policy.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGrouping of all the SQL database threat detection policy definition stages.static interfaceContainer interface for all the definitions that need to be implemented.static interfaceContainer interface for SQL database threat detection policy operations.static interfaceThe template for a SQL database threat detection policy update operation, containing all the settings that can be modified.static interfaceGrouping of all the SQL database threat detection policy update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the state of the policy.Gets a list of disabled alerts.Deprecated.booleanChecks whether the alert is sent to the account administrators.Deprecated.Gets a list of e-mail addresses to which the alert is sent.booleanChecks whether using default server policy.kind()Gets the resource kind.com.azure.core.management.Regionregion()Gets the geo-location where the resource lives.intGets the number of days to keep in the Threat Detection audit logs.Gets the identifier key of the Threat Detection audit storage account.Gets the blob storage endpoint.Methods inherited from interface ExternalChildResource
idMethods inherited from interface HasInnerModel
innerModelMethods inherited from interface HasResourceGroup
resourceGroupNameMethods inherited from interface Refreshable
refresh, refreshAsync
-
Method Details
-
region
com.azure.core.management.Region region()Gets the geo-location where the resource lives.- Returns:
- the geo-location where the resource lives
-
kind
-
currentState
SecurityAlertPolicyState currentState()Gets the state of the policy.- Returns:
- the state of the policy.
-
disabledAlerts
Deprecated.Gets the semicolon-separated list of alerts that are disabled.- Returns:
- the semicolon-separated list of alerts that are disabled
-
disabledAlertList
-
emailAddresses
Deprecated.Gets the semicolon-separated list of e-mail addresses to which the alert is sent.- Returns:
- the semicolon-separated list of e-mail addresses to which the alert is sent
-
emailAddressList
-
emailAccountAdmins
boolean emailAccountAdmins()Checks whether the alert is sent to the account administrators.- Returns:
- true if the alert is sent to the account administrators
-
storageEndpoint
-
storageAccountAccessKey
String storageAccountAccessKey()Gets the identifier key of the Threat Detection audit storage account.- Returns:
- the identifier key of the Threat Detection audit storage account
-
retentionDays
int retentionDays()Gets the number of days to keep in the Threat Detection audit logs.- Returns:
- the number of days to keep in the Threat Detection audit logs
-
isDefaultSecurityAlertPolicy
boolean isDefaultSecurityAlertPolicy()Checks whether using default server policy.- Returns:
- true if using default server policy
-
disabledAlertList()