GET /api/hostgroups/636252244-Common/smart_variables 200 { "total": 2, "subtotal": 2, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "description": null, "parameter_type": "boolean", "variable_type": "boolean", "hidden_value?": false, "validator_type": null, "validator_rule": null, "override_value_order": "fqdn\nhostgroup\nos\ndomain", "merge_overrides": false, "merge_default": false, "avoid_duplicates": false, "puppetclass_id": 980190962, "puppetclass_name": "base", "created_at": "2019-02-20 13:22:22 UTC", "updated_at": "2019-02-20 13:22:22 UTC", "variable": "bool_test", "id": 638205575, "default_value": "t", "override_values_count": 0 }, { "description": null, "parameter_type": "string", "variable_type": "string", "hidden_value?": false, "validator_type": "list", "validator_rule": "443,8443", "override_value_order": "fqdn\nhostgroup\nos\ndomain", "merge_overrides": false, "merge_default": false, "avoid_duplicates": false, "puppetclass_id": 980190962, "puppetclass_name": "base", "created_at": "2019-02-20 13:22:22 UTC", "updated_at": "2019-02-20 13:22:22 UTC", "variable": "ssl_port", "id": 298486374, "default_value": "443", "override_values_count": 1 } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
host_id optional |
Validations:
|
hostgroup_id optional |
Validations:
|
puppetclass_id optional |
Validations:
|
show_hidden optional |
Display hidden values Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
paginate results Validations:
|
per_page optional |
number of entries per request Validations:
|
Field name | Type | Possible values |
---|---|---|
avoid_duplicates | true, false | |
key | string | |
merge_default | true, false | |
merge_overrides | true, false | |
override | true, false | |
parameter | string | |
puppetclass | string |