Michael DeHaan wrote:
> Coming soon to the devel branch:
>
> import xmlrpclib
> s = xmlrpclib.Server("http://127.0.0.1/cobbler_api";)
> print s.find_distro({"name":"a*"},False)                           # get 
> all distro /names/ starting with a
> print s.find_distro({"kernel":"/mnt*"},False )                    # get 
> all distro /names/ with kernels living on /mnt
> print s.find_system({"ip_address":"192.168.*.*"},True)   # get /full 
> data/ for all systems with IPs matching these wildcards.
>
> There will also be "find_profile, find_system, find_image, and 
> find_repo", so it will work just like the Python API.
> You can also specify more than one criteria, in which case this works as 
> an AND query (both criteria must be met).
>
> The very next step after this is to teach the web app how to search for 
> this data.
>
> The wildcard search, as with the Python API already, and command such as 
> "cobbler system find", are fnmatch based, similar to Unix shell 
> patterns.  They are not regular expressions.
>
> --Michael
>
>
>
>
>
>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

Due to popular demand and non-intrusiveness the search APIs will be 
present in in 1.4.3.

The webapp components (email coming on this very shortly) will only be 
for the devel branch (1.5/1.6).

--Michael


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to