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/slicehost/get_zones.rb

31 lines
896 B
Ruby
Raw Normal View History

module Fog
module Slicehost
class DNS
class Real
2011-01-07 19:12:04 -05:00
require 'fog/dns/parsers/slicehost/get_zones'
# Get list of all DNS zones hosted on Slicehost (for this account)
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'zones'<~Array>
# * 'origin'<~String> - domain name to host (ie example.com)
# * 'id'<~Integer> - Id of the zone
# * 'ttl'<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
# * 'active'<~String> - whether zone is active in Slicehost DNS server - 'Y' or 'N'
def get_zones
request(
:expects => 200,
:method => 'GET',
:parser => Fog::Parsers::Slicehost::DNS::GetZones.new,
:path => 'zones.xml'
)
end
end
end
end
end