Hi!

In this method "q" is query argument and used for filtering response.

In code you may set this parameter with list of dicts, like this:

q=[{"field": "resource_id", "value": "a", "op": "eq"}]

More examples of queries at
http://docs.openstack.org/developer/ceilometer/webapi/v2.html?highlight=query#api-and-cli-query-examples


On Tue, Apr 8, 2014 at 1:13 AM, Hachem Chraiti <hachem...@gmail.com> wrote:

> hi erveryone,thats a python code:
>
> from ceilometerclient.v2 import client
>
> ceilometer =client.Client(endpoint='http://controller:8777/v2/resources',
> token='e8e70342225d64d1d20a')
>
> print  ceilometer.resources.list(q)
>
>
> whats this "q" parameter??????
>
> Sincerly ,
> Chraiti Hachem,software engineer
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

Best regards,

Tyaptin Ilia,

Intern Software Engineer.
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to