{
"Resources": [
{
"Uri": "/cli/v1/sensor",
"Interfaces": [
{
"Type": "Get",
"Description": "Print detailed sensor information"
}
]
},
{
"Uri": "/cli/v1/sensor/list",
"Interfaces": [
{
"Type": "Get",
"Description": "List all sensor information",
"Usage": "ipmcget -t sensor -d list",
"RspBody": {
"SensorList": "${ProcessingFlow[1]/Destination/SensorList}",
"DeepSleep": "${ProcessingFlow[2]/Destination/DeepSleep}",
"PowerState": "${ProcessingFlow[4]/Destination/PowerState}",
"OnePowerList": "${Statements/OnePowerList()}",
"HostType": "${ProcessingFlow[6]/Destination/HostType}"
},
"Statements": {
"OnePowerList": {
"Input": "${ProcessingFlow[5]/Destination/OnePowerList}",
"Steps": [
{
"Type": "Prefix-Add",
"Formula": "/Expand/sensor"
},
{
"Type": "Expand"
}
]
}
},
"ProcessingFlow": [
{
"Type": "Method",
"Path": "/bmc/kepler/Chassis/1/Sensors",
"Interface": "bmc.kepler.Chassis.Sensors",
"Name": "GetSensorList",
"Params": [],
"Destination": {
"SensorList": "SensorList"
}
},
{
"Type": "Property",
"Path": "/bmc/kepler/Systems/1/PowerStrategy",
"Interface": "bmc.kepler.Systems.PowerStrategy",
"Destination": {
"DeepSleep": "DeepSleep"
}
},
{
"Type": "List",
"Path": "/bmc/kepler/Systems/1/FruCtrl",
"Destination": {
"Members": "FruCtrlList"
}
},
{
"Type": "Property",
"Path": "${ProcessingFlow[3]/Destination/FruCtrlList[1]}",
"Interface": "bmc.kepler.Systems.FruCtrl",
"Destination": {
"PowerState": "PowerState"
}
},
{
"Type": "List",
"Path": "/bmc/kepler/Systems/1/PowerMgmt",
"Destination": {
"Members": "OnePowerList"
}
},
{
"Type": "Property",
"Path": "/bmc/kepler/Managers/1/Multihost",
"Interface": "bmc.kepler.Managers.Multihost",
"Destination": {
"HostType": "HostType"
}
}
],
"Echoes": [
"ipmcget/sensor_list",
""
]
}
]
},
{
"Uri": "/Expand/sensor/bmc/kepler/Systems/1/PowerMgmt/:onepowerid",
"Interfaces": [
{
"Type": "GET",
"RspBody": {
"WorkMode": "${ProcessingFlow[1]/Destination/WorkMode}",
"SlotNumber": "${ProcessingFlow[1]/Destination/SlotNumber}"
},
"ProcessingFlow": [
{
"Type": "Property",
"Path": "/bmc/kepler/Systems/1/PowerMgmt/${Uri/onepowerid}",
"Interface": "bmc.kepler.Systems.PowerMgmt.OnePower",
"Destination": {
"WorkMode": "WorkMode",
"SlotNumber": "SlotNumber"
}
}
]
}
]
}
]
}