v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0618918374.7 KB
Databases

Create Storage

Create a persistent storage or file storage for a database.

post/databases/{uuid}/storages

Path parameters

uuidstring required

UUID of the database.

Request body

type'persistent' | 'file' required

The type of storage.

namestring

Volume name (persistent only, required for persistent).

mount_pathstring required

The container mount path.

host_pathstring nullable

The host path (persistent only, optional).

contentstring nullable

File content (file only, optional).

is_directoryboolean

Whether this is a directory mount (file only, default false).

fs_pathstring

Host directory path (required when is_directory is true).

Response

Storage created.

object required