File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
cloud-dedicated/guides/api-compatibility/v1
cloud-serverless/guides/api-compatibility/v1
clustered/guides/api-compatibility/v1
influxdb/v2/api-guide/influxdb-1x
influxdb3-query-guides/execute-queries
influxdb3-write-guides/http-api Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ The following example:
117
117
# #############################################################################
118
118
119
119
curl --get " http://{{< influxdb/host >}}/query" \
120
- --user " INFLUX_USERNAME" : " INFLUX_PASSWORD_OR_TOKEN" \
120
+ --user " INFLUX_USERNAME: INFLUX_PASSWORD_OR_TOKEN" \
121
121
--data-urlencode " db=BUCKET_NAME" \
122
122
--data-urlencode " q=SELECT * FROM cpu_usage"
123
123
```
@@ -139,7 +139,7 @@ curl --get "http://{{< influxdb/host >}}/query" \
139
139
curl \
140
140
--request POST \
141
141
" 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" \
143
143
--header " Content-type: application/vnd.influxql" \
144
144
--data " SELECT * FROM cpu_usage WHERE time > now() - 1h"
145
145
```
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ scheme and a [database token](/influxdb3/cloud-dedicated/admin/tokens/#database-
113
113
114
114
115
115
curl --get " https://{{< influxdb/host >}}/query" \
116
- --user " " : " DATABASE_TOKEN" \
116
+ --user " any: DATABASE_TOKEN" \
117
117
--data-urlencode " db=DATABASE_NAME" \
118
118
--data-urlencode " q=SELECT * FROM MEASUREMENT"
119
119
```
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ list_code_example: |
20
20
<!-- pytest.mark.skip -->
21
21
```sh
22
22
curl "https://{{< influxdb/host >}}/query" \
23
- --user "":" API_TOKEN" \
23
+ --user "any: API_TOKEN" \
24
24
--data-urlencode "db=DATABASE_NAME" \
25
25
--data-urlencode "rp=RETENTION_POLICY" \
26
26
--data-urlencode "q=SELECT * FROM MEASUREMENT"
@@ -97,7 +97,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
97
97
# ######################################
98
98
99
99
curl " https://{{< influxdb/host >}}/query" \
100
- --user " :API_TOKEN" \
100
+ --user " any :API_TOKEN" \
101
101
--data-urlencode " db=DATABASE_NAME" \
102
102
--data-urlencode " rp=RETENTION_POLICY" \
103
103
--data-urlencode " q=SELECT * FROM MEASUREMENT"
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
104
104
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
105
105
``` sh
106
106
curl --get " https://{{< influxdb/host >}}/query" \
107
- --user " " : " DATABASE_TOKEN" \
107
+ --user " any: DATABASE_TOKEN" \
108
108
--data-urlencode " db=DATABASE_NAME" \
109
109
--data-urlencode " q=SELECT * FROM MEASUREMENT"
110
110
```
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
60
60
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
61
61
``` sh
62
62
curl --get " https://{{< influxdb/host >}}/query" \
63
- --user " " : " DATABASE_TOKEN" \
63
+ --user " any: DATABASE_TOKEN" \
64
64
--data-urlencode " db=DATABASE_NAME" \
65
65
--data-urlencode " q=SELECT * FROM home"
66
66
```
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ The following example shows how to use cURL with the `Basic` authentication sche
132
132
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
133
133
``` sh
134
134
curl -i " https://{{< influxdb/host >}}/write?db=DATABASE_NAME&precision=s" \
135
- --user " " : " DATABASE_TOKEN" \
135
+ --user " any: DATABASE_TOKEN" \
136
136
--header " Content-type: text/plain; charset=utf-8" \
137
137
--data-binary ' home,room=kitchen temp=72 1641024000'
138
138
```
You can’t perform that action at this time.
0 commit comments