Sha256: 3007d6148b5ca0e767e6f57d94502cc404837487d33e247261aebbfa68097dbc

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Creates a firewall rule for a given ip address
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createFirewallRule.html]
        def create_firewall_rule(ipaddressid, protocol, options={})
          options.merge!(
            'command' => 'createFirewallRule', 
            'ipaddressid' => ipaddressid, 
            'protocol' => protocol  
          )
          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_firewall_rule.rb