This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.sql.getDatabaseThreatDetectionPolicy
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a database’s threat detection policy. Azure REST API version: 2014-04-01.
Using getDatabaseThreatDetectionPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabaseThreatDetectionPolicy(args: GetDatabaseThreatDetectionPolicyArgs, opts?: InvokeOptions): Promise<GetDatabaseThreatDetectionPolicyResult>
function getDatabaseThreatDetectionPolicyOutput(args: GetDatabaseThreatDetectionPolicyOutputArgs, opts?: InvokeOptions): Output<GetDatabaseThreatDetectionPolicyResult>def get_database_threat_detection_policy(database_name: Optional[str] = None,
                                         resource_group_name: Optional[str] = None,
                                         security_alert_policy_name: Optional[str] = None,
                                         server_name: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDatabaseThreatDetectionPolicyResult
def get_database_threat_detection_policy_output(database_name: Optional[pulumi.Input[str]] = None,
                                         resource_group_name: Optional[pulumi.Input[str]] = None,
                                         security_alert_policy_name: Optional[pulumi.Input[str]] = None,
                                         server_name: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseThreatDetectionPolicyResult]func LookupDatabaseThreatDetectionPolicy(ctx *Context, args *LookupDatabaseThreatDetectionPolicyArgs, opts ...InvokeOption) (*LookupDatabaseThreatDetectionPolicyResult, error)
func LookupDatabaseThreatDetectionPolicyOutput(ctx *Context, args *LookupDatabaseThreatDetectionPolicyOutputArgs, opts ...InvokeOption) LookupDatabaseThreatDetectionPolicyResultOutput> Note: This function is named LookupDatabaseThreatDetectionPolicy in the Go SDK.
public static class GetDatabaseThreatDetectionPolicy 
{
    public static Task<GetDatabaseThreatDetectionPolicyResult> InvokeAsync(GetDatabaseThreatDetectionPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseThreatDetectionPolicyResult> Invoke(GetDatabaseThreatDetectionPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseThreatDetectionPolicyResult> getDatabaseThreatDetectionPolicy(GetDatabaseThreatDetectionPolicyArgs args, InvokeOptions options)
public static Output<GetDatabaseThreatDetectionPolicyResult> getDatabaseThreatDetectionPolicy(GetDatabaseThreatDetectionPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getDatabaseThreatDetectionPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseName string
- The name of the database for which database Threat Detection policy is defined.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- SecurityAlert stringPolicy Name 
- The name of the security alert policy.
- ServerName string
- The name of the server.
- DatabaseName string
- The name of the database for which database Threat Detection policy is defined.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- SecurityAlert stringPolicy Name 
- The name of the security alert policy.
- ServerName string
- The name of the server.
- databaseName String
- The name of the database for which database Threat Detection policy is defined.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- securityAlert StringPolicy Name 
- The name of the security alert policy.
- serverName String
- The name of the server.
- databaseName string
- The name of the database for which database Threat Detection policy is defined.
- resourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- securityAlert stringPolicy Name 
- The name of the security alert policy.
- serverName string
- The name of the server.
- database_name str
- The name of the database for which database Threat Detection policy is defined.
- resource_group_ strname 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- security_alert_ strpolicy_ name 
- The name of the security alert policy.
- server_name str
- The name of the server.
- databaseName String
- The name of the database for which database Threat Detection policy is defined.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- securityAlert StringPolicy Name 
- The name of the security alert policy.
- serverName String
- The name of the server.
getDatabaseThreatDetectionPolicy Result
The following output properties are available:
- Id string
- Resource ID.
- Kind string
- Resource kind.
- Name string
- Resource name.
- State string
- Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
- Type string
- Resource type.
- DisabledAlerts string
- 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.
- EmailAccount stringAdmins 
- Specifies that the alert is sent to the account administrators.
- EmailAddresses string
- Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
- Location string
- The geo-location where the resource lives
- RetentionDays int
- Specifies the number of days to keep in the Threat Detection audit logs.
- StorageEndpoint string
- 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.
- UseServer stringDefault 
- Specifies whether to use the default server policy.
- Id string
- Resource ID.
- Kind string
- Resource kind.
- Name string
- Resource name.
- State string
- Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
- Type string
- Resource type.
- DisabledAlerts string
- 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.
- EmailAccount stringAdmins 
- Specifies that the alert is sent to the account administrators.
- EmailAddresses string
- Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
- Location string
- The geo-location where the resource lives
- RetentionDays int
- Specifies the number of days to keep in the Threat Detection audit logs.
- StorageEndpoint string
- 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.
- UseServer stringDefault 
- Specifies whether to use the default server policy.
- id String
- Resource ID.
- kind String
- Resource kind.
- name String
- Resource name.
- state String
- Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
- type String
- Resource type.
- disabledAlerts String
- 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.
- emailAccount StringAdmins 
- Specifies that the alert is sent to the account administrators.
- emailAddresses String
- Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
- location String
- The geo-location where the resource lives
- retentionDays Integer
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageEndpoint String
- 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.
- useServer StringDefault 
- Specifies whether to use the default server policy.
- id string
- Resource ID.
- kind string
- Resource kind.
- name string
- Resource name.
- state string
- Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
- type string
- Resource type.
- disabledAlerts string
- 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.
- emailAccount stringAdmins 
- Specifies that the alert is sent to the account administrators.
- emailAddresses string
- Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
- location string
- The geo-location where the resource lives
- retentionDays number
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageEndpoint string
- 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.
- useServer stringDefault 
- Specifies whether to use the default server policy.
- id str
- Resource ID.
- kind str
- Resource kind.
- name str
- Resource name.
- state str
- Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
- type str
- Resource type.
- disabled_alerts str
- 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.
- email_account_ stradmins 
- Specifies that the alert is sent to the account administrators.
- email_addresses str
- Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
- location str
- The geo-location where the resource lives
- retention_days int
- Specifies the number of days to keep in the Threat Detection audit logs.
- storage_endpoint str
- 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.
- use_server_ strdefault 
- Specifies whether to use the default server policy.
- id String
- Resource ID.
- kind String
- Resource kind.
- name String
- Resource name.
- state String
- Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
- type String
- Resource type.
- disabledAlerts String
- 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.
- emailAccount StringAdmins 
- Specifies that the alert is sent to the account administrators.
- emailAddresses String
- Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
- location String
- The geo-location where the resource lives
- retentionDays Number
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageEndpoint String
- 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.
- useServer StringDefault 
- Specifies whether to use the default server policy.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi