databases

Create a database instance

Tạo dữ liệu hoặc thực thi thao tác tại /api/databases. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới. Engine nhận mongodb, postgresql, mysql (mongo là alias). Route thật trả 409 engine_not_available trước khi tạo job nếu template đã resolve chưa có trên node; route sandbox không kiểm tra hạ tầng.

post/api/databases

Request

  • Base URL: https://api.monacloud.vn
  • URL: https://api.monacloud.vn/api/databases
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Token

Request body

app_namestring required
engine'mongodb' | 'postgresql' | 'mysql'

Database engine. mongo is accepted as a compatibility alias for mongodb; canonical values are mongodb, postgresql, and mysql.

package_slugstring nullable
cpuinteger nullable
ram_gbinteger nullable
disk_gbinteger nullable

Response

Successful Response

idstring required
status'awaiting_upload' | 'queued' | 'pending' | 'running' | 'done' | 'succeeded' | 'failed' | 'retrying' | 'cancelled' required
typestring required
resultobject nullable
errorstring nullable
attemptsinteger
max_attemptsinteger
created_atstring date-time nullable
updated_atstring date-time nullable
sandboxboolean
expires_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.