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

ResourceDefinition

uris

  • /redfish/v1/Chassis/chassis_id/ThermalSubsystem/Pumps/pump_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.typestringtrue-泵的资源类型
@odata.contextstringtrue-泵资源模型OData描述信息
@odata.idstringtrue-泵资源访问路径
Idstringtrue-泵Id
PumpTypestringtrue-泵类型
Namestringtrue-泵名称
Manufacturerstringtrue-制造商
Modelstringtrue-型号
SerialNumberstringtrue-序列号
PartNumberstringtrue-部件编码
PhysicalContextstringtrue-泵适用的区域或设备
ProductionDatestringtrue-制造日期
Locationobjecttrue-泵位置信息,包括:
● PartLocation:部件位置
● Reference:位置参考
Statusobjecttrue-泵的健康状况,包括:
● State:泵的状态
● Health:泵的健康状态
PumpSpeedPercentobjecttrue-泵的转速,包括:
● Reading:泵的速率比,单位百分比
● SpeedRPM:泵传感器的当前读数

supported_methods

  • GET

HTTP methods

GET

命令功能

查询泵单个资源信息

命令格式

URL: https://device_ip/redfish/v1/Chassis/chassis_id/ThermalSubsystem/Pumps/pump_id

请求头:


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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
chassis_id机箱资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为BladeN(N 表示节点槽位号),例如“Blade1”
● 针对刀片服务器,取值可以为BladeN (N表示计算节点槽位号)或SwiN (N表示交换模块槽位号),例如 “Swi1”
● 针对X6800 V5,X6000 V5,G5500, XA320 V2服务器,取值还可以为 Enc,表示计算节点所在的机框资源
● 针对设备U位信息,取值可以为UN(N 表示设备U位号),例如"U1"
● 针对机柜资源,取值为Rack
auth_value执行该GET请求时,必须在 “Headers”中携带“X- Auth-Token”值用于鉴权可通过/redfish/v1/SessionService/ Sessions创建会话时获得
pump_id泵资源的ID在查询泵列表的返回信息中包含各泵Id

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Chassis/1/ThermalSubsystem/Pumps/1

请求头:


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

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#Pump.Pump",
  "@odata.id": "/redfish/v1/Chassis/1/ThermalSubsystem/Pumps/1",
  "@odata.type": "#Pump.v1_2_0.Pump",
  "Id": "1",
  "PumpType": null,
  "Name": "Pump 1",
  "Manufacturer": null,
  "Model": null,
  "SerialNumber": null,
  "PartNumber": "32060009",
  "PhysicalContext": null,
  "ProductionDate": null,
  "Location": {
    "PartLocation": {
      "Reference": null
    }
  },
  "Status": {
    "State": "Enabled",
    "Health": "OK"
  },
  "PumpSpeedPercent": {
    "Reading": 62,
    "SpeedRPM": 1800
  }
}

响应码:200