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 類別組合的智慧型類別參數之清單

參數

參數名字 描述
host_id
選填

Value:

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
選填

Value:

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
選填

Value:

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
選填

Value:

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

search
選填

篩選結果


Value:

Must be String

order
選填

排序結果


Value:

Must be String

page
選填

編頁結果


Value:

Must be String

per_page
選填

每個請求的項目數量


Value:

Must be String


GET /api/smart_class_parameters/:id
顯示智慧類別參數

參數

參數名字 描述
id
必填

Value:

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
更新智慧類別參數

參數

參數名字 描述
id
必填

Value:

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
必填

Value:

Must be a Hash

smart_class_parameter[override]
選填

Whether the smart class parameter value is managed by Foreman


Value:

Must be 'true' or 'false'

smart_class_parameter[description]
選填

Description of smart class


Value:

Must be String

smart_class_parameter[default_value]
選填

當沒有相符的項目時所使用的值


Value:

Must be String

smart_class_parameter[hidden_value]
選填

When enabled the parameter is hidden in the UI


Value:

Must be 'true' or 'false'

smart_class_parameter[use_puppet_default]
選填

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


Value:

Must be 'true' or 'false'

smart_class_parameter[path]
選填

值解析的順序


Value:

Must be String

smart_class_parameter[validator_type]
選填

Types of validation values


Value:

Must be one of: regexp, list.

smart_class_parameter[validator_rule]
選填

Used to enforce certain values for the parameter values


Value:

Must be String

smart_class_parameter[override_value_order]
選填

值解析的順序


Value:

Must be String

smart_class_parameter[parameter_type]
選填

Types of variable values


Value:

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

smart_class_parameter[required]
選填

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


Value:

Must be 'true' or 'false'

smart_class_parameter[merge_overrides]
選填

Merge all matching values (only array/hash type)


Value:

Must be 'true' or 'false'

smart_class_parameter[merge_default]
選填

Include default value when merging all matching values


Value:

Must be 'true' or 'false'

smart_class_parameter[avoid_duplicates]
選填

Remove duplicate values (only array type)


Value:

Must be 'true' or 'false'