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.63.0 published on Tuesday, Sep 24, 2024 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.63.0 published on Tuesday, Sep 24, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:sql:getDatabaseThreatDetectionPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Name string - The name of the database for which database Threat Detection policy is defined.
- Resource
Group 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.
- Security
Alert stringPolicy Name - The name of the security alert policy.
- Server
Name string - The name of the server.
- Database
Name string - The name of the database for which database Threat Detection policy is defined.
- Resource
Group 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.
- Security
Alert stringPolicy Name - The name of the security alert policy.
- Server
Name string - The name of the server.
- database
Name String - The name of the database for which database Threat Detection policy is defined.
- resource
Group 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.
- security
Alert StringPolicy Name - The name of the security alert policy.
- server
Name String - The name of the server.
- database
Name string - The name of the database for which database Threat Detection policy is defined.
- resource
Group 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.
- security
Alert stringPolicy Name - The name of the security alert policy.
- server
Name 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.
- database
Name String - The name of the database for which database Threat Detection policy is defined.
- resource
Group 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.
- security
Alert StringPolicy Name - The name of the security alert policy.
- server
Name 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.
- Disabled
Alerts 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.
- Email
Account stringAdmins - Specifies that the alert is sent to the account administrators.
- Email
Addresses 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
- Retention
Days int - Specifies the number of days to keep in the Threat Detection audit logs.
- Storage
Endpoint 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.
- Use
Server 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.
- Disabled
Alerts 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.
- Email
Account stringAdmins - Specifies that the alert is sent to the account administrators.
- Email
Addresses 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
- Retention
Days int - Specifies the number of days to keep in the Threat Detection audit logs.
- Storage
Endpoint 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.
- Use
Server 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.
- disabled
Alerts 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.
- email
Account StringAdmins - Specifies that the alert is sent to the account administrators.
- email
Addresses 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
- retention
Days Integer - Specifies the number of days to keep in the Threat Detection audit logs.
- storage
Endpoint 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.
- use
Server 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.
- disabled
Alerts 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.
- email
Account stringAdmins - Specifies that the alert is sent to the account administrators.
- email
Addresses 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
- retention
Days number - Specifies the number of days to keep in the Threat Detection audit logs.
- storage
Endpoint 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.
- use
Server 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.
- disabled
Alerts 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.
- email
Account StringAdmins - Specifies that the alert is sent to the account administrators.
- email
Addresses 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
- retention
Days Number - Specifies the number of days to keep in the Threat Detection audit logs.
- storage
Endpoint 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.
- use
Server 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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi