跳到主要内容

GET – 传感器集合

使用 GET 方法检索 Redfish 服务的传感器集合中的属性。

请求 URL

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

请求正文

响应正文

字段

类型

描述

Name

字符串

“SensorsCollection”

Members

数组

项:传感器元素的引用链接

Members@odata.count

数字

传感器元素的数量

Description

字符串

“A collection of sensor resource instances.”

状态代码

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

示例

{
"Name": "SensorCollection",
"Description": "A collection of Sensor resource instances.",
"@odata.type": "#SensorCollection.SensorCollection",
"@odata.id": "/redfish/v1/Chassis/1/Sensors",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/100L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/100L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/101L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/101L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/102L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/102L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/103L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/103L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/104L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/105L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/106L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/107L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/108L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/108L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/109L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/109L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/10L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/110L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/110L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/111L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/111L3"
},
……
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/96L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/97L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/97L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/98L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/98L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/99L3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/9L0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/PSU1_InputVol"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/PSU2_InputVol"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/PSU3_InputVol"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/PSU4_InputVol"
}
],
"@odata.etag": "\"5f07cdf91848d2f06b0db8\"",
"Members@odata.count": 280,
"@odata.context": "/redfish/v1/$metadata#SensorCollection.SensorCollection"
}