GET /api/smart_class_parameters/328495940-cluster/override_values 200 { "total": 2, "subtotal": 2, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "created_at": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:01:27 UTC", "id": 674471636, "match": "fqdn=temp.yourdomain.net", "value": "8080", "omit": false, "use_puppet_default": false }, { "created_at": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:01:27 UTC", "id": 874520030, "match": "hostgroup=Common", "value": "8080", "omit": false, "use_puppet_default": false } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
smart_variable_id optional |
Validations:
|
smart_class_parameter_id optional |
Validations:
|
show_hidden optional |
Display hidden values Validations:
|
page optional |
paginate results Validations:
|
per_page optional |
number of entries per request Validations:
|
GET /api/smart_class_parameters/328495940-cluster/override_values/hostgroup=Common 200 { "created_at": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:01:27 UTC", "id": 874520030, "match": "hostgroup=Common", "value": "8080", "omit": false, "use_puppet_default": false }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
smart_variable_id optional |
Validations:
|
smart_class_parameter_id optional |
Validations:
|
id required |
Validations:
|
show_hidden optional |
Display hidden values Validations:
|
POST /api/smart_variables/1018350796/override_values { "override_value": { "match": "domain=example.com", "value": "gdkWwYbkrO" } } 500 { "error": { "message": "Validation failed: Value is invalid" } }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
smart_variable_id optional |
Validations:
|
smart_class_parameter_id optional |
Validations:
|
override_value required |
Validations:
|
override_value[match] required |
Override match Validations:
|
override_value[value] optional , nil allowed |
Override value, required if omit is false Validations:
|
override_value[use_puppet_default] optional , nil allowed |
Deprecated, please use omit Validations:
|
override_value[omit] optional , nil allowed |
Foreman will not send this parameter in classification output, replaces use_puppet_default Validations:
|
PUT /api/smart_class_parameters/328495940-cluster/override_values/874520030 { "override_value": { "match": "os=abc" } } 200 { "created_at": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:02:37 UTC", "id": 874520030, "match": "os=abc", "value": "8080", "omit": false, "use_puppet_default": false }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
smart_variable_id optional |
Validations:
|
smart_class_parameter_id optional |
Validations:
|
override_value required |
Validations:
|
override_value[match] optional |
Override match Validations:
|
override_value[value] optional , nil allowed |
Override value, required if omit is false Validations:
|
override_value[use_puppet_default] optional , nil allowed |
Deprecated, please use omit Validations:
|
override_value[omit] optional , nil allowed |
Foreman will not send this parameter in classification output, replaces use_puppet_default Validations:
|
DELETE /api/smart_class_parameters/328495940-cluster/override_values/hostgroup=Common { "override_value": {} } 200 { "created_at": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:01:27 UTC", "id": 874520030, "match": "hostgroup=Common", "value": "8080", "omit": false, "use_puppet_default": false }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
smart_variable_id optional |
Validations:
|
smart_class_parameter_id optional |
Validations:
|
id required |
Validations:
|