Get the connected switch ports of an end system

Use this API to get the connected layer 2 switch ports of an end system.

Resource Information

Method

URL

Required authentication

GET

/V1/CMDB/Topology/Devices/{ip}/ConnectedSwitchPort

Yes

Parameters

Name

Description

Token*required
(header)

Place the token received from the API Log in to get an authentication token.

ip*required
(path)

The IP address of a device interface.

Response

Parameter

Type

Description

Example

hostname

list

The hostname of the device that the end system connects to.

{
  "statusCode"790200,
  "statusDescription""success",
  "hostname""Bos-SW",
  "interface""Ethernet 0/1"
}

interface

string

The interface that the end system connects to.

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.