def paused_scans(site_id = nil, limit = nil)
      if site_id
        uri    = "/data/scan/site/#{site_id}?status=active"
        rows   = AJAX.row_pref_of(limit)
        params = { 'sort' => 'endTime', 'dir' => 'DESC', 'startIndex' => 0 }
        AJAX.preserving_preference(self, 'site-active-scans') do
          data = DataTable._get_json_table(self, uri, params, rows, limit).select { |scan| scan['paused'] }
          data.map(&ActiveScan.method(:parse_json))
        end
      else
        uri  = '/data/site/scans/dyntable.xml?printDocType=0&tableID=siteScansTable&activeOnly=true'
        data = DataTable._get_dyn_table(self, uri).select { |scan| (scan['Status'].include? 'Paused') }
        data.map(&ActiveScan.method(:parse_dyntable))
      end
    end
def paused_scans(site_id = nil, limit = nil)
      if site_id
        uri    = "/data/scan/site/#{site_id}?status=active"
        rows   = AJAX.row_pref_of(limit)
        params = { 'sort' => 'endTime', 'dir' => 'DESC', 'startIndex' => 0 }
        AJAX.preserving_preference(self, 'site-active-scans') do
          data = DataTable._get_json_table(self, uri, params, rows, limit).select { |scan| scan['paused'] }
          data.map(&ActiveScan.method(:parse_json))
        end
      else
        uri  = '/data/site/scans/dyntable.xml?printDocType=0&tableID=siteScansTable&activeOnly=true'
        data = DataTable._get_dyn_table(self, uri).select { |scan| (scan['Status'].include? 'Paused') }
        data.map(&ActiveScan.method(:parse_dyntable))
      end
    end
Get paused scans. Provide a site ID to get paused scans for a site.
 With no site ID, all paused scans are returned.

 @param [Fixnum] site_id Site ID to retrieve paused scans for.
 @param [Fixnum] limit The maximum number of records to return from this call.
 @return [Array[ActiveScan]] List of paused scans.