v1

latestOpenAPI 3.1.02026-07-1213613295.5 KB
Applications

Create Storage

Create a persistent storage or file storage for an application.

post/applications/{uuid}/storages

Path parameters

uuidstring required

UUID of the application.

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