1. Packages
  2. Azure Native
  3. API Docs
  4. dbforpostgresql
  5. SingleServerServerSecurityAlertPolicy
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.SingleServerServerSecurityAlertPolicy

Explore with Pulumi AI

azure-native logo
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

    A server security alert policy.

    Uses Azure REST API version 2017-12-01.

    Example Usage

    Update a server's threat detection policy with all parameters

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var singleServerServerSecurityAlertPolicy = new AzureNative.DBforPostgreSQL.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy", new()
        {
            DisabledAlerts = new[]
            {
                "Access_Anomaly",
                "Usage_Anomaly",
            },
            EmailAccountAdmins = true,
            EmailAddresses = new[]
            {
                "testSecurityAlert@microsoft.com",
            },
            ResourceGroupName = "securityalert-4799",
            RetentionDays = 5,
            SecurityAlertPolicyName = "Default",
            ServerName = "securityalert-6440",
            State = AzureNative.DBforPostgreSQL.ServerSecurityAlertPolicyState.Enabled,
            StorageAccountAccessKey = "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==",
            StorageEndpoint = "https://mystorage.blob.core.windows.net",
        });
    
    });
    
    package main
    
    import (
    	dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbforpostgresql.NewSingleServerServerSecurityAlertPolicy(ctx, "singleServerServerSecurityAlertPolicy", &dbforpostgresql.SingleServerServerSecurityAlertPolicyArgs{
    			DisabledAlerts: pulumi.StringArray{
    				pulumi.String("Access_Anomaly"),
    				pulumi.String("Usage_Anomaly"),
    			},
    			EmailAccountAdmins: pulumi.Bool(true),
    			EmailAddresses: pulumi.StringArray{
    				pulumi.String("testSecurityAlert@microsoft.com"),
    			},
    			ResourceGroupName:       pulumi.String("securityalert-4799"),
    			RetentionDays:           pulumi.Int(5),
    			SecurityAlertPolicyName: pulumi.String("Default"),
    			ServerName:              pulumi.String("securityalert-6440"),
    			State:                   dbforpostgresql.ServerSecurityAlertPolicyStateEnabled,
    			StorageAccountAccessKey: pulumi.String("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="),
    			StorageEndpoint:         pulumi.String("https://mystorage.blob.core.windows.net"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.dbforpostgresql.SingleServerServerSecurityAlertPolicy;
    import com.pulumi.azurenative.dbforpostgresql.SingleServerServerSecurityAlertPolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var singleServerServerSecurityAlertPolicy = new SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy", SingleServerServerSecurityAlertPolicyArgs.builder()
                .disabledAlerts(            
                    "Access_Anomaly",
                    "Usage_Anomaly")
                .emailAccountAdmins(true)
                .emailAddresses("testSecurityAlert@microsoft.com")
                .resourceGroupName("securityalert-4799")
                .retentionDays(5)
                .securityAlertPolicyName("Default")
                .serverName("securityalert-6440")
                .state("Enabled")
                .storageAccountAccessKey("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==")
                .storageEndpoint("https://mystorage.blob.core.windows.net")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const singleServerServerSecurityAlertPolicy = new azure_native.dbforpostgresql.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy", {
        disabledAlerts: [
            "Access_Anomaly",
            "Usage_Anomaly",
        ],
        emailAccountAdmins: true,
        emailAddresses: ["testSecurityAlert@microsoft.com"],
        resourceGroupName: "securityalert-4799",
        retentionDays: 5,
        securityAlertPolicyName: "Default",
        serverName: "securityalert-6440",
        state: azure_native.dbforpostgresql.ServerSecurityAlertPolicyState.Enabled,
        storageAccountAccessKey: "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==",
        storageEndpoint: "https://mystorage.blob.core.windows.net",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    single_server_server_security_alert_policy = azure_native.dbforpostgresql.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy",
        disabled_alerts=[
            "Access_Anomaly",
            "Usage_Anomaly",
        ],
        email_account_admins=True,
        email_addresses=["testSecurityAlert@microsoft.com"],
        resource_group_name="securityalert-4799",
        retention_days=5,
        security_alert_policy_name="Default",
        server_name="securityalert-6440",
        state=azure_native.dbforpostgresql.ServerSecurityAlertPolicyState.ENABLED,
        storage_account_access_key="sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==",
        storage_endpoint="https://mystorage.blob.core.windows.net")
    
    resources:
      singleServerServerSecurityAlertPolicy:
        type: azure-native:dbforpostgresql:SingleServerServerSecurityAlertPolicy
        properties:
          disabledAlerts:
            - Access_Anomaly
            - Usage_Anomaly
          emailAccountAdmins: true
          emailAddresses:
            - testSecurityAlert@microsoft.com
          resourceGroupName: securityalert-4799
          retentionDays: 5
          securityAlertPolicyName: Default
          serverName: securityalert-6440
          state: Enabled
          storageAccountAccessKey: sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==
          storageEndpoint: https://mystorage.blob.core.windows.net
    

    Update a server's threat detection policy with minimal parameters

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var singleServerServerSecurityAlertPolicy = new AzureNative.DBforPostgreSQL.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy", new()
        {
            EmailAccountAdmins = true,
            ResourceGroupName = "securityalert-4799",
            SecurityAlertPolicyName = "Default",
            ServerName = "securityalert-6440",
            State = AzureNative.DBforPostgreSQL.ServerSecurityAlertPolicyState.Disabled,
        });
    
    });
    
    package main
    
    import (
    	dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbforpostgresql.NewSingleServerServerSecurityAlertPolicy(ctx, "singleServerServerSecurityAlertPolicy", &dbforpostgresql.SingleServerServerSecurityAlertPolicyArgs{
    			EmailAccountAdmins:      pulumi.Bool(true),
    			ResourceGroupName:       pulumi.String("securityalert-4799"),
    			SecurityAlertPolicyName: pulumi.String("Default"),
    			ServerName:              pulumi.String("securityalert-6440"),
    			State:                   dbforpostgresql.ServerSecurityAlertPolicyStateDisabled,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.dbforpostgresql.SingleServerServerSecurityAlertPolicy;
    import com.pulumi.azurenative.dbforpostgresql.SingleServerServerSecurityAlertPolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var singleServerServerSecurityAlertPolicy = new SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy", SingleServerServerSecurityAlertPolicyArgs.builder()
                .emailAccountAdmins(true)
                .resourceGroupName("securityalert-4799")
                .securityAlertPolicyName("Default")
                .serverName("securityalert-6440")
                .state("Disabled")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const singleServerServerSecurityAlertPolicy = new azure_native.dbforpostgresql.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy", {
        emailAccountAdmins: true,
        resourceGroupName: "securityalert-4799",
        securityAlertPolicyName: "Default",
        serverName: "securityalert-6440",
        state: azure_native.dbforpostgresql.ServerSecurityAlertPolicyState.Disabled,
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    single_server_server_security_alert_policy = azure_native.dbforpostgresql.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicy",
        email_account_admins=True,
        resource_group_name="securityalert-4799",
        security_alert_policy_name="Default",
        server_name="securityalert-6440",
        state=azure_native.dbforpostgresql.ServerSecurityAlertPolicyState.DISABLED)
    
    resources:
      singleServerServerSecurityAlertPolicy:
        type: azure-native:dbforpostgresql:SingleServerServerSecurityAlertPolicy
        properties:
          emailAccountAdmins: true
          resourceGroupName: securityalert-4799
          securityAlertPolicyName: Default
          serverName: securityalert-6440
          state: Disabled
    

    Create SingleServerServerSecurityAlertPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SingleServerServerSecurityAlertPolicy(name: string, args: SingleServerServerSecurityAlertPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def SingleServerServerSecurityAlertPolicy(resource_name: str,
                                              args: SingleServerServerSecurityAlertPolicyArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def SingleServerServerSecurityAlertPolicy(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              resource_group_name: Optional[str] = None,
                                              server_name: Optional[str] = None,
                                              state: Optional[ServerSecurityAlertPolicyState] = None,
                                              disabled_alerts: Optional[Sequence[str]] = None,
                                              email_account_admins: Optional[bool] = None,
                                              email_addresses: Optional[Sequence[str]] = None,
                                              retention_days: Optional[int] = None,
                                              security_alert_policy_name: Optional[str] = None,
                                              storage_account_access_key: Optional[str] = None,
                                              storage_endpoint: Optional[str] = None)
    func NewSingleServerServerSecurityAlertPolicy(ctx *Context, name string, args SingleServerServerSecurityAlertPolicyArgs, opts ...ResourceOption) (*SingleServerServerSecurityAlertPolicy, error)
    public SingleServerServerSecurityAlertPolicy(string name, SingleServerServerSecurityAlertPolicyArgs args, CustomResourceOptions? opts = null)
    public SingleServerServerSecurityAlertPolicy(String name, SingleServerServerSecurityAlertPolicyArgs args)
    public SingleServerServerSecurityAlertPolicy(String name, SingleServerServerSecurityAlertPolicyArgs args, CustomResourceOptions options)
    
    type: azure-native:dbforpostgresql:SingleServerServerSecurityAlertPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SingleServerServerSecurityAlertPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SingleServerServerSecurityAlertPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SingleServerServerSecurityAlertPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SingleServerServerSecurityAlertPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SingleServerServerSecurityAlertPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var singleServerServerSecurityAlertPolicyResource = new AzureNative.DBforPostgreSQL.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicyResource", new()
    {
        ResourceGroupName = "string",
        ServerName = "string",
        State = AzureNative.DBforPostgreSQL.ServerSecurityAlertPolicyState.Enabled,
        DisabledAlerts = new[]
        {
            "string",
        },
        EmailAccountAdmins = false,
        EmailAddresses = new[]
        {
            "string",
        },
        RetentionDays = 0,
        SecurityAlertPolicyName = "string",
        StorageAccountAccessKey = "string",
        StorageEndpoint = "string",
    });
    
    example, err := dbforpostgresql.NewSingleServerServerSecurityAlertPolicy(ctx, "singleServerServerSecurityAlertPolicyResource", &dbforpostgresql.SingleServerServerSecurityAlertPolicyArgs{
    	ResourceGroupName: pulumi.String("string"),
    	ServerName:        pulumi.String("string"),
    	State:             dbforpostgresql.ServerSecurityAlertPolicyStateEnabled,
    	DisabledAlerts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	EmailAccountAdmins: pulumi.Bool(false),
    	EmailAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RetentionDays:           pulumi.Int(0),
    	SecurityAlertPolicyName: pulumi.String("string"),
    	StorageAccountAccessKey: pulumi.String("string"),
    	StorageEndpoint:         pulumi.String("string"),
    })
    
    var singleServerServerSecurityAlertPolicyResource = new SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicyResource", SingleServerServerSecurityAlertPolicyArgs.builder()
        .resourceGroupName("string")
        .serverName("string")
        .state("Enabled")
        .disabledAlerts("string")
        .emailAccountAdmins(false)
        .emailAddresses("string")
        .retentionDays(0)
        .securityAlertPolicyName("string")
        .storageAccountAccessKey("string")
        .storageEndpoint("string")
        .build());
    
    single_server_server_security_alert_policy_resource = azure_native.dbforpostgresql.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicyResource",
        resource_group_name="string",
        server_name="string",
        state=azure_native.dbforpostgresql.ServerSecurityAlertPolicyState.ENABLED,
        disabled_alerts=["string"],
        email_account_admins=False,
        email_addresses=["string"],
        retention_days=0,
        security_alert_policy_name="string",
        storage_account_access_key="string",
        storage_endpoint="string")
    
    const singleServerServerSecurityAlertPolicyResource = new azure_native.dbforpostgresql.SingleServerServerSecurityAlertPolicy("singleServerServerSecurityAlertPolicyResource", {
        resourceGroupName: "string",
        serverName: "string",
        state: azure_native.dbforpostgresql.ServerSecurityAlertPolicyState.Enabled,
        disabledAlerts: ["string"],
        emailAccountAdmins: false,
        emailAddresses: ["string"],
        retentionDays: 0,
        securityAlertPolicyName: "string",
        storageAccountAccessKey: "string",
        storageEndpoint: "string",
    });
    
    type: azure-native:dbforpostgresql:SingleServerServerSecurityAlertPolicy
    properties:
        disabledAlerts:
            - string
        emailAccountAdmins: false
        emailAddresses:
            - string
        resourceGroupName: string
        retentionDays: 0
        securityAlertPolicyName: string
        serverName: string
        state: Enabled
        storageAccountAccessKey: string
        storageEndpoint: string
    

    SingleServerServerSecurityAlertPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SingleServerServerSecurityAlertPolicy resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServerName string
    The name of the server.
    State Pulumi.AzureNative.DBforPostgreSQL.ServerSecurityAlertPolicyState
    Specifies the state of the policy, whether it is enabled or disabled.
    DisabledAlerts List<string>
    Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
    EmailAccountAdmins bool
    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.
    SecurityAlertPolicyName string
    The name of the threat detection policy.
    StorageAccountAccessKey string
    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.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServerName string
    The name of the server.
    State ServerSecurityAlertPolicyState
    Specifies the state of the policy, whether it is enabled or disabled.
    DisabledAlerts []string
    Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
    EmailAccountAdmins bool
    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.
    SecurityAlertPolicyName string
    The name of the threat detection policy.
    StorageAccountAccessKey string
    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.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serverName String
    The name of the server.
    state ServerSecurityAlertPolicyState
    Specifies the state of the policy, whether it is enabled or disabled.
    disabledAlerts List<String>
    Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
    emailAccountAdmins Boolean
    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.
    securityAlertPolicyName String
    The name of the threat detection policy.
    storageAccountAccessKey String
    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.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    serverName string
    The name of the server.
    state ServerSecurityAlertPolicyState
    Specifies the state of the policy, whether it is enabled or disabled.
    disabledAlerts string[]
    Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
    emailAccountAdmins boolean
    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.
    securityAlertPolicyName string
    The name of the threat detection policy.
    storageAccountAccessKey string
    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.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    server_name str
    The name of the server.
    state ServerSecurityAlertPolicyState
    Specifies the state of the policy, whether it is enabled or disabled.
    disabled_alerts Sequence[str]
    Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
    email_account_admins bool
    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.
    security_alert_policy_name str
    The name of the threat detection policy.
    storage_account_access_key str
    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.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serverName String
    The name of the server.
    state "Enabled" | "Disabled"
    Specifies the state of the policy, whether it is enabled or disabled.
    disabledAlerts List<String>
    Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
    emailAccountAdmins Boolean
    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.
    securityAlertPolicyName String
    The name of the threat detection policy.
    storageAccountAccessKey String
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SingleServerServerSecurityAlertPolicy resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ServerSecurityAlertPolicyState, ServerSecurityAlertPolicyStateArgs

    Enabled
    Enabled
    Disabled
    Disabled
    ServerSecurityAlertPolicyStateEnabled
    Enabled
    ServerSecurityAlertPolicyStateDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:dbforpostgresql:SingleServerServerSecurityAlertPolicy Default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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