华为乾坤-获取LLDP采集到的邻居设备:响应参数

时间:2025-02-17 11:36:15

响应参数

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

表3 LldpDiscoverDevicesResp对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

errcode

string

-

-

错误码。

"0"

errmsg

string

-

-

接口调用结果的描述信息。

""

data

ARRAY_REFERENCE

详细请参见表4

采集到的邻居设备列表。

-

total

int32

-

-

总数。

100

表4 LldpDiscoverDevice对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

id

string

-

-

源设备ID。

"b473118d-17ff-4f4f-9fa9-a4c0e1e87e42"

name

string

-

-

源设备名称。

"00500829380000000000"

esn

string

-

-

源设备ESN。

"00500829380000000000"

siteId

string

-

-

源设备站点ID。

"ea25fdbf-8dee-4823-bac2-5bfe8e3359ca"

siteName

string

-

-

源设备站点名称。

"test1"

model

string

-

-

邻居设备款型。

"AP6050DN"

type

string

-

-

邻居设备类型。

"AP"

neighbourDevName

string

-

-

邻居设备名称。

"00500829380000000000"

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

详细信息请参见实际响应消息体。

support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002128520978.html