Provide named queries for glance, nova etc

Registered by Lakshmi N Sampath

Elasticsearch syntax is very powerful. However, for ease of use, we would like to be able to provide the equivalent of named queries for each given resource type so that every client does not have to write the full syntax if they do not want to. For example, when speaking with IBM usability experts in the past, they informed us that most users are looking for several common combinations of filtering instances.

This will provide a function on each plugin where a dictionary of named queries will be able to be queried via the API. The named query will have:

 - Name
 - Description
 - Input parameters
 - Example Output (elastic search results)

The named query can be invoked using a simplified syntax of Resource Type, Query Name, and Parameter inputs.

This should look at the Percolate capability of ElasticSearch to see if it can be used:

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html

Blueprint information

Status:
Not started
Approver:
None
Priority:
Low
Drafter:
Lakshmi N Sampath
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(rosmaita) Here are some suggestions for images:
v2/images?name=
v2/images?os_distro=
v2/images?os_distro={}&os_version=
v2/images?instance_uuid=
v2/images?base_image_ref=

will probably want some date range searching on created_at
not sure about updated_at (since the image data is immutable, it only tells you about when the image record was last modified)

(nikhil)
v2/images?status=
v2/images?os_type=

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.