2010-12-10 14:07:00 -05:00
|
|
|
module Fog
|
2011-06-15 20:25:01 -04:00
|
|
|
module DNS
|
|
|
|
class Linode
|
2010-12-10 14:07:00 -05:00
|
|
|
class Real
|
|
|
|
|
|
|
|
# List of domains (you have access to)
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * domain_id<~Integer>: limit the list to the domain ID specified
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Array>:
|
|
|
|
# * DATA<~Array>
|
|
|
|
# * 'DOMAINID'<~Interger>
|
|
|
|
# * 'SOA_EMAIL'<~String>
|
|
|
|
# * 'DESCRIPTION'<~String>
|
|
|
|
# * 'TTL_SEC'<~String>
|
|
|
|
# * 'EXPIRE_SEC'<~Integer>
|
|
|
|
# * 'RETRY_SEC'<~Integer>
|
|
|
|
# * 'DOMAIN'<~String>
|
|
|
|
# * 'STATUS'<~Integer>
|
|
|
|
# * 'MASTER_IPS'<~String>
|
|
|
|
# * 'REFRESH_SEC'<~Integer>
|
|
|
|
# * 'TYPE'<~String>
|
|
|
|
def domain_list(domain_id = nil)
|
|
|
|
options = {}
|
|
|
|
if domain_id
|
|
|
|
options.merge!(:domainId => domain_id)
|
|
|
|
end
|
2011-09-22 20:33:45 -04:00
|
|
|
|
2010-12-10 14:07:00 -05:00
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:query => { :api_action => 'domain.list' }.merge!(options)
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|