Create a MariaDB Cluster from a Backup
The request creates a new MariaDB cluster, which involves restoring a backup of an existing MariaDB cluster and configuring it to function as a new cluster. Ensure you have a backup of your MariaDB cluster containing all the necessary data and configuration files for appropriate functioning.
Prerequisite
Only contract administrators, owners, and users with Access and manage DBaaS privilege can create and manage MariaDB clusters. Ensure that you have the necessary privilege.
Request
Note:
After creating a database, you can access it via the corresponding LAN using the same username and password specified during creation.
This is the only opportunity to set the username and password via the API. The API does not provide a way to change the credentials yet. However, you can change them later using raw SQL.
The data center must be provided as a
UUID
. The easiest way to retrieve theUUID
is through the Cloud API.The sample
UUID
in the example is498ae72f-411f-11eb-9d07-046c59cc737e
.
Response
Your values will differ from those in the sample code. It may contain different IDs, timestamps etc.
The created cluster is returned with metadata.state
set to BUSY
, which indicates that the cluster is not yet reachable. This is because the cloud will create a completely new cluster and needs to provision new nodes for all the requested replicas.
200 Successful operation
After creation, remember to validate the status of your MariaDB cluster. For more information, see Verify the Status of a MariaDB Cluster.
Last updated