Get/Set network information and/or perform network diagnostics.
Enphase-API is an unofficial project providing an API wrapper and the documentation for Enphase®'s products and services.
More details on the project are available from the project’s homepage.
The /admin/lib/network_display.json endpoint supports the following:
| Method | Required Authorisation Level | Description |
|---|---|---|
|
None if request made via AP mode, otherwise >= |
Get Network Configuration. |
|
None if request made via AP mode, otherwise >= |
Set Network Configuration or Perform Network Diagnostics. |
As of recent Gateway software versions this request requires user authentication and authorisation, see Authentication.
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
String |
The IP address of the interface. |
|
String |
String |
The netmask for this interface. |
|
String |
String |
The default gateway for this interface, or if as part of the network routing table data, the gateway for this route. |
|
String |
String |
The primary DNS server for this interface. |
|
String |
String |
The secondary DNS server for this interface. |
|
Boolean |
Boolean (e.g. |
Whether or not DHCP is allowed to dynamically configure this interface. |
|
String |
String |
The name of the interface. |
|
String |
String |
The IP address that was ICMP pinged. |
|
Array(String) |
Array of String |
The results of an ICMP ping. |
|
String |
String |
The interface primarily used for network connectivity. This is only available when performing a network connectivity check. |
|
String |
String |
Whether connectivity to Enlighten® could be established. This is only available when performing a network connectivity check. |
|
String |
String |
Whether connectivity to Enphase® could be established. This is only available when performing a network connectivity check. |
|
String |
String |
Whether a DNS lookup for Enlighten® could be performed. This is only available when performing a network connectivity check. |
|
String |
String |
Whether a DNS lookup for Enphase® could be performed. This is only available when performing a network connectivity check. |
|
String |
String |
Whether a DNS lookup for Google® could be performed. This is only available when performing a network connectivity check. |
|
String |
String |
The response time (or |
|
String |
String |
The response time (or |
|
String |
String |
The response time (or |
|
String |
String |
The response time (or |
|
Number |
Number |
The order of the route in the network routing table. This is only available when getting the network routing table data. |
|
String |
String |
The destination of the route in the network routing table. This is only available when getting the network routing table data. |
|
String |
String |
The generality (i.e. the netmask) of the route in the network routing table. This is only available when getting the network routing table data. |
|
String |
String |
The flags for the route in the network routing table. This is only available when getting the network routing table data. |
|
String |
String |
The metric for the route in the network routing table. This is only available when getting the network routing table data. |
|
String |
String |
The number of references for the route in the network routing table, such as how many other routes (e.g. through gateways) rely on the presence of this route. This is only available when getting the network routing table data. |
|
String |
String |
The number of times the routing entry has been used for the route in the network routing table. This is only available when getting the network routing table data. |
|
String |
String |
The interface for the route in the network routing table. This is only available when getting the network routing table data. |
|
Unknown |
Unknown |
The error that occurred. |
{"ip": "169.254.120.1", "netmask": "255.255.0.0", "gateway": "0.0.0.0", "primary_dns": "", "secondary_dns": "", "dhcp": true, "interface": "eth0"}fname=getnewipaddr&interface=eth0{"interface": "eth0", "ip": "169.254.120.1"}fname=ping&pingip=192.168.0.1{"interface": "wlan0", "pingip": "192.168.0.1", "results": ["PING 192.168.0.1 (192.168.0.1): 56 data bytes\n", "64 bytes from 192.168.0.1: seq=0 ttl=64 time=336.443 ms\n", "64 bytes from 192.168.0.1: seq=1 ttl=64 time=40.476 ms\n", "64 bytes from 192.168.0.1: seq=2 ttl=64 time=63.100 ms\n", "64 bytes from 192.168.0.1: seq=3 ttl=64 time=85.139 ms\n", "64 bytes from 192.168.0.1: seq=4 ttl=64 time=108.350 ms\n", "\n", "--- 192.168.0.1 ping statistics ---\n", "5 packets transmitted, 5 packets received, 0% packet loss\n", "round-trip min/avg/max = 40.476/126.701/336.443 ms\n"]}fname=connectivitycheck{"primary_interface": "wlan0", "connectivity_enlighten": "pass", "connectivity_enphase": "pass", "enlighten_dns_lookup": "pass", "enphase_dns_lookup": "pass", "google_dns_lookup": "pass", "gateway_ping": "0.784 ms", "primary_dns_ping": "fail", "secondary_dns_ping": "fail", "google_ping": "61.755 ms"}fname=getroute[{"entry": 1, "destination": "0.0.0.0", "gateway": "192.168.0.254", "genmask": "0.0.0.0", "flags": "UG", "metric": "20", "ref": "0", "use": "0", "iface": "wlan0"}, {"entry": 2, "destination": "169.254.0.0", "gateway": "0.0.0.0", "genmask": "255.255.0.0", "flags": "U", "metric": "0", "ref": "0", "use": "0", "iface": "eth0"}, {"entry": 3, "destination": "192.168.0.0", "gateway": "0.0.0.0", "genmask": "255.255.255.0", "flags": "U", "metric": "0", "ref": "0", "use": "0", "iface": "wlan0"}]