GET /api/templates/:template_id/template_inputs
List template inputs

參數

參數名字 描述
template_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.

search
選填

篩選結果

Validations:

  • Must be String

order
選填

排序結果

Validations:

  • Must be String

page
選填

編頁結果

Validations:

  • Must be String

per_page
選填

每個請求的項目數量

Validations:

  • Must be String


GET /api/templates/:template_id/template_inputs/:id
Show template input details

參數

參數名字 描述
template_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/templates/:template_id/template_inputs
Create a template input

參數

參數名字 描述
template_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.

template_input
必填

Validations:

  • Must be a Hash

template_input[name]
必填

Input name

Validations:

  • Must be String

template_input[description]
選填 , 允許空值

Input description

Validations:

  • Must be String

template_input[required]
選填 , 允許空值

Input is required

Validations:

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

template_input[advanced]
選填 , 允許空值

Input is advanced

Validations:

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

template_input[input_type]
必填

Input type

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
選填 , 允許空值

Fact name, used when input type is fact

Validations:

  • Must be String

template_input[variable_name]
選填 , 允許空值

Variable name, used when input type is variable

Validations:

  • Must be String

template_input[puppet_parameter_class]
選填 , 允許空值

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[puppet_parameter_name]
選填 , 允許空值

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[options]
選填 , 允許空值

Selectable values for user inputs

Validations:

  • Must be an array of any type


DELETE /api/templates/:template_id/template_inputs/:id
Delete a template input

參數

參數名字 描述
template_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.


PUT /api/templates/:template_id/template_inputs/:id
Update a template input

參數

參數名字 描述
template_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.

template_input
必填

Validations:

  • Must be a Hash

template_input[name]
選填

Input name

Validations:

  • Must be String

template_input[description]
選填 , 允許空值

Input description

Validations:

  • Must be String

template_input[required]
選填 , 允許空值

Input is required

Validations:

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

template_input[advanced]
選填 , 允許空值

Input is advanced

Validations:

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

template_input[input_type]
選填

Input type

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
選填 , 允許空值

Fact name, used when input type is fact

Validations:

  • Must be String

template_input[variable_name]
選填 , 允許空值

Variable name, used when input type is variable

Validations:

  • Must be String

template_input[puppet_parameter_class]
選填 , 允許空值

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[puppet_parameter_name]
選填 , 允許空值

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[options]
選填 , 允許空值

Selectable values for user inputs

Validations:

  • Must be an array of any type