PMM
1
Hi
I would like to import and export a modem configuration through the jsonrpc API, but I can’t manage do do this.
I try the following:
curl -d ‘{
“jsonrpc”:“2.0”, “id”:5, “method”:
“call”, “params”:
[ “06df04b00ed6fb0974adaf98809b33bc”, “uci”, “export”, {} ] }’ http://192.168.1.1/ubus
And i got
{“jsonrpc”:“2.0”,“id”:5,“result”:[3]}
How to do this?
Philippe
Hello,
If you are looking to use ‘uci export’ to obtain configurations, please, try the following JSON body (replace token):
{
"jsonrpc":"2.0",
"id":5,
"method":
"call",
"params":
[ "06df04b00ed6fb0974adaf98809b33bc", "file", "exec",
{"command":"uci",
"params":
[
"export"
]
}
]
}
Kind Regards,
system
Closed
4
This topic was automatically closed after 15 days. New replies are no longer allowed.