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

Parameter

Parametername Beschreibung
template_id
verpflichtend

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
optional

Ergebnisse filtern

Validations:

  • Must be String

order
optional

Ergebnisse sortieren

Validations:

  • Must be String

page
optional

Ergebnisse nummerieren

Validations:

  • Must be String

per_page
optional

Anzahl der Einträge pro Anfrage

Validations:

  • Must be String


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

Parameter

Parametername Beschreibung
template_id
verpflichtend

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
verpflichtend

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

Parameter

Parametername Beschreibung
template_id
verpflichtend

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
verpflichtend

Validations:

  • Must be a Hash

template_input[name]
verpflichtend

Input name

Validations:

  • Must be String

template_input[description]
optional , nil erlaubt

Input description

Validations:

  • Must be String

template_input[required]
optional , nil erlaubt

Eingabe ist erforderlich

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

template_input[advanced]
optional , nil erlaubt

Input is advanced

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

template_input[input_type]
verpflichtend

Eingabetyp

Validations:

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

template_input[fact_name]
optional , nil erlaubt

Fact name, used when input type is fact

Validations:

  • Must be String

template_input[variable_name]
optional , nil erlaubt

Variable name, used when input type is variable

Validations:

  • Must be String

template_input[puppet_parameter_class]
optional , nil erlaubt

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[puppet_parameter_name]
optional , nil erlaubt

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[options]
optional , nil erlaubt

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

Parameter

Parametername Beschreibung
template_id
verpflichtend

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
verpflichtend

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

Parameter

Parametername Beschreibung
template_id
verpflichtend

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
verpflichtend

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
verpflichtend

Validations:

  • Must be a Hash

template_input[name]
optional

Input name

Validations:

  • Must be String

template_input[description]
optional , nil erlaubt

Input description

Validations:

  • Must be String

template_input[required]
optional , nil erlaubt

Eingabe ist erforderlich

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

template_input[advanced]
optional , nil erlaubt

Input is advanced

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

template_input[input_type]
optional

Eingabetyp

Validations:

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

template_input[fact_name]
optional , nil erlaubt

Fact name, used when input type is fact

Validations:

  • Must be String

template_input[variable_name]
optional , nil erlaubt

Variable name, used when input type is variable

Validations:

  • Must be String

template_input[puppet_parameter_class]
optional , nil erlaubt

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[puppet_parameter_name]
optional , nil erlaubt

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be String

template_input[options]
optional , nil erlaubt

Selectable values for user inputs

Validations:

  • Must be an array of any type