GET – PowerSupplyMetrics 属性
使用 GET 方法检索服务器的 PowerSupplyMetrics 中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/PowerSubsystem/PowerSupplies/PSU{psu_id}/Metrics
请求正文
无
响应正文
字段 | 类型 | 描述 | ||
---|---|---|---|---|
Id | 字符串 | “Metrics” | ||
Name | 字符串 | “Metrics for PSU{N}” | ||
Description | 字符串 | “This resource shall represent metrics for Power Supply {N} of a chassis for a Redfish implementation.” | ||
InputPowerWatts | 对象 | 已展开 | ||
DataSourceUri | 字符串 | 传感器“PSU {N} AC In Pwr”的 Redfish 路径。 | ||
Reading | 数字 | 传感器“PSU {N} AC In Pwr”的读数。 | ||
InputVoltage | 对象 | 已展开 | ||
DataSourceUri | 字符串 | “{SR}/Chassis/1/Sensors/PSU{N}_InputVol” | ||
Reading | 数字 | 与“PSU{N}_InputVol”中的读数相同。 | ||
OutputPowerWatts | 对象 | 已展开 | ||
DataSourceUri | 字符串 | 传感器“PSU {N} DC Out Pwr”的 Redfish 路径。 | ||
Reading | 数字 | 与“PSU {N} DC Out Pwr”中的读数相同。 | ||
RailVoltage | 数组 | 项:对象 项数:1 | ||
DataSourceUri | 字符串 | 传感器“SysBrd 12V”的 Redfish 路径。 | ||
Reading | 数字 | 与“SysBrd 12V”中的读数相同。 | ||
Status | 对象 | 已展开 | ||
State | 字符串 | “Enabled” | ||
Health | 字符串 | “OK” | ||
HealthRollup | 字符串 | “OK”、“Warning”或“Critical” |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.etag": "\"54041eee360d272e998\"",
"OutputPowerWatts": {
"Reading": 216,
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/95L0"
},
"Name": "Metrics for PSU1",
"@odata.type": "#PowerSupplyMetrics.v1_0_1.PowerSupplyMetrics",
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies/PSU1/Metrics",
"RailVoltage": [
{
"Reading": 12.04,
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/97L0"
}
],
"@odata.context": "/redfish/v1/$metadata#PowerSupplyMetrics.PowerSupplyMetrics",
"InputPowerWatts": {
"Reading": 232,
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/93L0"
},
"InputVoltage": {
"Reading": 220,
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/PSU1_InputVol"
},
"Id": "Metrics",
"Description": "This resource shall represent metrics for Power Supply 1 of a chassis for a Redfish implementation.",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
}
}
提供反馈