Sha256: f9e9398c201c2c79127bad198ee854511419cd485a4a2ab3fc9bba24389b2d19

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Creates a load balancer rule
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createLoadBalancerRule.html]
        def create_load_balancer_rule(publicport, algorithm, privateport, name, options={})
          options.merge!(
            'command' => 'createLoadBalancerRule', 
            'publicport' => publicport, 
            'algorithm' => algorithm, 
            'privateport' => privateport, 
            'name' => name  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb