> 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:** The **MariaDB v1** API will be deprecated in an upcoming release. All existing clusters operating on the v1 version will be automatically migrated to the v2 version as part of this process. No user action is required. For more information, see [<mark style="color:blue;">MariaDB API Versions</mark>](https://api.ionos.com/docs/mariadb/v2/).
{% 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="/pages/bqyUTLsp0xEcyUep074n">/pages/bqyUTLsp0xEcyUep074n</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.
