华为乾坤-查询当前/历史告警:响应示例

时间:2025-02-17 11:37:37

响应示例

返回状态码为200:Successful operation

HTTP/1.1 200 OK
Content-Type: application/json
{
  "alarm": [
    {
      "time-created": "2022-08-17T07:00:30.000Z",
      "is-acked": false,
      "resource-alarm-parameters": {
        "perceived-severity": "major",
        "is-cleared": false,
        "status-change": [],
        "last-changed": "2022-08-17T07:00:30.000Z"
      },
      "x733-alarm-parameters": {
        "event-type": "environmental-alarm"
      },
      "operator-state-change": [],
      "alarm-parameters": {
        "repair-action": "Please check whether the device is managed by another network management or system, please contact Huawei Technology Co., Ltd. Technical support engineer to help resolve.",
        "ne-name": "OSS",
        "location-info": "DevIP:10.90.126.58;Operation IP:10.185.177.145",
        "native-probable-cause": "Network element is managed jointly by multiple network management",
        "probable-cause": "Network element is managed jointly by multiple network management",
        "root-cause-identifier": false,
        "ems-time": "2022-08-17T07:00:30.997Z",
        "alarm-serial-number": "10414",
        "reason-id": 70014,
        "tenant-id": "default-organization-id",
        "tenant": "DefaultOrganization",
        "alarm-text": "Network element is managed jointly by multiple network management",
        "other-info": "",
        "ip-address": "10.185.215.193"
      },
      "common-alarm-parameters": {
        "alt-resource": [],
        "resource": "OSS",
        "resource-url": "",
        "related-alarm": [],
        "alarm-type-qualifier": "100000-70014",
        "impacted-resource": [],
        "root-cause-resource": [],
        "alarm-type-id": "environmental-alarm",
        "layer": "LR_Not_Applicable",
        "md-name": "Huawei/NCE",
        "product-type": "OSS"
      }
    }
  ]
}

返回状态码为400:Bad request

HTTP/1.1 400 Bad Request
Date: Mon,30 Dec 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002124127034.html