GET /api/config_templates
List templates

Params

Param Name Description
search
Optional

結果をフィルタ

Validations:

  • Must be String

order
Optional

結果をソート

Validations:

  • Must be String

page
Optional

結果をページ分割

Validations:

  • Must be String

per_page
Optional

リクエストあたりのエントリ数

Validations:

  • Must be String


GET /api/config_templates/:id
Show template details

Params

Param Name Description
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/config_templates
Create a template

Params

Param Name Description
config_template
Required

Validations:

  • Must be a Hash

config_template[name]
Required

テンプレート名

Validations:

  • Must be String

config_template[template]
Required

Validations:

  • Must be String

config_template[snippet]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be 'true' or 'false' or '1' or '0'

config_template[audit_comment]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be String

config_template[template_kind_id]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

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

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
Optional

テンプレートの組み合わせの配列 (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

Params

Param Name Description
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.

config_template
Required

Validations:

  • Must be a Hash

config_template[name]
Optional

テンプレート名

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 , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be String

config_template[template_kind_id]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

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

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
Optional

テンプレートの組み合わせの配列 (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

Params

Param Name Description
version
Optional

テンプレートバージョン

Validations:

  • Must be String


DELETE /api/config_templates/:id
Delete a template

Params

Param Name Description
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.


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