chore(test): Remove shared code sample
parent
538f9e1a02
commit
dabc440ca3
|
|
@ -106,7 +106,16 @@ scheme and a [database token](/influxdb3/cloud-dedicated/admin/tokens/#database-
|
|||
|
||||
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
|
||||
```sh
|
||||
{{% get-shared-text "api/cloud-dedicated/basic-auth.sh" %}}
|
||||
#######################################
|
||||
# Use Basic authentication with a database token
|
||||
# to query the InfluxDB v1 API
|
||||
#######################################
|
||||
|
||||
|
||||
curl --get "https://{{< influxdb/host >}}/query" \
|
||||
--user "":"DATABASE_TOKEN" \
|
||||
--data-urlencode "db=DATABASE_NAME" \
|
||||
--data-urlencode "q=SELECT * FROM MEASUREMENT"
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
|
|
@ -136,7 +145,18 @@ The following example shows how to use cURL with query string authentication and
|
|||
|
||||
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
|
||||
```sh
|
||||
{{% get-shared-text "api/cloud-dedicated/querystring-auth.sh" %}}
|
||||
#######################################
|
||||
# Use an InfluxDB 1.x compatible username and password
|
||||
# to query the InfluxDB v1 API
|
||||
#######################################
|
||||
# Use authentication query parameters:
|
||||
# ?p=DATABASE_TOKEN
|
||||
#######################################
|
||||
|
||||
curl --get "https://{{< influxdb/host >}}/query" \
|
||||
--data-urlencode "p=DATABASE_TOKEN" \
|
||||
--data-urlencode "db=DATABASE_NAME" \
|
||||
--data-urlencode "q=SELECT * FROM MEASUREMENT"
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
#######################################
|
||||
# Use Basic authentication with a database token
|
||||
# to query the InfluxDB v1 API
|
||||
#######################################
|
||||
|
||||
|
||||
curl --get "https://cluster-id.a.influxdb.io/query" \
|
||||
--user "":"DATABASE_TOKEN" \
|
||||
--data-urlencode "db=DATABASE_NAME" \
|
||||
--data-urlencode "q=SELECT * FROM MEASUREMENT"
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#######################################
|
||||
# Use an InfluxDB 1.x compatible username and password
|
||||
# to query the InfluxDB v1 API
|
||||
#######################################
|
||||
# Use authentication query parameters:
|
||||
# ?p=DATABASE_TOKEN
|
||||
#######################################
|
||||
|
||||
curl --get "https://cluster-id.a.influxdb.io/query" \
|
||||
--data-urlencode "p=DATABASE_TOKEN" \
|
||||
--data-urlencode "db=DATABASE_NAME" \
|
||||
--data-urlencode "q=SELECT * FROM MEASUREMENT"
|
||||
Loading…
Reference in New Issue