LeakDetectors
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Chassis/chassis_id/LeakDetectors/LeakDetector_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| DetectorState | string | true | - | 液冷服务器的漏液状态 ● OK:未漏液 ● Warning:漏液告警需要关注 ● Critical: 严重漏液告警需要立即关注 |
| Status | object | true | - | 指定漏液传感器的状态,包括: ● State:漏液传感器是否使能 ● Health:漏液传感器健康状态,包括: OK:无漏液Critical:漏液 |
| DetectorState | string | true | - | 液冷服务器的漏液状态 ● OK:未漏液 ● Warning:漏液告警需要关注 ● Critical: 严重漏液告警需要立即关注 |
| Status | object | true | - | 指定漏液传感器的状态,包括: ● State:漏液传感器是否使能 ● Health:漏液传感器健康状态,包括: OK:无漏液Critical:漏液 |
| LeakDetectorType | string | true | - | 漏液检测器的类型: ● FloatSwitch:浮子开关 ● Moisture:湿度传感器 |
| PartNumber | string | true | - | 漏液检测器的部件编码 |
| SerialNumber | string | true | - | 漏液检测器的序列号 |
| Manufacturer | string | true | - | 漏液检测器的厂商 |
| Model | string | true | - | 漏液检测器的型号 |
| PhysicalContext | string | true | - | 泄漏检测器适用的区域或设备: ● Chassis:整个机箱 ● CPU: 处理器 ● CPUSubsystem: 整个处理器子系统 ● GPU: 图形处理器 ● GPUSubsystem: 整个图形处理器子系统 |
| Location | object | true | - | 漏液检测器的位置信息 |
| PartLocation | object | true | - | 液检测器在机箱内的部件位置 |
| Reference | string | true | - | 部件位置的参考点: ● Bottom:该部件位于设备的底部。 ● Front:该部件位于设备的前部 ● Left:该部件位于设备的左部 ● Middle:该部件位于设备的中部 ● Rear:该部件位于设备的后部 ● Right:该部件位于设备的右部 ● Top:该部件位于设备的顶部 |
| ServiceLabel | string | true | - | 漏液检测器的位置标签 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询漏液检测
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/LeakDetectors/ 原URL:https://device_ip/redfish/v1/Chassis/chassis_id/ThermalSubsystem/
请求头:
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创建会话时获得 |
| LeakDetector_id | 指定漏液检测器的ID | 可从指定机箱资源中获取 |
使用指南
A9000 RCK A3机型不支持
使用实例
请求样例1:
http
GET https://device_ip/redfish/v1/Chassis/1/ThermalSubsystem/LeakDetection/LeakDetectors/{LeakDetectorId}请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#LeakDetector.LeakDetector",
"@odata.id": "/redfish/v1/Chassis/1/ThermalSubsystem/LeakDetection/LeakDetectors/{LeakDetectorId}",
"@odata.type": "#LeakDetector.v1_0_0.LeakDetector",
"Id": {
LeakDetectorId: },
"Name": "Moisture-type Leak Detector",
"DetectorState": "OK",
"Status": {
"State": "Enabled",
"Health": "OK"
}
}
}响应码:200 请求样例2:
http
GET https://device_ip/redfish/v1/Chassis/1/LeakDetectors/{LeakDetectorId}请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#LeakDetector.LeakDetector",
"@odata.id": "/redfish/v1/Chassis/1/LeakDetectors/{LeakDetectorId}",
"@odata.type": "#LeakDetector.v1_2_0.LeakDetector",
"Id": {
LeakDetectorId: },
"Name": "Moisture-type Leak Detector",
"DetectorState": "OK",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"LeakDetectorType": "Moisture",
"PartNumber": "3493-A44",
"SerialNumber": "916239",
"Manufacturer": "Contoso Water Detection Systems",
"Model": "Depends 3000",
"Location": {
"PartLocation": {
"Reference": "Bottom",
"ServiceLabel": "Leak Detector"
}
},
"PhysicalContext": "Chassis"
}
}响应码:200