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

Jay Pipes jaypipes at gmail.com
Tue Nov 3 10:37:35 UTC 2015


Hi all,

A spec [1] that proposes adding a new server_ids query string parameter 
to the existing GET /servers/detail URI resource has highlighted an 
interesting issue.

The point of the spec is to add an ability to filter the results for the 
GET /servers/detail API call to a specified set of instance UUIDs. 
However, Tony Breeds points out that there will be a rather small limit 
(~55 or so, maximum) on the number of UUIDs that can be specified in the 
query parameters due to length limitations of the URI.

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.

Thank you!
-jay

[1] https://review.openstack.org/#/c/239286/



More information about the OpenStack-dev mailing list