Actions
Feature #13519
closedInconsistent naming in search and output when searching on smart class parameters
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"} }
Updated by Ewoud Kohl van Wijngaarden almost 9 years ago
- Related to Feature #13260: RFE : allowing hammer-cli to search/update sc-parameters added
Updated by Ori Rabin almost 9 years ago
Did you try curl -u user -k https://foreman.example.org/api/smart_class_parameters/?search=key%3Dapache_name ?
In the UI it also shows key and not parameter but it searches on the same field.
If this works for you please change this to a bug for inconsistent naming in search and output.
Updated by Ewoud Kohl van Wijngaarden almost 9 years ago
- 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.
Updated by Ewoud Kohl van Wijngaarden almost 9 years ago
Ori: do you have a similar trick to search for the puppet class name?
Updated by Ori Rabin almost 9 years ago
'puppetclass' should be searchable: smart_class_parameters?search=puppetclass%3Dapache
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shlomi Zadok
- Pull request https://github.com/theforeman/foreman/pull/3215 added
Updated by Ori Rabin almost 9 years ago
- Status changed from Ready For Testing to Closed
Updated by Dominic Cleal almost 9 years ago
- Translation missing: en.field_release set to 71
Actions