code: def get_job_list(logger, match, library_mapping, token, host):
      
      res = requests.get(
          host + '/api/2.0/jobs/list',
          auth=('token', token),
      )
      if res.status_code == 200:
          job_list = []
          if len(res.json()['jobs']) == 0:
              return []
          for job in res.json()['jobs']:
              logger.debug('job: {}'.format(job['settings']['name']))
              if 'libraries' in job['settings'].keys():
                  for library in job['settings']['libraries']:
                      if match.suffix in library.keys():
                          try:  # if in prod_folder, mapping turns uri into name
                              job_library_uri = basename(library[match.suffix])
                              job_match = library_mapping[job_library_uri]
                          except KeyError:
                              logger.debug(
                                  'not in library map: {}'
                                  .format(job_library_uri)
                              )
                              pass
                          else:
                              if match.replace_version(job_match, logger):
                                  job_list.append({
                                      'job_id': job['job_id'],
                                      'job_name': job['settings']['name'],
                                      'library_path': library[match.suffix],
                                  })
                              else:
                                  logger.debug(
                                      'not replacable: {}'
                                      .format(job_match.filename)
                                  )
                      else:
                          logger.debug(
                              'no matching suffix: looking for {}, found {}'
                              .format(match.suffix, str(library.keys()))
                          )
          return job_list
      else:
          raise APIError(res)
docs: get a list of jobs using the major version of the given library
  
      Parameters
      ----------
      logger: logging object
          configured in cli_commands.py
      match: FilenameMatch object
          match object with suffix
      library_mapping: dict
          first element of get_library_mapping output
      token: string
          Databricks API key
      host: string
          Databricks host (e.g. https://my-organization.cloud.databricks.com)
  
      Returns
      -------
      list of dictionaries containing the job id, job name, and library path
       for each job