Export configuration via HTTP API

Hello !

I’m trying to export my VyOS configuration on an external server to parse it on a web app.
I would like to know if someone have a solution to export the active configuration via the HTTP API.

Thanks,
Rostan.

@SeeMyPing

https://docs.vyos.io/en/latest/automation/vyos-api.html

# curl -k -X POST -F data='{"op": "showConfig", "path": []}' -F key=MY-HTTP-API-PLAINTEXT-KEY https://192.168.122.127/retrieve

That will get the full config (empty path)

1 Like