Create Database
Create a managed MariaDB database in the active account. It starts as provisioning; ngris creates it on the shared database server within seconds and it becomes ready (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 limit (Team 3, Enterprise 10).
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 3 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.