[openstack-dev] [api][nova] Handling lots of GET query string parameters?

Julien Danjou julien at danjou.info
Tue Nov 3 10:45:22 UTC 2015


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.

-- 
Julien Danjou
# Free Software hacker
# https://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151103/d4cbb4a9/attachment.pgp>


More information about the OpenStack-dev mailing list