跳到主要内容

GET – PowerSubsystem 属性

使用 GET 方法检索服务器的 PowerSubsystem 中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/PowerSubsystem

请求正文

响应正文

字段

类型

描述

Id

字符串

PowerSubsystem

Name

字符串

Power Subsystem

Description

字符串

“This resource shall represent a power subsystem for a Redfish implementation.”

PowerSupplies

链接

/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies

PowerSupplyRedundancy

数组

项:对象

项数:1

 

PowerSupplyRedundancy[1]

对象

已展开。

  

MaxSupportedInGroup

数字

2 或 4。

  

MinNeededInGroup

数字

2

  

RedundancyType

字符串

NPlusMNotRedundant

  

Status

对象

已展开。

   

Health

字符串

电源系统的运行状况。

   

State

字符串

“Enabled”或“Disabled”

Status

对象

已展开。

 

State

字符串

Enabled

 

Health

字符串

“OK”、“Warning”或“Critical”。

Actions

对象

已展开。

 

#LenovoPowerSubsystem.GetPowerPolicy

对象

已展开。

  

title

字符串

GetPowerPolicy

  

target

链接

此操作的链接。

 

#LenovoPowerSubsystem.SetPowerPolicy

对象

已展开。

  

title

字符串

SetPowerPolicy

  

target

链接

此操作的链接。

  

PowerRestorePolicy

字符串

与“Oem/Lenovo/PowerRestorePolicy”相同

  

RandomDelay

布尔

与“Oem/Lenovo/RandomDelay”相同

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#PowerSubsystem.PowerSubsystem",
"@odata.etag": "\"0C23798E\"",
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem",
"@odata.type": "#PowerSubsystem.v1_1_0.PowerSubsystem",
"Actions": {
"Oem": {
...
}
}
},
"CapacityWatts": 2000,
"Description": "This resource shall represent a power subsystem for a Redfish implementation.",
"Id": "PowerSubsystem",
"Name": "Power Subsystem",
"Oem": {
...
}
},
"PowerSupplies": {
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies"
},
"PowerSupplyRedundancy": [
{
"MaxSupportedInGroup": 2,
"MinNeededInGroup": 2,
"Oem": {
...
}
},
"RedundancyGroup": [
{
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies/PSU1"
}
],
"RedundancyType": "NPlusM",
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
],
"Status": {
"Health": "OK",
"State": "Enabled"
}
}