diff options
Diffstat (limited to 'include/ibm')
-rw-r--r-- | include/ibm/management_console_rest.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp index 7cb744e4b7..db1e9f32b6 100644 --- a/include/ibm/management_console_rest.hpp +++ b/include/ibm/management_console_rest.hpp @@ -579,7 +579,7 @@ void requestRoutes(App& app) // allowed only for admin BMCWEB_ROUTE(app, "/ibm/v1/") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::get)( [](const crow::Request& req, crow::Response& res) { res.jsonValue["@odata.type"] = @@ -597,7 +597,7 @@ void requestRoutes(App& app) }); BMCWEB_ROUTE(app, "/ibm/v1/Host/ConfigFiles") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::get)( [](const crow::Request& req, crow::Response& res) { handleConfigFileList(res); @@ -605,28 +605,28 @@ void requestRoutes(App& app) BMCWEB_ROUTE(app, "/ibm/v1/Host/ConfigFiles/Actions/IBMConfigFiles.DeleteAll") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::post)( [](const crow::Request& req, crow::Response& res) { deleteConfigFiles(res); }); BMCWEB_ROUTE(app, "/ibm/v1/Host/ConfigFiles/<path>") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::put, boost::beast::http::verb::get, boost::beast::http::verb::delete_)( [](const crow::Request& req, crow::Response& res, const std::string& path) { handleFileUrl(req, res, path); }); BMCWEB_ROUTE(app, "/ibm/v1/HMC/LockService") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::get)( [](const crow::Request& req, crow::Response& res) { getLockServiceData(res); }); BMCWEB_ROUTE(app, "/ibm/v1/HMC/LockService/Actions/LockService.AcquireLock") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::post)( [](const crow::Request& req, crow::Response& res) { std::vector<nlohmann::json> body; @@ -640,7 +640,7 @@ void requestRoutes(App& app) handleAcquireLockAPI(req, res, body); }); BMCWEB_ROUTE(app, "/ibm/v1/HMC/LockService/Actions/LockService.ReleaseLock") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::post)([](const crow::Request& req, crow::Response& res) { std::string type; @@ -670,7 +670,7 @@ void requestRoutes(App& app) } }); BMCWEB_ROUTE(app, "/ibm/v1/HMC/LockService/Actions/LockService.GetLockList") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::post)( [](const crow::Request& req, crow::Response& res) { ListOfSessionIds listSessionIds; @@ -686,7 +686,7 @@ void requestRoutes(App& app) }); BMCWEB_ROUTE(app, "/ibm/v1/HMC/BroadcastService") - .requires({"ConfigureComponents", "ConfigureManager"}) + .privileges({"ConfigureComponents", "ConfigureManager"}) .methods(boost::beast::http::verb::post)( [](const crow::Request& req, crow::Response& res) { handleBroadcastService(req, res); |