Sha256: de38fa0d0304f8ccd83d50177f066cf4c64c54ae009905bd2f94294f0158520b

Contents?: true

Size: 790 Bytes

Versions: 14

Compression:

Stored size: 790 Bytes

Contents

module Fog
  module Terremark
    module Shared
      module Real
        # Get details for a Network
        #
        # ==== Parameters
        # * network_id<~Integer> - Id of the network to look up
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #   FIXME
        def get_network_ips(network_id)
          opts =  {
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Terremark::Shared::GetNetworkIps.new,
            :path     => "network/#{network_id}/ipAddresses"
          }
          if self.is_a?(Fog::Terremark::Ecloud::Real)
            opts[:path] = "/extensions/network/#{network_id}/ips"
          end
          request(opts)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/terremark/requests/shared/get_network_ips.rb
nsidc-fog-1.24.1 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-1.24.0 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.11 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.10 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.9 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.8 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.7 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.6 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-1.23.0 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.4 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.3 lib/fog/terremark/requests/shared/get_network_ips.rb
ns-fog-1.22.2 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-1.22.1 lib/fog/terremark/requests/shared/get_network_ips.rb