Cluster API ジョブ定義

ジョブ定義の Cluster API 解説書

ジョブ定義

GET /jobsdefs

ジョブの定義を取得する

応答 JSON オブジェクト:
  • [key].autostart (boolean) –
  • [key].byCluster (boolean) – ジョブを各クラスタで実行するかどうか。
  • [key].clusterCategories[] (string) – ジョブを開始する必要があるクラスタカテゴリのリスト。
  • [key].dependencies[] (string) –
  • [key].template (string) –

応答例 :

{
  "myJob": {
    "autostart": true,
    "dependencies": [
      "serviceDependency"
    ],
    "byCluster": false,
    "clusterCategories": "cluster",
    "template": "My template"
  }
}
POST /jobsdefs

ジョブの定義を設定する

リクエスト JSON オブジェクト:
 
  • [key].autostart (boolean) –
  • [key].byCluster (boolean) – ジョブを各クラスタで実行するかどうか。
  • [key].clusterCategories[] (string) – ジョブを開始する必要があるクラスタカテゴリのリスト。
  • [key].dependencies[] (string) –
  • [key].template (string) –
クエリパラメータ:
  • force – サービス実行チェックをスキップする

クエリ例 :

{
  "myJob": {
    "autostart": true,
    "dependencies": [
      "serviceDependency"
    ],
    "byCluster": false,
    "clusterCategories": "cluster",
    "template": "My template"
  }
}
DELETE /jobsdefs

すべてのジョブの定義を削除する

クエリパラメータ:
  • force – サービス実行チェックをスキップする
POST /jobsdef/{jobID}

ジョブの定義を作成する

パラメータ:
  • jobID – ジョブ ID
リクエスト JSON オブジェクト:
 
  • autostart (boolean) –
  • byCluster (boolean) – ジョブを各クラスタで実行するかどうか。
  • clusterCategories[] (string) – ジョブを開始する必要があるクラスタカテゴリのリスト。
  • dependencies[] (string) –
  • template (string) –
クエリパラメータ:
  • force – サービス実行チェックをスキップする

クエリ例 :

{
  "autostart": true,
  "dependencies": [
    "serviceDependency"
  ],
  "byCluster": false,
  "clusterCategories": "cluster",
  "template": "My template"
}
PUT /jobsdef/{jobID}

ジョブの定義を更新する

パラメータ:
  • jobID – ジョブ ID
リクエスト JSON オブジェクト:
 
  • autostart (boolean) –
  • byCluster (boolean) – ジョブを各クラスタで実行するかどうか。
  • clusterCategories[] (string) – ジョブを開始する必要があるクラスタカテゴリのリスト。
  • dependencies[] (string) –
  • template (string) –
クエリパラメータ:
  • force – サービス実行チェックをスキップする

クエリ例 :

{
  "autostart": true,
  "dependencies": [
    "serviceDependency"
  ],
  "byCluster": false,
  "clusterCategories": "cluster",
  "template": "My template"
}
DELETE /jobsdef/{jobID}

ジョブの定義を削除する

パラメータ:
  • jobID – ジョブ ID