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

Параметры

Имя параметра Описание
template_id
обязательно

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

search
необязательно

отфильтровать результаты


Value:

Must be String

order
необязательно

отсортировать результаты


Value:

Must be String

page
необязательно

разместить результат на нескольких страницах


Value:

Must be String

per_page
необязательно

количество записей на запрос


Value:

Must be String


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

Параметры

Имя параметра Описание
template_id
обязательно

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
обязательно

Value:

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
обязательно

Value:

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
обязательно

Value:

Must be a Hash

template_input[name]
обязательно

Input name


Value:

Must be String

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

Input description


Value:

Must be String

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

Input is required


Value:

Must be 'true' or 'false'

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

Input is advanced


Value:

Must be 'true' or 'false'

template_input[input_type]
обязательно

Input type


Value:

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

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

Fact name, used when input type is fact


Value:

Must be String

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

Variable name, used when input type is variable


Value:

Must be String

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

Puppet class name, used when input type is puppet_parameter


Value:

Must be String

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

Puppet parameter name, used when input type is puppet_parameter


Value:

Must be String

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

Selectable values for user inputs


Value:

Must be an array of any type


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

Параметры

Имя параметра Описание
template_id
обязательно

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
обязательно

Value:

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
обязательно

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
обязательно

Value:

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
обязательно

Value:

Must be a Hash

template_input[name]
необязательно

Input name


Value:

Must be String

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

Input description


Value:

Must be String

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

Input is required


Value:

Must be 'true' or 'false'

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

Input is advanced


Value:

Must be 'true' or 'false'

template_input[input_type]
необязательно

Input type


Value:

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

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

Fact name, used when input type is fact


Value:

Must be String

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

Variable name, used when input type is variable


Value:

Must be String

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

Puppet class name, used when input type is puppet_parameter


Value:

Must be String

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

Puppet parameter name, used when input type is puppet_parameter


Value:

Must be String

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

Selectable values for user inputs


Value:

Must be an array of any type