> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/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/cloud/tools-terraform/docs/data-sources/mariadb_backups_v2.md).

# ionoscloud\_mariadb\_backups\_v2

Lists IONOS CLOUD MariaDB V2 Backups.

The `ionoscloud_mariadb_backups_v2` data source can be used to retrieve information about existing MariaDB V2 backups, with an optional cluster ID filter.

## Example Usage

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

data "ionoscloud_mariadb_backups_v2" "for_cluster" {
  location   = "de/txl"
  cluster_id = "example-id"
}
```

## Argument Reference

* `location` - (Required)\[string] The location to query. Available locations: `de/fra`, `de/fra/1`, `de/fra/2`, `de/txl`, `es/vit`, `fr/par`, `gb/bhx`, `gb/lhr`, `us/ewr`, `us/las`, `us/mci`.
* `cluster_id` - (Optional)\[string] Filter backups by the cluster they belong to.

## Attributes Reference

The following attributes are returned by the datasource:

* `items` - List of backups. Each item includes:
  * `id` - The ID (UUID) of the backup.
  * `location` - The Object Storage location where the backup is stored.
  * `cluster_id` - The ID of the cluster this backup belongs to.
  * `cluster_name` - The name of the cluster this backup belongs to.
  * `mariadb_cluster_version` - The MariaDB version of the cluster at backup time.
  * `earliest_recovery_target_time` - The earliest point in time to which the cluster can be restored from this backup (RFC3339).
  * `latest_recovery_target_time` - The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/tools-terraform/docs/data-sources/mariadb_backups_v2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
