hi,
I just started using foreman application. Does search filter supports
patterns?
Ex: i use rest call as below:
http://openstack-vm1.ca.com:80/api/hostgroups/?search=label="<http://openstack-vm1.ca.com:80/api/hostgroups/?search=label="HostGrp1%2FHG2%2FHG2-001">
Group2/test <https://openstack-vm1.ca.com/hostgroups/8-group2-test/edit>"
My question is can i use patterns like search=label="*Group2/**<https://openstack-vm1.ca.com/hostgroups/8-group2-test/edit>"
or search=label="Group<https://openstack-vm1.ca.com/hostgroups/8-group2-test/edit>?"
to retrieve all the subgroups of Group2 or all the groups starting with
keyword Group.
Thanks,
Jafar
Hello,
our searches are implemented via scoped_search. Check its syntax on the
project's wiki page:
https://github.com/wvanbergen/scoped_search/wiki/query-language
You can use '~' operator for 'LIKE' matches. I'm not aware of any better
pattern filters in scoped_search.
Regards
Tomas
ยทยทยท
On 01/21/2014 08:46 AM, syed jafar wrote:
> hi,
> I just started using foreman application. Does search filter supports
> patterns?
> Ex: i use rest call as below:
> http://openstack-vm1.ca.com:80/api/hostgroups/?search=label="
> My question is can i use patterns like search=label="_Group2/*_
> " or
> search=label="_Group_
> ?" to
> retrieve all the subgroups of Group2 or all the groups starting with
> keyword Group.
> Thanks,
> Jafar