Use this API to get specific neighbors of a device according to the specified topology type.
Method |
URL |
Required authentication |
GET |
/V1/CMDB/Topology/Devices/Neighbors |
Yes |
Name |
Description |
---|---|
Token*required |
Place the token received from the API Log in to get an authentication token. |
hostname*required |
The hostname of a device. |
topoType*required |
Specify the topology type of the neighbors to be returned, such as L2_Topo_Type, L3_Topo_Type, Ipv6_L3_Topo_Type, and VPN_Topo_Type. |
Parameter |
Type |
Description |
Example |
---|---|---|---|
neighbors |
list |
A list of returned neighbors. |
{ |
hostname |
string |
The hostname of the neighbor device. |
|
interface |
string |
The name of the neighbor interface. |
|
statusCode |
integer |
The returned status code of executing the API. |
|
statusDescription |
string |
The explanation of the status code. |