i am trying the http api was able to set and delete using the same, how to do show for any command.
also wanted to know if the same is only available with automatic rolling release, as when i tried to compile vyos from git source the same was not getting started.
Hi Senthil,
We haven’t included the show operation because the default config format is not at all machine-friendly, and we thought no one will want it. There’s /retrieve endpoint that allows retrieving a single value, like cli-shell-api returnValue
We are planning to add JSON export, and it will be easy to add an option for raw config export when we have it.
set service https api keys id REST key ‘****’
set service https api port ‘6443’
set service https certificates system-generated-certificate lifetime ‘65535’
set service https listen-address * listen-port ‘6443’
When i try with port 6443 :
$ curl -X POST -F data=‘{“op”: “showConfig”, “path”: [“interfaces”, “dummy”]}’ -F key=***** -k http://192.168.1.16:6443/retrieve
curl: (7) Failed to connect to 192.168.1.16 port 6443: Connection refused
it not exists (just yet)
but it’s valid point, we need address this gap @s.lorente want to take care on this and work with @dmbaturin and maybe @Dmitry