华为乾坤-条件查询端口资源:响应参数

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

响应参数

返回状态码为200:端口资源查询成功。

表2 PortResResponse对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

code

int32

-

0

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

0:成功

非0:失败

0

data

ARRAY_REFERENCE

详细请参见表3

-

-

pageSize

integer

-

-

记录总页数。

1

totalSize

integer

-

-

记录总数。

100

description

string

-

-

描述信息。

Operation success

表3 PortResData对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

neip

string

-

-

设备IP地址(通过,分隔)。

"10.136.252.60"

nename

string

-

-

设备名称。

"FW_B"

nedn

string

-

-

设备dn。

"047f72d1-7ad3-11e9-b906-000c29b01448"

portdn

string

-

-

端口dn。

"047f72d1-7ad3-11e9-b906-000c29b01448,FR=1,S=1,SS=-1,PP=|1025|0|GigabitEthernet1/0/0"

framedn

string

-

-

机框dn。

"047f72d1-7ad3-11e9-b906-000c29b01448,FR=1"

slotdn

string

-

-

单板dn。

"047f72d1-7ad3-11e9-b906-000c29b01448,FR=1,S=1"

subslotdn

string

-

-

子卡dn。

"-1"

frameno

int32

-

-

机框序号。

1

slotno

int32

-

-

单板序号。

1

subslotno

int32

-

-

子卡序号。

-1

portindex

int32

-

-

端口索引。

67387406

portno

int32

-

-

端口编号。

0

descr

string

-

-

端口描述。

"Port"

name

string

-

-

端口名称。

"GigabitEthernet1/0/0"

adminstatus

int32

-

-

管理状态。

1

operstatus

int32

-

-

操作状态。

2

ifindex

int32

-

-

接口索引。

6

iftype

int32

-

-

端口类型。

2

ipaddress

string

-

-

端口IP地址。

"10.0.0.0"

ipnetmask

string

-

-

端口子网掩码。

-

ifspeed

string

-

-

端口速率(bps)。

"1000000000"

返回状态码为400:参数错误。

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

返回状态码为404:rest接口没找到。

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

返回状态码为500:默认ServiceException异常码,应用内部错误。

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

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