code: def get():
      
      _url = get_root_url()
      LOG.debug('GET Sub array list')
  
      sub_array_ids = sorted(DB.get_sub_array_ids())
  
      response = dict(sub_arrays=[])
      for array_id in sub_array_ids:
          array_summary = dict(sub_arrary_id=array_id)
          block_ids = DB.get_sub_array_sbi_ids(array_id)
          LOG.debug('Subarray IDs: %s', array_id)
          LOG.debug('SBI IDs: %s', block_ids)
          array_summary['num_scheduling_blocks'] = len(block_ids)
          array_summary['links'] = {
              'detail': '{}/sub-array/{}'.format(_url, array_id)
          }
          response['sub_arrays'].append(array_summary)
      response['links'] = dict(self=request.url, home=_url)
      return response, status.HTTP_200_OK
docs: Subarray list.
  
      This method will list all sub-arrays known to SDP.