» Data Source: azurerm_postgresql_server

Use this data source to access information about an existing PostgreSQL Azure Database Server.

» Example Usage

data "azurerm_postgresql_server" "example" {
  name                = "postgresql-server-1"
  resource_group_name = "api-rg-pro"
}

output "postgresql_server_id" {
  value = data.azurerm_postgresql_server.example.id
}

» Argument Reference

  • name - The name of the PostgreSQL Server.

  • resource_group_name - Specifies the name of the Resource Group where the PostgreSQL Server exists.

» Attributes Reference

  • location - The location of the Resource Group in which the PostgreSQL Server exists.

  • fqdn - The fully qualified domain name of the PostgreSQL Server.

  • version - The version of the PostgreSQL Server.

  • administrator_login - The administrator username of the PostgreSQL Server.

  • sku_name - The SKU name of the PostgreSQL Server.

  • tags - A mapping of tags assigned to the resource.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the PostgreSQL Azure Database Server.