code: def cli(env, zone, data, record, ttl, type):
      
  
      manager = SoftLayer.DNSManager(env.client)
      table = formatting.Table(['id', 'record', 'type', 'ttl', 'data'])
  
      table.align['ttl'] = 'l'
      table.align['record'] = 'r'
      table.align['data'] = 'l'
  
      zone_id = helpers.resolve_id(manager.resolve_ids, zone, name='zone')
  
      records = manager.get_records(zone_id,
                                    record_type=type,
                                    host=record,
                                    ttl=ttl,
                                    data=data)
  
      for the_record in records:
          table.add_row([
              the_record['id'],
              the_record['host'],
              the_record['type'].upper(),
              the_record['ttl'],
              the_record['data']
          ])
  
      env.fout(table)
docs: List all records in a zone.