Ask Your Question
0

Filter options for v2?

asked 2013-03-16 09:15:06 -0500

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 (http://docs.openstack.org/developer/g...) 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?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-20 20:57:40 -0500

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?

edit flag offensive delete link more
0

answered 2013-03-26 00:19:22 -0500

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.

edit flag offensive delete link more
0

answered 2013-04-15 22:22:49 -0500

flwang gravatar image

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 (https://github.com/openstack/glance/b...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-03-16 09:15:06 -0500

Seen: 24 times

Last updated: Apr 15 '13