@@ -21,12 +21,6 @@ Provide the following with your request:
21
21
22
22
- ** Headers:**
23
23
- ** Authorization:** ` Bearer AUTH_TOKEN `
24
-
25
- > [ !Note]
26
- > While in beta, {{< product-name >}} does not require an authorization
27
- > token. You can either omit this header or include it with an arbitrary
28
- > token string.
29
-
30
24
- ** Query parameters:**
31
25
- ** db** : the database to query
32
26
- ** rp** : Optional: the retention policy to query
@@ -44,9 +38,9 @@ curl --get https://{{< influxdb/host >}}/query \
44
38
Replace the following configuration values:
45
39
46
40
- {{% code-placeholder-key %}}` DATABASE_NAME ` {{% /code-placeholder-key %}}:
47
- the name of the database to query
41
+ the name of the [ database] ( /influxdb3/version/admin/databases/ ) to query
48
42
- {{% code-placeholder-key %}}` AUTH_TOKEN ` {{% /code-placeholder-key %}}:
49
- your authorization token
43
+ your {{< product-name >}} {{% token-link %}}{{% show-in "enterprise" %}} with read access to the database{{% /show-in %}}
50
44
51
45
## Return results as JSON or CSV
52
46
@@ -57,7 +51,7 @@ with the `application/csv` or `text/csv` MIME type:
57
51
{{% code-placeholders "(DATABASE|AUTH)_ (NAME|TOKEN)" %}}
58
52
``` sh
59
53
curl --get https://{{< influxdb/host > }}/query \
60
- --header " Authorization: BEARER AUTH_TOKEN" \
54
+ --header " Authorization: Bearer AUTH_TOKEN" \
61
55
--header " Accept: application/csv" \
62
56
--data-urlencode " db=DATABASE_NAME" \
63
57
--data-urlencode " q=SELECT * FROM home"
0 commit comments