summaryrefslogtreecommitdiff
path: root/docs/automation/vyos-api.rst
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-02-08 13:23:45 +0700
committerkhramshinr <khramshinr@gmail.com>2024-02-08 13:23:45 +0700
commitd899dd29f49a91fa5fe795eb025eadda5dade460 (patch)
treee71d6d94f02ec468b4fc987c49a5a39de4bf1b83 /docs/automation/vyos-api.rst
parentbabc6089b7a940af878e5ba5fd6dd790f66151cc (diff)
downloadvyos-documentation-d899dd29f49a91fa5fe795eb025eadda5dade460.tar.gz
vyos-documentation-d899dd29f49a91fa5fe795eb025eadda5dade460.zip
T5740: Generate wiregurad keys via HTTP-API fails
Fix deprecated example
Diffstat (limited to 'docs/automation/vyos-api.rst')
-rw-r--r--docs/automation/vyos-api.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/automation/vyos-api.rst b/docs/automation/vyos-api.rst
index afcc1767..8fad05ca 100644
--- a/docs/automation/vyos-api.rst
+++ b/docs/automation/vyos-api.rst
@@ -250,13 +250,14 @@ The ``generate`` endpoint run a ``generate`` command.
.. code-block:: none
curl -k --location --request POST 'https://vyos/generate' \
- --form data='{"op": "generate", "path": ["wireguard", "default-keypair"]}' \
+ --form data='{"op": "generate", "path": ["pki", "wireguard", "key-pair"]}' \
--form key='MY-HTTPS-API-PLAINTEXT-KEY'
response:
{
"success": true,
- "data": "",
+ "data": "Private key: CFZR2eyhoVZwk4n3JFPMJx3E145f1EYgDM+ubytXYVY=\n
+ Public key: jjtpPT8ycI1Q0bNtrWuxAkO4k88Xwzg5VHV9xGZ58lU=\n\n",
"error": null
}