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.dbforpostgresql.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: 2017-12-01.
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:dbforpostgresql:getServerSecurityAlertPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Security
Alert stringPolicy Name - The name of the security alert policy.
- Server
Name string - The name of the server.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Security
Alert stringPolicy Name - The name of the security alert policy.
- Server
Name string - The name of the server.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- security
Alert StringPolicy Name - The name of the security alert policy.
- server
Name String - The name of the server.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- security
Alert stringPolicy Name - The name of the security alert policy.
- server
Name string - The name of the server.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- security_
alert_ strpolicy_ name - The name of the security alert policy.
- server_
name str - The name of the server.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- security
Alert StringPolicy Name - The name of the security alert policy.
- server
Name String - The name of the server.
getServerSecurityAlertPolicy Result
The following output properties are available:
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- State string
- Specifies the state of the policy, whether it is enabled or disabled.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Disabled
Alerts List<string> - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- Email
Account boolAdmins - Specifies that the alert is sent to the account administrators.
- Email
Addresses List<string> - 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 stringAccess Key - Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- State string
- Specifies the state of the policy, whether it is enabled or disabled.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Disabled
Alerts []string - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- Email
Account boolAdmins - Specifies that the alert is sent to the account administrators.
- Email
Addresses []string - 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 stringAccess Key - Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- state String
- Specifies the state of the policy, whether it is enabled or disabled.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- disabled
Alerts List<String> - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- email
Account BooleanAdmins - Specifies that the alert is sent to the account administrators.
- email
Addresses List<String> - Specifies an array of e-mail addresses to which the alert is sent.
- retention
Days Integer - Specifies the number of days to keep in the Threat Detection audit logs.
- storage
Account StringAccess Key - Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name string
- The name of the resource
- state string
- Specifies the state of the policy, whether it is enabled or disabled.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- disabled
Alerts string[] - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- email
Account booleanAdmins - Specifies that the alert is sent to the account administrators.
- email
Addresses string[] - Specifies an array of e-mail addresses to which the alert is sent.
- retention
Days number - Specifies the number of days to keep in the Threat Detection audit logs.
- storage
Account stringAccess Key - Specifies the identifier key of the Threat Detection audit storage account.
- 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.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name str
- The name of the resource
- state str
- Specifies the state of the policy, whether it is enabled or disabled.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- disabled_
alerts Sequence[str] - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- 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.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- state String
- Specifies the state of the policy, whether it is enabled or disabled.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- disabled
Alerts List<String> - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- email
Account BooleanAdmins - Specifies that the alert is sent to the account administrators.
- email
Addresses List<String> - Specifies an array of e-mail addresses to which the alert is sent.
- retention
Days Number - Specifies the number of days to keep in the Threat Detection audit logs.
- storage
Account StringAccess Key - Specifies the identifier key of the Threat Detection audit storage account.
- 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.
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