代码仓
中
PolicyConfigSettings
更新时间: 2026/11/04
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Systems/system_id/Bios/PolicyConfig/Settings

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-BIOS策略重配设置资源模型的OData描述信息
@odata.idstringtrue-BIOS策略重配设置资源的访问路径
@odata.typestringtrue-BIOS策略重配设置资源的类型
Idstringtrue-BIOS策略重配设置资源的ID
Namestringtrue-BIOS策略重配设置资源的名称
Actions{}objecttrue-Redfish允许的BIOS策略重配设置资源可执行操作
Attributes {objectfalse-BIOS策略重配设置资源当前设置的属性列表,具体属性含义参考表-BIOS策略重配属性列表
Attributes.CEThnumbertrue-配置项信息
Attributes.Demtnumbertrue-配置项信息
Attributes.Funnelnumbertrue-配置项信息
Attributes.PSEnnumbertrue-配置项信息
Attributes.PdEnnumbertrue-配置项信息
Attributes.PdPrdnumbertrue-配置项信息
Attributes.PsFunnelnumbertrue-配置项信息
Attributes.RefreshRatenumbertrue-配置项信息
Attributes.UnitTimenumbertrue-配置项信息
}
Oem{}objecttrue-自定义属性

supported_methods ​

  • GET
  • PATCH

HTTP methods ​

GET ​

命令功能

查询 BIOS 策略重配设置资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Bios/PolicyConfig/Settings

请求头:

text
X-Auth-Token: 123456789***********************

请求消息体:

json
{}

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

仅支持鲲鹏服务器S920X10/S920X10K及S920S10/S920S10K,且BMC版本号需要大于或等于openUBMC 25.12 LTS。

使用实例

请求样例:

http
GET <https://device_ip/redfish/v1/Systems/system_id/Bios/PolicyConfig/Settings>

X-Auth-Token: 123456789***********************

请求消息体:

json
{}

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#PolicyConfig.PolicyConfig",
"@odata.id": "/redfish/v1/Systems/1/Bios/PolicyConfig/Settings",
"@odata.type": "#PolicyConfig.v1_0_0.PolicyConfig",
"Id": "Settings",
"Name": "BIOS PolicyConfig Current Settings",
"Attributes": {
"RefreshRate": 99,
"PdEn": 0,
"PdPrd": 256,
"Demt": 1,
"Funnel": 1,
"PsFunnel": 1,
"UnitTime": 1,
"CETh": 6000,
"PSEn": 1
},
"Oem": {},
"Actions": {}
}

响应码:200

PATCH ​

命令功能

修改 BIOS 策略重配设置资源属性

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Bios/PolicyConfig/Settings

请求头:

text
X-Auth-Token: 123456789***********************
Content-Type: header_type
If-Match: ifmatch_value

请求消息体:

json
{
"Attributes": {
"RefreshRate": RefreshRate_value,
"PdEn": PdEn_value,
"PdPrd": PdPrd_value,
"Demt": Demt_value,
"Funnel": Funnel_value,
"PsFunnel": PsFunnel_value,
"UnitTime": UnitTime_value,
"CETh": CETh_value,
"PSEn": PSEn_value
}
}

URL参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为BladeN(N表示节点槽位号),例如“Blade1”
● 针对刀片服务器,取值可以为BladeN(N表示计算节点槽位号)或 SwiN(N表示交换模块槽位号),例如“Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以为Enc,表示计算节点所在的机框资源
● 针对设备U位信息,取值可以为UN(N表示设备U位号),例如"U1"
● 针对机柜资源,取值为 Rack

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
Attributes设置的BIOS属性值列表可设置的BIOS属性及含义,参考使用实例

使用指南

仅支持鲲鹏服务器S920X10/S920X10K及S920S10/S920S10K,且BMC版本号需要大于或等于openUBMC 25.12 LTS。

使用实例

请求样例:

http
PATCH <https://device_ip/redfish/v1/Systems/system_id/Bios/PolicyConfig/Settings>

X-Auth-Token: 123456789*********************** Content-Type: header_type If-Match: ifmatch_value 请求消息体:

json
{
"Attributes": {
"RefreshRate": RefreshRate_value,
"PdEn": PdEn_value,
"PdPrd": PdPrd_value,
"Demt": Demt_value,
"Funnel": Funnel_value,
"PsFunnel": PsFunnel_value,
"UnitTime": UnitTime_value,
"CETh": CETh_value,
"PSEn": PSEn_value
}
}

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#Systems/Members/1/Bios/PolicyConfig/Settings/$entity",
"@odata.id": "/redfish/v1/Systems/1/Bios/PolicyConfig/Settings",
"@odata.type": "#PolicyConfig.v1_0_0.PolicyConfig",
"Id": "PolicyConfigSettings",
"Name": "BIOS PolicyConfig Current Settings",
"Attributes": {
"RefreshRate": 1,
"PdEn": 0,
"PdPrd": 256,
"Demt": 1,
"Funnel": 1,
"PsFunnel": 1,
"UnitTime": 1,
"CETh": 6000,
"PSEn": 1
},
"Oem": {},
"Actions": {}
}

响应码:200