云服务器内容精选

  • 接口约束 1.接口最大并发数为2; 2.支持分页查询,当分页查询时,每次查询时的过滤条件(is-cleared,alarm-type-qualifier,perceived-severity,resource,alarm-serial-number)须和首次查询保持一致; 3.对于历史告警查询,当未指定开始时间和结束时间时,系统默认只查询最近3天的历史告警,如果需要查询其他时间范围的告警,需要指定开始时间和结束时间; 4.接口下发的query参数数量受URL长度限制,URL长度限制请参见"URL说明"章节。
  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 fileLocationURI 否 string 1~255个字符。 - 导出告警文件的sftp路径,路径需要存在。例如:sftp://root:root@10.22.44.148:22/home/ftproot/alarm.json "sftp://root:root@10.22.44.148:22/home/ftproot/alarm.json" 无
  • 请求示例 HTTP的示例 GET /restconf/v1/data/ietf-alarms:alarms/alarm-list?limit=2000&is-cleared=false&start-time=2019-05-30T06:35:38Z&end-time=2019-05-30T14:35:38Z Content-Type: application/json Accept: application/json Accept-Language: en-US X-Auth-Token: x-yyy
  • 响应示例 返回状态码为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