华为乾坤-查询单设备接口的性能数据:响应示例

时间:2025-05-12 15:32:35

响应示例

返回状态码为200:接口调用成功,响应体参考InterfacePerformanceResp。

HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errcode" : "0",
	"errmsg" : "",
	"data" : [
		{
			"mac" : "xx:xx:xx:xx:xx:xx",
			"interfacePackets" : [
				{
					"interfaceName" : "interface1",
					"outBandwidth" : "10",
					"inputBandwidth" : "80",
					"upwardTraffic" : 100,
					"downwardTraffic" : 100
				}
			]
		}
	]
}

返回状态码为400:参数非法,查询失败。

HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 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_0000001898408365.html
提示

您即将访问非华为云网站,请注意账号财产安全