Use this data source to access information about an existing PostgreSQL Flexible Server.
data "azurerm_postgresql_flexible_server" "example" {
name = "existing-postgresql-fs"
resource_group_name = "existing-postgresql-resgroup"
}
output "id" {
value = data.azurerm_postgresql_flexible_server.example.id
}
The following arguments are supported:
name
- (Required) The name of this PostgreSQL Flexible Server.
resource_group_name
- (Required) The name of the Resource Group where the PostgreSQL Flexible Server exists.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the PostgreSQL Flexible Server.
location
- The Azure Region where the PostgreSQL Flexible Server exists.
administrator_login
- The Administrator login for the PostgreSQL Flexible Server.
auto_grow_enabled
- Is the storage auto grow for PostgreSQL Flexible Server enabled?
backup_retention_days
- The backup retention days for the PostgreSQL Flexible Server.
delegated_subnet_id
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server.
fqdn
- The FQDN of the PostgreSQL Flexible Server.
public_network_access_enabled
- Is public network access enabled?
sku_name
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier
+ name
pattern (e.g. B_Standard_B1ms
, GP_Standard_D2s_v3
, MO_Standard_E4s_v3
).
storage_mb
- The max storage allowed for the PostgreSQL Flexible Server.
version
- The version of PostgreSQL Flexible Server to use.
tags
- A mapping of tags assigned to the PostgreSQL Flexible Server.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the PostgreSQL Flexible Server.