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.

page
选填

页数

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be 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.


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]
必填

Override match

Validations:

  • Must be String

override_value[value]
选填 , 允许空值

Override value

Validations:

  • Must be String

override_value[use_puppet_default]
选填 , 允许空值

Validations:

  • Must be 'true' or 'false' or '1' or '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]
选填

Override match

Validations:

  • Must be String

override_value[value]
选填 , 允许空值

Override value

Validations:

  • Must be String

override_value[use_puppet_default]
选填 , 允许空值

Validations:

  • Must be 'true' or 'false' or '1' or '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.