diff options
author | Robert Göhler <github@ghlr.de> | 2024-02-08 10:14:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 10:14:07 +0100 |
commit | d35cd78ce8a67f7e626d52c6b787ae5b3c1dd44d (patch) | |
tree | 05660615cc48bf60ec8dcd3d6c21b055946c7f22 | |
parent | c61dd2ac075f050fcf076d9812bb77fa707fd8ce (diff) | |
parent | d899dd29f49a91fa5fe795eb025eadda5dade460 (diff) | |
download | vyos-documentation-d35cd78ce8a67f7e626d52c6b787ae5b3c1dd44d.tar.gz vyos-documentation-d35cd78ce8a67f7e626d52c6b787ae5b3c1dd44d.zip |
Merge pull request #1270 from HollyGurza/T5740
T5740: Generate wiregurad keys via HTTP-API fails
-rw-r--r-- | docs/automation/vyos-api.rst | 5 |
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 } |