code: def _list_records(self, rtype=None, name=None, content=None):
          
          if self.protocol == 'rpc':
              return self.rpc_helper.list_records(rtype, name, content)
  
          try:
              if name is not None:
                  if rtype is not None:
                      query_results = [self._get(
                          '/domains/{0}/records/{1}/{2}'
                          .format(self.domain_id, self._relative_name(name), rtype))]
                  else:
                      query_results = self._get('/domains/{0}/records/{1}'
                                                .format(self.domain_id, self._relative_name(name)))
              else:
                  query_results = self._get(
                      '/domains/{0}/records'.format(self.domain_id))
                  if rtype is not None:
                      query_results = [
                          item for item in query_results if item['rrset_type'] == rtype]
          except requests.exceptions.HTTPError as error:
              if error.response.status_code == 404:
                  query_results = []
              else:
                  raise
  
          # convert records with multiple values into single-value records
          records = []
          for query_result in query_results:
              for value in query_result['rrset_values']:
                  record = {
                      'type': query_result['rrset_type'],
                      'name': self._full_name(query_result['rrset_name']),
                      'ttl': query_result['rrset_ttl'],
                      'content': value,
                      'id': query_result['rrset_name'],
                  }
                  # cleanup potential quoting if suitable
                  self._clean_TXT_record(record)
                  records.append(record)
          # filter for content, if requested
          if content is not None:
              records = [
                  record for record in records if record['content'] == content]
          LOGGER.debug('list_records: %s', records)
          return records
docs: List all record for the domain in the active Gandi zone.