GET /api/smart_variables/:smart_variable_id/override_values
具体智能变量替代值列表

GET /api/smart_class_parameters/:smart_class_parameter_id/override_values
具体智能分类参数替代值列表

参数

参数名字 描述
smart_variable_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.

smart_class_parameter_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.

show_hidden
选填

Display hidden values

Validations:

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

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /api/smart_variables/:smart_variable_id/override_values/:id
显示具体智能变量的替代值

GET /api/smart_class_parameters/:smart_class_parameter_id/override_values/:id
显示具体智能类别参数的替代值

参数

参数名字 描述
smart_variable_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.

smart_class_parameter_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.

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.

show_hidden
选填

Display hidden values

Validations:

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


POST /api/smart_variables/:smart_variable_id/override_values
为具体智能变量生创建替代值

POST /api/smart_class_parameters/:smart_class_parameter_id/override_values
为具体智能类别参数创建替代值

参数

参数名字 描述
smart_variable_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.

smart_class_parameter_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.

override_value
必填

Validations:

  • Must be a Hash

override_value[match]
必填

替代匹配

Validations:

  • Must be a String

override_value[value]
选填 , 允许空值

覆盖值(omit 为 false 时必需)

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

override_value[use_puppet_default]
选填 , 允许空值

已弃用,请使用 omit

Validations:

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

override_value[omit]
选填 , 允许空值

Foreman 不会在分类输出中发送此参数,替代 use_puppet_default

Validations:

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


PUT /api/smart_variables/:smart_variable_id/override_values/:id
更新具体智能变量的替代值

PUT /api/smart_class_parameters/:smart_class_parameter_id/override_values/:id
更新具体智能类别参数的替代值

参数

参数名字 描述
smart_variable_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.

smart_class_parameter_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.

override_value
必填

Validations:

  • Must be a Hash

override_value[match]
选填

替代匹配

Validations:

  • Must be a String

override_value[value]
选填 , 允许空值

覆盖值(omit 为 false 时必需)

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

override_value[use_puppet_default]
选填 , 允许空值

已弃用,请使用 omit

Validations:

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

override_value[omit]
选填 , 允许空值

Foreman 不会在分类输出中发送此参数,替代 use_puppet_default

Validations:

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


DELETE /api/smart_variables/:smart_variable_id/override_values/:id
为具体智能变量删除覆盖值

DELETE /api/smart_class_parameters/:smart_class_parameter_id/override_values/:id
删除具体智能类别参数替代值

参数

参数名字 描述
smart_variable_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.

smart_class_parameter_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.

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.