summaryrefslogtreecommitdiff
path: root/docs/automation/vyos-api.rst
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-05-30 12:20:44 +0300
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-05-30 12:55:16 +0300
commit30bcbedb809e7ecef32477a79c9554ade9307b03 (patch)
tree6030b182c376c66192178d29315c642fad16b59a /docs/automation/vyos-api.rst
parent265fe883eece3b562fb6f6f771c41622de4b563e (diff)
downloadvyos-documentation-30bcbedb809e7ecef32477a79c9554ade9307b03.tar.gz
vyos-documentation-30bcbedb809e7ecef32477a79c9554ade9307b03.zip
http-api: Add action reset and socket description
(cherry picked from commit a7fab19a17d6a412c50b4df66faa5d66b85f8d08)
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 5ab150e3..4bd6c63b 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
======