diff --git a/docs/multi-stage-query/api.md b/docs/multi-stage-query/api.md index db788c92154..19e1e11c4cc 100644 --- a/docs/multi-stage-query/api.md +++ b/docs/multi-stage-query/api.md @@ -89,8 +89,8 @@ curl --location --request POST 'https://:@:

/status ```bash # Make sure you replace `username`, `password`, `your-instance`, `port`, and `taskId` with the values for your deployment. -curl --location --request GET 'https://:@:/druid/indexer/v1/task//status' +curl --location --request GET 'https://:@:/druid/indexer/v1/task//status' ``` @@ -152,13 +152,13 @@ curl --location --request GET 'https://:@:/d ```python import requests -# Make sure you replace `username`, `password`, `your-instance`, `port`, and `taskId` with the values for your deployment. -url = "https://:@:/druid/indexer/v1/task//status" +# Make sure you replace `your-instance`, `port`, and `taskId` with the values for your deployment. +url = "https://:/druid/indexer/v1/task//status" payload={} headers = {} -response = requests.request("GET", url, headers=headers, data=payload) +response = requests.get(url, headers=headers, data=payload, auth=('USER', 'PASSWORD')) print(response.text) ``` @@ -220,7 +220,7 @@ GET /druid/indexer/v1/task//reports ```bash # Make sure you replace `username`, `password`, `your-instance`, `port`, and `taskId` with the values for your deployment. -curl --location --request GET 'https://:@:/druid/indexer/v1/task//reports' +curl --location --request GET 'https://:@:/druid/indexer/v1/task//reports' ``` @@ -228,11 +228,11 @@ curl --location --request GET 'https://:@:/d ```python import requests -# Make sure you replace `username`, `password`, `your-instance`, `port`, and `taskId` with the values for your deployment. -url = "https://:@:/druid/indexer/v1/task//reports" +# Make sure you replace `your-instance`, `port`, and `taskId` with the values for your deployment. +url = "https://:/druid/indexer/v1/task//reports" headers = {} -response = requests.request("GET", url, headers=headers) +response = requests.get(url, headers=headers, auth=('USER', 'PASSWORD')) print(response.text) ``` @@ -604,16 +604,16 @@ curl --location --request POST 'https://:@:

-``` +```python import requests -# Make sure you replace `username`, `password`, `your-instance`, `port`, and `taskId` with the values for your deployment. -url = "https://:@:/druid/indexer/v1/task//shutdown" +# Make sure you replace `your-instance`, `port`, and `taskId` with the values for your deployment. +url = "https://:/druid/indexer/v1/task//shutdown" payload={} headers = {} -response = requests.request("POST", url, headers=headers, data=payload) +response = requests.post(url, headers=headers, data=payload, auth=('USER', 'PASSWORD')) print(response.text) ```