You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Ian Duffy <ia...@ianduffy.ie> on 2013/09/13 07:16:37 UTC

listAccounts filter by name

Hi,

Does the given scenario reflect expected functionality?


I am an admin user
I create an account with 1 user, lets call the account example and the user
example.
I query listAccounts with parameter listAll, all accounts are returned
including the one I just created.
I query listAccounts with parameter name and value admin, the admin account
is returned.
I query listAccounts with parameter name and value example, no accounts are
returned.

Should the last query not return the example account I created?
Query by ID appears to work as *I* expected and returned the account
information of the given ID.

Re: listAccounts filter by name

Posted by Ian Duffy <ia...@ianduffy.ie>.
Went and looked at the source.
Due to same account names across different domains a domain id must be
specified before it will filter by name.


On 13 September 2013 06:16, Ian Duffy <ia...@ianduffy.ie> wrote:

> Hi,
>
> Does the given scenario reflect expected functionality?
>
>
> I am an admin user
> I create an account with 1 user, lets call the account example and the
> user example.
> I query listAccounts with parameter listAll, all accounts are returned
> including the one I just created.
> I query listAccounts with parameter name and value admin, the admin
> account is returned.
> I query listAccounts with parameter name and value example, no accounts
> are returned.
>
> Should the last query not return the example account I created?
> Query by ID appears to work as *I* expected and returned the account
> information of the given ID.
>
>
>