def METHOD_NAME(request, category):
    """获取插件列表"""
    client = BKNodeManClient(username=request.user.username)
    plugin_list = client.plugin_process(category)
    if not plugin_list["result"]:
        message = handle_api_error(_("节点管理(NODEMAN)"), "nodeman.plugin_process", {}, plugin_list)
        logger.error(message)
        check_and_raise_raw_auth_fail_exception(plugin_list, message)
        return JsonResponse(
            {"result": plugin_list["result"], "code": plugin_list.get("code", "-1"), "message": message}
        )
    data = plugin_list["data"]
    result = [{"text": ap["name"], "value": ap["name"]} for ap in data]
    plugin_list["data"] = result
    return JsonResponse(plugin_list)