URL地址:http://ip:port /wapi/v1/LLDP/graphView/visNodeId/{visNodeId}
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
visNodeId | Long | 2761551 | 是 | 投影节点id |
{
"code": "200",
"data": {
"nodes": [
{
"id": 2781663,
"nodeId": 24000000054973,
"diagramId": 24000000039637,
"x": 1083.4181756346845,
"y": 110.71699402766347,
"z": null,
"width": 49.45598417408507,
"height": 52.42334322453017,
"imageOverride": null,
"keepAspectRatio": false,
"angle": 0,
"canMove": true,
"canResize": true,
"canRotate": true,
"canDelete": true,
"zOrder": 0,
"displayed": true,
"typeId": 26000000018199,
"name": " huawei222",
"parentId": 24000000039637,
"slotId": null,
"masterId": null,
"route": "24000000000001/24000000012661/24000000039637/24000000054973",
"mapZoom": 4.0,
"nodeTypeName": "Core switch",
"nodeTypeImage": "Core switch.png",
"nodeTypeTypeGroup": 1,
"nodeTypeHeight": 0.0,
"nodeTypeWidth": 0.0,
"mountedNodesData": null,
"shapes": null,
"diagramSublink": null,
"diagramSublinks": null,
"unitsHeight": null,
"hasEmbeddedFile": false,
"clusterSize": null,
"table": [
"型号:Huawei AC6003",
"系统描述: S5700-28C-HI \r\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 3.30 (S5700 V200R001C00) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
"生命周期:"
],
"depth": 0.0,
"master": true,
"blocked": false,
"cluster": null
}
],
"links": [
{
"linkId": 25000000124880,
"typeId": 27000000000151,
"name": "从:GigabitEthernet0/0/1 到:GigabitEthernet0/0/4",
"fromNode": 24000000049061,
"toNode": 24000000054973,
"fromRoute": "24000000000001/24000000012661/24000000039637/24000000049061",
"toRoute": "24000000000001/24000000012661/24000000039637/24000000054973",
"visLinkId": 223646,
"diagramId": 24000000039637,
"routepath": null,
"fromAnchorPointX": 0.5,
"fromAnchorPointY": 0.5,
"toAnchorPointX": 0.5,
"toAnchorPointY": 0.5,
"canDelete": true,
"canMove": true,
"zOrder": -1,
"displayed": true,
"color": "#b9a6a6",
"thickness": 2.0,
"linkStyle": 0,
"htLinkType": "{\"linkType\":null,\"startArrowHead\":null,\"endArrowHead\":null,\"autoArrangement\":true}",
"displayedVisLinkFields2": null,
"table": [
"名称:从:GigabitEthernet0/0/1 到:GigabitEthernet0/0/4"
]
}
]
},
"message": "success"
}
接口描述:传入投影节点id和最多展开拓扑层级,LLDP监测模块根据节点ip属性值,使用LLDP监测程序创建拓扑关系图,最高展开的级数按照传参决定。
URL地址:http://ip:port/wapi/v1/LLDP/graphView/visNodeId/{visNodeId}/step/{step}
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
visNodeId | Long | 2761551 | 是 | 投影节点id |
Step | integer | 1 | 是 | 最高展开层级 |
{
"code": "200",
"data": {
"nodes": [
{
"id": 2781663,
"nodeId": 24000000054973,
"diagramId": 24000000039637,
"x": 1083.4181756346845,
"y": 110.71699402766347,
"z": null,
"width": 49.45598417408507,
"height": 52.42334322453017,
"imageOverride": null,
"keepAspectRatio": false,
"angle": 0,
"canMove": true,
"canResize": true,
"canRotate": true,
"canDelete": true,
"zOrder": 0,
"displayed": true,
"typeId": 26000000018199,
"name": " huawei222",
"parentId": 24000000039637,
"slotId": null,
"masterId": null,
"route": "24000000000001/24000000012661/24000000039637/24000000054973",
"mapZoom": 4.0,
"nodeTypeName": "Core switch",
"nodeTypeImage": "Core switch.png",
"nodeTypeTypeGroup": 1,
"nodeTypeHeight": 0.0,
"nodeTypeWidth": 0.0,
"mountedNodesData": null,
"shapes": null,
"diagramSublink": null,
"diagramSublinks": null,
"unitsHeight": null,
"hasEmbeddedFile": false,
"clusterSize": null,
"table": [
"型号:Huawei AC6003",
"系统描述: S5700-28C-HI \r\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 3.30 (S5700 V200R001C00) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
"生命周期:"
],
"depth": 0.0,
"master": true,
"blocked": false,
"cluster": null
}
],
"links": [
{
"linkId": 25000000124880,
"typeId": 27000000000151,
"name": "从:GigabitEthernet0/0/1 到:GigabitEthernet0/0/4",
"fromNode": 24000000049061,
"toNode": 24000000054973,
"fromRoute": "24000000000001/24000000012661/24000000039637/24000000049061",
"toRoute": "24000000000001/24000000012661/24000000039637/24000000054973",
"visLinkId": 223646,
"diagramId": 24000000039637,
"routepath": null,
"fromAnchorPointX": 0.5,
"fromAnchorPointY": 0.5,
"toAnchorPointX": 0.5,
"toAnchorPointY": 0.5,
"canDelete": true,
"canMove": true,
"zOrder": -1,
"displayed": true,
"color": "#b9a6a6",
"thickness": 2.0,
"linkStyle": 0,
"htLinkType": "{\"linkType\":null,\"startArrowHead\":null,\"endArrowHead\":null,\"autoArrangement\":true}",
"displayedVisLinkFields2": null,
"table": [
"名称:从:GigabitEthernet0/0/1 到:GigabitEthernet0/0/4"
]
}
]
},
"message": "success"
}
接口描述:传入LLDP设备发现需要的协议和ip以及接口地址,使用LLDP自动发现设备。
URL地址:http://ip:port /wapi/v1/universal_forwarding
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
url | String | /wlpz/discovery/snmp | 是 | 自动发现接口 |
type | String | get | 是 | 接口类型 |
communitylist | String | public | 是 | 团体字协议 |
seg | String | 192.168.100.1-255 | 是 | 扫描Ip段 |
[]
接口描述:传入LLDP扫描结果的ip,根据ip跳转到扫描结果生成的节点的位置。
URL地址:http://ip:port /wapi/v1/lldpip/{ip}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
ip | String | 192.168.100.1 | 是 | 扫描到的ip |
[]
接口描述:传入LLDP扫描结果的设备型号、ip、生成到的节点id,将扫描到的设备创建到对应节点。
URL地址:http://ip:port /wapi/v1/discovery/creatNode
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
type | String | huawei | 是 | 设备型号 |
ip | String | 192.168.100.1 | 是 | Ip |
diagramId | Long | 24000000000693 | 是 | 节点id |
[]