> 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/databases/mariadb/api.md).

# API

The <code class="expression">space.vars.ionos\_cloud</code> Database as a Service (DBaaS) MariaDB API lets you provision and manage fully managed MariaDB clusters, including backups, scaling, and Kubernetes connectivity.

## MariaDB API versions

DBaaS MariaDB offers two versions of the MariaDB API. **Version 2 (2.0.0)** is the recommended version for production workloads, while **Version 1 (1.0.0)** is the legacy implementation.

**MariaDB v1** and **MariaDB v2** refer to <code class="expression">space.vars.ionos\_cloud</code>'s DBaaS API versions, not MariaDB software versions.

{% hint style="success" %}
**Note:** The **MariaDB v2 API** is now in General Availability (GA). Any <code class="expression">space.vars.ionos\_cloud</code> contract can provision MariaDB v2 clusters without prior activation. For more information, see [<mark style="color:blue;">DBaaS MariaDB v2 Cloud API</mark>](https://api.ionos.com/docs/mariadb/v2/).
{% endhint %}

{% hint style="warning" %}
**Important:**

* **MariaDB v2** is available in MariaDB Long-Term Support (LTS) versions, such as 10.6, 10.11, 11.4, 11.8, or 12.3. We recommend using 10.11 and above, as MariaDB 10.6 has reached End of Life (EOL).
* Use MariaDB v2 to create clusters using the [<mark style="color:blue;">DCD</mark>](/cloud/databases/mariadb/how-tos/v2.md) or the [<mark style="color:blue;">API</mark>](https://api.ionos.com/docs/mariadb/v2/).
* **MariaDB v1** has officially reached End of Life (EOL) and all legacy v1 clusters have been decommissioned effective **August 31, 2026**.
* The migration from v1 to v2 runs automatically with zero downtime. Your database stays fully functional throughout the process, and your existing connection strings continue to work without changes.
  {% endhint %}

## What can you do with the MariaDB APIs?

The MariaDB API lets you provision and manage MariaDB clusters programmatically using standard `HTTPS` requests.

You can also use the MariaDB API to:

* Provision and configure clusters with your chosen size and MariaDB version.
* Retrieve and list clusters in your account.
* Modify cluster configuration, such as scaling resources or updating settings.
* Delete clusters you no longer need.
* Retrieve backups for a cluster.
* Restore a cluster from a backup.
* Create a new cluster based on a backup.
* Connect MariaDB clusters to your managed Kubernetes clusters.

## Quick links

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>MariaDB v2 API</strong></mark></td><td>Learn how to create, manage, and delete MariaDB clusters using the MariaDB v2 Cloud API.</td><td><a href="https://api.ionos.com/docs/mariadb/v2/">https://api.ionos.com/docs/mariadb/v2/</a></td></tr><tr><td><mark style="color:blue;"><strong>MariaDB v1 API</strong></mark></td><td>Learn how to create, manage, and delete MariaDB clusters using the MariaDB v1 Cloud API.</td><td><a href="/cloud/databases/mariadb/api/v1-api.md">MariaDB v1</a></td></tr></tbody></table>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/databases/mariadb/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
