Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad If CompareIn NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body If CompareIn SubscriptLoad NameLoad Slice Num TupleLoad Str Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad NameLoad attr Str orelse Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore IfExp NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad If CompareNotIn NameLoad TupleLoad Str Str body Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call NameLoad keyword Dict Str Str keyword Dict Str Str Str Str Str Str Return NameLoad decorator_list AttributeLoad NameLoad attr decorator_list
N/A N/A The hosts admin extension. N/A webob.exc nova compute nova exception nova flags nova log logging nova.api.openstack common nova.api.openstack extensions nova.api.openstack faults nova.api.openstack.contrib admin_only nova.scheduler api scheduler_api N/A LOG N/A N/A logging getLogger nova.api.hosts N/A FLAGS N/A flags FLAGS _list_hosts N/A N/A req service N/A None N/A N/A Returns a summary list of hosts, optionally filtering
    by service type.
     N/A context N/A N/A req environ N/A nova.context N/A hosts N/A N/A scheduler_api get_host_list context N/A service N/A N/A hosts N/A host N/A host hosts N/A N/A host N/A service service N/A hosts N/A check_host N/A N/A fn N/A N/A N/A Makes sure that the host exists. wrapped N/A N/A self req id service N/A None args kwargs N/A N/A listed_hosts N/A _list_hosts req service N/A hosts N/A N/A h N/A host_name N/A h listed_hosts N/A N/A id hosts N/A N/A N/A fn self req id args kwargs N/A N/A N/A N/A exception HostNotFound host id N/A N/A wrapped N/A HostController N/A object N/A N/A The Hosts API controller for the OpenStack API. __init__ N/A N/A self N/A N/A N/A N/A self compute_api N/A N/A compute API N/A N/A N/A N/A super HostController self __init__ N/A index N/A N/A self req N/A N/A N/A N/A hosts N/A _list_hosts req N/A update N/A N/A self req id body N/A N/A N/A N/A raw_key raw_val N/A N/A body iteritems N/A N/A key N/A N/A N/A N/A raw_key lower strip N/A val N/A N/A N/A N/A raw_val lower strip N/A N/A key status N/A N/A N/A N/A val N/A 6 N/A enable disabl N/A N/A N/A N/A self _set_enabled_status req id enabled N/A N/A val startswith enable N/A N/A explanation N/A N/A _ Invalid status: '%s' raw_val N/A N/A N/A N/A webob exc HTTPBadRequest explanation explanation N/A N/A explanation N/A N/A _ Invalid update setting: '%s' raw_key N/A N/A N/A N/A webob exc HTTPBadRequest explanation explanation N/A check_host _set_enabled_status N/A N/A self req host enabled N/A N/A N/A Sets the specified host's ability to accept new instances. N/A context N/A N/A req environ N/A nova.context N/A state N/A enabled enabled disabled N/A N/A N/A LOG audit N/A N/A _ Setting host %(host)s to %(state)s. N/A locals N/A result N/A N/A N/A self compute_api set_host_enabled context host host enabled enabled N/A N/A result N/A enabled disabled N/A N/A N/A N/A N/A webob exc HTTPBadRequest explanation result N/A N/A host status host result N/A _host_power_action N/A N/A self req host action N/A N/A N/A Reboots, shuts down or powers up the host. N/A context N/A N/A req environ N/A nova.context N/A N/A N/A result N/A N/A N/A self compute_api host_power_action context host host action action N/A N/A N/A NotImplementedError N/A e N/A N/A N/A N/A N/A webob exc HTTPBadRequest explanation N/A e msg N/A N/A host power_action host result N/A startup N/A N/A self req id N/A N/A N/A N/A N/A self _host_power_action req host id action startup N/A shutdown N/A N/A self req id N/A N/A N/A N/A N/A self _host_power_action req host id action shutdown N/A reboot N/A N/A self req id N/A N/A N/A N/A N/A self _host_power_action req host id action reboot N/A N/A Hosts N/A N/A extensions ExtensionDescriptor N/A get_name N/A N/A self N/A N/A N/A Hosts N/A get_alias N/A N/A self N/A N/A N/A os-hosts N/A get_description N/A N/A self N/A N/A N/A Host administration N/A get_namespace N/A N/A self N/A N/A N/A http://docs.openstack.org/ext/hosts/api/v1.1 N/A get_updated N/A N/A self N/A N/A N/A 2011-06-29T00:00:00+00:00 N/A get_resources N/A N/A self N/A N/A N/A resources N/A N/A N/A extensions ResourceExtension os-hosts N/A HostController collection_actions N/A update PUT member_actions N/A startup shutdown reboot GET GET GET N/A resources N/A N/A admin_only admin_only N/A