diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-05-25 20:41:20 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-05-26 00:02:33 +0000 |
commit | 45f460a20c0bdcd05d72eda3286b2b6980998fe4 (patch) | |
tree | 538f05d6745aaf18448510ada88836551fe3b5ab /data | |
parent | ec3a05d3dfda497910d42ad99d28d977312ea7a4 (diff) | |
download | vyos-1x-45f460a20c0bdcd05d72eda3286b2b6980998fe4.tar.gz vyos-1x-45f460a20c0bdcd05d72eda3286b2b6980998fe4.zip |
http-api: T4442: Add action reset
Add action 'reset' (op-mode) for HTTP-API
http://localhost/reset
curl --unix-socket /run/api.sock -X POST -Fkey=mykey \
-Fdata='{"op": "reset", "path": ["ip", "bgp", "192.0.2.14"]}' \
http://localhost/reset
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/https/nginx.default.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/https/nginx.default.j2 b/data/templates/https/nginx.default.j2 index 70e62ae7a..dbb08e187 100644 --- a/data/templates/https/nginx.default.j2 +++ b/data/templates/https/nginx.default.j2 @@ -34,7 +34,7 @@ server { ssl_protocols TLSv1.2 TLSv1.3; # proxy settings for HTTP API, if enabled; 503, if not - location ~ /(retrieve|configure|config-file|image|generate|show|docs|openapi.json|redoc|graphql) { + location ~ /(retrieve|configure|config-file|image|generate|show|reset|docs|openapi.json|redoc|graphql) { {% if server.api %} {% if server.api.socket %} proxy_pass http://unix:/run/api.sock; |