华为乾坤-查询网络链路列表信息:响应参数

时间:2025-03-25 14:14:41

响应参数

返回状态码为200:链路列表

表2 NorthResponse对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

code

integer

  • 0

  • 1

-

操作返回码。可以是如下值之一:

•0:成功

•非0:失败

0

data

ARRAY_REFERENCE

详细请参见表3

-

-

description

string

-

-

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

-

size

integer

-

0

链路总数

-

totalPage

integer

-

0

分页查询的总页数

-

表3 LinkDataModel对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

linkdn

string

-

-

链路DN

-

linkname

string

-

-

链路名称

-

anedn

string

-

-

源网元DN

-

anename

string

-

-

源网元名称

-

aneip

string

-

-

源网元IP

-

anestate

integer

  • 0

  • 1

  • 2

  • 3

-

源网元状态:

0 --- 未管理

1 --- 在线

2 --- 离线

3 --- 未知

-

aportdn

string

-

-

源端口DN

-

aportifresid

string

-

-

推荐使用,源端口DN

-

aportname

string

-

-

源端口名称

-

aportip

string

-

-

源端口IP

-

aportadminstatus

integer

  • 1

  • 2

  • 3

-

源端口管理状态:

1 --- up

2 --- down

3 --- testing

-

aportoperstatus

integer

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

-

源端口运行状态:

1 --- up

2 --- down

3 --- testing

4 --- unknown

5 --- dormant

6 --- notPresent

7 --- lowerLayerDown

-

znedn

string

-

-

宿网元DN

-

znename

string

-

-

宿网元名称

-

zneip

string

-

-

宿网元IP

-

znestate

integer

  • 0

  • 1

  • 2

  • 3

-

宿网元状态:

0 --- 未管理

1 --- 在线

2 --- 离线

3 --- 未知

-

zportdn

string

-

-

宿端口DN

-

zportifresid

string

-

-

推荐使用,宿端口DN

-

zportname

string

-

-

宿端口名称

-

zportip

string

-

-

宿端口IP

-

zportadminstatus

integer

  • 1

  • 2

  • 3

-

宿端口管理状态:

1 --- up

2 --- down

3 --- testing

-

zportoperstatus

integer

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

-

宿端口运行状态:

1 --- up

2 --- down

3 --- testing

4 --- unknown

5 --- dormant

6 --- notPresent

7 --- lowerLayerDown

-

linkstatus

integer

  • 0

  • 1

  • 2

  • 3

  • 4

  • 5

-

链路状态:

0 --- 正常

1 --- 未知

2 --- 重要故障

3 --- 紧急故障

4 --- 离线

5 --- 不管理

-

linktype

integer

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 99

-

链路类型:

1 --- LLDP

2 --- Side-By-Side链路

3 --- MACARP

4 --- CDP

5 --- IP

6 --- 由物理链路生成Eth-Trunk链路

99 --- 手工

-

speed

string

-

-

单位:Mbit/s

-

aportindex

string

-

-

源端口索引

-

zportindex

string

-

-

宿端口索引

-

返回状态码为400:Bad request,非法请求

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

返回状态码为500:Internal Error,系统内部错误

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

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