lib/cloudflare_client/zone/dns.rb
##
# list/search for dns records in a given zone
list/search for dns records in a given zone
list / search for dns records in a given zone
def list(name: nil, content: nil, per_page: 50, page_no: 1, order: 'type', match: 'all', type: nil)
    raise('match must be either all | any') unless %w[all any].include?(match)
    params           = {per_page: per_page, page: page_no, order: order}
    params[:name]    = name unless name.nil?
    params[:content] = content unless content.nil?
    params[:type]    = type unless type.nil?
    cf_get(path: "/zones/#{zone_id}/dns_records", params: params)
  end
def list ( name : nil , content : nil , per_page : 50 , page_no : 1 , order : 'type' , match : 'all' , type : nil ) raise ( 'match must be either all | any' ) unless %w[ all any ] . include? ( match ) params = { per_page : per_page , page : page_no , order : order } params [ :name ] = name unless name . nil? params [ :content ] = content unless content . nil? params [ :type ] = type unless type . nil? cf_get ( path : "/zones/#{zone_id}/dns_records" , params : params ) end
list/search for dns records in a given zone
list / search for dns records in a given zone
name
<not_specific>
content
<not_specific>
per_page
<not_specific>
page_no
<not_specific>
order
<not_specific>
match
<not_specific>
type
<not_specific>