Detectors
更新时间: 2026/07/01
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Managers/manager_id/DiagnosticService/ContaminationDetection/Detectors/DetectorId

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue单个脏污检测对象资源模型的OData描述信息
@odata.idstringtrue单个脏污检测对象资源的访问路径
@odata.typestringtrue单个脏污检测对象资源的类型
Idstringtrue单个脏污检测对象资源ID
Namestringtrue单个脏污检测对象模块资源名称

supported_methods

  • GET

HTTP methods

GET

命令功能

查询单个脏污检测对象信息

命令格式

URL: https://device_ip/redfish/v1/Managers/manager_id/DiagnosticService/ContaminationDetection/Detectors/DetectorId

请求头:

X-Auth-Token: auth_value

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/DiagnosticService/ContaminationDetection/Detectors/DetectorId

X-Auth-Token: auth_value 请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#HwDetector.HwDetector",
  "@odata.id": "/redfish/v1/Managers/1/DiagnosticService/ContaminationDetection/Detectors/300001",
  "@odata.type": "#HwDetector.v1_0_0.HwDetector",
  "Id": "300001",
  "Name": "Detector",
  "Links": [
    {
      "Transceiver": {
        "@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort1"
      }
    }
  ]
}

响应码:200