yandex_mdb_postgresql_database (DataSource)
Written by
Updated at September 23, 2026
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
}
Arguments & Attributes Reference
cluster_id(Required)(String). The ID of the PostgreSQL cluster.deletion_protection(Read-Only) (String). Thetruevalue means that resource is protected from accidental deletion.extension(Read-Only) (Set Of Object). Set of database extensions.name.
id(String).lc_collate(Read-Only) (String). POSIX locale for string sorting order. Forbidden to change in an existing database.lc_type(Read-Only) (String). POSIX locale for character classification. Forbidden to change in an existing database.name(Required)(String). The name of the PostgreSQL database.owner(Read-Only) (String). Name of the user assigned as the owner of the database. Changing this value transfers ownership of the database to another user.template_db(Read-Only) (String). Name of the template database.