刪除工作
產品版本: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": "JobManagement",
"method": "remove",
"data": [50,true],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
|---|---|---|
action
|
字串 |
|
method
|
字串 |
|
data
|
陣列 | 參數 |
type
|
字串 | rpc
|
tid
|
整數 | 1
|
資料
|
領域
|
類型
|
Description
|
|---|---|---|
id
|
int | 待刪除的工作編號 |
keepPhysicalItems
|
布林值 | true 保留該工作所提及的任何項目(例如:虛擬機器、備份等) |
回應範例
複製
{
"action": "JobManagement",
"method": "remove",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"result": "OK"}
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |
| 資料 | Json | 請求結果 |
|
|
字串 |
請求結果 |