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
tag-fog-1.0.1 lib/fog/terremark/requests/shared/get_public_ip.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_public_ip.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_public_ip.rb
fog-1.0.0 lib/fog/terremark/requests/shared/get_public_ip.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_public_ip.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.11.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.10.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog4encbs-0.9.0.1 lib/fog/terremark/requests/shared/get_public_ip.rb
fog4encbs-0.9.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.9.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.8.2 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.8.1 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.8.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.7.2 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.7.1 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.7.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.6.0 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.5.3 lib/fog/terremark/requests/shared/get_public_ip.rb
fog-0.5.2 lib/fog/terremark/requests/shared/get_public_ip.rb