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

Whether the smart class parameter value is managed by 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

When enabled the parameter is hidden in the UI

Validations:

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

smart_class_parameter[use_puppet_default]
Optional

Do not send this parameter via the ENC. Puppet will use the value defined in the Puppet manifest for this parameter

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

Used to enforce certain values for the parameter values

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

If true, will raise an error if there is no default value and no matcher provide a value

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

Include default value when merging all matching values

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'