export/current-config/cli returns "API endpoint is incomplete"
Per the swagger docs, I'm trying to hit /api/sonicos/export/current-config/cli, but when I do I get :
{ "status": { "success": false, "info": [ { "level": "error", "code": "E_INVALID_API_CALL", "message": "API endpoint is incomplete." } ] } }
I've tried using both Basic Auth, and Bearer Token (via the Swagger interface), both cause the same error.
Is this a case of bad / missing documentation? If so how do a get a dump of the config via the API?
Best Answers
-
shiprasahu93 Moderator
Hello @davetapley,
Unfortunately on Gen 6 appliances, the API support is partial. I think exporting the settings file is not supported using API.
Please take a look at the API reference guide for the same. It has examples on the supported calls.
Thanks!
Shipra Sahu
Technical Support Advisor, Premier Services
5 -
preston All-Knowing Sage ✭✭✭✭
Hi @davetapley,
you could do it via the SSH, or if you want another way you can use the https://migratetool.global.sonicwall.com/
you just import your current exp config and export as a CLI file.
export current-config cli ftp ftp://username:password@hostname/sonic-cli.txt
or ftp://hostname/firmware/sonic-cli.wri
5