System Config
Order now | Download | FAQ
System Config
Request Structure: https://<puqvpnvp>/api/v1/system/config
Method: GET
Example:
curl \
-b "access_hash=def77a57825907131fca3ba92fc22970ffe7429fd8b49535e178f59542c42cf2be854e296941de9f" \
-X GET https://dev.softkeel.com/api/v1/system/config
Response example:
{
"error" : "",
"msg" : {
"traffic_statistics_frequency" : 1,
"traffic_statistics_history" : 1,
"wireguard_handshake_uptime" : 180
},
"status" : "success"
}
Errors:
-Not authorized
System Config EDIT
Request Structure: https://<puqvpnvp>/api/v1/system/config
Method: PUT
PUT data:
Options not required:
"traffic_statistics_frequency" = "1-1440"
"traffic_statistics_history" = "0-2147483647"
"wireguard_handshake_uptime" = "1-300"
Example:
curl \
-b "access_hash=def77a57825907131fca3ba92fc22970ffe7429fd8b49535e178f59542c42cf2be854e296941de9f" \
-d "traffic_statistics_frequency=10&\
traffic_statistics_history=5&\
wireguard_handshake_uptime=300" \
-X PUT https://dev.softkeel.com/api/v1/system/config
Response example:
{
"error" : "",
"msg" : {
"traffic_statistics_frequency" : 10,
"traffic_statistics_history" : 5,
"wireguard_handshake_uptime" : 300
},
"status" : "success"
}
Errors:
-Not authorized
-Incorrect value Traffic Statistics Frequency (should be 1 to 2147483647)
-Incorrect value Traffic Statistics History (should be 0 to 2147483647)
-Incorrect value Wireguard Handshake Uptime (should be 1 to 300)
System Config Set Default
Request Structure: https://<puqvpnvp>/api/v1/system/config/default
Method: PUT
PUT data:
Options not required:
Example:
curl \
-b "access_hash=def77a57825907131fca3ba92fc22970ffe7429fd8b49535e178f59542c42cf2be854e296941de9f" \
-X PUT https://dev.softkeel.com/api/v1/system/config/default
Response example:
{
"error" : "",
"msg" : {
"traffic_statistics_frequency" : 5,
"traffic_statistics_history" : 2,
"wireguard_handshake_uptime" : 180
},
"status" : "success"
}
Errors:
-Not authorized
No Comments