[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] get_all_records_where



> On 02/20/2013 9:38 am, Rob Hoes wrote:
> >> One more question.  Suppose I want to return a VM which has 10 tags
> >> but match only 1 or 2 or 3 of them?  Similar to :contains in XE, but
> >> more flexible
> >> (1 or more tags).
> >
> > I don't think that is currently possible. We could do with a better
> > API for querying things...
> 
> How about just replicate the XE functionality ':contains'?  Matching just 1 
> tag
> only.  I can work around that.

Looking at the code, I think xe just gets all records, and then does the 
filtering locally, in this case. I don't think the XenAPI has a "contains" 
operator for the *_where functions; only '=', 'and', 'or', and 'not'.

Cheers,
Rob
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.