Network Interface Status

GET networks/status

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a list of statuses of all network interfaces in the system.

Resource URL

http://{host}/api/2.0/networks/status/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/networks/status/.json

[ { "NetworkStatus": { "id": 901100, "is_up": 1, "network_id": 1, "device_id": 9011, "iface": "eth0", "mac": "02:E4:6E:F7:88:70", "speed": null, "ip_address": "172.31.26.27", "subnet_mask": "255.255.240.0", "default_gateway": "172.31.16.1", "network_interface_mode_id": 1, "network_flowcontrol_mode_id": 1, "tx_bandwidth": 227560, "rx_bandwidth": 350640, "rx_multicast_bandwidth": 0, "tx_multicast_bandwidth": 0, "modified": "1612454263975", "lldp_interface_name": "", "lldp_system_name": "", "lldp_vlan": "0", "sfp": "", "MulticastsUtilization": [] } } ]

 


 

GET network/status/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a single network interface status information.

Resource URL

http://{host}/api/2.0/network/status/{id}/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/networks/status/901100/.json

{ "NetworkStatus": { "id": 901100, "is_up": 1, "network_id": 1, "device_id": 9011, "iface": "eth0", "mac": "02:E4:6E:F7:88:70", "speed": null, "ip_address": "172.31.26.27", "subnet_mask": "255.255.240.0", "default_gateway": "172.31.16.1", "network_interface_mode_id": 1, "network_flowcontrol_mode_id": 1, "tx_bandwidth": 10592, "rx_bandwidth": 4520, "rx_multicast_bandwidth": 0, "tx_multicast_bandwidth": 0, "modified": "1612454295930", "lldp_interface_name": "", "lldp_system_name": "", "lldp_vlan": "0", "sfp": "", "MulticastsUtilization": [] } }