Create a database
create_databaseOrders a managed database (PostgreSQL, MySQL, MariaDB or Valkey) in a private network, billed by the hour from now (the account needs 24 hours of credit), or by the month (730 hours) or the year (ten months) with billing; get_database_options gives each price. A monthly or yearly period comes out of credit if it covers it; otherwise billing.pending_invoice holds the invoice to pay and it stays hourly until then. Ready within minutes (status pending → active), with the admin user ffxfadmin and the logical database defaultdb (Valkey: the admin default, no logical database). Retrying the same call is safe. Scope: vms.create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vpc | Yes | Private network the database joins (list_vpcs); the machines on it reach the database. | |
| name | Yes | ||
| engine | No | Default postgresql. mysql is Percona Server; valkey is Redis-compatible (key-value, in memory). | |
| billing | No | hourly (default), monthly (the price of 730 hours, paid in advance) or yearly (ten months). Ask the user; monthly or yearly needs credit or an invoice paid by the user. | |
| size_gb | No | Memory in GB, one of the sizes of get_database_options for the region. Default: 1, or the source's size. | |
| version | No | Major version from get_database_options; the newest by default. | |
| idempotency_key | No | Your own unique value per order. By default one is derived from the call. |