cancel
Showing results for 
Search instead for 
Did you mean: 

Get port descriptions via RESTAPI from XIQ-SE device view

Get port descriptions via RESTAPI from XIQ-SE device view

NKev
New Contributor II

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

1 ACCEPTED SOLUTION

OscarK
Extreme Employee

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,
    }
   }
  }
 }

View solution in original post

1 REPLY 1

OscarK
Extreme Employee

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,
    }
   }
  }
 }

GTM-P2G8KFN