Sha256: 7748a126793838c3f9fb676af337861ab10c4725676f43f2af2faa0d3b7495f4
Contents?: true
Size: 750 Bytes
Versions: 28
Compression:
Stored size: 750 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.4/root_admin/createLoadBalancerRule.html] def create_load_balancer_rule(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'createLoadBalancerRule') else options.merge!('command' => 'createLoadBalancerRule', 'name' => args[0], 'privateport' => args[1], 'algorithm' => args[2], 'publicport' => args[3]) end request(options) end end end end end
Version data entries
28 entries across 26 versions & 4 rubygems