Sha256: a6cc444a2c1fb61d4b72ea3f2c16aa37bc2ad1dbf117a354e61d934b2ad2ec76

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Enables static nat for given ip address
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/enableStaticNat.html]
        def enable_static_nat(ipaddressid, virtualmachineid, options={})
          options.merge!(
            'command' => 'enableStaticNat', 
            'ipaddressid' => ipaddressid, 
            'virtualmachineid' => virtualmachineid  
          )
          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/enable_static_nat.rb