Skip to content

Commit dabc440

Browse files
committed
chore(test): Remove shared code sample
1 parent 538f9e1 commit dabc440

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

content/influxdb3/cloud-dedicated/guides/api-compatibility/v1/_index.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,16 @@ scheme and a [database token](/influxdb3/cloud-dedicated/admin/tokens/#database-
106106

107107
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
108108
```sh
109-
{{% get-shared-text "api/cloud-dedicated/basic-auth.sh" %}}
109+
#######################################
110+
# Use Basic authentication with a database token
111+
# to query the InfluxDB v1 API
112+
#######################################
113+
114+
115+
curl --get "https://{{< influxdb/host >}}/query" \
116+
--user "":"DATABASE_TOKEN" \
117+
--data-urlencode "db=DATABASE_NAME" \
118+
--data-urlencode "q=SELECT * FROM MEASUREMENT"
110119
```
111120
{{% /code-placeholders %}}
112121

@@ -136,7 +145,18 @@ The following example shows how to use cURL with query string authentication and
136145

137146
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
138147
```sh
139-
{{% get-shared-text "api/cloud-dedicated/querystring-auth.sh" %}}
148+
#######################################
149+
# Use an InfluxDB 1.x compatible username and password
150+
# to query the InfluxDB v1 API
151+
#######################################
152+
# Use authentication query parameters:
153+
# ?p=DATABASE_TOKEN
154+
#######################################
155+
156+
curl --get "https://{{< influxdb/host >}}/query" \
157+
--data-urlencode "p=DATABASE_TOKEN" \
158+
--data-urlencode "db=DATABASE_NAME" \
159+
--data-urlencode "q=SELECT * FROM MEASUREMENT"
140160
```
141161
{{% /code-placeholders %}}
142162

shared/text/api/cloud-dedicated/basic-auth.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

shared/text/api/cloud-dedicated/querystring-auth.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)