mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
http-api: Add action reset and socket description
This commit is contained in:
parent
590ab57d30
commit
a7fab19a17
@ -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
|
||||
======
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user