Sha256: 304318e8b50d53f1665f3c9386e3d7cb7c702160d06dee88582b8b2ed4e5959d

Contents?: true

Size: 905 Bytes

Versions: 120

Compression:

Stored size: 905 Bytes

Contents

module Fog
  module Terremark
    module Shared
      module Real

        # Get details for a public ip
        #
        # ==== Parameters
        # * public_ip_id<~Integer> - Id of public ip to look up
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'PublicIpAddresses'<~Array>
        #       * 'href'<~String> - linke to item
        #       * 'name'<~String> - name of item
        def get_public_ip(public_ip_id)
          opts = {
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Terremark::Shared::PublicIp.new,
            :path     => "publicIps/#{public_ip_id}"
          }
          if self.class == Fog::Terremark::Ecloud::Real
            opts[:path] = "extensions/publicIp/#{public_ip_id}"
          end
          request(opts)
        end

      end
    end
  end
end

Version data entries

120 entries across 120 versions & 19 rubygems

Version Path
fog-1.22.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-1.21.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-1.20.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-1.19.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/terremark/requests/shared/get_public_ip.rb