apps

Create or reuse this user's Dokploy app host

Tạo dữ liệu hoặc thực thi thao tác tại /api/app-hosts. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới. Repo public HTTPS hoặc source=upload → job Dokploy → URL HTTPS / Deploy public git or local archives via Dokploy. Poll /api/jobs/{id} tới succeeded/failed. App host dùng billing LXC Wave A; app không tính thêm phí. POST /api/app-hosts với {} dùng 2 CPU/2 GB RAM/30 GB disk; hỗ trợ billing_mode monthly + plan_code + period. X-Vibecloud-Sandbox: 1 trên /api/apps tạo URL giả, trả estimated_app_host và charged_vnd=0. PUT env thay toàn bộ env, cần POST deploy để áp dụng. Custom domain trả CNAME và SSL pending. Xoá app giữ host; xoá /api/services/{app_host_id} để ngừng phí.

post/api/app-hosts

Request

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

Request body

app_namestring
package_slugstring nullable
cpuinteger nullable
ram_gbinteger nullable
disk_gbinteger nullable
hostnamestring nullable
billing_mode'hourly' | 'monthly'
plan_codestring nullable
period'month' | 'year'

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.