summaryrefslogtreecommitdiff
path: root/docs/automation
diff options
context:
space:
mode:
Diffstat (limited to 'docs/automation')
-rw-r--r--docs/automation/vyos-api.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/automation/vyos-api.md b/docs/automation/vyos-api.md
index 224107f5..19524d7f 100644
--- a/docs/automation/vyos-api.md
+++ b/docs/automation/vyos-api.md
@@ -306,6 +306,25 @@ response:
```
+### /reconnect
+
+The `/reconnect` endpoint runs the `reconnect` command, which brings a
+connection-oriented interface such as PPPoE or WWAN down and up again.
+
+```none
+curl --location --request POST 'https://vyos/reconnect' \
+--form data='{"op": "reconnect", "path": ["interface", "pppoe0"]}' \
+--form key='MY-HTTPS-API-PLAINTEXT-KEY'
+
+response:
+{
+ "success": true,
+ "data": "",
+ "error": null
+}
+```
+
+
### /reboot
To initiate a reboot, use the `/reboot` endpoint.