Skip to main content

GET – Collection of Sensors

Use the GET method to retrieve properties in sensor collection for Redfish service.

Request URL

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

Request body

None

Response body

Field

Type

Description

Name

String

“SensorsCollection”

Members

Array

Items: A reference link to an element of sensors

Members@odata.count

Number

The number of sensor elements

Description

String

A collection of sensor resource instances.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

{
"@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"
}