Create Database
Create a managed MariaDB database in the active account. It starts as provisioning and becomes ready once ngris has created it (poll GET /v1/databases/{uuid}). Its name inside MariaDB is generated, app_ + the name in lowercase letters, digits and _ + _ + 8 generated characters, and never changes.
Every new database gets a first, read-write user: app, unless you pass initial_user_name. The response carries that user's password once: ngris stores it encrypted and the API never returns it again. Apps you connect as the user get it automatically; if you lose it, rotate the password.
Requires Databases write and a plan with managed databases. The database counts against the plan's database limit, which depends on the plan: List Databases returns the caller's as quota.limit, and GET /v1/account/plan as plan_limits.max_managed_databases.
Request body
app: 1–32 characters, no control characters, not starting with _.mariadb, the only engine.Response (201 Created)
status: "provisioning".status: "provisioning".Errors
invalid request body, engine must be mariadb, Database name must be 1-64 characters, with no control characters, or User name must be 1-32 characters, with no control characters, not starting with _.Managed databases are not available on your plan, or the plan's limit is reached: You've reached your plan's limit of N managed databases — delete one or upgrade your plan.name_taken: A database with this name already exists.databases_unavailable, or Another managed database change is in progress — please retry.