Параметры

Имя параметра Описание
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]
необязательно

represents rule name shown to the users

Validations:

  • Must be String

discovery_rule[search]
необязательно

query to match discovered hosts for the particular rule

Validations:

  • Must be String

discovery_rule[hostgroup_id]
необязательно

the hostgroup that is used to auto provision a host

Validations:

  • Must be Integer

discovery_rule[hostname]
необязательно , nil разрешен

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

Validations:

  • Must be String

discovery_rule[max_count]
необязательно , nil разрешен

enables to limit maximum amount of provisioned hosts per rule

Validations:

  • Must be Integer

discovery_rule[priority]
необязательно , nil разрешен

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

Validations:

  • Must be Integer

discovery_rule[enabled]
необязательно , nil разрешен

flag is used for temporary shutdown of rules

Validations:

  • Must be 'true' or 'false' or '1' or '0'