华为乾坤-查询快速诊断任务结果:响应示例

时间:2025-02-17 11:38:04

响应示例

返回状态码为200:返回SLA服务列表信息。

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
  "errorCode": 0,
  "errorMsg": "获取诊断结果成功",
  "sessionId": "10010936",
  "serviceId": "11",
  "icmpEchoResult": {
    "errorCode": 0,
    "connectStatus": 1,
    "lostPacketRatio": 0,
    "rttAvg": 1,
    "rttMax": 1,
    "timeoutCount": 0
  }
}

返回状态码为400:参数错误。

HTTP/1.1 400 Bad Request
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为403:URL鉴权。

HTTP/1.1 403 Forbidden
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为404:rest接口没找到。

HTTP/1.1 404 Not Found
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为406:流控限流。

HTTP/1.1 406 Not Acceptable
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为500:默认ServiceException异常码,应用内部错误。

HTTP/1.1 500 Internal Server Error
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为502:网关错误。

HTTP/1.1 502 Bad Gateway
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为503:服务不可用。

HTTP/1.1 503 Service Unavailable
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为504:表示时间超时,总线超时时间300s。

HTTP/1.1 504 Gateway Timeout
Date: Sat,30 Mar 2019 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为888:服务摘机,不提供服务。

HTTP/1.1 888 888
Date: Sat,30 Mar 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_0000002080661209.html