mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
36 lines
1.1 KiB
Ruby
36 lines
1.1 KiB
Ruby
module Fog
|
|
module Terremark
|
|
module Shared
|
|
module Real
|
|
|
|
require 'fog/terremark/parsers/shared/get_internet_services'
|
|
|
|
# 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::Shared::GetInternetServices.new,
|
|
:path => "api/extensions/v1.6/vdc/#{vdc_id}/internetServices",
|
|
:override_path => true
|
|
)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|