GET /api/config_templates
List templates

Parametry

Nazwa parametru Opis
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/config_templates/:id
Show template details

Parametry

Nazwa parametru Opis
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/config_templates
Create a template

Parametry

Nazwa parametru Opis
config_template
wymagany

Validations:

  • Must be a Hash

config_template[name]
wymagany

nazwa szablonu

Validations:

  • Must be a String

config_template[template]
wymagany

Validations:

  • Must be a String

config_template[snippet]
opcjonalny , nil dopuszczalny

Validations:

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

config_template[audit_comment]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

config_template[template_kind_id]
opcjonalny , nil dopuszczalny

nie istotny dla snippetu

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
opcjonalny

Tablica szablonów kombinacji (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
opcjonalny

Array of operating systems ID to associate the template with

Validations:

  • Must be an array of any type


PUT /api/config_templates/:id
Update a template

Parametry

Nazwa parametru Opis
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.

config_template
wymagany

Validations:

  • Must be a Hash

config_template[name]
opcjonalny

nazwa szablonu

Validations:

  • Must be a String

config_template[template]
opcjonalny

Validations:

  • Must be a String

config_template[snippet]
opcjonalny

Validations:

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

config_template[audit_comment]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

config_template[template_kind_id]
opcjonalny , nil dopuszczalny

nie istotny dla snippetu

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
opcjonalny

Tablica szablonów kombinacji (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
opcjonalny

Array of operating systems ID to associate the template with

Validations:

  • Must be an array of any type


GET /api/config_templates/revision

Parametry

Nazwa parametru Opis
version
opcjonalny

wersja szablonu

Validations:

  • Must be a String


DELETE /api/config_templates/:id
Delete a template

Parametry

Nazwa parametru Opis
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.


GET /api/config_templates/build_pxe_default
Change the default PXE menu on all configured TFTP servers