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 API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 0.1.0
- Package version: 1.1.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
import "./ionoscloud"
All available server URLs are:
- https://mariadb.de-txl.ionos.com - Berlin, Germany
- https://mariadb.de-fra.ionos.com - Frankfurt, Germany
- https://mariadb.es-vit.ionos.com - Logroño, Spain
- https://mariadb.fr-par.ionos.com - Paris, France
- https://mariadb.gb-lhr.ionos.com - London, Great Britain
- https://mariadb.us-ewr.ionos.com - Newark, USA
- https://mariadb.us-las.ionos.com - Las Vegas, USA
- https://mariadb.us-mci.ionos.com - Lenexa, USA
By default, https://mariadb.de-txl.ionos.com is used, however this can be overriden at authentication, either
by setting the IONOS_API_URL
environment variable or by specifying the hostUrl
parameter when
initializing the sdk client.
The username and password or the authentication token can be manually specified when initializing the sdk client:
client := ionoscloud.NewAPIClient(ionoscloud.NewConfiguration(username, password, token, hostUrl))
Environment variables can also be used. The sdk uses the following variables:
- IONOS_TOKEN - login via token. This is the recommended way to authenticate.
- IONOS_USERNAME - to specify the username used to login
- IONOS_PASSWORD - to specify the password
- IONOS_API_URL - to specify the API server URL
In this case, the client configuration needs to be initialized using NewConfigurationFromEnv()
.
client := ionoscloud.NewAPIClient(ionoscloud.NewConfigurationFromEnv())
All URIs are relative to https://mariadb.de-txl.ionos.com
API Endpoints table
Class | Method | HTTP request | Description |
---|---|---|---|
BackupsApi | BackupsFindById | Get /backups/{backupId} | Fetch backups |
BackupsApi | BackupsGet | Get /backups | List of backups. |
BackupsApi | ClusterBackupsGet | Get /clusters/{clusterId}/backups | List backups of cluster |
ClustersApi | ClustersDelete | Delete /clusters/{clusterId} | Delete a cluster |
ClustersApi | ClustersFindById | Get /clusters/{clusterId} | Fetch a cluster |
ClustersApi | ClustersGet | Get /clusters | List clusters |
ClustersApi | ClustersPatch | Patch /clusters/{clusterId} | Update a cluster |
ClustersApi | ClustersPost | Post /clusters | Create a cluster |
RestoreApi | ClustersRestore | Post /clusters/{clusterId}/restore | In-place restore of a cluster. |
All URIs are relative to https://mariadb.de-txl.ionos.com
API models list
- Backup
- BackupList
- BackupListAllOf
- BackupResponse
- BaseBackup
- ClusterList
- ClusterListAllOf
- ClusterMetadata
- ClusterProperties
- ClusterResponse
- ClustersGet400Response
- ClustersGet401Response
- ClustersGet403Response
- ClustersGet404Response
- ClustersGet405Response
- ClustersGet415Response
- ClustersGet422Response
- ClustersGet429Response
- ClustersGet500Response
- ClustersGet503Response
- Connection
- CreateClusterProperties
- CreateClusterRequest
- DBUser
- DayOfTheWeek
- ErrorMessage
- MaintenanceWindow
- MariadbVersion
- Pagination
- PaginationLinks
- PatchClusterProperties
- PatchClusterRequest
- RestoreRequest
- State