You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Matt Spurlin <ma...@appcore.com> on 2014/05/01 16:46:17 UTC

listVirtualMachine API With Name Parameter Set

Hi all,
I am looking at
CLOUDSTACK-6555<https://issues.apache.org/jira/browse/CLOUDSTACK-6555>.
I am wondering if the name parameter is meant to return only one result if
there is an exact match or if returning all results that include the
specified value is the expected behavior.
Thanks,
Matt

Re: listVirtualMachine API With Name Parameter Set

Posted by Daan Hoogland <da...@gmail.com>.
This is not the same in any list* API. Some use name = <name> others
use name like '%<name>%'.  It seems counter intuitive regarding that
there is also a keyword parameter that is match against several fields
using like '%<keyword>%'. I will start a separate thread on api
revision about revising this.

On Fri, May 2, 2014 at 2:18 PM, Koushik Das <ko...@citrix.com> wrote:
> The name parameter is used in the sql query filter as "where name like <name>", so more than one can be returned.
>
> On 01-May-2014, at 8:16 PM, Matt Spurlin <ma...@appcore.com> wrote:
>
>> Hi all,
>> I am looking at
>> CLOUDSTACK-6555<https://issues.apache.org/jira/browse/CLOUDSTACK-6555>.
>> I am wondering if the name parameter is meant to return only one result if
>> there is an exact match or if returning all results that include the
>> specified value is the expected behavior.
>> Thanks,
>> Matt
>



-- 
Daan

Re: listVirtualMachine API With Name Parameter Set

Posted by Koushik Das <ko...@citrix.com>.
The name parameter is used in the sql query filter as "where name like <name>", so more than one can be returned.

On 01-May-2014, at 8:16 PM, Matt Spurlin <ma...@appcore.com> wrote:

> Hi all,
> I am looking at
> CLOUDSTACK-6555<https://issues.apache.org/jira/browse/CLOUDSTACK-6555>.
> I am wondering if the name parameter is meant to return only one result if
> there is an exact match or if returning all results that include the
> specified value is the expected behavior.
> Thanks,
> Matt