Sha256: b5cbc09172322281b3b838876f9f1a302911c59d7e9eca34aea85b8e753707bc

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

module Fog
  module Compute
    module Terremark
      module Real
        # Get a list of all internet services for a vdc
        #
        # ==== Parameters
        # * vdc_id<~Integer> - Id of vDc to get list of internet services for
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'InternetServices'<~Array>
        #       * 'id'<~String> => id of the internet service
        #       * 'name'<~String> => name of service
        #       * 'PublicIPAddress'<~Hash>
        #       *   'Id'<~String> => id of the public IP
        #       *   'name'<~String> => actual ip address
        #
        def get_internet_services(vdc_id)
          request(
              :expects  => 200,
              :method   => 'GET',
              :parser   => Fog::Parsers::Terremark::GetInternetServices.new,
              :path     => "api/extensions/v1.6/vdc/#{vdc_id}/internetServices",
              :override_path => true
          )
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-terremark-0.0.2 lib/fog/compute/terremark/requests/get_internet_services.rb
fog-terremark-0.0.1 lib/fog/compute/terremark/requests/get_internet_services.rb