3 define_request :list_addresses, :inherit => [:openstack, :common, :v2, :public, :base] do
5 meta :service, :compute
8 'http://docs.openstack.org/api/openstack-compute/2/content/List_Addresses-d1e3014.html'
11 'http://docs.openstack.org/api/openstack-compute/2/content/List_Addresses_by_Network-d1e3118.html'
14 param :id, :required => true
15 param :networkID, :required => false, :alias => :network_id
29 url = "#{ base_url }/servers/#{ params[:id] }/ips"
30 url += "/#{ params[:networkID] }" if params[:networkID]