Sha256: 94a47da317e18ae3cd06eea3d2ec0ba2ed5d297d4c1f08e3b0b2bb448fc0d576

Contents?: true

Size: 671 Bytes

Versions: 27

Compression:

Stored size: 671 Bytes

Contents

module Fog
  module Rackspace
    class LoadBalancers
      class Real
        def create_load_balancer(name, protocol, port, virtual_ips, nodes)
          data = {
            'loadBalancer' => {
              'name' => name,
              'port' => port,
              'protocol' => protocol,
              'virtualIps' => virtual_ips,
              'nodes' => nodes
              #Is algorithm allowed on create?
            }
          }
          request(
            :body     => MultiJson.encode(data),
            :expects  => 202,
            :method   => 'POST',
            :path     => 'loadbalancers.json'
          )
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog-1.3.1 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog-1.3.0 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog-1.2.0 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
ktheory-fog-1.1.2 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog-1.1.2 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog_tractical-1.1.4 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog_tractical-1.1.3 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog-1.1.1 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
fog-1.1.0 lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb