Feature #13519
closed
Inconsistent naming in search and output when searching on smart class parameters
Added by Ewoud Kohl van Wijngaarden almost 9 years ago.
Updated over 6 years ago.
Description
As a user I'd like to search /api/smart_class_parameters/
for puppet class name and parameter name so I don't have to iterate all values.
$ curl -u user -k https://foreman.example.org/api/smart_class_parameters/?search=parameter%3Dapache_name
Enter host password for user 'api':
{
"error": {"message":"Field 'parameter' not recognized for searching!","class":"ScopedSearch::QueryNotSupported"}
}
Related issues
1 (1 open — 0 closed)
- Related to Feature #13260: RFE : allowing hammer-cli to search/update sc-parameters added
- Subject changed from Allow searching on smart class parameters to Inconsistent naming in search and output when searching on smart class parameters
You're right, that does work.
Ori: do you have a similar trick to search for the puppet class name?
'puppetclass' should be searchable: smart_class_parameters?search=puppetclass%3Dapache
- Status changed from New to Ready For Testing
- Assignee set to Shlomi Zadok
- Pull request https://github.com/theforeman/foreman/pull/3215 added
- Status changed from Ready For Testing to Closed
- Translation missing: en.field_release set to 71
Also available in: Atom
PDF