Lines Matching defs:asyncResp

68  * @param[in] asyncResp Shared pointer for completing asynchronous calls
74 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, bool isDimmFunctional)
82 asyncResp->res.jsonValue["MemorySummary"]["Status"]["State"];
87 asyncResp->res.jsonValue["MemorySummary"]["Status"]["State"] =
97 * @param[in] asyncResp Shared pointer for completing asynchronous calls
103 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, bool isCpuFunctional)
108 asyncResp->res.jsonValue["ProcessorSummary"]["Status"]["State"];
117 asyncResp->res.jsonValue["ProcessorSummary"]["Status"]["State"] =
126 * @param[in] asyncResp Shared pointer for completing asynchronous calls
132 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, bool isCpuPresent)
139 asyncResp->res.jsonValue["ProcessorSummary"]["Count"];
151 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
166 messages::internalError(asyncResp->res);
173 asyncResp->res.jsonValue["ProcessorSummary"]["CoreCount"];
190 * @param[in] asyncResp Shared pointer for completing asynchronous calls
197 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
200 auto getCpuPresenceState = [asyncResp](const boost::system::error_code& ec3,
207 modifyCpuPresenceState(asyncResp, cpuPresenceCheck);
217 [asyncResp, service,
223 messages::internalError(asyncResp->res);
226 getProcessorProperties(asyncResp, properties);
233 * @param[in] asyncResp Shared pointer for completing asynchronous calls
239 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
257 messages::internalError(asyncResp->res);
264 asyncResp->res.jsonValue["MemorySummary"]["TotalSystemMemoryGiB"];
268 asyncResp->res.jsonValue["MemorySummary"]["TotalSystemMemoryGiB"] =
273 asyncResp->res.jsonValue["MemorySummary"]["TotalSystemMemoryGiB"] =
283 * @param[in] asyncResp Shared pointer for completing asynchronous calls
290 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
295 [asyncResp, service,
301 messages::internalError(asyncResp->res);
304 processMemoryProperties(asyncResp, properties);
308 inline void afterGetUUID(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
315 messages::internalError(asyncResp->res);
327 messages::internalError(asyncResp->res);
342 asyncResp->res.jsonValue["UUID"] = valueStr;
347 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
372 messages::internalError(asyncResp->res);
378 asyncResp->res.jsonValue["PartNumber"] = *partNumber;
383 asyncResp->res.jsonValue["SerialNumber"] = *serialNumber;
388 asyncResp->res.jsonValue["Manufacturer"] = *manufacturer;
393 asyncResp->res.jsonValue["Model"] = *model;
398 asyncResp->res.jsonValue["SubModel"] = *subModel;
402 sw_util::populateSoftwareInformation(asyncResp, sw_util::biosPurpose,
407 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
417 asyncResp->res.jsonValue["AssetTag"] = value;
421 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
428 messages::internalError(asyncResp->res);
456 getMemorySummary(asyncResp, connection.first, path);
463 getProcessorSummary(asyncResp, connection.first, path);
472 [asyncResp](const boost::system::error_code& ec3,
475 afterGetUUID(asyncResp, ec3, properties);
484 [asyncResp](const boost::system::error_code& ec3,
487 afterGetInventory(asyncResp, ec3, properties);
495 std::bind_front(afterGetAssetTag, asyncResp));
505 * @param[in] asyncResp Shared pointer for completing asynchronous calls
510 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
522 std::bind_front(afterSystemGetSubTree, asyncResp));
528 * @param[in] asyncResp Shared pointer for completing asynchronous calls.
532 inline void getHostState(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
538 [asyncResp](const boost::system::error_code& ec,
550 messages::internalError(asyncResp->res);
558 asyncResp->res.jsonValue["PowerState"] =
560 asyncResp->res.jsonValue["Status"]["State"] =
566 asyncResp->res.jsonValue["PowerState"] =
568 asyncResp->res.jsonValue["Status"]["State"] =
574 asyncResp->res.jsonValue["PowerState"] =
576 asyncResp->res.jsonValue["Status"]["State"] =
583 asyncResp->res.jsonValue["PowerState"] =
585 asyncResp->res.jsonValue["Status"]["State"] =
592 asyncResp->res.jsonValue["PowerState"] =
594 asyncResp->res.jsonValue["Status"]["State"] =
599 asyncResp->res.jsonValue["PowerState"] =
601 asyncResp->res.jsonValue["Status"]["State"] =
778 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
819 messages::propertyValueNotInList(asyncResp->res, rfSource,
829 * @param[in] asyncResp Shared pointer for generating response message.
833 inline void getBootProgress(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
838 [asyncResp](const boost::system::error_code& ec,
849 asyncResp->res.jsonValue["BootProgress"]["LastState"] =
857 * @param[in] asyncResp Shared pointer for generating response message.
862 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
867 [asyncResp](const boost::system::error_code& ec,
882 asyncResp->res.jsonValue["BootProgress"]["LastStateTime"] =
890 * @param[in] asyncResp Shared pointer for generating response message.
896 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
902 [asyncResp](const boost::system::error_code& ec,
912 asyncResp->res
920 messages::internalError(asyncResp->res);
924 asyncResp->res.jsonValue["Boot"]["BootSourceOverrideMode"] = rfType;
931 * @param[in] asyncResp Shared pointer for generating response message.
937 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
943 [asyncResp](const boost::system::error_code& ec,
948 messages::internalError(asyncResp->res);
963 asyncResp->res
973 asyncResp->res
983 * @param[in] asyncResp Shared pointer for generating response message.
989 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
995 [asyncResp](const boost::system::error_code& ec,
1005 messages::internalError(asyncResp->res);
1015 asyncResp->res.jsonValue["Boot"]["BootSourceOverrideTarget"] =
1021 getBootOverrideMode(asyncResp);
1030 * @param[in] asyncResp Shared pointer for generating response message.
1036 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1041 asyncResp->res.jsonValue["Boot"]["BootSourceOverrideEnabled"] =
1052 [asyncResp](const boost::system::error_code& ec, bool oneTimeSetting) {
1056 messages::internalError(asyncResp->res);
1062 asyncResp->res.jsonValue["Boot"]["BootSourceOverrideEnabled"] =
1067 asyncResp->res.jsonValue["Boot"]["BootSourceOverrideEnabled"] =
1076 * @param[in] asyncResp Shared pointer for generating response message.
1082 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1088 [asyncResp](const boost::system::error_code& ec,
1098 messages::internalError(asyncResp->res);
1103 processBootOverrideEnable(asyncResp, bootOverrideEnable);
1110 * @param[in] asyncResp Shared pointer for generating response message.
1115 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1119 getBootOverrideSource(asyncResp);
1120 getBootOverrideType(asyncResp);
1121 getBootOverrideEnable(asyncResp);
1132 * @param[in] asyncResp Shared pointer for generating response message.
1137 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1145 [asyncResp](const boost::system::error_code& ec,
1158 asyncResp->res.jsonValue["LastResetTime"] =
1171 * @param[in] asyncResp Shared pointer for generating response message.
1176 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1183 [asyncResp{asyncResp}](
1194 messages::internalError(asyncResp->res);
1208 messages::internalError(asyncResp->res);
1214 asyncResp->res
1221 asyncResp->res.jsonValue["Boot"]["AutomaticRetryAttempts"] =
1230 * @param[in] asyncResp Shared pointer for generating response message.
1235 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1243 [asyncResp](const boost::system::error_code& ec,
1253 messages::internalError(asyncResp->res);
1261 asyncResp->res.jsonValue["Boot"]["AutomaticRetryConfig"] =
1266 asyncResp->res.jsonValue["Boot"]["AutomaticRetryConfig"] =
1269 getAutomaticRebootAttempts(asyncResp);
1277 asyncResp->res
1287 * @param[in] asyncResp Shared pointer for generating response message.
1294 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1299 asyncResp, "Boot/AutomaticRetryAttempts",
1333 * @param[in] asyncResp Shared pointer for generating response message.
1338 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1346 [asyncResp](const boost::system::error_code& ec,
1357 messages::internalError(asyncResp->res);
1361 asyncResp->res.jsonValue["PowerRestorePolicy"] = restore;
1368 * @param[in] asyncResp Shared pointer for generating response message.
1373 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1380 [asyncResp](const boost::system::error_code& ec, bool value) {
1389 messages::internalError(asyncResp->res);
1396 asyncResp->res.jsonValue["Boot"]["StopBootOnFault"] =
1401 asyncResp->res.jsonValue["Boot"]["StopBootOnFault"] =
1411 * @param[in] asyncResp Shared pointer for generating response message.
1416 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1423 [asyncResp](const boost::system::error_code& ec,
1447 messages::internalError(asyncResp->res);
1456 messages::internalError(asyncResp->res);
1467 [asyncResp](const boost::system::error_code& ec2,
1473 messages::internalError(asyncResp->res);
1479 asyncResp->res
1485 asyncResp->res
1497 * @param[in] asyncResp Shared pointer for generating response message.
1503 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, const bool tpmRequired)
1510 [asyncResp,
1517 messages::internalError(asyncResp->res);
1522 messages::propertyValueNotInList(asyncResp->res,
1535 messages::internalError(asyncResp->res);
1544 messages::internalError(asyncResp->res);
1554 messages::internalError(asyncResp->res);
1559 setDbusProperty(asyncResp, "Boot/TrustedModuleRequiredToBoot", serv,
1568 * @param[in] asyncResp Shared pointer for generating response message.
1572 inline void setBootType(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1598 messages::propertyValueNotInList(asyncResp->res, *bootType,
1606 setDbusProperty(asyncResp, "Boot/BootSourceOverrideMode",
1617 * @param[in] asyncResp Shared pointer for generating response
1622 inline void setBootEnable(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1654 messages::propertyValueNotInList(asyncResp->res, *bootEnable,
1662 setDbusProperty(asyncResp, "Boot/BootSourceOverrideEnabled",
1679 setDbusProperty(asyncResp, "Boot/BootSourceOverrideEnabled",
1690 * @param[in] asyncResp Shared pointer for generating response message.
1696 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1710 if (assignBootParameters(asyncResp, *bootSource, bootSourceStr,
1716 messages::propertyValueNotInList(asyncResp->res, *bootSource,
1725 setDbusProperty(asyncResp, "Boot/BootSourceOverrideTarget",
1731 setDbusProperty(asyncResp, "Boot/BootSourceOverrideTarget",
1742 * @param[in] asyncResp Shared pointer for generating response message.
1751 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1758 setBootModeOrSource(asyncResp, bootSource);
1759 setBootType(asyncResp, bootType);
1760 setBootEnable(asyncResp, bootEnable);
1766 * @param[in] asyncResp Shared pointer for generating response message.
1771 inline void setAssetTag(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1778 [asyncResp,
1784 messages::internalError(asyncResp->res);
1790 messages::internalError(asyncResp->res);
1798 messages::internalError(asyncResp->res);
1804 messages::internalError(asyncResp->res);
1814 messages::internalError(asyncResp->res);
1818 setDbusProperty(asyncResp, "AssetTag", service, path,
1852 * @param[in] asyncResp Shared pointer for generating response message.
1858 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1868 messages::propertyValueNotInList(asyncResp->res, stopBootOnFault,
1873 setDbusProperty(asyncResp, "Boot/StopBootOnFault",
1884 * @param[in] asyncResp Shared pointer for generating response message.
1890 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1910 messages::propertyValueNotInList(asyncResp->res, automaticRetryConfig,
1915 setDbusProperty(asyncResp, "Boot/AutomaticRetryConfig",
1943 * @param[in] asyncResp Shared pointer for generating response message.
1949 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
1958 messages::propertyValueNotInList(asyncResp->res, policy,
1964 asyncResp, "PowerRestorePolicy", "xyz.openbmc_project.Settings",
1974 * @param[in] asyncResp Shared pointer for completing asynchronous
1980 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
1986 [asyncResp](const boost::system::error_code& ec,
1989 asyncResp->res
1991 asyncResp->res.jsonValue["Oem"]["OpenBmc"]["@odata.type"] =
2014 messages::internalError(asyncResp->res);
2021 messages::internalError(asyncResp->res);
2097 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2104 messages::internalError(asyncResp->res);
2116 messages::internalError(asyncResp->res);
2135 messages::internalError(asyncResp->res);
2141 asyncResp->res.jsonValue["PowerMode@Redfish.AllowableValues"] = modeList;
2148 messages::internalError(asyncResp->res);
2151 asyncResp->res.jsonValue["PowerMode"] = modeValue;
2156 * @param[in] asyncResp Shared pointer for generating response message.
2160 inline void getPowerMode(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
2169 [asyncResp](const boost::system::error_code& ec,
2192 messages::internalError(asyncResp->res);
2198 messages::internalError(asyncResp->res);
2206 messages::internalError(asyncResp->res);
2214 [asyncResp](
2217 afterGetPowerMode(asyncResp, ec2, properties);
2226 * @param[in] asyncResp Shared pointer for generating response message.
2232 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2268 messages::propertyValueNotInList(asyncResp->res, modeValue.dump(),
2277 * @param[in] asyncResp Shared pointer for generating response message.
2282 inline void setPowerMode(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2287 std::string powerMode = validatePowerMode(asyncResp, pmode);
2298 [asyncResp,
2306 messages::internalError(asyncResp->res);
2312 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
2323 messages::internalError(asyncResp->res);
2329 messages::internalError(asyncResp->res);
2337 messages::internalError(asyncResp->res);
2344 setDbusProperty(asyncResp, "PowerMode", service, path,
2414 * @param[in] asyncResp Shared pointer for completing asynchronous calls.
2419 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
2425 [asyncResp](const boost::system::error_code& ec,
2437 asyncResp->res.jsonValue["HostWatchdogTimer"];
2451 messages::internalError(asyncResp->res);
2465 messages::internalError(asyncResp->res);
2476 * @param[in] asyncResp Shared pointer for generating response message.
2484 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2498 messages::propertyValueNotInList(asyncResp->res, *wdtTimeOutAction,
2503 setDbusProperty(asyncResp, "HostWatchdogTimer/TimeoutAction",
2513 setDbusProperty(asyncResp, "HostWatchdogTimer/FunctionEnabled",
2525 * @param[in] asyncResp Shared pointer for completing asynchronous calls.
2531 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2553 asyncResp->res.jsonValue["IdlePowerSaver"]["Enabled"] = *enabled;
2558 asyncResp->res.jsonValue["IdlePowerSaver"]["EnterUtilizationPercent"] =
2565 asyncResp->res.jsonValue["IdlePowerSaver"]["EnterDwellTimeSeconds"] =
2572 asyncResp->res.jsonValue["IdlePowerSaver"]["ExitUtilizationPercent"] =
2579 asyncResp->res.jsonValue["IdlePowerSaver"]["ExitDwellTimeSeconds"] =
2590 * @param[in] asyncResp Shared pointer for completing asynchronous calls.
2595 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
2604 [asyncResp](const boost::system::error_code& ec,
2611 messages::internalError(asyncResp->res);
2628 messages::internalError(asyncResp->res);
2634 messages::internalError(asyncResp->res);
2642 messages::internalError(asyncResp->res);
2650 [asyncResp](
2658 messages::internalError(asyncResp->res);
2662 if (!parseIpsProperties(asyncResp, properties))
2664 messages::internalError(asyncResp->res);
2676 * @param[in] asyncResp Shared pointer for generating response message.
2689 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2703 [asyncResp, ipsEnable, ipsEnterUtil, ipsEnterTime, ipsExitUtil,
2711 messages::internalError(asyncResp->res);
2717 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
2728 messages::internalError(asyncResp->res);
2734 messages::internalError(asyncResp->res);
2742 messages::internalError(asyncResp->res);
2752 asyncResp, "IdlePowerSaver/Enabled", service, path,
2759 asyncResp, "IdlePowerSaver/EnterUtilizationPercent",
2769 asyncResp, "IdlePowerSaver/EnterDwellTimeSeconds", service,
2776 asyncResp, "IdlePowerSaver/ExitUtilizationPercent", service,
2785 asyncResp, "IdlePowerSaver/ExitDwellTimeSeconds", service,
2796 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
2798 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
2802 asyncResp->res.addHeader(
2809 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
2811 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
2816 asyncResp->res.addHeader(
2819 asyncResp->res.jsonValue["@odata.type"] =
2821 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Systems";
2822 asyncResp->res.jsonValue["Name"] = "Computer System Collection";
2824 getSystemCollectionMembers(asyncResp);
2830 inline void doNMI(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
2839 asyncResp,
2840 [asyncResp](const boost::system::error_code& ec) {
2844 messages::internalError(asyncResp->res);
2847 messages::success(asyncResp->res);
2854 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2857 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
2866 handleHypervisorSystemResetPost(req, asyncResp);
2873 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
2880 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
2885 if (!json_util::readJsonAction(req, asyncResp->res, "ResetType", resetType))
2926 doNMI(asyncResp);
2931 messages::actionParameterUnknown(asyncResp->res, "Reset", resetType);
2938 setDbusProperty(asyncResp, "Reset", "xyz.openbmc_project.State.Host",
2944 setDbusProperty(asyncResp, "Reset", "xyz.openbmc_project.State.Chassis",
2953 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2956 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
2961 asyncResp->res.addHeader(
2967 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
2974 messages::internalError(asyncResp->res);
2982 nlohmann::json& dataJson = asyncResp->res.jsonValue["SerialConsole"];
2988 getPortNumber(socketPath, [asyncResp, protocolName](
2994 messages::internalError(asyncResp->res);
2998 asyncResp->res.jsonValue["SerialConsole"];
3007 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
3010 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
3018 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
3027 handleHypervisorSystemGet(asyncResp);
3034 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
3038 asyncResp->res.addHeader(
3041 asyncResp->res.jsonValue["@odata.type"] =
3043 asyncResp->res.jsonValue["Name"] = BMCWEB_REDFISH_SYSTEM_URI_NAME;
3044 asyncResp->res.jsonValue["Id"] = BMCWEB_REDFISH_SYSTEM_URI_NAME;
3045 asyncResp->res.jsonValue["SystemType"] =
3047 asyncResp->res.jsonValue["Description"] = "Computer System";
3048 asyncResp->res.jsonValue["ProcessorSummary"]["Count"] = 0;
3049 asyncResp->res.jsonValue["MemorySummary"]["TotalSystemMemoryGiB"] =
3051 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format(
3054 asyncResp->res.jsonValue["Processors"]["@odata.id"] = boost::urls::format(
3056 asyncResp->res.jsonValue["Memory"]["@odata.id"] = boost::urls::format(
3058 asyncResp->res.jsonValue["Storage"]["@odata.id"] = boost::urls::format(
3060 asyncResp->res.jsonValue["FabricAdapters"]["@odata.id"] =
3064 asyncResp->res.jsonValue["Actions"]["#ComputerSystem.Reset"]["target"] =
3068 asyncResp->res
3073 asyncResp->res.jsonValue["LogServices"]["@odata.id"] = boost::urls::format(
3075 asyncResp->res.jsonValue["Bios"]["@odata.id"] = boost::urls::format(
3082 asyncResp->res.jsonValue["Links"]["ManagedBy"] = std::move(managedBy);
3083 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK;
3084 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled;
3087 asyncResp->res.jsonValue["SerialConsole"]["MaxConcurrentSessions"] = 15;
3088 asyncResp->res.jsonValue["SerialConsole"]["IPMI"]["ServiceEnabled"] = true;
3090 asyncResp->res.jsonValue["SerialConsole"]["SSH"]["ServiceEnabled"] = true;
3091 asyncResp->res.jsonValue["SerialConsole"]["SSH"]["Port"] = 2200;
3092 asyncResp->res.jsonValue["SerialConsole"]["SSH"]["HotKeySequenceDisplay"] =
3095 std::bind_front(afterPortRequest, asyncResp));
3100 asyncResp->res.jsonValue["GraphicalConsole"]["ServiceEnabled"] = true;
3101 asyncResp->res.jsonValue["GraphicalConsole"]["MaxConcurrentSessions"] =
3103 asyncResp->res.jsonValue["GraphicalConsole"]["ConnectTypesSupported"] =
3108 asyncResp, [](const std::string& chassisId,
3117 getSystemLocationIndicatorActive(asyncResp);
3119 getIndicatorLedState(asyncResp);
3120 getComputerSystem(asyncResp);
3121 getHostState(asyncResp);
3122 getBootProperties(asyncResp);
3123 getBootProgress(asyncResp);
3124 getBootProgressLastStateTime(asyncResp);
3125 pcie_util::getPCIeDeviceList(asyncResp,
3127 getHostWatchdogTimer(asyncResp);
3128 getPowerRestorePolicy(asyncResp);
3129 getStopBootOnFault(asyncResp);
3130 getAutomaticRetryPolicy(asyncResp);
3131 getLastResetTime(asyncResp);
3134 getProvisioningStatus(asyncResp);
3136 getTrustedModuleRequiredToBoot(asyncResp);
3137 getPowerMode(asyncResp);
3138 getIdlePowerSaver(asyncResp);
3143 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
3146 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
3153 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
3159 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
3164 asyncResp->res.addHeader(
3189 req, asyncResp->res, //
3214 asyncResp->res.result(boost::beast::http::status::no_content);
3218 setAssetTag(asyncResp, *assetTag);
3223 setWDTProperties(asyncResp, wdtEnable, wdtTimeOutAction);
3228 setBootProperties(asyncResp, bootSource, bootType, bootEnable);
3232 setAutomaticRetry(asyncResp, *bootAutomaticRetry);
3237 setAutomaticRetryAttempts(asyncResp,
3243 setTrustedModuleRequiredToBoot(asyncResp, *bootTrustedModuleRequired);
3248 setStopBootOnFault(asyncResp, *stopBootOnFault);
3253 setSystemLocationIndicatorActive(asyncResp, *locationIndicatorActive);
3260 setIndicatorLedState(asyncResp, *indicatorLed);
3261 asyncResp->res.addHeader(boost::beast::http::field::warning,
3268 setPowerRestorePolicy(asyncResp, *powerRestorePolicy);
3273 setPowerMode(asyncResp, *powerMode);
3278 setIdlePowerSaver(asyncResp, ipsEnable, ipsEnterUtil, ipsEnterTime,
3285 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
3288 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
3292 asyncResp->res.addHeader(
3338 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
3366 messages::internalError(asyncResp->res);
3386 asyncResp->res.jsonValue["Parameters"] = std::move(parameters);
3391 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
3394 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
3401 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
3410 handleHypervisorResetActionGet(asyncResp);
3417 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
3422 asyncResp->res.addHeader(
3426 asyncResp->res.jsonValue["@odata.id"] =
3429 asyncResp->res.jsonValue["@odata.type"] = "#ActionInfo.v1_1_2.ActionInfo";
3430 asyncResp->res.jsonValue["Name"] = "Reset Action Info";
3431 asyncResp->res.jsonValue["Id"] = "ResetActionInfo";
3437 [asyncResp](const boost::system::error_code& ec,
3439 afterGetAllowedHostTransitions(asyncResp, ec,