# BackupsApi

## BackupsApi

All URIs are relative to *<https://mariadb.de-txl.ionos.com>*

| Method                                            | HTTP request                          | Description                |
| ------------------------------------------------- | ------------------------------------- | -------------------------- |
| [**backups\_find\_by\_id**](#backups_find_by_id)  | **GET** /backups/{backupId}           | Fetch a cluster's backups  |
| [**backups\_get**](#backups_get)                  | **GET** /backups                      | List of cluster's backups. |
| [**cluster\_backups\_get**](#cluster_backups_get) | **GET** /clusters/{clusterId}/backups | List backups of cluster    |

## **backups\_find\_by\_id**

> BackupResponse backups\_find\_by\_id(backup\_id)

Fetch a cluster's backups

Retrieve a MariaDB cluster's backups by using its ID. This value can be found when you GET the list of MariaDB cluster backups.

#### Example

#### Parameters

| Name           | Type    | Description                  | Notes |
| -------------- | ------- | ---------------------------- | ----- |
| **backup\_id** | **str** | The unique ID of the backup. |       |

#### Return type

[**BackupResponse**](https://docs.ionos.com/sections-test/python-sdk/mariadb-sdk-python/models/backupresponse)

#### Authorization

tokenAuth

#### HTTP request headers

* **Content-Type**: Not defined
* **Accept**: application/json

## **backups\_get**

> BackupList backups\_get(limit=limit, offset=offset)

List of cluster's backups.

Retrieves all lists of backups for all MariaDB clusters in this contract.

#### Example

#### Parameters

| Name       | Type    | Description                                                                          | Notes                         |
| ---------- | ------- | ------------------------------------------------------------------------------------ | ----------------------------- |
| **limit**  | **int** | The maximum number of elements to return. Use together with 'offset' for pagination. | \[optional] \[default to 100] |
| **offset** | **int** | The first element to return. Use together with 'limit' for pagination.               | \[optional] \[default to 0]   |

#### Return type

[**BackupList**](https://docs.ionos.com/sections-test/python-sdk/mariadb-sdk-python/models/backuplist)

#### Authorization

tokenAuth

#### HTTP request headers

* **Content-Type**: Not defined
* **Accept**: application/json

## **cluster\_backups\_get**

> BackupList cluster\_backups\_get(cluster\_id, limit=limit, offset=offset)

List backups of cluster

Retrieves a list of all backups of the given MariaDB cluster.

#### Example

#### Parameters

| Name            | Type    | Description                                                                          | Notes                         |
| --------------- | ------- | ------------------------------------------------------------------------------------ | ----------------------------- |
| **cluster\_id** | **str** | The unique ID of the cluster.                                                        |                               |
| **limit**       | **int** | The maximum number of elements to return. Use together with 'offset' for pagination. | \[optional] \[default to 100] |
| **offset**      | **int** | The first element to return. Use together with 'limit' for pagination.               | \[optional] \[default to 0]   |

#### Return type

[**BackupList**](https://docs.ionos.com/sections-test/python-sdk/mariadb-sdk-python/models/backuplist)

#### Authorization

tokenAuth

#### HTTP request headers

* **Content-Type**: Not defined
* **Accept**: application/json
