ionoscloud-dbaas-mariadb
IONOS CLOUD Database as a Service (DBaaS) MariaDB v2 lets you provision and manage MariaDB clusters through a REST API. For product information, see IONOS CLOUD MariaDB Guide.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.0.0
- Package version: 3.0.0
- 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/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_dbaas_mariadb.Configuration(
host = "https://mariadb.de-txl.ionos.com/v2"
)
# 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 Bearer authorization (JWT): tokenAuth
configuration = ionoscloud_dbaas_mariadb.Configuration(
token = os.environ["IONOS_TOKEN"]
)
# 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.BackupLocationsApi(api_client)
backup_location_id = '7fa1dd11-59dd-53a5-ab67-50f649c8e3eb' # str | The ID (UUID) of the BackupLocation.
try:
# Retrieve BackupLocation
api_response = api_instance.backuplocations_find_by_id(backup_location_id)
print("The response of BackupLocationsApi->backuplocations_find_by_id:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling BackupLocationsApi->backuplocations_find_by_id: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://mariadb.de-txl.ionos.com/v2
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BackupLocationsApi | backuplocations_find_by_id | GET /backup-locations/{backupLocationId} | Retrieve BackupLocation |
| BackupLocationsApi | backuplocations_get | GET /backup-locations | Retrieve all BackupLocations |
| BackupsApi | backups_find_by_id | GET /backups/{backupId} | Retrieve Backup |
| BackupsApi | backups_get | GET /backups | Retrieve all Backups |
| ClustersApi | clusters_delete | DELETE /clusters/{clusterId} | Delete Cluster |
| ClustersApi | clusters_find_by_id | GET /clusters/{clusterId} | Retrieve Cluster |
| ClustersApi | clusters_get | GET /clusters | Retrieve all Clusters |
| ClustersApi | clusters_post | POST /clusters | Create Cluster |
| ClustersApi | clusters_put | PUT /clusters/{clusterId} | Ensure Cluster |
| VersionsApi | versions_find_by_id | GET /versions/{versionId} | Retrieve MariadbVersion |
| VersionsApi | versions_get | GET /versions | Retrieve all Versions |
Documentation For Models
- Backup
- BackupCreate
- BackupEnsure
- BackupLocation
- BackupLocationRead
- BackupLocationReadList
- BackupRead
- BackupReadList
- Cluster
- ClusterBackup
- ClusterCreate
- ClusterCreateProperties
- ClusterEnsure
- ClusterMetadata
- ClusterRead
- ClusterReadList
- DayOfTheWeek
- Error
- ErrorMessagesInner
- InstanceConfiguration
- Links
- MaintenanceWindow
- MariadbClusterConnection
- MariadbClusterStates
- MariadbRestoreClusterFromBackup
- MariadbUser
- MariadbVersion
- MariadbVersionRead
- MariadbVersionReadList
- Metadata
- Pagination
Documentation For Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: Bearer authentication (JWT)
Author
Metadata
Release files for ionoscloud-dbaas-mariadb 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ionoscloud_dbaas_mariadb-3.0.0.tar.gz | 41.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ionoscloud_dbaas_mariadb-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 131.7 kB
Release files / ionoscloud_dbaas_mariadb-3.0.0.tar.gz
| Download URL | ionoscloud_dbaas_mariadb-3.0.0.tar.gz |
|---|---|
| Size | 41.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83fdd8924671cf72b20d3c90891189343d81284fc237cbd76e22d5e28f416d26
|
|
BLAKE2b-256 checksum How to use checksums |
6de58073b39cd0eae5c4f40c7ae9857e7c997918cc5023af75dc3743d2470fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / ionoscloud_dbaas_mariadb-3.0.0-py3-none-any.whl
| Download URL | ionoscloud_dbaas_mariadb-3.0.0-py3-none-any.whl |
|---|---|
| Size | 90.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2325da2b4d29a0d1633c6b0c18a1636f809f349c57281cb7bf63575b33d2137
|
|
BLAKE2b-256 checksum How to use checksums |
75b7c9a7a3bf7aa8544a79be3718723ef5cdf0c0253fb6da7eb6cab38beb22d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|