PUT /api/smart_class_parameters/1018350796 { "smart_class_parameter": { "override": true, "default_value": 50, "validator_type": "list", "validator_rule": "25, example, 50" } } 500 { "error": { "message": "Validation failed: Lookup values is invalid" } }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
smart_class_parameter required |
Validations:
|
smart_class_parameter[override] optional |
Whether the smart class parameter value is managed by Foreman Validations:
|
smart_class_parameter[description] optional |
Description of smart class Validations:
|
smart_class_parameter[default_value] optional |
Value to use when there is no match Validations:
|
smart_class_parameter[hidden_value] optional |
When enabled the parameter is hidden in the UI Validations:
|
smart_class_parameter[use_puppet_default] optional |
Deprecated, please use omit Validations:
|
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:
|
smart_class_parameter[path] optional |
The order in which values are resolved Validations:
|
smart_class_parameter[validator_type] optional |
Types of validation values Validations:
|
smart_class_parameter[validator_rule] optional |
Used to enforce certain values for the parameter values Validations:
|
smart_class_parameter[override_value_order] optional |
The order in which values are resolved Validations:
|
smart_class_parameter[parameter_type] optional |
Types of variable values Validations:
|
smart_class_parameter[required] optional |
If true, will raise an error if there is no default value and no matcher provide a value Validations:
|
smart_class_parameter[merge_overrides] optional |
Merge all matching values (only array/hash type) Validations:
|
smart_class_parameter[merge_default] optional |
Include default value when merging all matching values Validations:
|
smart_class_parameter[avoid_duplicates] optional |
Remove duplicate values (only array type) Validations:
|