华为乾坤-条件查询光口资源:响应示例
时间:2025-02-17 11:38:59
响应示例
返回状态码为200:光口资源查询成功。
HTTP/1.1 200 OK Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "code" : 0, "data" : [ { "name" : "XGigabitEthernet0/0/1", "adminstatus" : "1", "operstatus" : "1", "ipaddress" : "10.x.x.x", "ipnetmask" : "0.0.0.0", "portindex" : "70664270" } ], "pageSize" : 1, "totalSize" : 100, "description" : "查询成功。" }
返回状态码为400:参数错误。
HTTP/1.1 400 Bad Request Date: Tue,30 Oct 2018 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: Tue,30 Oct 2018 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: Tue,30 Oct 2018 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_0000001186535728.html