Interface SqlDatabaseThreatDetectionPolicy

All Superinterfaces:
ChildResource<SqlDatabase>, ExternalChildResource<SqlDatabaseThreatDetectionPolicy,SqlDatabase>, HasInnerModel<DatabaseSecurityAlertPolicyInner>, HasName, HasParent<SqlDatabase>, HasResourceGroup, Indexable, Refreshable<SqlDatabaseThreatDetectionPolicy>, Updatable<SqlDatabaseThreatDetectionPolicy.Update>

A representation of the Azure SQL Database threat detection policy.
  • 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

      String kind()
      Gets the resource kind.
      Returns:
      the resource kind
    • currentState

      SecurityAlertPolicyState currentState()
      Gets the state of the policy.
      Returns:
      the state of the policy.
    • disabledAlerts

      @Deprecated String disabledAlerts()
      Deprecated.
      Gets the semicolon-separated list of alerts that are disabled.
      Returns:
      the semicolon-separated list of alerts that are disabled
    • disabledAlertList

      List<String> disabledAlertList()
      Gets a list of disabled alerts.
      Returns:
      a list of disabled alerts
    • emailAddresses

      @Deprecated String 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

      List<String> emailAddressList()
      Gets a list of e-mail addresses to which the alert is sent.
      Returns:
      a list of e-mail addresses to which the alert is sent
    • 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

      String storageEndpoint()
      Gets the blob storage endpoint.
      Returns:
      the blob storage endpoint
    • 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