Sha256: 40ca6574ee373f3a33463a1b0266ac4c284732d7ad5968972e24ee6fe7bdd797

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Updates a port forwarding rule.  Only the private port and the virtual machine can be updated.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/updatePortForwardingRule.html]
        def update_port_forwarding_rule(publicport, privateport, protocol, ipaddressid, options={})
          options.merge!(
            'command' => 'updatePortForwardingRule', 
            'publicport' => publicport, 
            'privateport' => privateport, 
            'protocol' => protocol, 
            'ipaddressid' => ipaddressid  
          )
          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/update_port_forwarding_rule.rb