[openstack-dev] [api][nova] Handling lots of GET query string parameters?
Sean Dague
sean at dague.net
Wed Nov 4 12:17:55 UTC 2015
On 11/03/2015 05:45 AM, Julien Danjou wrote:
> On Tue, Nov 03 2015, Jay Pipes wrote:
>
>> My suggestion was to add a new POST /servers/search URI resource that can take
>> a request body containing large numbers of filter arguments, encoded in a JSON
>> object.
>>
>> API working group, what thoughts do you have about this? Please add your
>> comments to the Gerrit spec patch if you have time.
>
> FWIW, we already have an extensive support for that in both Ceilometer
> and Gnocchi. It looks like a small JSON query DSL that we're able to
> "compile" down to SQL Alchemy filters.
>
> A few examples are:
> http://docs.openstack.org/developer/gnocchi/rest.html#searching-for-resources
>
> I've planed for a long time to move this code to a library, so if Nova's
> interested, I can try to move that forward eagerly.
I guess I wonder what the expected interaction with things like
Searchlight is? Searchlight was largely created for providing this kind
of fast access to subsets of resources based on arbitrary attribute search.
-Sean
--
Sean Dague
http://dague.net
More information about the OpenStack-dev
mailing list