I need to retrive from the API the same port data shown under "Security & SD-WAN -> Appliance Status -> Summary: Ports"
I haven't been able to find the correct API (or APIs) to get the data shown in the tooltip, does anyone have any suggestion?
Have you tried this one?
Yes, that gives uplink usage, I need ports (that are different from uplinks) and their connection speed
There is no API.
MX LAN ports are not currently treated as switch ports so for the moment there is no API endpoints to get that info.
Isn't the web interface using the API?
Nope
There was an attempt to provide the switch port data for MXs a few years ago. It only lasted on the dashboard for a couple of days and never made it to the APIs due to numbering errors that were never resolved. An example of this is the MX75 where ports 1-3 are WAN ports so port 4 is actually called LAN port 0 in the back end, with port 5 being LAN 1 etc.
I don't know why they didn't fix it and republish the page as it doesn't seem an insurmountable issue to me.