IONOS DBaaS MariaDB REST API
Project description
ionoscloud-dbaas-mariadb
An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based "Data Center Designer" (DCD) tool or via an easy to use API.
The API allows you to create additional MariaDB database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 2.0.0-beta.1
- Generator version: 7.13.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/ionos-cloud/sdk-python.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/ionos-cloud/sdk-python.git)
Then import the package:
import ionoscloud_dbaas_mariadb
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import ionoscloud_dbaas_mariadb
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import ionoscloud_dbaas_mariadb
from ionoscloud_dbaas_mariadb.rest import ApiException
from pprint import pprint
import os
# Defining the host is optional and defaults to https://mariadb.de-txl.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_dbaas_mariadb.Configuration(
host = "https://mariadb.de-txl.ionos.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: tokenAuth
configuration.api_key['tokenAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['tokenAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with ionoscloud_dbaas_mariadb.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud_dbaas_mariadb.BackupsApi(api_client)
backup_id = '498ae72f-411f-11eb-9d07-046c59cc737e' # str | The unique ID of the backup.
try:
# Fetch backups
api_response = api_instance.backups_find_by_id(backup_id)
print("The response of BackupsApi->backups_find_by_id:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling BackupsApi->backups_find_by_id: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://mariadb.de-txl.ionos.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BackupsApi | backups_find_by_id | GET /backups/{backupId} | Fetch backups |
| BackupsApi | backups_get | GET /backups | List of backups. |
| BackupsApi | cluster_backups_get | GET /clusters/{clusterId}/backups | List backups of cluster |
| ClustersApi | clusters_delete | DELETE /clusters/{clusterId} | Delete a cluster |
| ClustersApi | clusters_find_by_id | GET /clusters/{clusterId} | Fetch a cluster |
| ClustersApi | clusters_get | GET /clusters | List clusters |
| ClustersApi | clusters_patch | PATCH /clusters/{clusterId} | Update a cluster |
| ClustersApi | clusters_post | POST /clusters | Create a cluster |
| RestoreApi | clusters_restore | POST /clusters/{clusterId}/restore | In-place restore of a cluster. |
Documentation For Models
- Backup
- BackupList
- BackupProperties
- BackupResponse
- BaseBackup
- ClusterList
- ClusterMetadata
- ClusterProperties
- ClusterResponse
- ClustersGet400Response
- ClustersGet401Response
- ClustersGet403Response
- ClustersGet404Response
- ClustersGet405Response
- ClustersGet415Response
- ClustersGet422Response
- ClustersGet429Response
- ClustersGet500Response
- ClustersGet503Response
- Connection
- CreateClusterProperties
- CreateClusterRequest
- DBUser
- DayOfTheWeek
- ErrorMessage
- InlineObject
- MaintenanceWindow
- MariadbVersion
- Pagination
- PaginationLinks
- PatchClusterProperties
- PatchClusterRequest
- RestoreRequest
- State
Documentation For Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ionoscloud_dbaas_mariadb-2.0.0b1.tar.gz.
File metadata
- Download URL: ionoscloud_dbaas_mariadb-2.0.0b1.tar.gz
- Upload date:
- Size: 40.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afe4b11ab2a588c9bae5140ed28716d924767091e1ddab3c15f910c34b7735cf
|
|
| MD5 |
2e525059684dad32277bfc23d5993595
|
|
| BLAKE2b-256 |
7a9fcd4af5158b89f0121386efee00c5714f40590de5fabe1ab9419ec82fa28a
|
File details
Details for the file ionoscloud_dbaas_mariadb-2.0.0b1-py3-none-any.whl.
File metadata
- Download URL: ionoscloud_dbaas_mariadb-2.0.0b1-py3-none-any.whl
- Upload date:
- Size: 97.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61b1f13dd7de7ffbac4b94e610968127c3ad119b5ad652ec03399d7b94538ee
|
|
| MD5 |
8a356956e4874ab2f80979ab56578aa8
|
|
| BLAKE2b-256 |
8792a616cfe925dd52721cca9815350768cacfe29ea3e39f549413ca238eb95f
|