代码仓
中
LeakDetection
更新时间: 2026/11/04
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Chassis/chassis_id/ThermalSubsystem/LeakDetection

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.idstringtrue-漏液检测器集合资源节点的访问路径
@odata.contextstringtrue-资源模型的OData描述信息
@odata.typestringtrue-资源类型
Idstringtrue-资源ID
LeakDetectors {objecttrue-漏液检测器信息
LeakDetectors.@odata.idstringtrue-LeakDetectors资源节点的访问路径
}
Namestringtrue-资源名称
Status {objecttrue-漏液检测系统资源及其从属或依赖资源的状态和健康状况
说明
openUBMC 25.12 LTS及以上版本支持。
Status.Statestringtrue-漏液检测系统资源的状态:
● Enabled:漏液检测系统使能
● Disabled:漏液检测系统不使能
Status.Healthstringtrue-漏液检测系统资源的健康状态:
● OK:正常
Status.HealthRollupstringtrue-漏液检测系统资源的健康状态卷积:
● OK:无漏液
● Warning:漏液情况需要关注
● Critical:严重漏液情况需要立即关注
}

supported_methods ​

  • GET

HTTP methods ​

GET ​

命令功能

查询漏液检测系统信息

命令格式

URL: https://device_ip/redfish/v1/Chassis/chassis_id/ThermalSubsystem/LeakDetection

请求头:

text

X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
chassis_id机箱资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为BladeN(N 表示节点槽位号),例如“Blade1”
● 针对刀片服务器,取值可以为BladeN(N表示计算节点槽位号)或SwiN(N表示交换模块槽位号),例如“Swi1”
auth_value执行该GET请求时,必须在“Headers”中携带“X-Auth-Token”值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

无

使用实例

请求样例:

http
GET <https://device_ip/redfish/v1/Chassis/1/ThermalSubsystem/LeakDetection>

请求头:

text

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#Chassis/LeakDetection.LeakDetection",
"@odata.id": "/redfish/v1/Chassis/1/ThermalSubsystem/LeakDetection",
"@odata.type": "#LeakDetection.v1_0_0.LeakDetection",
"Id": "LeakDetection",
"Name": "LeakDetection",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"LeakDetectors": {
"@odata.id": "/redfish/v1/Chassis/{ChassisId}/ThermalSubsystem/LeakDetection/LeakDetectors"
}
}

响应码:200