diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-05-30 12:41:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 12:41:59 +0300 |
commit | 9dffd71f8f5b7ad69cdd97865454d6a44b6afcae (patch) | |
tree | 868ad9f3bf76b2ef605f0fa9cab971d94688793a | |
parent | 590ab57d307e3162ece29e7b39b6df0c8a1c56d7 (diff) | |
parent | a7fab19a17d6a412c50b4df66faa5d66b85f8d08 (diff) | |
download | vyos-documentation-9dffd71f8f5b7ad69cdd97865454d6a44b6afcae.tar.gz vyos-documentation-9dffd71f8f5b7ad69cdd97865454d6a44b6afcae.zip |
Merge pull request #780 from sever-sever/api-reset
http-api: Add action reset and socket description
-rw-r--r-- | docs/automation/vyos-api.rst | 18 | ||||
-rw-r--r-- | docs/configuration/service/https.rst | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/docs/automation/vyos-api.rst b/docs/automation/vyos-api.rst index 8bc33d53..0cebb292 100644 --- a/docs/automation/vyos-api.rst +++ b/docs/automation/vyos-api.rst @@ -125,6 +125,24 @@ For example, get the addresses of a ``dum0`` interface. "error": null } +/reset +====== + +The ``reset`` endpoint run a ``reset`` command. + +.. code-block:: none + + curl --location --request POST 'https://vyos/reset' \ + --form data='{"op": "reset", "path": ["ip", "bgp", "192.0.2.11"]}' \ + --form key='MY-HTTPS-API-PLAINTEXT-KEY' + + respone: + { + "success": true, + "data": "", + "error": null + } + /image ====== diff --git a/docs/configuration/service/https.rst b/docs/configuration/service/https.rst index 22533db5..4ff777e9 100644 --- a/docs/configuration/service/https.rst +++ b/docs/configuration/service/https.rst @@ -28,6 +28,10 @@ Configuration Set the listen port of the local API, this has no effect on the webserver. The default is port 8080 +.. cfgcmd:: set service https api socket + + Use local socket for API + .. cfgcmd:: set service https api strict Enforce strict path checking |