參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

discovery_rule
選填 , 允許空值

Validations:

  • Must be a Hash

discovery_rule[name]
必填

represents rule name shown to the users

Validations:

  • Must be a String

discovery_rule[search]
必填

query to match discovered hosts for the particular rule

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
必填

the hostgroup that is used to auto provision a host

Validations:

  • Must be a Integer

discovery_rule[hostname]
選填 , 允許空值

defines a pattern to assign human-readable hostnames to the matching hosts

Validations:

  • Must be a String

discovery_rule[max_count]
選填 , 允許空值

enables to limit maximum amount of provisioned hosts per rule

Validations:

  • Must be a Integer

discovery_rule[priority]
選填 , 允許空值

puts the rules in order, low numbers go first. Must be greater then zero

Validations:

  • Must be a Integer

discovery_rule[enabled]
選填 , 允許空值

flag is used for temporary shutdown of rules

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