华为乾坤-查询插卡:响应示例

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

响应示例

返回状态码为200:查询成功,响应体参考EthernetCardOutputDto。

HTTP/1.1 200 OK
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errcode" : "0",
	"errmsg" : "查询失败",
	"totalRecords" : 20,
	"pageIndex" : 1,
	"pageSize" : 20,
	"data" : [
		{
			"apName" : "ap-1",
			"apEsn" : "2102350KGF9WJ9000124",
			"interfaceName" : "GigabitEthernet1/0/1",
			"cardSlot" : 1,
			"cardStatus" : "absent",
			"cardConnectStatus" : "match",
			"interfaceIndex" : 1,
			"deviceId" : "00000000-0000-0000-0000-000000000000",
			"deviceStatus" : 1,
			"upwardSpeed" : 2500,
			"downwardSpeed" : 2500,
			"upwardTraffic" : 2500,
			"downwardTraffic" : 2500,
			"receivePackages" : 2500,
			"sendPackages" : 2500,
			"cardIp" : "10.1.1.1",
			"cardMac" : "xx-xx-xx-xx-xx-xx",
			"cardSn" : "111",
			"centerFrequency" : 2500,
			"bandWidth" : 2500,
			"serverConnectStatus" : 0,
			"firmwareVersion" : "1.1.4 (516)",
			"hardwareVersion" : "3.1.1 (932)",
			"subnetMask" : "24",
			"gatewayAddress" : "0.0.0.0",
			"physicalConnectType" : "PCIE"
		}
	]
}

返回状态码为400:校验异常,无响应体。

HTTP/1.1 400 Bad Request
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为500:内部错误,无响应体。

HTTP/1.1 500 Internal Server Error
Date: Sun,16 Feb 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_0000001852123438.html