Method: Fog::DNS::Rackspace::Real#list_subdomains

Defined in:
lib/fog/rackspace/requests/dns/list_subdomains.rb

#list_subdomains(domain_id, options = {}) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/rackspace/requests/dns/list_subdomains.rb', line 5

def list_subdomains(domain_id, options={})

  validate_path_fragment :domain_id, domain_id

  path = "domains/#{domain_id}/subdomains"
  if !options.empty?
    path = path + '?' + array_to_query_string(options)
  end

  request(
    :expects  => 200,
    :method   => 'GET',
    :path     => path
  )
end