参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

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]
选填 , 允许空值

按顺序排列规则,低数值优先。必须大于 0

Validations:

  • Must be a Integer

discovery_rule[enabled]
选填 , 允许空值

标记用于临时关闭规则

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