变更声明
为保证 Redfish 事件订阅接口实现与 Redfish 规范保持一致,社区计划对 创建事件订阅接口 POST /redfish/v1/EventService/Subscriptions 的请求体参数进行调整,将 EventTypes、Context 由必选参数调整为可选参数。
受影响的版本
- openUBMC 26.06
变更描述
规格变化
不涉及
外观变化
不涉及
外部接口变化
创建事件订阅接口POST /redfish/v1/EventService/Subscriptions 的请求体参数 EventTypes、Context 由必选参数调整为可选参数。
相关URI: /redfish/v1/EventService/Subscriptions
变化点:POST操作请求参数
变更前
创建事件订阅的请求参数中EventTypes、Context为必选参数
{
"Destination": event_destination,
"EventTypes": event_types, -- 必选参数
"Context": context, -- 必选参数
"HttpHeaders": http_headers,
"Protocol": protocal,
"SubscriptionType": subscription_type,
"Severities": severities,
"MessageIds": message_ids,
"OriginResources": origin_resources,
...
}
变更后
创建事件订阅的请求参数中EventTypes、Context为可选参数
{
"Destination": event_destination,
"HttpHeaders": http_headers,
"Protocol": protocal,
"SubscriptionType": subscription_type,
"Severities": severities,
"MessageIds": message_ids,
"OriginResources": origin_resources,
...
}
安装方式变化
不涉及
兼容性说明
- BMC 固件兼容性:当前变更仅涉及接口参数必选/可选属性的调整,不涉及兼容性
- openUBMC 和 BMC SDK 兼容性:此接口不依赖SDK,不涉及兼容性
- BMC 与上层网管的兼容性:如果上层网管在调用
POST /redfish/v1/EventService/Subscriptions时已包含EventTypes和Context字段,则本次变更对其透明,无需适配;
文档影响
不涉及
建议动作
- 建议升级 BMC SDK 版本至 26.06 或更高版本