GET /api/v2/discovery_rules
すべての検出ルールを表示

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

search
任意

結果のフィルター

Validations:

  • Must be a String

order
任意

結果のソート

Validations:

  • Must be a String

page
任意

結果のページネーション

Validations:

  • Must be a String

per_page
任意

要求ごとのエントリー数

Validations:

  • Must be a String


GET /api/v2/discovery_rules/:id
検出ルールの表示

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/v2/discovery_rules
検出ルールの作成

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

discovery_rule
任意 , nil可

Validations:

  • Must be a Hash

discovery_rule[name]
必須

ユーザーに表示されるルール名の表示

Validations:

  • Must be a String

discovery_rule[search]
必須

特定ルールの検出されたホストに一致するクエリー

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
必須

ホストの自動プロビジョニングに使用されるホストグループ

Validations:

  • Must be a Integer

discovery_rule[hostname]
任意 , nil可

人が判読できるホスト名を一致するホストに割り当てるパターンの定義

Validations:

  • Must be a String

discovery_rule[max_count]
任意 , nil可

ルール別のプロビジョニングされたホストの最大数の制限を許可

Validations:

  • Must be a Integer

discovery_rule[priority]
任意 , nil可

ルールを低い数字の順に配置。ゼロより大きい値である必要があります。

Validations:

  • Must be a Integer

discovery_rule[enabled]
任意 , nil可

フラグはルールの一時的な停止に使用されます

Validations:

  • Must be one of: true, false, 1, 0.

discovery_rule[location_ids]
必須

プロビジョニングされたホストのロケーション ID

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
必須

プロビジョニングされたホストの組織 ID

Validations:

  • Must be an array of any type


PUT /api/v2/discovery_rules/:id
ルールの更新

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

discovery_rule
任意 , nil可

Validations:

  • Must be a Hash

discovery_rule[name]
任意

ユーザーに表示されるルール名の表示

Validations:

  • Must be a String

discovery_rule[search]
任意

特定ルールの検出されたホストに一致するクエリー

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
任意

ホストの自動プロビジョニングに使用されるホストグループ

Validations:

  • Must be a Integer

discovery_rule[hostname]
任意 , nil可

人が判読できるホスト名を一致するホストに割り当てるパターンの定義

Validations:

  • Must be a String

discovery_rule[max_count]
任意 , nil可

ルール別のプロビジョニングされたホストの最大数の制限を許可

Validations:

  • Must be a Integer

discovery_rule[priority]
任意 , nil可

ルールを低い数字の順に配置。ゼロより大きい値である必要があります。

Validations:

  • Must be a Integer

discovery_rule[enabled]
任意 , nil可

フラグはルールの一時的な停止に使用されます

Validations:

  • Must be one of: true, false, 1, 0.

discovery_rule[location_ids]
任意

プロビジョニングされたホストのロケーション ID

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
任意

プロビジョニングされたホストの組織 ID

Validations:

  • Must be an array of any type


DELETE /api/v2/discovery_rules/:id
ルールの削除

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.