求人を削除する
製品バージョン: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
|
データ
|
フィールド
|
種類
|
説明
|
|---|---|---|
id
|
int | 削除する求人ID |
keepPhysicalItems
|
ブール値 | true そのジョブで参照されている項目(VM、バックアップなど)をすべて保持する |
回答例
コピー
{
"action": "JobManagement",
"method": "remove",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"result": "OK"}
}
応答フィールド
|
フィールド
|
値
|
説明
|
|---|---|---|
message
|
文字列 | リクエストが失敗した場合はメッセージを表示する |
where
|
文字列 | 問題が発生した手法に関する言及 |
cause
|
文字列 | 故障の原因 |
| データ | JSON | リクエストの結果 |
|
|
文字列 |
リクエストの結果 |