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 |
---|---|
500 | InternalError |
示例
{
"@odata.etag": "\"4822a396928aa32c66f8c4\"",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/100L1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/101L1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/102L1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/103L1"
},
...
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/99L1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Sensors/9L0"
}
],
"Members@odata.count": 212,
"Description": "A collection of Sensor resource instances.",
"Name": "SensorCollection",
"@odata.type": "#SensorCollection.SensorCollection",
"@odata.id": "/redfish/v1/Chassis/1/Sensors"
}
提供反馈