This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi
azure-native.dbforpostgresql.getSingleServerServerSecurityAlertPolicy
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi
Get a server’s security alert policy.
Uses Azure REST API version 2017-12-01.
Using getSingleServerServerSecurityAlertPolicy
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 getSingleServerServerSecurityAlertPolicy(args: GetSingleServerServerSecurityAlertPolicyArgs, opts?: InvokeOptions): Promise<GetSingleServerServerSecurityAlertPolicyResult>
function getSingleServerServerSecurityAlertPolicyOutput(args: GetSingleServerServerSecurityAlertPolicyOutputArgs, opts?: InvokeOptions): Output<GetSingleServerServerSecurityAlertPolicyResult>
def get_single_server_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) -> GetSingleServerServerSecurityAlertPolicyResult
def get_single_server_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[GetSingleServerServerSecurityAlertPolicyResult]
func LookupSingleServerServerSecurityAlertPolicy(ctx *Context, args *LookupSingleServerServerSecurityAlertPolicyArgs, opts ...InvokeOption) (*LookupSingleServerServerSecurityAlertPolicyResult, error)
func LookupSingleServerServerSecurityAlertPolicyOutput(ctx *Context, args *LookupSingleServerServerSecurityAlertPolicyOutputArgs, opts ...InvokeOption) LookupSingleServerServerSecurityAlertPolicyResultOutput
> Note: This function is named LookupSingleServerServerSecurityAlertPolicy
in the Go SDK.
public static class GetSingleServerServerSecurityAlertPolicy
{
public static Task<GetSingleServerServerSecurityAlertPolicyResult> InvokeAsync(GetSingleServerServerSecurityAlertPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetSingleServerServerSecurityAlertPolicyResult> Invoke(GetSingleServerServerSecurityAlertPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSingleServerServerSecurityAlertPolicyResult> getSingleServerServerSecurityAlertPolicy(GetSingleServerServerSecurityAlertPolicyArgs args, InvokeOptions options)
public static Output<GetSingleServerServerSecurityAlertPolicyResult> getSingleServerServerSecurityAlertPolicy(GetSingleServerServerSecurityAlertPolicyArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:dbforpostgresql:getSingleServerServerSecurityAlertPolicy
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.
getSingleServerServerSecurityAlertPolicy Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- 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.
- Azure
Api stringVersion - The Azure API version of the resource.
- 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.
- azure
Api StringVersion - The Azure API version of the resource.
- 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.
- azure
Api stringVersion - The Azure API version of the resource.
- 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.
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- azure
Api StringVersion - The Azure API version of the resource.
- 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 pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi