diff options
Diffstat (limited to 'docs/automation/vyos-api.rst')
-rw-r--r-- | docs/automation/vyos-api.rst | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/docs/automation/vyos-api.rst b/docs/automation/vyos-api.rst index 8bc33d53..efd00dd8 100644 --- a/docs/automation/vyos-api.rst +++ b/docs/automation/vyos-api.rst @@ -1,4 +1,4 @@ -:lastproofread: 2021-06-28 +:lastproofread: 2023-01-16 .. _vyosapi: @@ -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 ====== |