Sha256: f137ec9f88e4d832c2017237356cd25bb246623952a1f2feb66c503e75111cf0
Contents?: true
Size: 784 Bytes
Versions: 26
Compression:
Stored size: 784 Bytes
Contents
module Fog module Rackspace class LoadBalancers class Real def create_load_balancer(name, protocol, port, virtual_ips, nodes, options = {}) data = { 'loadBalancer' => { 'name' => name, 'port' => port, 'protocol' => protocol, 'virtualIps' => virtual_ips, 'nodes' => nodes #Is algorithm allowed on create? } } data['loadBalancer']['algorithm'] = options[:algorithm] if options.has_key? :algorithm request( :body => Fog::JSON.encode(data), :expects => 202, :method => 'POST', :path => 'loadbalancers.json' ) end end end end end
Version data entries
26 entries across 26 versions & 11 rubygems