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

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Zakres w zależności od lokalizacji

Validations:

  • Must be a Integer

organization_id
opcjonalny

Zakres w zależności od organizacji

Validations:

  • Must be a Integer

template_id
wymagany

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
opcjonalny

rezultat filtrowania

Validations:

  • Must be a String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be a String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be a String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be a String


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

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Zakres w zależności od lokalizacji

Validations:

  • Must be a Integer

organization_id
opcjonalny

Zakres w zależności od organizacji

Validations:

  • Must be a Integer

template_id
wymagany

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
wymagany

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

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Zakres w zależności od lokalizacji

Validations:

  • Must be a Integer

organization_id
opcjonalny

Zakres w zależności od organizacji

Validations:

  • Must be a Integer

template_id
wymagany

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
wymagany

Validations:

  • Must be a Hash

template_input[name]
wymagany

Input name

Validations:

  • Must be a String

template_input[description]
opcjonalny , nil dopuszczalny

Input description

Validations:

  • Must be a String

template_input[required]
opcjonalny , nil dopuszczalny

Input is required

Validations:

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

template_input[advanced]
opcjonalny , nil dopuszczalny

Input is advanced

Validations:

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

template_input[input_type]
wymagany

Input type

Validations:

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

template_input[fact_name]
opcjonalny , nil dopuszczalny

Fact name, used when input type is fact

Validations:

  • Must be a String

template_input[variable_name]
opcjonalny , nil dopuszczalny

Variable name, used when input type is variable

Validations:

  • Must be a String

template_input[puppet_parameter_class]
opcjonalny , nil dopuszczalny

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
opcjonalny , nil dopuszczalny

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[options]
opcjonalny , nil dopuszczalny

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

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Zakres w zależności od lokalizacji

Validations:

  • Must be a Integer

organization_id
opcjonalny

Zakres w zależności od organizacji

Validations:

  • Must be a Integer

template_id
wymagany

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
wymagany

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

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Zakres w zależności od lokalizacji

Validations:

  • Must be a Integer

organization_id
opcjonalny

Zakres w zależności od organizacji

Validations:

  • Must be a Integer

template_id
wymagany

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
wymagany

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
wymagany

Validations:

  • Must be a Hash

template_input[name]
opcjonalny

Input name

Validations:

  • Must be a String

template_input[description]
opcjonalny , nil dopuszczalny

Input description

Validations:

  • Must be a String

template_input[required]
opcjonalny , nil dopuszczalny

Input is required

Validations:

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

template_input[advanced]
opcjonalny , nil dopuszczalny

Input is advanced

Validations:

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

template_input[input_type]
opcjonalny

Input type

Validations:

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

template_input[fact_name]
opcjonalny , nil dopuszczalny

Fact name, used when input type is fact

Validations:

  • Must be a String

template_input[variable_name]
opcjonalny , nil dopuszczalny

Variable name, used when input type is variable

Validations:

  • Must be a String

template_input[puppet_parameter_class]
opcjonalny , nil dopuszczalny

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
opcjonalny , nil dopuszczalny

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[options]
opcjonalny , nil dopuszczalny

Selectable values for user inputs

Validations:

  • Must be an array of any type