Product Code : MAX-BR1-MINI-LTEA-W-T-PRM
Firmware : 8.2.1 build 4920
Below is a ticket raised through to support … #23010682
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Hello
I would like to automate the process of changing the Advanced Port settings under Network settings of the Peplink router.
We want to change LAN port 1 so that it is Port Type Access with a single VLAN applied to the port. We can achieve this easily enough via the Remote Web Admin via Incontrol however we would like to achieve this programmatically via an API call.
I have inspected the types of payload sent when submitting the web form for changing the port settings via HTTP POST when using the Remote Web Admin, and can see a whole series of JSON attributes sent through, however I cant seem to change these attributes when attempting to use the devapi calls to the main Incontrol API. After reading the documentation for the Peplink API from …
https://download.peplink.com/resources/Peplink-Router-API-Documentation-for-Firmware-8.2.0.pdf
I can see that there is no reference to the ‘config.port’ function in the docs, even though information relating to the port config does come back when querying the config.port function via the devapi.
I presume therefore that function does exist but as in a read only capacity ? Will/can we change the port settings over API, or is this maybe a future enhancement ?
Ive also checked the device_ip_settings csv template that we can upload to Incontrol but can see no reference to any headings in the csv that relate to changing a port type here …
Can you let us know if im going wrong anywhere, or whether this update feature exists at all ?
Id like to put a feature request in to have this API function available for the product.
Thanks David