# File lib/fog/network/openstack/requests/create_lbaas_pool.rb, line 5 def create_lbaas_pool(listener_id, protocol, lb_algorithm, options = {}) data = { 'pool' => { 'listener_id' => listener_id, 'protocol' => protocol, 'lb_algorithm' => lb_algorithm } } vanilla_options = [:name, :description, :admin_state_up, :session_persistence, :tenant_id] vanilla_options.reject { |o| options[o].nil? }.each do |key| data['pool'][key] = options[key] end request( :body => Fog::JSON.encode(data), :expects => [201], :method => 'POST', :path => 'lbaas/pools' ) end