[ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy query

Ondra Machacek omachace at redhat.com
Mon Aug 1 08:37:55 UTC 2016


On 08/01/2016 07:13 AM, 转圈圈 wrote:
> The above code is wrong,how fuzzy query?
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>

You need to prefix with 'search=',
So for example to search by name or status, you should have something like:

    ....list().search("search=name=myvm or status=up").send()....

You can check examples here:

 
https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples



More information about the Users mailing list