Download OpenAPI specification:Download
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.
Retrieves a list of MariaDB clusters.
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
filter.name | string Response filter to list only the MariaDB clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. |
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "items": [
- {
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "MariaDB cluster",
- "mariadbVersion": "10.6",
- "dnsName": "ma-yourcluster.mariadb.region.ionos.com",
- "instances": 3,
- "ram": 4,
- "cores": 4,
- "storageSize": 10,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
], - "offset": 200,
- "limit": 100,
- "total": 200,
- "_links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}
}
Creates a new MariaDB cluster.
The cluster to be created.
object (CreateClusterProperties) Properties with all data needed to create a new MariaDB cluster. |
{- "properties": {
- "mariadbVersion": "10.6",
- "instances": 3,
- "cores": 4,
- "ram": 4,
- "storageSize": 10,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "displayName": "MariaDB cluster",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "credentials": {
- "username": "cluster_admin",
- "password": "my-t0p-secret-password"
}, - "fromBackup": {
- "backupId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}
}
}
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "MariaDB cluster",
- "mariadbVersion": "10.6",
- "dnsName": "ma-yourcluster.mariadb.region.ionos.com",
- "instances": 3,
- "ram": 4,
- "cores": 4,
- "storageSize": 10,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
You can retrieve a MariaDB cluster by using its ID. This value can be found in the response body when a MariaDB cluster is created or when you GET a list of MariaDB clusters.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "MariaDB cluster",
- "mariadbVersion": "10.6",
- "dnsName": "ma-yourcluster.mariadb.region.ionos.com",
- "instances": 3,
- "ram": 4,
- "cores": 4,
- "storageSize": 10,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Updates mutable attributes on a MariaDB cluster.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
Attributes of the cluster which should be modified.
object (ClusterMetadata) Metadata of the resource. | |
object (PatchClusterProperties) Properties of the payload to change a cluster:
|
{- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "instances": 3,
- "cores": 4,
- "ram": 4,
- "storageSize": 10,
- "displayName": "MariaDB cluster",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "MariaDB cluster",
- "mariadbVersion": "10.6",
- "dnsName": "ma-yourcluster.mariadb.region.ionos.com",
- "instances": 3,
- "ram": 4,
- "cores": 4,
- "storageSize": 10,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Delete a MariaDB cluster.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "MariaDB cluster",
- "mariadbVersion": "10.6",
- "dnsName": "ma-yourcluster.mariadb.region.ionos.com",
- "instances": 3,
- "ram": 4,
- "cores": 4,
- "storageSize": 10,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Restore a MariaDB cluster from a backup.
Conditions:
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
The backup to restore from.
backupId required | string (ResourceID) The unique ID of the resource. |
recoveryTargetTime | string <date-time> The timestamp to which the cluster should be restored. If empty, the backup will be applied to the latest timestamp. This value must be supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely. Must be within the earliestRecoveryTargetTime and now. The earliestRecoveryTargetTime can be looked up in the backup object. |
{- "backupId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "dbaas-err-api-123",
- "message": "Error message example"
}
]
}
Retrieves a list of all backups of the given MariaDB cluster.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "items": [
- {
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "properties": {
- "clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
- "size": 2052,
- "baseBackups": [
- {
- "created": "2020-12-10T13:37:50+01:00",
- "size": 543
}
]
}
}
], - "offset": 200,
- "limit": 100,
- "total": 200,
- "_links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}
}
Retrieves all lists of backups for all MariaDB clusters in this contract.
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "items": [
- {
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "properties": {
- "clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
- "size": 2052,
- "baseBackups": [
- {
- "created": "2020-12-10T13:37:50+01:00",
- "size": 543
}
]
}
}
], - "offset": 200,
- "limit": 100,
- "total": 200,
- "_links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}
}
Retrieve a MariaDB backup by ID. This value can be found when you GET the list of MariaDB backups.
backupId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the backup. |
{- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "properties": {
- "clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
- "size": 2052,
- "baseBackups": [
- {
- "created": "2020-12-10T13:37:50+01:00",
- "size": 543
}
]
}
}
Restore a MariaDB cluster from a backup.
Conditions:
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
The backup to restore from.
backupId required | string (ResourceID) The unique ID of the resource. |
recoveryTargetTime | string <date-time> The timestamp to which the cluster should be restored. If empty, the backup will be applied to the latest timestamp. This value must be supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely. Must be within the earliestRecoveryTargetTime and now. The earliestRecoveryTargetTime can be looked up in the backup object. |
{- "backupId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "dbaas-err-api-123",
- "message": "Error message example"
}
]
}