Skip to content

Commit e92c821

Browse files
committed
fix(api): curl --user syntax
1 parent f349f3f commit e92c821

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

content/influxdb/v2/api-guide/influxdb-1x/query.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The following example:
117117
##############################################################################
118118

119119
curl --get "http://{{< influxdb/host >}}/query" \
120-
--user "INFLUX_USERNAME":"INFLUX_PASSWORD_OR_TOKEN" \
120+
--user "INFLUX_USERNAME:INFLUX_PASSWORD_OR_TOKEN" \
121121
--data-urlencode "db=BUCKET_NAME" \
122122
--data-urlencode "q=SELECT * FROM cpu_usage"
123123
```
@@ -139,7 +139,7 @@ curl --get "http://{{< influxdb/host >}}/query" \
139139
curl \
140140
--request POST \
141141
"http://{{< influxdb/host >}}/query?db=DATABASE_NAME&rp=RETENTION_POLICY" \
142-
--user "INFLUX_USERNAME":"INFLUX_PASSWORD_OR_TOKEN" \
142+
--user "INFLUX_USERNAME:INFLUX_PASSWORD_OR_TOKEN" \
143143
--header "Content-type: application/vnd.influxql" \
144144
--data "SELECT * FROM cpu_usage WHERE time > now() - 1h"
145145
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ scheme and a [database token](/influxdb3/cloud-dedicated/admin/tokens/#database-
113113

114114

115115
curl --get "https://{{< influxdb/host >}}/query" \
116-
--user "":"DATABASE_TOKEN" \
116+
--user "any:DATABASE_TOKEN" \
117117
--data-urlencode "db=DATABASE_NAME" \
118118
--data-urlencode "q=SELECT * FROM MEASUREMENT"
119119
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ list_code_example: |
2020
<!-- pytest.mark.skip -->
2121
```sh
2222
curl "https://{{< influxdb/host >}}/query" \
23-
--user "":"API_TOKEN" \
23+
--user "any:API_TOKEN" \
2424
--data-urlencode "db=DATABASE_NAME" \
2525
--data-urlencode "rp=RETENTION_POLICY" \
2626
--data-urlencode "q=SELECT * FROM MEASUREMENT"
@@ -97,7 +97,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
9797
#######################################
9898

9999
curl "https://{{< influxdb/host >}}/query" \
100-
--user ":API_TOKEN" \
100+
--user "any:API_TOKEN" \
101101
--data-urlencode "db=DATABASE_NAME" \
102102
--data-urlencode "rp=RETENTION_POLICY" \
103103
--data-urlencode "q=SELECT * FROM MEASUREMENT"

content/influxdb3/clustered/guides/api-compatibility/v1/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
104104
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
105105
```sh
106106
curl --get "https://{{< influxdb/host >}}/query" \
107-
--user "":"DATABASE_TOKEN" \
107+
--user "any:DATABASE_TOKEN" \
108108
--data-urlencode "db=DATABASE_NAME" \
109109
--data-urlencode "q=SELECT * FROM MEASUREMENT"
110110
```

content/shared/influxdb3-query-guides/execute-queries/influxdb-v1-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
6060
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
6161
```sh
6262
curl --get "https://{{< influxdb/host >}}/query" \
63-
--user "":"DATABASE_TOKEN" \
63+
--user "any:DATABASE_TOKEN" \
6464
--data-urlencode "db=DATABASE_NAME" \
6565
--data-urlencode "q=SELECT * FROM home"
6666
```

content/shared/influxdb3-write-guides/http-api/compatibility-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
132132
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
133133
```sh
134134
curl -i "https://{{< influxdb/host >}}/write?db=DATABASE_NAME&precision=s" \
135-
--user "":"DATABASE_TOKEN" \
135+
--user "any:DATABASE_TOKEN" \
136136
--header "Content-type: text/plain; charset=utf-8" \
137137
--data-binary 'home,room=kitchen temp=72 1641024000'
138138
```

0 commit comments

Comments
 (0)