GET /api/config_templates
List templates

Params

Param name Description
search
optional

필터 결과

Validations:

  • Must be a String

order
optional

결과 정렬

Validations:

  • Must be a String

page
optional

페이지네이션 결과

Validations:

  • Must be a String

per_page
optional

요청 당 항목 수

Validations:

  • Must be a 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 a String

config_template[template]
required

Validations:

  • Must be a String

config_template[snippet]
optional , nil allowed

Validations:

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

config_template[audit_comment]
optional , nil allowed

Validations:

  • Must be a String

config_template[template_kind_id]
optional , nil allowed

조각 모음과 관련이 없습니다

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 a String

config_template[template]
optional

Validations:

  • Must be a String

config_template[snippet]
optional

Validations:

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

config_template[audit_comment]
optional , nil allowed

Validations:

  • Must be a String

config_template[template_kind_id]
optional , nil allowed

조각 모음과 관련이 없습니다

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 a 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