GET /api/templates/:template_id/template_inputs
템플릿 입력 나열

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_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.

search
optional

필터 결과

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

1 부터 페이지 번호

Validations:

  • Must be a number.

per_page
optional

반환할 페이지 당 결과 수

Validations:

  • Must be a number.

Search fields

Field name 유형 Possible values
input_type
name

GET /api/templates/:template_id/template_inputs/:id
템플릿 입력 정보 표시

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_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.

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/templates/:template_id/template_inputs
템플릿 입력 생성

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_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.

template_input
required

Validations:

  • Must be a Hash

template_input[name]
required

입력 이름

Validations:

  • Must be a String

template_input[description]
optional , nil allowed

입력 설명

Validations:

  • Must be a String

template_input[required]
optional , nil allowed

입력 필요

Validations:

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

template_input[advanced]
optional , nil allowed

입력이 진행됨

Validations:

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

template_input[input_type]
required

입력 유형

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
optional , nil allowed

입력 유형이 팩트인 경우 사용되는 팩트 이름입니다.

Validations:

  • Must be a String

template_input[variable_name]
optional , nil allowed

입력 유형이 변수인 경우 사용되는 변수 이름입니다.

Validations:

  • Must be a String

template_input[puppet_class_name]
optional , nil allowed

입력 유형이 puppet_parameter인 경우 사용되는 Puppet 클래스 이름입니다.

Validations:

  • Must be a String

template_input[puppet_parameter_name]
optional , nil allowed

입력 유형이 puppet_parameter인 경우 사용되는 Puppet 매개 변수 이름입니다.

Validations:

  • Must be a String

template_input[options]
optional , nil allowed

사용자 입력으로 선택 가능한 값

Validations:

  • Must be an array of any type

template_input[default]
optional , nil allowed

Default value for user input

Validations:

  • Must be a String

template_input[hidden_value]
optional , nil allowed

The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords

Validations:

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

template_input[value_type]
optional , nil allowed

Value type, defaults to plain

Validations:

  • Must be one of: plain, search, date.

template_input[resource_type]
optional , nil allowed

For values of type search, this is the resource the value searches in

Validations:

  • Must be one of: .


DELETE /api/templates/:template_id/template_inputs/:id
템플릿 입력 삭제

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_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.

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.


PUT /api/templates/:template_id/template_inputs/:id
템플릿 입력 업데이트

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

template_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.

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.

template_input
required

Validations:

  • Must be a Hash

template_input[name]
optional

입력 이름

Validations:

  • Must be a String

template_input[description]
optional , nil allowed

입력 설명

Validations:

  • Must be a String

template_input[required]
optional , nil allowed

입력 필요

Validations:

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

template_input[advanced]
optional , nil allowed

입력이 진행됨

Validations:

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

template_input[input_type]
optional

입력 유형

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
optional , nil allowed

입력 유형이 팩트인 경우 사용되는 팩트 이름입니다.

Validations:

  • Must be a String

template_input[variable_name]
optional , nil allowed

입력 유형이 변수인 경우 사용되는 변수 이름입니다.

Validations:

  • Must be a String

template_input[puppet_class_name]
optional , nil allowed

입력 유형이 puppet_parameter인 경우 사용되는 Puppet 클래스 이름입니다.

Validations:

  • Must be a String

template_input[puppet_parameter_name]
optional , nil allowed

입력 유형이 puppet_parameter인 경우 사용되는 Puppet 매개 변수 이름입니다.

Validations:

  • Must be a String

template_input[options]
optional , nil allowed

사용자 입력으로 선택 가능한 값

Validations:

  • Must be an array of any type

template_input[default]
optional , nil allowed

Default value for user input

Validations:

  • Must be a String

template_input[hidden_value]
optional , nil allowed

The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords

Validations:

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

template_input[value_type]
optional , nil allowed

Value type, defaults to plain

Validations:

  • Must be one of: plain, search, date.

template_input[resource_type]
optional , nil allowed

For values of type search, this is the resource the value searches in

Validations:

  • Must be one of: .