Home
last modified time | relevance | path

Searched refs:asyncResp (Results 1 – 25 of 107) sorted by relevance

12345

/openbmc/bmcweb/redfish-core/lib/
H A Dservice_root.hpp30 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in handleServiceRootHead() argument
32 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleServiceRootHead()
37 asyncResp->res.addHeader( in handleServiceRootHead()
43 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in handleServiceRootGetImpl() argument
45 asyncResp->res.addHeader( in handleServiceRootGetImpl()
50 asyncResp->res.jsonValue["@odata.type"] = in handleServiceRootGetImpl()
52 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1"; in handleServiceRootGetImpl()
53 asyncResp->res.jsonValue["Id"] = "RootService"; in handleServiceRootGetImpl()
54 asyncResp->res.jsonValue["Name"] = "Root Service"; in handleServiceRootGetImpl()
55 asyncResp->res.jsonValue["RedfishVersion"] = "1.17.0"; in handleServiceRootGetImpl()
[all …]
H A Dsystems.hpp74 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, bool isCpuPresent) in modifyCpuPresenceState() argument
81 asyncResp->res.jsonValue["ProcessorSummary"]["Count"]; in modifyCpuPresenceState()
93 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getProcessorProperties() argument
108 messages::internalError(asyncResp->res); in getProcessorProperties()
115 asyncResp->res.jsonValue["ProcessorSummary"]["CoreCount"]; in getProcessorProperties()
139 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getProcessorSummary() argument
142 auto getCpuPresenceState = [asyncResp](const boost::system::error_code& ec3, in getProcessorSummary()
149 modifyCpuPresenceState(asyncResp, cpuPresenceCheck); in getProcessorSummary()
159 [asyncResp, service, in getProcessorSummary()
165 messages::internalError(asyncResp->res); in getProcessorSummary()
[all …]
H A Dmanagers.hpp62 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleSetLocationIndicatorActive() argument
73 messages::resourceNotFound(asyncResp->res, "Manager", managerId); in handleSetLocationIndicatorActive()
77 messages::internalError(asyncResp->res); in handleSetLocationIndicatorActive()
83 messages::resourceNotFound(asyncResp->res, "Manager", managerId); in handleSetLocationIndicatorActive()
87 setLocationIndicatorActive(asyncResp, managerPath, locationIndicatorActive); in handleSetLocationIndicatorActive()
97 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in setLocationIndicatorActiveState() argument
101 asyncResp, managerId, in setLocationIndicatorActiveState()
102 std::bind_front(handleSetLocationIndicatorActive, asyncResp, in setLocationIndicatorActiveState()
130 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in doBMCGracefulRestart() argument
143 [asyncResp](const boost::system::error_code& ec) { in doBMCGracefulRestart()
[all …]
H A Dpower_supply.hpp46 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in updatePowerSupplyList()
50 nlohmann::json& powerSupplyList = asyncResp->res.jsonValue["Members"]; in updatePowerSupplyList()
67 asyncResp->res.jsonValue["Members@odata.count"] = powerSupplyList.size(); in updatePowerSupplyList()
71 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in doPowerSupplyCollection()
80 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doPowerSupplyCollection()
86 messages::internalError(asyncResp->res); in doPowerSupplyCollection()
90 asyncResp->res.addHeader( in doPowerSupplyCollection()
93 asyncResp->res.jsonValue["@odata.type"] = in doPowerSupplyCollection()
95 asyncResp->res.jsonValue["Name"] = "Power Supply Collection"; in doPowerSupplyCollection()
96 asyncResp in doPowerSupplyCollection()
45 updatePowerSupplyList(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const dbus::utility::MapperGetSubTreePathsResponse & powerSupplyPaths) updatePowerSupplyList() argument
70 doPowerSupplyCollection(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreePathsResponse & subtreePaths) doPowerSupplyCollection() argument
107 handlePowerSupplyCollectionHead(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handlePowerSupplyCollectionHead() argument
134 handlePowerSupplyCollectionGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handlePowerSupplyCollectionGet() argument
168 afterGetValidPowerSupplyPath(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & powerSupplyId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree,const std::function<void (const std::string & powerSupplyPath,const std::string & service)> & callback) afterGetValidPowerSupplyPath() argument
206 getValidPowerSupplyPath(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId,std::function<void (const std::string & powerSupplyPath,const std::string & service)> && callback) getValidPowerSupplyPath() argument
225 getPowerSupplyState(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & service,const std::string & path) getPowerSupplyState() argument
251 getPowerSupplyHealth(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & service,const std::string & path) getPowerSupplyHealth() argument
278 getPowerSupplyAsset(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & service,const std::string & path) getPowerSupplyAsset() argument
349 getPowerSupplyFirmwareVersion(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & service,const std::string & path) getPowerSupplyFirmwareVersion() argument
372 getPowerSupplyLocation(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & service,const std::string & path) getPowerSupplyLocation() argument
396 handleGetEfficiencyResponse(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const boost::system::error_code & ec,uint32_t value) handleGetEfficiencyResponse() argument
424 handlePowerSupplyAttributesSubTreeResponse(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) handlePowerSupplyAttributesSubTreeResponse() argument
465 getEfficiencyPercent(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp) getEfficiencyPercent() argument
479 doPowerSupplyGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId,const std::string & powerSupplyPath,const std::string & service) doPowerSupplyGet() argument
515 handlePowerSupplyHead(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyHead() argument
543 handlePowerSupplyGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyGet() argument
556 doPatchPowerSupply(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const bool locationIndicatorActive,const std::string & powerSupplyPath,const std::string &) doPatchPowerSupply() argument
566 handlePowerSupplyPatch(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyPatch() argument
[all...]
H A Dfabric_adapters.hpp42 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getFabricAdapterLocation()
48 [asyncResp](const boost::system::error_code& ec, in getFabricAdapterLocation()
55 messages::internalError(asyncResp->res); in getFabricAdapterLocation()
60 asyncResp->res in getFabricAdapterLocation()
67 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getFabricAdapterAsset()
73 [asyncResp](const boost::system::error_code& ec, const bool present) { in getFabricAdapterAsset()
79 messages::internalError(asyncResp->res); in getFabricAdapterAsset()
86 asyncResp->res.jsonValue["Status"]["State"] = in getFabricAdapterAsset()
93 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getFabricAdapterAsset()
99 [asyncResp](cons in getFabricAdapterAsset()
41 getFabricAdapterLocation(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & serviceName,const std::string & fabricAdapterPath) getFabricAdapterLocation() argument
66 getFabricAdapterAsset(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & serviceName,const std::string & fabricAdapterPath) getFabricAdapterAsset() argument
124 getFabricAdapterState(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & serviceName,const std::string & fabricAdapterPath) getFabricAdapterState() argument
150 getFabricAdapterHealth(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & serviceName,const std::string & fabricAdapterPath) getFabricAdapterHealth() argument
177 doAdapterGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName,const std::string & adapterId,const std::string & fabricAdapterPath,const std::string & serviceName) doAdapterGet() argument
249 afterHandleFabricAdapterGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName,const std::string & adapterId,const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName) afterHandleFabricAdapterGet() argument
279 handleFabricAdapterGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName,const std::string & adapterId) handleFabricAdapterGet() argument
305 afterHandleFabricAdapterPatch(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & adapterId,std::optional<bool> locationIndicatorActive,const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName) afterHandleFabricAdapterPatch() argument
339 handleFabricAdapterPatch(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName,const std::string & adapterId) handleFabricAdapterPatch() argument
376 handleFabricAdapterCollectionGet(crow::App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName) handleFabricAdapterCollectionGet() argument
417 handleFabricAdapterCollectionHead(crow::App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName) handleFabricAdapterCollectionHead() argument
443 afterHandleFabricAdapterHead(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & adapterId,const boost::system::error_code & ec,const std::string & fabricAdapterPath,const std::string & serviceName) afterHandleFabricAdapterHead() argument
473 handleFabricAdapterHead(crow::App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & systemName,const std::string & adapterId) handleFabricAdapterHead() argument
[all...]
H A Dprocessor.hpp64 inline void getProcessorUUID(std::shared_ptr<bmcweb::AsyncResp> asyncResp, in getProcessorUUID() argument
71 [objPath, asyncResp{std::move(asyncResp)}]( in getProcessorUUID()
76 messages::internalError(asyncResp->res); in getProcessorUUID()
79 asyncResp->res.jsonValue["UUID"] = property; in getProcessorUUID()
84 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCpuDataByInterface() argument
90 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in getCpuDataByInterface()
91 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK; in getCpuDataByInterface()
103 messages::internalError(asyncResp->res); in getCpuDataByInterface()
109 asyncResp->res.jsonValue["Status"]["State"] = in getCpuDataByInterface()
118 messages::internalError(asyncResp->res); in getCpuDataByInterface()
[all …]
H A Dmemory.hpp160 inline void dimmPropToHex(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in dimmPropToHex() argument
168 asyncResp->res.jsonValue[jsonPtr][key] = std::format("{:#04X}", *value); in dimmPropToHex()
172 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getPersistentMemoryProperties() argument
229 messages::internalError(asyncResp->res); in getPersistentMemoryProperties()
233 dimmPropToHex(asyncResp, "ModuleManufacturerID", moduleManufacturerID, in getPersistentMemoryProperties()
235 dimmPropToHex(asyncResp, "ModuleProductID", moduleProductID, jsonPtr); in getPersistentMemoryProperties()
236 dimmPropToHex(asyncResp, "MemorySubsystemControllerManufacturerID", in getPersistentMemoryProperties()
238 dimmPropToHex(asyncResp, "MemorySubsystemControllerProductID", in getPersistentMemoryProperties()
243 asyncResp->res.jsonValue[jsonPtr]["VolatileRegionSizeLimitMiB"] = in getPersistentMemoryProperties()
249 asyncResp->res.jsonValue[jsonPtr]["PersistentRegionSizeLimitMiB"] = in getPersistentMemoryProperties()
[all …]
H A Dchassis.hpp112 inline void getStorageLink(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getStorageLink() argument
118 [asyncResp](const boost::system::error_code& ec, in getStorageLink()
142 asyncResp->res.jsonValue["Links"]["Storage@odata.count"] = in getStorageLink()
144 asyncResp->res.jsonValue["Links"]["Storage"] = std::move(storages); in getStorageLink()
155 inline void getChassisState(std::shared_ptr<bmcweb::AsyncResp> asyncResp) in getChassisState() argument
161 [asyncResp{std::move(asyncResp)}](const boost::system::error_code& ec, in getChassisState()
173 messages::internalError(asyncResp->res); in getChassisState()
182 asyncResp->res.jsonValue["PowerState"] = in getChassisState()
184 asyncResp->res.jsonValue["Status"]["State"] = in getChassisState()
190 asyncResp->res.jsonValue["PowerState"] = in getChassisState()
[all …]
H A Dassembly.hpp52 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getAssemblyLocationCode() argument
59 [asyncResp, assembly, assemblyJsonPtr]( in getAssemblyLocationCode()
67 messages::internalError(asyncResp->res); in getAssemblyLocationCode()
72 asyncResp->res.jsonValue[assemblyJsonPtr]["Location"] in getAssemblyLocationCode()
78 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getAssemblyState() argument
82 asyncResp->res.jsonValue[assemblyJsonPtr]["Status"]["State"] = in getAssemblyState()
87 [asyncResp, assemblyJsonPtr, in getAssemblyState()
94 messages::internalError(asyncResp->res); in getAssemblyState()
101 asyncResp->res.jsonValue[assemblyJsonPtr]["Status"]["State"] = in getAssemblyState()
107 void getAssemblyHealth(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getAssemblyHealth() argument
[all …]
H A Dfabric_ports.hpp48 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in afterGetFabricPortLocation() argument
56 messages::internalError(asyncResp->res); in afterGetFabricPortLocation()
60 asyncResp->res.jsonValue["Location"]["PartLocation"]["ServiceLabel"] = in afterGetFabricPortLocation()
65 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getFabricPortLocation() argument
71 std::bind_front(afterGetFabricPortLocation, asyncResp)); in getFabricPortLocation()
75 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in afterGetFabricPortState() argument
84 messages::internalError(asyncResp->res); in afterGetFabricPortState()
90 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Absent; in afterGetFabricPortState()
95 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getFabricPortState() argument
98 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in getFabricPortState()
[all …]
H A Dfan.hpp38 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in updateFanList() argument
42 nlohmann::json& fanList = asyncResp->res.jsonValue["Members"]; in updateFanList()
59 asyncResp->res.jsonValue["Members@odata.count"] = fanList.size(); in updateFanList()
62 inline void doFanCollection(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in doFanCollection() argument
68 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doFanCollection()
72 asyncResp->res.addHeader( in doFanCollection()
75 asyncResp->res.jsonValue["@odata.type"] = "#FanCollection.FanCollection"; in doFanCollection()
76 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in doFanCollection()
78 asyncResp->res.jsonValue["Name"] = "Fan Collection"; in doFanCollection()
79 asyncResp->res.jsonValue["Description"] = in doFanCollection()
[all …]
H A Dstorage.hpp40 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleSystemsStorageCollectionGet() argument
43 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsStorageCollectionGet()
49 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsStorageCollectionGet()
54 asyncResp->res.jsonValue["@odata.type"] = in handleSystemsStorageCollectionGet()
56 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in handleSystemsStorageCollectionGet()
58 asyncResp->res.jsonValue["Name"] = "Storage Collection"; in handleSystemsStorageCollectionGet()
63 asyncResp, in handleSystemsStorageCollectionGet()
71 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in handleStorageCollectionGet() argument
73 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleStorageCollectionGet()
77 asyncResp->res.jsonValue["@odata.type"] = in handleStorageCollectionGet()
[all …]
H A Dhypervisor_system.hpp54 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in getHypervisorState() argument
61 [asyncResp](const boost::system::error_code& ec, in getHypervisorState()
75 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
77 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
83 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
85 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
91 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
93 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
99 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
101 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
[all …]
H A Dmanager_logservices_journal.hpp40 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleManagersLogServiceJournalGet() argument
43 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersLogServiceJournalGet()
50 messages::resourceNotFound(asyncResp->res, "Manager", managerId); in handleManagersLogServiceJournalGet()
54 asyncResp->res.jsonValue["@odata.type"] = "#LogService.v1_2_0.LogService"; in handleManagersLogServiceJournalGet()
55 asyncResp->res.jsonValue["@odata.id"] = in handleManagersLogServiceJournalGet()
58 asyncResp->res.jsonValue["Name"] = "Open BMC Journal Log Service"; in handleManagersLogServiceJournalGet()
59 asyncResp->res.jsonValue["Description"] = "BMC Journal Log Service"; in handleManagersLogServiceJournalGet()
60 asyncResp->res.jsonValue["Id"] = "Journal"; in handleManagersLogServiceJournalGet()
61 asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull"; in handleManagersLogServiceJournalGet()
65 asyncResp->res.jsonValue["DateTime"] = redfishDateTimeOffset.first; in handleManagersLogServiceJournalGet()
[all …]
H A Dlog_services.hpp119 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in parseDumpEntryFromDbusObject() argument
133 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject()
150 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject()
168 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject()
187 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject()
199 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject()
206 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject()
248 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getDumpEntryCollection() argument
254 messages::internalError(asyncResp->res); in getDumpEntryCollection()
261 [asyncResp, entriesPath, in getDumpEntryCollection()
[all …]
H A Dcertificate_service.hpp89 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCertificateFromReqBody() argument
104 req, asyncResp->res, // in getCertificateFromReqBody()
110 messages::internalError(asyncResp->res); in getCertificateFromReqBody()
116 messages::propertyValueNotInList(asyncResp->res, *certificateType, in getCertificateFromReqBody()
254 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCertificateList() argument
262 [asyncResp, listPtr, countPtr]( in getCertificateList()
268 messages::internalError(asyncResp->res); in getCertificateList()
272 nlohmann::json& links = asyncResp->res.jsonValue[listPtr]; in getCertificateList()
314 asyncResp->res.jsonValue[countPtr] = links.size(); in getCertificateList()
330 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCertificateProperties() argument
[all …]
H A Dcable.hpp48 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in fillCableProperties() argument
55 messages::internalError(asyncResp->res); in fillCableProperties()
68 messages::internalError(asyncResp->res); in fillCableProperties()
74 asyncResp->res.jsonValue["CableType"] = *cableTypeDescription; in fillCableProperties()
85 messages::internalError(asyncResp->res); in fillCableProperties()
91 asyncResp->res.jsonValue["LengthMeters"] = *length; in fillCableProperties()
97 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in fillCableHealthState() argument
103 [asyncResp, in fillCableHealthState()
112 messages::internalError(asyncResp->res); in fillCableHealthState()
119 asyncResp->res.jsonValue["Status"]["State"] = in fillCableHealthState()
[all …]
H A Dpcie.hpp52 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handlePCIeDevicePath() argument
70 [pcieDevicePath, asyncResp, in handlePCIeDevicePath()
76 messages::internalError(asyncResp->res); in handlePCIeDevicePath()
85 messages::resourceNotFound(asyncResp->res, "PCIeDevice", pcieDeviceId); in handlePCIeDevicePath()
90 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getValidPCIeDevicePath() argument
99 [pcieDeviceId, asyncResp, in getValidPCIeDevicePath()
106 messages::internalError(asyncResp->res); in getValidPCIeDevicePath()
109 handlePCIeDevicePath(pcieDeviceId, asyncResp, pcieDevicePaths, in getValidPCIeDevicePath()
117 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handlePCIeDeviceCollectionGet() argument
120 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handlePCIeDeviceCollectionGet()
[all …]
H A Dled.hpp40 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in getIndicatorLedState() argument
47 [asyncResp](const boost::system::error_code& ec, const bool blinking) { in getIndicatorLedState()
54 messages::internalError(asyncResp->res); in getIndicatorLedState()
61 asyncResp->res.jsonValue["IndicatorLED"] = in getIndicatorLedState()
70 [asyncResp](const boost::system::error_code& ec2, in getIndicatorLedState()
76 messages::internalError(asyncResp->res); in getIndicatorLedState()
87 asyncResp->res.jsonValue["IndicatorLED"] = in getIndicatorLedState()
92 asyncResp->res.jsonValue["IndicatorLED"] = in getIndicatorLedState()
109 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in setIndicatorLedState() argument
126 messages::propertyValueNotInList(asyncResp->res, ledState, in setIndicatorLedState()
[all …]
H A Dsystems_logservices_postcodes.hpp56 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleSystemsLogServicesPostCodesGet() argument
59 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsLogServicesPostCodesGet()
66 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsLogServicesPostCodesGet()
72 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsLogServicesPostCodesGet()
76 asyncResp->res.jsonValue["@odata.id"] = in handleSystemsLogServicesPostCodesGet()
79 asyncResp->res.jsonValue["@odata.type"] = "#LogService.v1_2_0.LogService"; in handleSystemsLogServicesPostCodesGet()
80 asyncResp->res.jsonValue["Name"] = "POST Code Log Service"; in handleSystemsLogServicesPostCodesGet()
81 asyncResp->res.jsonValue["Description"] = "POST Code Log Service"; in handleSystemsLogServicesPostCodesGet()
82 asyncResp->res.jsonValue["Id"] = "PostCodes"; in handleSystemsLogServicesPostCodesGet()
83 asyncResp->res.jsonValue["OverWritePolicy"] = in handleSystemsLogServicesPostCodesGet()
[all …]
H A Dnetwork_protocol.hpp46 void getNTPProtocolEnabled(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp);
142 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in afterNetworkPortRequest() argument
148 messages::internalError(asyncResp->res); in afterNetworkPortRequest()
157 asyncResp->res.jsonValue[protocolName]["ProtocolEnabled"] = in afterNetworkPortRequest()
159 asyncResp->res.jsonValue[protocolName]["Port"] = nullptr; in afterNetworkPortRequest()
160 getPortNumber(socketPath, [asyncResp, protocolName]( in afterNetworkPortRequest()
165 messages::internalError(asyncResp->res); in afterNetworkPortRequest()
168 asyncResp->res.jsonValue[protocolName]["Port"] = portNumber; in afterNetworkPortRequest()
173 inline void getNetworkData(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getNetworkData() argument
178 messages::internalError(asyncResp->res); in getNetworkData()
[all …]
H A Dredfish_sessions.hpp62 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleSessionHead() argument
65 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionHead()
69 asyncResp->res.addHeader( in handleSessionHead()
76 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleSessionGet() argument
79 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionGet()
83 asyncResp->res.addHeader( in handleSessionGet()
93 messages::resourceNotFound(asyncResp->res, "Session", sessionId); in handleSessionGet()
97 fillSessionObject(asyncResp->res, *session); in handleSessionGet()
102 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleSessionDelete() argument
105 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionDelete()
[all …]
/openbmc/bmcweb/redfish-core/include/
H A Dsnmp_trap_event_clients.hpp34 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in afterGetSnmpTrapClientdata() argument
41 messages::internalError(asyncResp->res); in afterGetSnmpTrapClientdata()
54 messages::internalError(asyncResp->res); in afterGetSnmpTrapClientdata()
58 asyncResp->res.jsonValue["Destination"] = in afterGetSnmpTrapClientdata()
63 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, const std::string& id, in getSnmpTrapClientdata() argument
66 asyncResp->res.jsonValue["@odata.type"] = in getSnmpTrapClientdata()
68 asyncResp->res.jsonValue["Protocol"] = in getSnmpTrapClientdata()
70 asyncResp->res.jsonValue["@odata.id"] = in getSnmpTrapClientdata()
73 asyncResp->res.jsonValue["Id"] = id; in getSnmpTrapClientdata()
74 asyncResp->res.jsonValue["Name"] = "Event Destination"; in getSnmpTrapClientdata()
[all …]
/openbmc/bmcweb/features/ibm/
H A Dibm_management_console_rest.hpp49 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleFilePut() argument
57 asyncResp->res.result(boost::beast::http::status::not_acceptable); in handleFilePut()
58 asyncResp->res.jsonValue["Description"] = contentNotAcceptableMsg; in handleFilePut()
70 asyncResp->res.result(boost::beast::http::status::not_found); in handleFilePut()
71 asyncResp->res.jsonValue["Description"] = resourceNotFoundMsg; in handleFilePut()
83 asyncResp->res.result( in handleFilePut()
85 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
98 asyncResp->res.result( in handleFilePut()
100 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
109 asyncResp->res.result( in handleFilePut()
[all …]
/openbmc/bmcweb/features/google/
H A Dgoogle_service_root.hpp37 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in handleGoogleV1Get() argument
39 asyncResp->res.jsonValue["@odata.type"] = in handleGoogleV1Get()
41 asyncResp->res.jsonValue["@odata.id"] = "/google/v1"; in handleGoogleV1Get()
42 asyncResp->res.jsonValue["Id"] = "Google Rest RootService"; in handleGoogleV1Get()
43 asyncResp->res.jsonValue["Name"] = "Google Service Root"; in handleGoogleV1Get()
44 asyncResp->res.jsonValue["Version"] = "1.0.0"; in handleGoogleV1Get()
45 asyncResp->res.jsonValue["RootOfTrustCollection"]["@odata.id"] = in handleGoogleV1Get()
51 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) in handleRootOfTrustCollectionGet() argument
53 asyncResp->res.jsonValue["@odata.id"] = "/google/v1/RootOfTrustCollection"; in handleRootOfTrustCollectionGet()
54 asyncResp->res.jsonValue["@odata.type"] = in handleRootOfTrustCollectionGet()
[all …]

12345