summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2011-08-04 17:36:39 -0700
committerChris Behrens <cbehrens@codestud.com>2011-08-04 17:36:39 -0700
commit8aeec07c2a5f8a5f1cfb049e20caa29295496606 (patch)
treec1dbdbcb2f8a0941c53c04191e958b69a9495ef8 /nova/api
parent64966cbd83cbde6a240dad4ac786fe7a6a116f2f (diff)
downloadnova-8aeec07c2a5f8a5f1cfb049e20caa29295496606.tar.gz
nova-8aeec07c2a5f8a5f1cfb049e20caa29295496606.tar.xz
nova-8aeec07c2a5f8a5f1cfb049e20caa29295496606.zip
add comment for servers_search_options list in the OS API Controllers.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index b54897b8a..ae0b103bd 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -46,6 +46,10 @@ FLAGS = flags.FLAGS
class Controller(object):
""" The Server API base controller class for the OpenStack API """
+ # These are a list of possible query string paramters to the
+ # /servers query that a user should be able to do. Specify this
+ # in your subclasses. When admin api is off, unknown options will
+ # get filtered out without error.
servers_search_options = []
def __init__(self):
@@ -565,6 +569,9 @@ class Controller(object):
class ControllerV10(Controller):
"""v1.0 OpenStack API controller"""
+ # These are a list of possible query string paramters to the
+ # /servers query that a user should be able to do. When admin api
+ # is off, unknown options will get filtered out without error.
servers_search_options = ["reservation_id", "fixed_ip",
"name", "recurse_zones"]
@@ -633,6 +640,9 @@ class ControllerV10(Controller):
class ControllerV11(Controller):
"""v1.1 OpenStack API controller"""
+ # These are a list of possible query string paramters to the
+ # /servers query that a user should be able to do. When admin api
+ # is off, unknown options will get filtered out without error.
servers_search_options = ["reservation_id", "name", "recurse_zones",
"status", "image", "flavor", "changes-since"]