GET /api/config_templates
List templates

パラメーター

パラメーター名 記述
search
任意

結果のフィルター

Validations:

  • Must be a String

order
任意

結果のソート

Validations:

  • Must be a String

page
任意

結果のページネーション

Validations:

  • Must be a String

per_page
任意

要求ごとのエントリー数

Validations:

  • Must be a String


GET /api/config_templates/:id
Show template details

パラメーター

パラメーター名 記述
id
必須

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

パラメーター

パラメーター名 記述
config_template
必須

Validations:

  • Must be a Hash

config_template[name]
必須

テンプレート名

Validations:

  • Must be a String

config_template[template]
必須

Validations:

  • Must be a String

config_template[snippet]
任意 , nil可

Validations:

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

config_template[audit_comment]
任意 , nil可

Validations:

  • Must be a String

config_template[template_kind_id]
任意 , nil可

スニペットに関連がありません

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
任意

テンプレートの組み合わせ (hostgroup_id、environment_id) の配列

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
任意

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

パラメーター

パラメーター名 記述
id
必須

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
必須

Validations:

  • Must be a Hash

config_template[name]
任意

テンプレート名

Validations:

  • Must be a String

config_template[template]
任意

Validations:

  • Must be a String

config_template[snippet]
任意

Validations:

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

config_template[audit_comment]
任意 , nil可

Validations:

  • Must be a String

config_template[template_kind_id]
任意 , nil可

スニペットに関連がありません

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
任意

テンプレートの組み合わせ (hostgroup_id、environment_id) の配列

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
任意

Array of operating systems ID to associate the template with

Validations:

  • Must be an array of any type


GET /api/config_templates/revision

パラメーター

パラメーター名 記述
version
任意

テンプレートのバージョン

Validations:

  • Must be a String


DELETE /api/config_templates/:id
Delete a template

パラメーター

パラメーター名 記述
id
必須

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