ジョブの無効化または有効化
製品バージョン: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": "enable",
"data": [[1],true],
"type": "rpc",
"tid": 1}'
リクエストフィールド
|
フィールド
|
種類
|
値(複数可)
|
|---|---|---|
action
|
文字列 | JobManagement |
method
|
文字列 | enable |
data
|
配列 | パラメータ |
type
|
文字列 | rpc
|
tid
|
整数 | 1 |
データ
|
フィールド
|
種類
|
説明
|
|---|---|---|
| jobId | int型の配列 | 求人ID |
doEnable
|
ブール値 | true ジョブを有効にするには、 false 無効にするには |
回答例
コピー
{
"action": "JobManagement",
"method": "enable",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
応答フィールド
|
フィールド
|
値
|
説明
|
|---|---|---|
message
|
文字列 | リクエストが失敗した場合はメッセージを表示する |
where
|
文字列 | 問題が発生した手法に関する言及 |
cause
|
文字列 | 故障の原因 |