備份儲存庫維護
產品版本:10.11
最後修改日期:2024年7月31日
開始執行備份儲存庫的維護作業:自動修復、空間回收及備份驗證。
終點
https://<Director_IP_address>:4443/c/router
請求範例
複製
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "BackupManagement",
"method": "startMaintenance",
"data": [{
"id":3,
"selfHealing":true,
"spaceReclaim":false,
"verifyBackups":false,
"interruptSpaceReclaim":false}],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
|---|---|---|
action
|
字串 | BackupManagement |
method
|
字串 | startMaintenance |
data
|
陣列 | 包含一個元素的陣列:維護參數。請參閱 data 下表 |
type
|
字串 | rpc
|
tid
|
整數 | 1 |
資料
|
領域
|
類型
|
Description
|
|---|---|---|
id
|
int | 儲存庫 ID |
selfHealing
|
布林值 | true 啟動備份儲存庫的自動修復功能 |
spaceReclaim
|
布林值 | true 開始進行空間回收 |
verifyBackups
|
布林值 | true 開始備份驗證 |
interruptSpaceReclaim
|
布林值 | true 中斷空間回收 |
回應範例
複製
{
"action": "BackupManagement",
"method": "startMaintenance",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |
data
|
null | 總是 null:此方法不傳回任何資料 |