3 define_request :list_hosts, :inherit => [:openstack, :common, :v2, :admin, :base] do
5 meta :service, :compute
8 'http://api.openstack.org/api-ref.html#ext-os-hosts'
10 link 'documentation bug',
11 'https://bugs.launchpad.net/nova/+bug/1224763'
13 param :service, :required => false
14 param :zone, :required => false
28 url = "#{ base_url }/os-hosts"
32 optional_params.each do |param_name|
33 filters << "#{ param_name }=#{ params[param_name] }" if params[param_name]
36 url += "?#{ filters.join('&') }" unless filters.empty?