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.getDatabaseSecurityAlertPolicy
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 security alert policy. Azure REST API version: 2021-11-01.
Other available API versions: 2018-06-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Using getDatabaseSecurityAlertPolicy
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 getDatabaseSecurityAlertPolicy(args: GetDatabaseSecurityAlertPolicyArgs, opts?: InvokeOptions): Promise<GetDatabaseSecurityAlertPolicyResult>
function getDatabaseSecurityAlertPolicyOutput(args: GetDatabaseSecurityAlertPolicyOutputArgs, opts?: InvokeOptions): Output<GetDatabaseSecurityAlertPolicyResult>def get_database_security_alert_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) -> GetDatabaseSecurityAlertPolicyResult
def get_database_security_alert_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[GetDatabaseSecurityAlertPolicyResult]func LookupDatabaseSecurityAlertPolicy(ctx *Context, args *LookupDatabaseSecurityAlertPolicyArgs, opts ...InvokeOption) (*LookupDatabaseSecurityAlertPolicyResult, error)
func LookupDatabaseSecurityAlertPolicyOutput(ctx *Context, args *LookupDatabaseSecurityAlertPolicyOutputArgs, opts ...InvokeOption) LookupDatabaseSecurityAlertPolicyResultOutput> Note: This function is named LookupDatabaseSecurityAlertPolicy in the Go SDK.
public static class GetDatabaseSecurityAlertPolicy 
{
    public static Task<GetDatabaseSecurityAlertPolicyResult> InvokeAsync(GetDatabaseSecurityAlertPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseSecurityAlertPolicyResult> Invoke(GetDatabaseSecurityAlertPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseSecurityAlertPolicyResult> getDatabaseSecurityAlertPolicy(GetDatabaseSecurityAlertPolicyArgs args, InvokeOptions options)
public static Output<GetDatabaseSecurityAlertPolicyResult> getDatabaseSecurityAlertPolicy(GetDatabaseSecurityAlertPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getDatabaseSecurityAlertPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseName string
- The name of the database for which the security alert 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 the security alert 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 the security alert 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 the security alert 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 the security alert 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 the security alert 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.
getDatabaseSecurityAlertPolicy Result
The following output properties are available:
- CreationTime string
- Specifies the UTC creation time of the policy.
- Id string
- Resource ID.
- Name string
- Resource name.
- State string
- Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.
- SystemData Pulumi.Azure Native. Sql. Outputs. System Data Response 
- SystemData of SecurityAlertPolicyResource.
- Type string
- Resource type.
- DisabledAlerts List<string>
- Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
- EmailAccount boolAdmins 
- Specifies that the alert is sent to the account administrators.
- EmailAddresses List<string>
- Specifies an array of e-mail addresses to which the alert is sent.
- RetentionDays int
- Specifies the number of days to keep in the Threat Detection audit logs.
- StorageAccount stringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- CreationTime string
- Specifies the UTC creation time of the policy.
- Id string
- Resource ID.
- Name string
- Resource name.
- State string
- Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.
- SystemData SystemData Response 
- SystemData of SecurityAlertPolicyResource.
- Type string
- Resource type.
- DisabledAlerts []string
- Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
- EmailAccount boolAdmins 
- Specifies that the alert is sent to the account administrators.
- EmailAddresses []string
- Specifies an array of e-mail addresses to which the alert is sent.
- RetentionDays int
- Specifies the number of days to keep in the Threat Detection audit logs.
- StorageAccount stringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- creationTime String
- Specifies the UTC creation time of the policy.
- id String
- Resource ID.
- name String
- Resource name.
- state String
- Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.
- systemData SystemData Response 
- SystemData of SecurityAlertPolicyResource.
- type String
- Resource type.
- disabledAlerts List<String>
- Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
- emailAccount BooleanAdmins 
- Specifies that the alert is sent to the account administrators.
- emailAddresses List<String>
- Specifies an array of e-mail addresses to which the alert is sent.
- retentionDays Integer
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageAccount StringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- creationTime string
- Specifies the UTC creation time of the policy.
- id string
- Resource ID.
- name string
- Resource name.
- state string
- Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.
- systemData SystemData Response 
- SystemData of SecurityAlertPolicyResource.
- type string
- Resource type.
- disabledAlerts string[]
- Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
- emailAccount booleanAdmins 
- Specifies that the alert is sent to the account administrators.
- emailAddresses string[]
- Specifies an array of e-mail addresses to which the alert is sent.
- retentionDays number
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageAccount stringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- creation_time str
- Specifies the UTC creation time of the policy.
- id str
- Resource ID.
- name str
- Resource name.
- state str
- Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.
- system_data SystemData Response 
- SystemData of SecurityAlertPolicyResource.
- type str
- Resource type.
- disabled_alerts Sequence[str]
- Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
- email_account_ booladmins 
- Specifies that the alert is sent to the account administrators.
- email_addresses Sequence[str]
- Specifies an array of e-mail addresses to which the alert is sent.
- retention_days int
- Specifies the number of days to keep in the Threat Detection audit logs.
- storage_account_ straccess_ key 
- Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- creationTime String
- Specifies the UTC creation time of the policy.
- id String
- Resource ID.
- name String
- Resource name.
- state String
- Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.
- systemData Property Map
- SystemData of SecurityAlertPolicyResource.
- type String
- Resource type.
- disabledAlerts List<String>
- Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
- emailAccount BooleanAdmins 
- Specifies that the alert is sent to the account administrators.
- emailAddresses List<String>
- Specifies an array of e-mail addresses to which the alert is sent.
- retentionDays Number
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageAccount StringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- 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.
Supporting Types
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
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