GET /api/config_templates
List templates

Parameter

Parametername Beschreibung
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/config_templates/:id
Show template details

Parameter

Parametername Beschreibung
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/config_templates
Create a template

Parameter

Parametername Beschreibung
config_template
verpflichtend

Validations:

  • Must be a Hash

config_template[name]
verpflichtend

Vorlagenname

Validations:

  • Must be String

config_template[template]
verpflichtend

Validations:

  • Must be String

config_template[snippet]
optional , nil erlaubt

Validations:

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

config_template[audit_comment]
optional , nil erlaubt

Validations:

  • Must be String

config_template[template_kind_id]
optional , nil erlaubt

nicht relevant für Snippet

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
optional

Abfolge von Vorlagenkombinationen (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
optional

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

Parameter

Parametername Beschreibung
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.

config_template
verpflichtend

Validations:

  • Must be a Hash

config_template[name]
optional

Vorlagenname

Validations:

  • Must be String

config_template[template]
optional

Validations:

  • Must be String

config_template[snippet]
optional

Validations:

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

config_template[audit_comment]
optional , nil erlaubt

Validations:

  • Must be String

config_template[template_kind_id]
optional , nil erlaubt

nicht relevant für Snippet

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
optional

Abfolge von Vorlagenkombinationen (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
optional

Array of operating systems ID to associate the template with

Validations:

  • Must be an array of any type


GET /api/config_templates/revision

Parameter

Parametername Beschreibung
version
optional

Vorlagenversion

Validations:

  • Must be String


DELETE /api/config_templates/:id
Delete a template

Parameter

Parametername Beschreibung
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.


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