ā08-17-2023 11:25 PM
Hello everybody,
is there a way to read out all port numbers & port descriptions (display-strings) from a specific switch in XIQ-SE via RESTAPI?
Thanks & best regards,
Kevin
Solved! Go to Solution.
ā08-18-2023 05:10 AM - edited ā08-18-2023 05:10 AM
Yes, that should be possible. You can do an NBI query like below.
{
network {
device(ip: "<IP ADDRESS>") {
id,
ip,
entityData{
port(ifIndex:<port ifindex)
{
ifIndex,
ifName,
ifDesc,
}
}
}
}
}
ā08-18-2023 05:10 AM - edited ā08-18-2023 05:10 AM
Yes, that should be possible. You can do an NBI query like below.
{
network {
device(ip: "<IP ADDRESS>") {
id,
ip,
entityData{
port(ifIndex:<port ifindex)
{
ifIndex,
ifName,
ifDesc,
}
}
}
}
}