HTTP API
VyOS provide an HTTP API. You can use it to execute op-mode commands, update VyOS, set or delete config.
Please take a look at the VyOS API page for an detailed how-to.
Configuration
Only allow certain IP addresses or prefixes to access the https webserver.
Use DH parameters from PKI subsystem. Must be at least 2048 bits in length.
Select TLS version used.
This defaults to both 1.2 and 1.3.
API
Set a named api key. Every key has the same, full permissions on the system.
Example Configuration
Set an API-KEY is the minimal configuration to get a working API Endpoint.
set service https api keys id MY-HTTPS-API-ID key MY-HTTPS-API-PLAINTEXT-KEY