summaryrefslogtreecommitdiff
path: root/docs/automation
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-09 09:29:38 +0000
committerGitHub <noreply@github.com>2024-02-09 09:29:38 +0000
commit583988589f60c0d30ece4b7f740aad25622a6fc3 (patch)
tree7a0ed28923416b2c8abf4ee85f0a52ee53a62ecf /docs/automation
parent2ca41c150c3233cace1d48b40f7ec42a7d4d7576 (diff)
parentc54c051036dbeabaedff91a2d1e71b959646b001 (diff)
downloadvyos-documentation-583988589f60c0d30ece4b7f740aad25622a6fc3.tar.gz
vyos-documentation-583988589f60c0d30ece4b7f740aad25622a6fc3.zip
Merge pull request #1272 from vyos/mergify/bp/sagitta/pr-1270
T5740: Generate wiregurad keys via HTTP-API fails (backport #1270)
Diffstat (limited to 'docs/automation')
-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
}