Sha256: 1b967b782b013c0d6ed1ab259da92817170421000fb7b31a039800b47ad35985

Contents?: true

Size: 893 Bytes

Versions: 5

Compression:

Stored size: 893 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Adds a number of listeners to the load balancer to enable balancing across nodes for those settings.
        #
        # @param [String] identifier Unique reference to identify the resource
        # @param [Hash] options
        # @option options [Array] :listeners Array of Listener parameters. Timeout is optional and specified in milliseconds.
        #
        # @return [Hash, nil] The JSON response parsed to a Hash or nil if no options passed
        #
        # @see https://api.gb1.brightbox.com/1.0/#load_balancer_add_listeners_load_balancer
        #
        def add_listeners_load_balancer(identifier, options)
          return nil if identifier.nil? || identifier == ""
          request("post", "/1.0/load_balancers/#{identifier}/add_listeners", [202], options)
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb
fog-nirvanix-1.8.1 lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb
fog-sgonyea-1.8.1 lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb
fog-1.8.0 lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb