中止工作
產品版本: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": "stop",
"data": [{"jobIds":[1]}],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
|---|---|---|
|
|
字串 |
|
|
|
字串 |
|
|
|
陣列 | 包含一個物件的陣列,該物件是容器 jobIds 以及(可選) stopType 以及 sourceVids |
|
|
long 型陣列 |
要停止的工作的 ID |
|
|
字串 |
可選。 |
|
|
字串陣列 |
可選。需停止的來源 VID。對於 |
|
|
字串 | rpc
|
|
|
整數 | 1
|
回應範例
{
"action": "JobManagement",
"method": "stop",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 提及發生問題的方法 |
cause
|
字串 | 故障原因 |