1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/dns/requests/dnsmadeeasy/get_secondary.rb

30 lines
994 B
Ruby
Raw Normal View History

module Fog
module DNSMadeEasy
class DNS
class Real
# Returns the secondary entry object representation of the specified secondary entry.
#
# ==== Parameters
# * secondary_name<~String> - secondary name
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * name<~String> Secondary name.
# * ip<~Array> List of strings, IP addresses for your master nameserver associated with this secondary entry. e.g. ["10.10.10.10", "10.10.10.11"]
# * gtdLocation<~String> Global Traffic Director location. Values: DEFAULT, US_EAST, US_WEST, EUROPE
# * status<~Integer> - 200 - OK, 404 - specified secondary entry name is not found
def get_secondary(secondary_name)
request(
:expects => 200,
:method => "GET",
:path => "/V1.2/secondary/#{secondary_name}"
)
end
end
end
end
end