開發者
備份 Client API
備份 Client API:目前介面的操作步驟與使用說明。
當前路徑
使用 Panel Client API Key 與自己有許可權的伺服器識別符號。以下路徑相對於 https://panel.caforahost.com:
| 方法與路徑 | 用途 |
|---|---|
GET /api/client/servers/{identifier}/backups | 備份列表 |
POST /api/client/servers/{identifier}/backups | 建立,按需提供 name、ignored、is_locked |
GET /api/client/servers/{identifier}/backups/{uuid} | 查詢備份 |
GET /api/client/servers/{identifier}/backups/{uuid}/download | 獲取下載資料 |
POST /api/client/servers/{identifier}/backups/{uuid}/restore | 恢復,認真檢查 truncate |
DELETE /api/client/servers/{identifier}/backups/{uuid} | 刪除備份 |
建立響應不等於備份完成;繼續核對 attributes.completed_at 與 attributes.is_successful。配額、許可權、服務狀態和鎖定規則仍適用,不應根據舊文件假定建立一定要求伺服器線上。
恢復和刪除有資料副作用。truncate 對應恢復前刪除全部檔案選項;呼叫前保留當前副本並核對備份內容。參閱備份圖解與恢復。