!
!
!
<wire>4.4.4.0</wire>
!
!
!
<mask>255.255.255.0</mask>
!
!
!
<gateway>4.4.4.1</gateway>
!
!
!
<start>4.4.4.2</start>
!
!
!
<stop>4.4.4.254</stop>
!
!
</Subnet>
!
</SharedNetwork>
</result>
The GET string for this API call is: https://patriot.network1.net/cli/?
function=GetNetworkConfig&username=[user]&password=[pass]
A correctly formatted URL would look like this:
https://patriot.network1.net/cli/?
function=GetNetworkConfig&username=apiuser&password=apipass
Standard DHCP
These API calls provide access to certain Standard DHCP configuration items.
List Known Client
This API call returns an XML list of the Standard DHCP Actions -> Known client
assignments in the Web Administration Interface. A sample of the result is shown
below:
<result>
!
<record>
!
!
<IDENT>John Doe</IDENT>
!
!
<REMOTE_MAC>00:03:05:fc:fe:fa</REMOTE_MAC>
!
!
<tftp_file/>
!
!
<ID>1</ID>
!
</record>
</result>
The GET URL to use is as follows:
https://patriot.network1.net/cli/?
function=KnownClient&username=[user]&password=[pass]&ACTION=LIST
A properly formatted URL would look like this:
https://patriot.network1.net/cli/?
function=KnownClient&username=apiuser&password=apipass&ACTION=LIST
Add Known Client
This allows a known client to be added via the API. Known client can be found in the
Web Administration Interface under Standard DHCP Actions.
Chapter 11: Remote Access API
87
DHCPatriot Version 6 Operations Manual This document © 2017 First Network Group Inc. All Rights Reserved
Содержание DHCPatriot Version 6
Страница 1: ...Operations Manual Version 6...
Страница 2: ......