These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.sql.getServerSecurityAlertPolicy
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Get a server’s security alert policy. API Version: 2020-11-01-preview.
Using getServerSecurityAlertPolicy
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 getServerSecurityAlertPolicy(args: GetServerSecurityAlertPolicyArgs, opts?: InvokeOptions): Promise<GetServerSecurityAlertPolicyResult>
function getServerSecurityAlertPolicyOutput(args: GetServerSecurityAlertPolicyOutputArgs, opts?: InvokeOptions): Output<GetServerSecurityAlertPolicyResult>def get_server_security_alert_policy(resource_group_name: Optional[str] = None,
                                     security_alert_policy_name: Optional[str] = None,
                                     server_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetServerSecurityAlertPolicyResult
def get_server_security_alert_policy_output(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[GetServerSecurityAlertPolicyResult]func LookupServerSecurityAlertPolicy(ctx *Context, args *LookupServerSecurityAlertPolicyArgs, opts ...InvokeOption) (*LookupServerSecurityAlertPolicyResult, error)
func LookupServerSecurityAlertPolicyOutput(ctx *Context, args *LookupServerSecurityAlertPolicyOutputArgs, opts ...InvokeOption) LookupServerSecurityAlertPolicyResultOutput> Note: This function is named LookupServerSecurityAlertPolicy in the Go SDK.
public static class GetServerSecurityAlertPolicy 
{
    public static Task<GetServerSecurityAlertPolicyResult> InvokeAsync(GetServerSecurityAlertPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetServerSecurityAlertPolicyResult> Invoke(GetServerSecurityAlertPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerSecurityAlertPolicyResult> getServerSecurityAlertPolicy(GetServerSecurityAlertPolicyArgs args, InvokeOptions options)
public static Output<GetServerSecurityAlertPolicyResult> getServerSecurityAlertPolicy(GetServerSecurityAlertPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getServerSecurityAlertPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getServerSecurityAlertPolicy 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-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi