code: def db_list(user=None, password=None, host=None, port=None, authdb=None):
      '''
      List all MongoDB databases
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mongodb.db_list <user> <password> <host> <port>
      '''
      conn = _connect(user, password, host, port, authdb=authdb)
      if not conn:
          return 'Failed to connect to mongo database'
  
      try:
          log.info('Listing databases')
          return conn.database_names()
      except pymongo.errors.PyMongoError as err:
          log.error(err)
          return six.text_type(errf db_list(user=None, password=None, host=None, port=None, authdb=None):
      '''
      List all MongoDB databases
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mongodb.db_list <user> <password> <host> <port>
      '''
      conn = _connect(user, password, host, port, authdb=authdb)
      if not conn:
          return 'Failed to connect to mongo database'
  
      try:
          log.info('Listing databases')
          return conn.database_names()
      except pymongo.errors.PyMongoError as err:
          log.error(err)
          return six.text_type(err)
docs: List all MongoDB databases
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mongodb.db_list <user> <password> <host> <port>