> For the complete documentation index, see [llms.txt](https://docs.ionos.com/terraform-provider/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/terraform-provider/data-sources/mariadb_clusters_v2.md).

# ionoscloud\_mariadb\_clusters\_v2

The `ionoscloud_mariadb_clusters_v2` data source can be used to retrieve information about existing MariaDB V2 clusters in a given location, with an optional name filter.

## Example Usage

```hcl
data "ionoscloud_mariadb_clusters_v2" "all" {
  location = "de/txl"
}

data "ionoscloud_mariadb_clusters_v2" "filtered" {
  location = "de/txl"
  name     = "my-cluster"
}
```

## Argument Reference

* `location` - (Required)\[string] The location to query. Available locations: `de/fra`, `de/txl`, `es/vit`, `fr/par`, `gb/bhx`, `gb/lhr`, `us/ewr`, `us/las`, `us/mci`.
* `name` - (Optional)\[string] Filter clusters by name (**partial match** — the value is passed directly to the API's name filter, so it matches any cluster name containing the given string, not only an exact match).

## Attributes Reference

The following attributes are returned by the datasource:

* `items` - List of clusters. Each item exposes the same attributes as the [ionoscloud\_mariadb\_cluster\_v2](/terraform-provider/data-sources/mariadb_cluster_v2.md) data source. Note that `credentials.password` is not available — only `credentials.username` and `credentials.database` are returned by the API.
