Method: Fog::DNS::Linode::Real#domain_list
- Defined in:
- lib/fog/linode/requests/dns/domain_list.rb
#domain_list(domain_id = nil) ⇒ Object
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>
-
-
-
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/fog/linode/requests/dns/domain_list.rb', line 26 def domain_list(domain_id = nil) = {} if domain_id .merge!(:domainId => domain_id) end request( :expects => 200, :method => 'GET', :query => { :api_action => 'domain.list' }.merge!() ) end |