Server
Manages a PostgreSQL Server.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleServer = new Azure.PostgreSql.Server("exampleServer", new Azure.PostgreSql.ServerArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AdministratorLogin = "psqladminun",
AdministratorLoginPassword = "H@Sh1CoR3!",
SkuName = "GP_Gen5_4",
Version = "9.6",
StorageMb = 640000,
BackupRetentionDays = 7,
GeoRedundantBackupEnabled = true,
AutoGrowEnabled = true,
PublicNetworkAccessEnabled = false,
SslEnforcementEnabled = true,
SslMinimalTlsVersionEnforced = "TLS1_2",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/postgresql"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = postgresql.NewServer(ctx, "exampleServer", &postgresql.ServerArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AdministratorLogin: pulumi.String("psqladminun"),
AdministratorLoginPassword: pulumi.String("H@Sh1CoR3!"),
SkuName: pulumi.String("GP_Gen5_4"),
Version: pulumi.String("9.6"),
StorageMb: pulumi.Int(640000),
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackupEnabled: pulumi.Bool(true),
AutoGrowEnabled: pulumi.Bool(true),
PublicNetworkAccessEnabled: pulumi.Bool(false),
SslEnforcementEnabled: pulumi.Bool(true),
SslMinimalTlsVersionEnforced: pulumi.String("TLS1_2"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_server = azure.postgresql.Server("exampleServer",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
administrator_login="psqladminun",
administrator_login_password="H@Sh1CoR3!",
sku_name="GP_Gen5_4",
version="9.6",
storage_mb=640000,
backup_retention_days=7,
geo_redundant_backup_enabled=True,
auto_grow_enabled=True,
public_network_access_enabled=False,
ssl_enforcement_enabled=True,
ssl_minimal_tls_version_enforced="TLS1_2")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleServer = new azure.postgresql.Server("exampleServer", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
administratorLogin: "psqladminun",
administratorLoginPassword: "H@Sh1CoR3!",
skuName: "GP_Gen5_4",
version: "9.6",
storageMb: 640000,
backupRetentionDays: 7,
geoRedundantBackupEnabled: true,
autoGrowEnabled: true,
publicNetworkAccessEnabled: false,
sslEnforcementEnabled: true,
sslMinimalTlsVersionEnforced: "TLS1_2",
});Create a Server Resource
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);def Server(resource_name, opts=None, administrator_login=None, administrator_login_password=None, auto_grow_enabled=None, backup_retention_days=None, create_mode=None, creation_source_server_id=None, geo_redundant_backup_enabled=None, infrastructure_encryption_enabled=None, location=None, name=None, public_network_access_enabled=None, resource_group_name=None, restore_point_in_time=None, sku_name=None, ssl_enforcement=None, ssl_enforcement_enabled=None, ssl_minimal_tls_version_enforced=None, storage_mb=None, storage_profile=None, tags=None, threat_detection_policy=None, version=None, __props__=None);func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Server resource accepts the following input properties:
- Resource
Group stringName The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- Sku
Name string Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- Version string
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.- Administrator
Login string The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- Administrator
Login stringPassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- Auto
Grow boolEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- Backup
Retention intDays Backup retention days for the server, supported values are between
7and35days.- Create
Mode string The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- Creation
Source stringServer Id For creation modes other then default the source server ID to use.
- Geo
Redundant boolBackup Enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- Infrastructure
Encryption boolEnabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- Public
Network boolAccess Enabled Whether or not public network access is allowed for this server. Defaults to
true.- Restore
Point stringIn Time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- Ssl
Enforcement string - Ssl
Enforcement boolEnabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- Ssl
Minimal stringTls Version Enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- Storage
Mb int Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- Storage
Profile ServerStorage Profile Args - Dictionary<string, string>
A mapping of tags to assign to the resource.
- Threat
Detection ServerPolicy Threat Detection Policy Args Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.
- Resource
Group stringName The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- Sku
Name string Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- Version string
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.- Administrator
Login string The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- Administrator
Login stringPassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- Auto
Grow boolEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- Backup
Retention intDays Backup retention days for the server, supported values are between
7and35days.- Create
Mode string The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- Creation
Source stringServer Id For creation modes other then default the source server ID to use.
- Geo
Redundant boolBackup Enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- Infrastructure
Encryption boolEnabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- Public
Network boolAccess Enabled Whether or not public network access is allowed for this server. Defaults to
true.- Restore
Point stringIn Time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- Ssl
Enforcement string - Ssl
Enforcement boolEnabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- Ssl
Minimal stringTls Version Enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- Storage
Mb int Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- Storage
Profile ServerStorage Profile - map[string]string
A mapping of tags to assign to the resource.
- Threat
Detection ServerPolicy Threat Detection Policy Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.
- resource
Group stringName The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- sku
Name string Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- version string
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.- administrator
Login string The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- administrator
Login stringPassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- auto
Grow booleanEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- backup
Retention numberDays Backup retention days for the server, supported values are between
7and35days.- create
Mode string The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- creation
Source stringServer Id For creation modes other then default the source server ID to use.
- geo
Redundant booleanBackup Enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- infrastructure
Encryption booleanEnabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- public
Network booleanAccess Enabled Whether or not public network access is allowed for this server. Defaults to
true.- restore
Point stringIn Time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- ssl
Enforcement string - ssl
Enforcement booleanEnabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- ssl
Minimal stringTls Version Enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- storage
Mb number Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- storage
Profile ServerStorage Profile - {[key: string]: string}
A mapping of tags to assign to the resource.
- threat
Detection ServerPolicy Threat Detection Policy Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.
- resource_
group_ strname The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- sku_
name str Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- version str
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.- administrator_
login str The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- administrator_
login_ strpassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- auto_
grow_ boolenabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- backup_
retention_ floatdays Backup retention days for the server, supported values are between
7and35days.- create_
mode str The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- creation_
source_ strserver_ id For creation modes other then default the source server ID to use.
- geo_
redundant_ boolbackup_ enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- infrastructure_
encryption_ boolenabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- public_
network_ boolaccess_ enabled Whether or not public network access is allowed for this server. Defaults to
true.- restore_
point_ strin_ time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- ssl_
enforcement str - ssl_
enforcement_ boolenabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- ssl_
minimal_ strtls_ version_ enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- storage_
mb float Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- storage_
profile Dict[ServerStorage Profile] - Dict[str, str]
A mapping of tags to assign to the resource.
- threat_
detection_ Dict[Serverpolicy Threat Detection Policy] Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
Look up an Existing Server Resource
Get an existing Server resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServerState, opts?: CustomResourceOptions): Serverstatic get(resource_name, id, opts=None, administrator_login=None, administrator_login_password=None, auto_grow_enabled=None, backup_retention_days=None, create_mode=None, creation_source_server_id=None, fqdn=None, geo_redundant_backup_enabled=None, infrastructure_encryption_enabled=None, location=None, name=None, public_network_access_enabled=None, resource_group_name=None, restore_point_in_time=None, sku_name=None, ssl_enforcement=None, ssl_enforcement_enabled=None, ssl_minimal_tls_version_enforced=None, storage_mb=None, storage_profile=None, tags=None, threat_detection_policy=None, version=None, __props__=None);func GetServer(ctx *Context, name string, id IDInput, state *ServerState, opts ...ResourceOption) (*Server, error)public static Server Get(string name, Input<string> id, ServerState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Administrator
Login string The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- Administrator
Login stringPassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- Auto
Grow boolEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- Backup
Retention intDays Backup retention days for the server, supported values are between
7and35days.- Create
Mode string The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- Creation
Source stringServer Id For creation modes other then default the source server ID to use.
- Fqdn string
The FQDN of the PostgreSQL Server.
- Geo
Redundant boolBackup Enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- Infrastructure
Encryption boolEnabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- Public
Network boolAccess Enabled Whether or not public network access is allowed for this server. Defaults to
true.- Resource
Group stringName The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- Restore
Point stringIn Time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- Sku
Name string Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- Ssl
Enforcement string - Ssl
Enforcement boolEnabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- Ssl
Minimal stringTls Version Enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- Storage
Mb int Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- Storage
Profile ServerStorage Profile Args - Dictionary<string, string>
A mapping of tags to assign to the resource.
- Threat
Detection ServerPolicy Threat Detection Policy Args Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.- Version string
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.
- Administrator
Login string The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- Administrator
Login stringPassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- Auto
Grow boolEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- Backup
Retention intDays Backup retention days for the server, supported values are between
7and35days.- Create
Mode string The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- Creation
Source stringServer Id For creation modes other then default the source server ID to use.
- Fqdn string
The FQDN of the PostgreSQL Server.
- Geo
Redundant boolBackup Enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- Infrastructure
Encryption boolEnabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- Public
Network boolAccess Enabled Whether or not public network access is allowed for this server. Defaults to
true.- Resource
Group stringName The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- Restore
Point stringIn Time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- Sku
Name string Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- Ssl
Enforcement string - Ssl
Enforcement boolEnabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- Ssl
Minimal stringTls Version Enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- Storage
Mb int Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- Storage
Profile ServerStorage Profile - map[string]string
A mapping of tags to assign to the resource.
- Threat
Detection ServerPolicy Threat Detection Policy Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.- Version string
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.
- administrator
Login string The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- administrator
Login stringPassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- auto
Grow booleanEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- backup
Retention numberDays Backup retention days for the server, supported values are between
7and35days.- create
Mode string The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- creation
Source stringServer Id For creation modes other then default the source server ID to use.
- fqdn string
The FQDN of the PostgreSQL Server.
- geo
Redundant booleanBackup Enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- infrastructure
Encryption booleanEnabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- public
Network booleanAccess Enabled Whether or not public network access is allowed for this server. Defaults to
true.- resource
Group stringName The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- restore
Point stringIn Time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- sku
Name string Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- ssl
Enforcement string - ssl
Enforcement booleanEnabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- ssl
Minimal stringTls Version Enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- storage
Mb number Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- storage
Profile ServerStorage Profile - {[key: string]: string}
A mapping of tags to assign to the resource.
- threat
Detection ServerPolicy Threat Detection Policy Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.- version string
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.
- administrator_
login str The Administrator Login for the PostgreSQL Server. Required when
create_modeisDefault. Changing this forces a new resource to be created.- administrator_
login_ strpassword The Password associated with the
administrator_loginfor the PostgreSQL Server. Required whencreate_modeisDefault.- auto_
grow_ boolenabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is
true.- backup_
retention_ floatdays Backup retention days for the server, supported values are between
7and35days.- create_
mode str The creation mode. Can be used to restore or replicate existing servers. Possible values are
Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.- creation_
source_ strserver_ id For creation modes other then default the source server ID to use.
- fqdn str
The FQDN of the PostgreSQL Server.
- geo_
redundant_ boolbackup_ enabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier.
- infrastructure_
encryption_ boolenabled Whether or not infrastructure is encrypted for this server. Defaults to
false. Changing this forces a new resource to be created.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- public_
network_ boolaccess_ enabled Whether or not public network access is allowed for this server. Defaults to
true.- resource_
group_ strname The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- restore_
point_ strin_ time When
create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id.- sku_
name str Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the
tier+family+corespattern (e.g.B_Gen4_1,GP_Gen5_8). For more information see the product documentation.- ssl_
enforcement str - ssl_
enforcement_ boolenabled Specifies if SSL should be enforced on connections. Possible values are
trueandfalse.- ssl_
minimal_ strtls_ version_ enforced The mimimun TLS version to support on the sever. Possible values are
TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLSEnforcementDisabled.- storage_
mb float Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.- storage_
profile Dict[ServerStorage Profile] - Dict[str, str]
A mapping of tags to assign to the resource.
- threat_
detection_ Dict[Serverpolicy Threat Detection Policy] Threat detection policy configuration, known in the API as Server Security Alerts Policy. The
threat_detection_policyblock supports fields documented below.- version str
Specifies the version of PostgreSQL to use. Valid values are
9.5,9.6,10,10.0, and11. Changing this forces a new resource to be created.
Supporting Types
ServerStorageProfile
- Auto
Grow string - Backup
Retention intDays Backup retention days for the server, supported values are between
7and35days.- Geo
Redundant stringBackup - Storage
Mb int Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Auto
Grow string - Backup
Retention intDays Backup retention days for the server, supported values are between
7and35days.- Geo
Redundant stringBackup - Storage
Mb int Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- auto
Grow string - backup
Retention numberDays Backup retention days for the server, supported values are between
7and35days.- geo
Redundant stringBackup - storage
Mb number Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- auto
Grow str - backup_
retention_ floatdays Backup retention days for the server, supported values are between
7and35days.- geo
Redundant strBackup - storage_
mb float Max storage allowed for a server. Possible values are between
5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and4194304MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
ServerThreatDetectionPolicy
- Disabled
Alerts List<string> Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- Email
Account boolAdmins Should the account administrators be emailed when this alert is triggered?
- Email
Addresses List<string> A list of email addresses which alerts should be sent to.
- Enabled bool
Is the policy enabled?
- 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.
- Disabled
Alerts []string Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- Email
Account boolAdmins Should the account administrators be emailed when this alert is triggered?
- Email
Addresses []string A list of email addresses which alerts should be sent to.
- Enabled bool
Is the policy enabled?
- 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.
- disabled
Alerts string[] Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- email
Account booleanAdmins Should the account administrators be emailed when this alert is triggered?
- email
Addresses string[] A list of email addresses which alerts should be sent to.
- enabled boolean
Is the policy enabled?
- 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.
- disabled_
alerts List[str] Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- email_
account_ booladmins Should the account administrators be emailed when this alert is triggered?
- email_
addresses List[str] A list of email addresses which alerts should be sent to.
- enabled bool
Is the policy enabled?
- retention_
days float 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.