![KeeNetic Lite KN-1310 Command Reference Manual Download Page 305](http://html1.mh-extra.com/html/keenetic/lite-kn-1310/lite-kn-1310_command-reference-manual_3863741305.webp)
"link": "up",
"connected": "yes",
"state": "up",
"mtu": 1500,
"tx-queue": 1000,
"address": "192.168.1.1",
"mask": "255.255.255.0",
"uptime": 2621,
"global": false,
"security-level": "private",
"mac": "50:ff:20:00:00:08",
"auth-type": "none"
}
}
]
B.2 XML Core Interface
Warning:
XML Core Interface is deprecated and is maintained for backward
compatibility.
Keenetic Lite provides an HTTP XML API. The API is implemented as
/ci
resource that
accepts POST XML requests and returns XML after the user agent has been authenticated.
If Keenetic Lite is reset to factory defaults, authentication is not required.
Example B.4. XML API call
Execute the “show interface” command for the WAN interface named
ISP
. This interface
exists by default in Keenetic Lite.
POST /ci HTTP/1.1
Host: 192.168.1.1
Connection: keep-alive
Content-Length: 177
Origin: http://192.168.1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)
Content-Type: application/xml
Referer: http://192.168.1.1/
<packet ref="/">
<request id="1" ref="former.ifaces[load]">
<command name="show interface">
<name>ISP</name>
</command>
</request>
</packet>
The device responds with the current status of
ISP
:
HTTP/1.0 200 OK
Server: Ag [47]
Set-Cookie: _authorized=*; path=/
Keenetic Lite (KN-1310) — Command Reference Guide
305
Appendix B HTTP API
Summary of Contents for Lite KN-1310
Page 2: ......
Page 6: ...Command Reference Guide Keenetic Lite KN 1310 6 Contents Overview...
Page 18: ...Command Reference Guide Keenetic Lite KN 1310 18 Table of Contents...
Page 20: ...Command Reference Guide Keenetic Lite KN 1310 20 Chapter 1 Product Overview...
Page 26: ...Command Reference Guide Keenetic Lite KN 1310 26 Chapter 2 Introduction to the CLI...
Page 314: ...Command Reference Guide Keenetic Lite KN 1310 314 Appendix C SNMP MIB...