Content-type: text/xml
Content-Length: 760
<packet>
<response id="1">
<interface name="ISP">
<mac>ec:43:f6:d3:22:d9</mac>
<id>FastEthernet1</id>
<index>2</index>
<type>VLAN</type>
<description>Broadband connection</description>
<link>down</link>
<connected>no</connected>
<state>up</state>
<mtu>1500</mtu>
<tx-queue>1000</tx-queue>
<global>yes</global>
<defaultgw>no</defaultgw>
<priority>700</priority>
<security-level>public</security-level>
<auth-type>none</auth-type>
</interface>
<message code="268370345" ident="Network::Interface::Base"
source="">done</message>
</response>
</packet>
The
<request>
element is always sent from the user agent to the device. The device always
responds with a
<response>
. The
id
attribute can be used to establish one-to-one
correspondence between them.
Figure B.1. Request Element
<request id="identifier">
<!-- request content -->
</request>
Figure B.2. Response Element
<response id="identifier">
<!-- response content -->
</response>
There are two basic types of XML requests:
Command Request
Execute a specific command on the device. Available
commands are described in
Configuration Request
Get parameters that have been configured by a specific
command.
B.2.1 Command Request
Command request can be used to execute a specific command on the device.
Command Reference Guide — Keenetic Extra (KN-1710)
340
Appendix B HTTP API
Содержание EXTRA KN-1710
Страница 2: ......
Страница 6: ...Command Reference Guide Keenetic Extra KN 1710 6 Contents Overview...
Страница 20: ...Command Reference Guide Keenetic Extra KN 1710 20 Chapter 1 Product Overview...
Страница 26: ...Command Reference Guide Keenetic Extra KN 1710 26 Chapter 2 Introduction to the CLI...
Страница 322: ...Command Reference Guide Keenetic Extra KN 1710 322 Chapter 3 Command Reference...
Страница 332: ...Command Reference Guide Keenetic Extra KN 1710 332 Glossary...
Страница 348: ...Command Reference Guide Keenetic Extra KN 1710 348 Appendix C SNMP MIB...