Hi all,
I'm looking at v1.10 of the PDF, page 366, RPC name 'VDI.introduce'.
* 4 parameters are visible with the rest cropped off in the right
margin.
* 18 parameters shown in the table below it.
* The actual RPC seems to want 9 parameters (testing on XCP 1.6).
... MESSAGE_PARAMETER_COUNT_
> 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
On 02/20/2013 10:11 am, Rob Hoes wrote:
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'.
A single VM.get_all_records_where cal
> 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...
Cheers,
Rob
__
On 02/20/2013 8:53 am, Rob Hoes wrote:
Hi Randy,
Could you try something like this:
VM.get_all_records_where('field "tags" = "(\'test2\' \'test\')"')
Thanks Rob, it works!
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 :co
Hi Randy,
Could you try something like this:
VM.get_all_records_where('field "tags" = "(\'test2\' \'test\')"')
Look in /var/log/state.db, where xapi keeps a copy of its database in XML
format, for examples of how complicated values such as sets and maps are
encoded in the database.
The *_wher
Hi James,
Thanks so much for the help. Following your instructions, I managed to get
"xsconsole" installed. I haven't had a chance to test all the features
yet, but so far, so good.
Thanks again. Much appreciated!
Best regards,
GizmoChicken
On Tue, Feb 19, 2013 at 1:08 PM, James Bulpin wrot