华为乾坤-条件查询接口资源(兼容历史版本):URI

时间:2025-02-17 11:38:39

URI

/rest/openapi/networkinventoryservice/v1/interfaces

表1 query参数列表

参数名称

必选

类型

参数值域

默认值

参数说明

参数示例

condition

string

-

-

必需字段:

01. neDn:网络设备dn,精确搜索。

其他为非必需字段:

02. pageBegin:起始行数,正整数。

03. pageLength:10, 20, 50, 100, 500其中之一,默认500;

04. ifIndex:根据接口索引精确查询的关键字;

05. ifDesc:根据接口名称模糊查询的关键字;

06. ifAlias:根据接口别名模糊查询的关键字;

07. ipAddress:根据接口IP地址模糊查询的关键字;

08. ifSpeed:根据接口速率精确筛选的关键字;

List,纯数字集合举例:"ifSpeed":["20000000000"]

09. ifRemark:根据接口备注模糊查询的关键字;

10. ifMtu:根据接口mtu精确筛选的关键字;

11. ifType:根据接口type精确筛选的关键字;

List, 支持Ethernet,Eth-Trunk,Virtual-Ethernet,Atm,Pos,Serial,Vlanif,E1,T1,Cpos,Tunnel,LoopBack,Ip-Trunk,Virtual-Template,Ring-if,MFR,Mp-group,Aux,E3,T3,MEth,NULL,Rpr,Epon,Wlan-Ess,Gpon,Wlan-Dbss,Wlan-Mesh,Vbdif,Nve,Cellular,Other

举例:"ifType":["Ethernet","Eth-Trunk"]

12. ifOperStatus:List,根据接口运行态精确筛选的关键字;

List,支持Up,Down,Testing,Unknown,Dormant,Notpresent,Lowlayerdown

举例:"ifOperStatus":["Up","Down"]

13. ifAdminStatus:根据接口管理态精确筛选的关键字;

List,支持Up,Down,Planning

举例:"ifAdminStatus":["Up","Down"]

14. ifDuplexMode:根据接口双工模式精确筛选的关键字;List,支持full,half,auto,autoFull,autoHalf

15. queryType:指定查询的接口类型, 5仅查询物理口;

16. sortColumn:指定查询结果排序列;支持IFINDEX,IPADDRESS,IFDESC,IFALIAS,IFREMARK,IFPHYSADDRESS

17. sortOrder:指定查询结果排序;支持asc,desc

"{\"neDn\": \"e46412b1-003a-385c-bd10-6c218ce09ef4\",\"IfDesc\": \"XGigabitEthernet\",\"ifSpee\":[\"20000000000\"],\"sortColumn\":\"IFINDEX\",\"sortOrder\":\"desc\"}"

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