From 04a3628cc40cc49ac0c99762800ff0a7f96a80f0 Mon Sep 17 00:00:00 2001 From: Shantanu Gadgil Date: Tue, 15 Aug 2023 00:41:09 +0530 Subject: [PATCH] docs: ampersand and bash backgrounding problem (#18175) the `&` symbol messes up the command when copy pasting into a shell --- website/content/api-docs/agent.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/content/api-docs/agent.mdx b/website/content/api-docs/agent.mdx index c7a696a5c..5e70a2af6 100644 --- a/website/content/api-docs/agent.mdx +++ b/website/content/api-docs/agent.mdx @@ -129,7 +129,7 @@ The table below shows this endpoint's support for ```shell-session $ curl \ --request POST \ - https://localhost:4646/v1/agent/servers?address=1.2.3.4:4647&address=5.6.7.8:4647 + "https://localhost:4646/v1/agent/servers?address=1.2.3.4:4647&address=5.6.7.8:4647" ``` ## Query Self @@ -408,7 +408,7 @@ The table below shows this endpoint's support for ```shell-session $ curl \ --request POST \ - https://localhost:4646/v1/agent/join?address=1.2.3.4&address=5.6.7.8 + "https://localhost:4646/v1/agent/join?address=1.2.3.4&address=5.6.7.8" ``` ### Sample Response @@ -615,10 +615,10 @@ The table below shows this endpoint's support for ```shell-session $ curl \ - https://localhost:4646/v1/agent/monitor?log_level=debug&server_id=leader + "https://localhost:4646/v1/agent/monitor?log_level=debug&server_id=leader" $ curl \ - https://localhost:4646/v1/agent/monitor?log_level=debug&node_id=a57b2adb-1a30-2dda-8df0-25abb0881952 + "https://localhost:4646/v1/agent/monitor?log_level=debug&node_id=a57b2adb-1a30-2dda-8df0-25abb0881952" ``` ### Sample Response @@ -708,19 +708,19 @@ The following table explains when each endpoint is available: ```shell-session $ curl -O -J \ --header "X-Nomad-Token: 8176afd3-772d-0b71-8f85-7fa5d903e9d4" \ - https://localhost:4646/v1/agent/pprof/goroutine?server_id=leader + "https://localhost:4646/v1/agent/pprof/goroutine?server_id=leader" $ go tool pprof goroutine $ curl -O -J \ --header "X-Nomad-Token: 8176afd3-772d-0b71-8f85-7fa5d903e9d4" \ - https://localhost:4646/v1/agent/pprof/profile?seconds=5&node_id=a57b2adb-1a30-2dda-8df0-25abb0881952 + "https://localhost:4646/v1/agent/pprof/profile?seconds=5&node_id=a57b2adb-1a30-2dda-8df0-25abb0881952" $ go tool pprof profile $ curl -O -J \ --header "X-Nomad-Token: 8176afd3-772d-0b71-8f85-7fa5d903e9d4" \ - https://localhost:4646/v1/agent/pprof/trace?&seconds=5&server_id=server1.global + "https://localhost:4646/v1/agent/pprof/trace?&seconds=5&server_id=server1.global" go tool trace trace ```