mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
T5740: Generate wiregurad keys via HTTP-API fails
Fix deprecated example
This commit is contained in:
parent
babc6089b7
commit
d899dd29f4
@ -250,13 +250,14 @@ The ``generate`` endpoint run a ``generate`` command.
|
|||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
curl -k --location --request POST 'https://vyos/generate' \
|
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'
|
--form key='MY-HTTPS-API-PLAINTEXT-KEY'
|
||||||
|
|
||||||
response:
|
response:
|
||||||
{
|
{
|
||||||
"success": true,
|
"success": true,
|
||||||
"data": "",
|
"data": "Private key: CFZR2eyhoVZwk4n3JFPMJx3E145f1EYgDM+ubytXYVY=\n
|
||||||
|
Public key: jjtpPT8ycI1Q0bNtrWuxAkO4k88Xwzg5VHV9xGZ58lU=\n\n",
|
||||||
"error": null
|
"error": null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user