def files_types(mongodb): try: auth.require(role='access_normalized') except AAAException as e: return HTTPError(401, e.message) result = simple_group('file', 'content_guess', mongodb) return jsonify(result, response)
def files_types(mongodb): try: auth.require(role="access_normalized") except AAAException as e: return HTTPError(401, e.message) return HTTPError(410, "This part of the API has been temporarily disabled to due to performance issues.") result = simple_group("file", "content_guess", mongodb) return jsonify(result, response)
def session_protocols(mongodb): """ Returns a grouped list of all protocols intercepted. Example: {"protocols": [{"count": 680, "protocol": "http"}, {"count": 125, "protocol": "ssh}, {"count": 74, "protocol": "imap}]} """ auth.require(role='access_normalized') result = simple_group('session', 'protocol', mongodb) return jsonify(result, response)
def files_types(mongodb): try: auth.require(role='access_normalized') except AAAException as e: return HTTPError(401, e.message) return HTTPError( 410, 'This part of the API has been temporarily disabled to due to performance issues.' ) result = simple_group('file', 'content_guess', mongodb) return jsonify(result, response)
def session_protocols(mongodb): """ Returns a grouped list of all protocols intercepted. Example: {"protocols": [{"count": 680, "protocol": "http"}, {"count": 125, "protocol": "ssh}, {"count": 74, "protocol": "imap}]} """ return HTTPError(410, 'This part of the API has been temporarily disabled to due to performance issues.') auth.require(role='access_normalized') result = simple_group('session', 'protocol', mongodb) return jsonify(result, response)