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

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/smart_class_parameters/:id
스마트 클래스 매개 변수 표시

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.


PUT /api/smart_class_parameters/:id
스마트 클래스 매개 변수 업데이트

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.

smart_class_parameter
Required

Validations:

  • Must be a Hash

smart_class_parameter[override]
Optional

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

Validations:

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

smart_class_parameter[description]
Optional

스마트 클래스 설명

Validations:

  • Must be String

smart_class_parameter[default_value]
Optional

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

Validations:

  • Must be String

smart_class_parameter[hidden_value]
Optional

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

Validations:

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

smart_class_parameter[use_puppet_default]
Optional

ENC를 통해 이 매개 변수를 보내지 마십시오. Puppet이 Puppet 매니페스트에 정의된 값을 이 매개 변수에 사용합니다.

Validations:

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

smart_class_parameter[path]
Optional

값이 해결되는 순서

Validations:

  • Must be String

smart_class_parameter[validator_type]
Optional

검증 값의 유형

Validations:

  • Must be one of: regexp, list.

smart_class_parameter[validator_rule]
Optional

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

Validations:

  • Must be String

smart_class_parameter[override_value_order]
Optional

값이 해결되는 순서

Validations:

  • Must be 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 'true' or 'false' or '1' or '0'

smart_class_parameter[merge_overrides]
Optional

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

Validations:

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

smart_class_parameter[merge_default]
Optional

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

Validations:

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

smart_class_parameter[avoid_duplicates]
Optional

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

Validations:

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