LeakDetection
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

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

properties

名称类型是否只读取值范围/枚举值说明
@odata.idstringtrue-漏液检测器集合资源节点的访问路径
Statusobjecttrue-漏液检测系统资源及其从属或依赖资源的状态和健康状况 说明 BMC300 5.12.0及以上版本支持。
Statestringtrue-漏液检测系统资源的状态:
● Enabled:漏液检测系统使能
● Disabled:漏液检测系统不使能
Healthstringtrue-漏液检测系统资源的健康状态:
● OK:正常
HealthRollupstringtrue-漏液检测系统资源的健康状态卷积:
● OK:无漏液
● Warning:漏液情况需要关注
● Critical:严重漏液情况需要立即关注

supported_methods

  • GET

HTTP methods

GET

命令功能

查询漏液检测系统信息

命令格式

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

请求头:


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

请求头:


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