Sha256: af2b551cc57574160587356d37da18013eea729fc616c835507b955dd39777ec

Contents?: true

Size: 763 Bytes

Versions: 5

Compression:

Stored size: 763 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Add a number of nodes to the load balancer
        #
        # @param [String] identifier Unique reference to identify the resource
        # @param [Hash] options
        # @option options [Array] :nodes Array of Node parameters
        #
        # @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_nodes_load_balancer
        #
        def add_nodes_load_balancer(identifier, options)
          return nil if identifier.nil? || identifier == ""
          request("post", "/1.0/load_balancers/#{identifier}/add_nodes", [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_nodes_load_balancer.rb
fog-nirvanix-1.8.1 lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb
fog-sgonyea-1.8.1 lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb
fog-1.8.0 lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb