GET /api/smart_class_parameters
모든 스마트 클래스 매개 변수 나열

GET /api/hosts/:host_id/smart_class_parameters
특정 호스트의 스마트 클래스 매개 변수 목록

GET /api/hostgroups/:hostgroup_id/smart_class_parameters
특정 호스트 그룹의 스마트 클래스 매개 변수 목록

GET /api/puppetclasses/:puppetclass_id/smart_class_parameters
특정 Puppet 클래스의 스마트 클래스 매개 변수 목록

GET /api/environments/:environment_id/smart_class_parameters
특정 환경의 스마트 클래스 매개 변수 목록

GET /api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters
특정 환경/Puppet 클래스 조합의 스마트 클래스 매개 변수 목록

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

host_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

hostgroup_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

puppetclass_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

environment_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

show_hidden
optional

Display hidden values

Validations:

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

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
avoid_duplicates true, false
environment
key
merge_default true, false
merge_overrides true, false
override true, false
parameter
puppetclass
puppetclass_name

GET /api/smart_class_parameters/: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

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.

show_hidden
optional

Display hidden values

Validations:

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


PUT /api/smart_class_parameters/: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

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.

smart_class_parameter
required

Validations:

  • Must be a Hash

smart_class_parameter[override]
optional

스마트 클래스 매개 변수 값을 Foreman에서 관리하는지 여부

Validations:

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

smart_class_parameter[description]
optional

스마트 클래스 설명

Validations:

  • Must be a String

smart_class_parameter[default_value]
optional

일치하지 않는 경우 사용할 값

Validations:

  • Must be one of types: string, boolean, integer, real, array, hash, yaml, json

smart_class_parameter[hidden_value]
optional

활성화된 경우 매개 변수가 UI에서 숨겨집니다.

Validations:

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

smart_class_parameter[omit]
optional

Foreman will not send this parameter in classification output. Puppet will use the value defined in the Puppet manifest for this parameter

Validations:

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

smart_class_parameter[path]
optional

값이 해결되는 순서

Validations:

  • Must be a String

smart_class_parameter[validator_type]
optional

검증 값의 유형

Validations:

  • Must be one of: regexp, list.

smart_class_parameter[validator_rule]
optional

특정 값을 매개 변수 값에 적용하는 데 사용됩니다.

Validations:

  • Must be a String

smart_class_parameter[override_value_order]
optional

값이 해결되는 순서

Validations:

  • Must be a String

smart_class_parameter[parameter_type]
optional

변수 값의 유형

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

smart_class_parameter[required]
optional

true인 경우, 기본값이 없고 matcher에서 값이 제공되지 않으면 오류가 발생합니다.

Validations:

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

smart_class_parameter[merge_overrides]
optional

일치하는 모든 값 병합(배열/해시 유형만)

Validations:

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

smart_class_parameter[merge_default]
optional

일치하는 모든 값을 병합할 때 기본값 포함

Validations:

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

smart_class_parameter[avoid_duplicates]
optional

중복 값 삭제(배열 유형만)

Validations:

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