GET /api/templates/:template_id/template_inputs
Vypsat vstupy šablony

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_id
required

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

výsledky filtru

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Číslo stránky, začíná od jedničky

Validations:

  • Must be a number.

per_page
optional

Počet výsledků na stránku

Validations:

  • Must be a number.

Search fields

Název kolonky Typ Možné hodnoty
input_type
name

GET /api/templates/:template_id/template_inputs/:id
Zobrazit podrobnosti vstupu šablony

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_id
required

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
required

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
Vytvořit vstup šablony

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_id
required

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
required

Validations:

  • Must be a Hash

template_input[name]
required

Název vstupu

Validations:

  • Must be a String

template_input[description]
optional , nil allowed

Popis vstupu

Validations:

  • Must be a String

template_input[required]
optional , nil allowed

Je zapotřebí vstup

Validations:

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

template_input[advanced]
optional , nil allowed

Vstup je pokročilý

Validations:

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

template_input[input_type]
required

Typ vstupu

Validations:

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

template_input[fact_name]
optional , nil allowed

Název faktu, použitý když je typ vstupu „fakt“

Validations:

  • Must be a String

template_input[variable_name]
optional , nil allowed

Variable name, used when input type is variable

Validations:

  • Must be a String

template_input[puppet_class_name]
optional , nil allowed

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
optional , nil allowed

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[options]
optional , nil allowed

Selectable values for user inputs

Validations:

  • Must be an array of any type

template_input[default]
optional , nil allowed

Výchozí hodnoty pro vstup od uživatele

Validations:

  • Must be a String

template_input[hidden_value]
optional , nil allowed

The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords

Validations:

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

template_input[value_type]
optional , nil allowed

Typ hodnoty – pokud není vyplněno, použije se výchozí „holá“ (plain)

Validations:

  • Must be one of: plain, search, date.

template_input[resource_type]
optional , nil allowed

For values of type search, this is the resource the value searches in

Validations:

  • Must be one of: .


DELETE /api/templates/:template_id/template_inputs/:id
Smazat vstup šablony

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_id
required

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
required

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
Aktualizovat vstup šablony

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_id
required

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
required

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
required

Validations:

  • Must be a Hash

template_input[name]
optional

Název vstupu

Validations:

  • Must be a String

template_input[description]
optional , nil allowed

Popis vstupu

Validations:

  • Must be a String

template_input[required]
optional , nil allowed

Je zapotřebí vstup

Validations:

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

template_input[advanced]
optional , nil allowed

Vstup je pokročilý

Validations:

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

template_input[input_type]
optional

Typ vstupu

Validations:

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

template_input[fact_name]
optional , nil allowed

Název faktu, použitý když je typ vstupu „fakt“

Validations:

  • Must be a String

template_input[variable_name]
optional , nil allowed

Variable name, used when input type is variable

Validations:

  • Must be a String

template_input[puppet_class_name]
optional , nil allowed

Puppet class name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
optional , nil allowed

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • Must be a String

template_input[options]
optional , nil allowed

Selectable values for user inputs

Validations:

  • Must be an array of any type

template_input[default]
optional , nil allowed

Výchozí hodnoty pro vstup od uživatele

Validations:

  • Must be a String

template_input[hidden_value]
optional , nil allowed

The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords

Validations:

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

template_input[value_type]
optional , nil allowed

Typ hodnoty – pokud není vyplněno, použije se výchozí „holá“ (plain)

Validations:

  • Must be one of: plain, search, date.

template_input[resource_type]
optional , nil allowed

For values of type search, this is the resource the value searches in

Validations:

  • Must be one of: .