Hi nz_nut,
You should use the "port_speed_mbps" key in the ports-statistics API.
| Intrusion MDI Flow Bcast
Port Type | Alert Enabled Status Mode Mode Ctrl Limit
------------ ---------- + --------- ------- ------ ---------- ---- ---- -----
1/1 100/1000T | No Yes Up 100FDx MDIX off 0
With the ports-statistics API :
{'bytes_rx': 671517139,
'bytes_tx': 1390854127,
'drop_tx': 22,
'error_rx': 0,
'error_tx': 0,
'id': '1/1',
'name': '',
'packets_rx': 7633263,
'packets_tx': 13935820,
'port_speed_mbps': 100,
'throughput_rx_bps': 0,
'throughput_tx_bps': 544,
'uri': '/port-statistics/1/1'}
Hoping that helps,
Regards