[Yandex Cloud documentation](../../index.md) > [Terraform in Yandex Cloud](../index.md) > Terraform reference > Resources > Managed Service for ClickHouse > Data Sources > mdb_clickhouse_database

# yandex_mdb_clickhouse_database (DataSource)

Get information about a Yandex Managed ClickHouse database.

## Example usage

```terraform
data "yandex_mdb_clickhouse_database" "foo" {
  cluster_id = "some_cluster_id"
  name       = "dbname"
}

output "dbname" {
  value = data.yandex_mdb_clickhouse_database.foo.id
}
```

## Arguments & Attributes Reference

- `cluster_id` (**Required**)(String). ID of the ClickHouse cluster. Provided by the client when the database is created.
- `engine` (String). Database engine, possible values are: atomic,replicated.
- `id` (*Read-Only*) (String). The resource identifier.
- `name` (**Required**)(String). The name of the database.
- `timeouts` [Block]. 
  - `create` (String). A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
  - `delete` (String). A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.