华为乾坤-查询LLDP采集源设备:响应示例

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

响应示例

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

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" : "",
	"data" : [
		{
			"id" : "b473118d-17ff-4f4f-9fa9-a4c0e1e87e42",
			"tenantId" : "00000000-0000-0000-0000-000000000001",
			"name" : "00500829380000000000",
			"esn" : "00500829380000000000",
			"status" : 4,
			"model" : "AP6050DN",
			"type" : "AP",
			"siteId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca",
			"siteName" : "test1",
			"latestOnlineTime" : "2021-06-10 21:02:18",
			"deviceRoles" : [
				 ""
			]
		}
	],
	"total" : 100
}

返回状态码为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
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002128679134.html