Create a MariaDB Cluster
The request creates a new MariaDB cluster.
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 MariaDB cluster, 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
is498ae72f-411f-11eb-9d07-046c59cc737e
.
Response
Your values will differ from those in the sample code. It may contain different IDs, timestamps etc.
You may have noticed that the metadata.state
is BUSY
and that the database 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. This process runs asynchronously in the background and might take up to 30 minutes.
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