Sha256: 6819626bac601f2339637c4e3e05f0c6065c5761f55ad53a96ebc96d4de6784c

Contents?: true

Size: 735 Bytes

Versions: 28

Compression:

Stored size: 735 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Adds an external firewall appliance
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/addExternalFirewall.html]
        def add_external_firewall(*args)
          options = {}
          if args[0].is_a? Hash
            options = args[0]
            options.merge!('command' => 'addExternalFirewall') 
          else
            options.merge!('command' => 'addExternalFirewall', 
            'url' => args[0], 
            'username' => args[1], 
            'password' => args[2], 
            'zoneid' => args[3])
          end
          request(options)
        end
      end

    end
  end
end

Version data entries

28 entries across 26 versions & 4 rubygems

Version Path
fog-1.30.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
fog-1.29.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
fog-1.28.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
fog-1.27.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
fog-1.26.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
fog-1.25.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
nsidc-fog-1.24.1 lib/fog/cloudstack/requests/compute/add_external_firewall.rb
fog-1.24.0 lib/fog/cloudstack/requests/compute/add_external_firewall.rb