简体   繁体   English

在 openbmc 中,xyz 路径和 /redfish/v1 路径有什么区别

[英]In openbmc what is the difference between the xyz path and the /redfish/v1 path

I am new to openbmc and trying to understand the basic details.我是 openbmc 的新手并试图了解基本细节。 As I am checking docs, I found two docs, REST-cheatsheet.md & REDFISH-cheatsheet.md当我检查文档时,我发现了两个文档,REST-cheatsheet.md 和 REDFISH-cheatsheet.md

They both are using the curl to get and set the entries in openbmc.他们都使用 curl 来获取和设置 openbmc 中的条目。 But, the path used is different.但是,使用的路径不同。 REST-cheetsheet.md uses, xyz/openbmc_project as path but REDFISH-cheatsheet.md uses redfish/v1/ as path to get details. REST-cheetsheet.md 使用 xyz/openbmc_project 作为路径,但 REDFISH-cheatsheet.md 使用 redfish/v1/ 作为获取详细信息的路径。

If we get same details with both what exactly is the difference??如果我们得到相同的细节,究竟有什么区别? ALso I need to populate the /redfish/v1 details, how to do that??我还需要填充 /redfish/v1 详细信息,该怎么做?

Thank you in advance.先感谢您。

When OpenBMC first started, Redfish had fairly minimal industry buy-in so OpenBMC made a dection to make a custom REST API to manage itself.当 OpenBMC 刚开始时,Redfish 的行业支持相当少,所以 OpenBMC 决定制作一个自定义的 REST API 来管理自己。 This is the "REST-cheatsheet".这是“REST 备忘单”。 After a few years, Redfish via the DMTF began to mature and get a lot more industry buy-in.几年后,通过 DMTF 的 Redfish 开始成熟并获得更多的行业认可。 The decision was made within the OpenBMC community to deprecate the REST interfaces and move to being a Redfish managed system. OpenBMC 社区决定弃用 REST 接口并转向成为 Redfish 管理系统。

There's actually a commit up for review that would disable the REST based interface by default ( https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/29344 ).实际上有一个提交审核,默认情况下会禁用基于 REST 的界面( https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/29344 )。

Try and utilize Redfish for any work you're doing, it's the direction of OpenBMC from an out of band management perspective.尝试将 Redfish 用于您正在做的任何工作,从带外管理的角度来看,这是 OpenBMC 的方向。

Redfish is defined and secure. Redfish已定义且安全。

The REST API is deprecated, mostly;大多数情况下不推荐使用 REST API; just go with the future and that is Redfish .与未来同行,那就是Redfish

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM