code: def get(method, hmc, uri, uri_parms, logon_required):
          
          query_str = uri_parms[0]
          try:
              console = hmc.consoles.lookup_by_oid(None)
          except KeyError:
              raise InvalidResourceError(method, uri)
          result_tasks = []
          filter_args = parse_query_parms(method, uri, query_str)
          for task in console.tasks.list(filter_args):
              result_task = {}
              for prop in task.properties:
                  if prop in ('element-uri', 'name'):
                      result_task[prop] = task.properties[prop]
              result_tasks.append(result_task)
          return {'tasks': result_tasks}
docs: Operation: List Tasks.