yandex_mdb_postgresql_database (Data Source)
Статья создана
Обновлена 7 августа 2025 г.
Get information about a Yandex Managed PostgreSQL database. For more information, see the official documentation.
Example usage
//
// Get information about existing MDB PostgreSQL Database.
//
data "yandex_mdb_postgresql_database" "foo" {
cluster_id = "some_cluster_id"
name = "test"
}
output "owner" {
value = data.yandex_mdb_postgresql_database.foo.owner
}
Schema
Required
cluster_id(String) The ID of the PostgreSQL cluster.name(String) The resource name.
Optional
deletion_protection(String) Thetruevalue means that resource is protected from accidental deletion.extension(Block Set) Set of database extensions. (see below for nested schema)lc_collate(String) POSIX locale for string sorting order. Forbidden to change in an existing database.lc_type(String) POSIX locale for character classification. Forbidden to change in an existing database.owner(String) Name of the user assigned as the owner of the database. Forbidden to change in an existing database.template_db(String) Name of the template database.
Read-Only
id(String) The ID of this resource.
Nested Schema for extension
Required:
name(String) Name of the database extension. For more information on available extensions see the official documentation. Name of the database extension. For more information on available extensions see the official documentation.