Filter options for v2?

Asked by John Bresnahan on 2013-03-16

I am looking the explicit list of filter options for the "index" (GET http://glance.example.com/v1/images). I have found some documentation: http://docs.openstack.org/developer/glance/glanceapi.html but it is not entirely definitive. When looking at the tests I see options such as 'ping=pong' sent in via the query string.

Is there an explicit list of acceptable query_string parameters or is it open ended?

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
John Bresnahan
Solved:
2013-03-26
Last query:
2013-03-26
Last reply:
John Bresnahan (jbresnah) said : #1

The list of options here: http://api.openstack.org/api-ref.html do not include ping=pong and they do not suggest that the parameter set should be open ended, should this be considered a bug?

John Bresnahan (jbresnah) said : #2

It appears that in the v2 protocol that any unknown query string parameter should be treated as a search filter. Thus there is not an explicit list of acceptable ones.

Feilong Wang (flwang) said : #3

Just like like John's said, most of the parameters configuration should be shown on link http://api.openstack.org/api-ref.html, but unfortunately, the v2 API has not been updated to the api site. So for now, you may need to check below source code to get the filter parameters info: https://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L66