summaryrefslogtreecommitdiff
path: root/docs/automation/vyos-api.rst
diff options
context:
space:
mode:
authorgoodNETnick <pknet@ya.ru>2022-07-23 03:52:16 -0400
committergoodNETnick <pknet@ya.ru>2022-07-23 03:52:16 -0400
commit8189e1c7b529dd4c0bdaea17eeb4e978e5f841fc (patch)
tree0c11cd5909020eb63accbdc9994c159eea75ee7c /docs/automation/vyos-api.rst
parented5a43bcc55749b3beed0c7bf3cf76d69ed1f0fb (diff)
parent0448c16d4a9bc80c6cd9e7d3a171ba0749acb6ce (diff)
downloadvyos-documentation-8189e1c7b529dd4c0bdaea17eeb4e978e5f841fc.tar.gz
vyos-documentation-8189e1c7b529dd4c0bdaea17eeb4e978e5f841fc.zip
Merge branch 'master' of https://github.com/goodNETnick/vyos-documentation
Diffstat (limited to 'docs/automation/vyos-api.rst')
-rw-r--r--docs/automation/vyos-api.rst18
1 files changed, 18 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
======