POST /api/smart_variables { "smart_variable": { "variable": "QSFxqjVjdV", "puppetclass_id": 298486374, "hidden_value": true } } 201 { "description": null, "parameter_type": null, "variable_type": null, "hidden_value?": true, "validator_type": null, "validator_rule": null, "override_value_order": "fqdn\nhostgroup\nos\ndomain", "merge_overrides": false, "merge_default": false, "avoid_duplicates": false, "puppetclass_id": 298486374, "puppetclass_name": "apache", "created_at": "2019-09-11 14:34:11 UTC", "updated_at": "2019-09-11 14:34:11 UTC", "variable": "QSFxqjVjdV", "id": 1018350798, "default_value": "*****", "override_values_count": 0, "override_values": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
smart_variable required |
Validations:
|
smart_variable[variable] required |
Name of variable Validations:
|
smart_variable[puppetclass_id] optional , nil allowed |
Puppet class ID Validations:
|
smart_variable[default_value] optional , nil allowed |
Default value of variable Validations:
|
smart_variable[hidden_value] optional , nil allowed |
When enabled the parameter is hidden in the UI Validations:
|
smart_variable[override_value_order] optional , nil allowed |
The order in which values are resolved Validations:
|
smart_variable[description] optional , nil allowed |
Description of variable Validations:
|
smart_variable[validator_type] optional , nil allowed |
Types of validation values Validations:
|
smart_variable[validator_rule] optional , nil allowed |
Used to enforce certain values for the parameter values Validations:
|
smart_variable[variable_type] optional , nil allowed |
Types of variable values Validations:
|
smart_variable[merge_overrides] optional , nil allowed |
Merge all matching values (only array/hash type) Validations:
|
smart_variable[merge_default] optional , nil allowed |
Include default value when merging all matching values Validations:
|
smart_variable[avoid_duplicates] optional , nil allowed |
Remove duplicate values (only array type) Validations:
|