參數

參數名字 描述
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
選填 , 允許空值

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]
選填 , 允許空值

定義一項模式來為相符的主機指定易讀的主機名稱

Validations:

  • Must be a String

discovery_rule[max_count]
選填 , 允許空值

啟用來限制每個規則所能搭配的最大已佈建主機之數量

Validations:

  • Must be a Integer

discovery_rule[priority]
選填 , 允許空值

按照順序排序規則,數字較小的優先。必須大於零

Validations:

  • Must be a Integer

discovery_rule[enabled]
選填 , 允許空值

旗標可用來暫時性關閉規則

Validations:

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

discovery_rule[location_ids]
選填

location ID for provisioned hosts

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
選填

organization ID for provisioned hosts

Validations:

  • Must be an array of any type