Skip to content

Commit aa4e8c4

Browse files
committed
docs(influxdb3): scope token placeholder per tab and move replace instruction
1 parent 9841629 commit aa4e8c4

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed
Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
1-
Manage tokens to authenticate and authorize access to resources and data in your
2-
{{< product-name >}} instance.
1+
Manage tokens to authenticate and authorize access to resources and data in your {{< product-name >}} instance.
2+
3+
## Provide your token
4+
5+
Before running CLI commands or making HTTP API requests, you must provide a valid token to authenticate.
6+
7+
Use one of the following methods to provide your token:
8+
9+
{{< code-tabs-wrapper >}}
10+
11+
{{% code-tabs %}}
12+
[CLI](#cli-auth)
13+
[HTTP API](#http-api-auth)
14+
{{% /code-tabs %}}
15+
16+
{{% code-tab-content %}}
17+
18+
{{% code-placeholders "your-token" %}}
19+
```bash
20+
# Export your token as an environment variable
21+
export INFLUXDB3_AUTH_TOKEN=your-token
22+
```
23+
{{% /code-placeholders %}}
24+
25+
Replace `your-token` with your actual InfluxDB 3 token.
26+
27+
{{% /code-tab-content %}}
28+
29+
{{% code-tab-content %}}
30+
31+
{{% code-placeholders "your-token" %}}
32+
33+
```bash
34+
# Add your token to the HTTP Authorization header
35+
--header "Authorization: Bearer your-token"
36+
```
37+
38+
{{% /code-placeholders %}}
39+
40+
Replace `your-token` with your actual InfluxDB 3 token.
41+
42+
{{% /code-tab-content %}}
43+
44+
{{< /code-tabs-wrapper >}}
345

446
{{< children hlevel="h2" readmore=true hr=true >}}

content/shared/influxdb3-admin/tokens/admin/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ data and resources in your InfluxDB 3 instance.
1212
> #### Required permissions
1313
>
1414
> Listing admin tokens requires a valid InfluxDB {{% token-link "admin" %}}{{% show-in "enterprise" %}} or a token with read access to the `_internal` system database{{% /show-in %}}.
15-
> For more information about providing a token, see <LINK_TO_NEW_TOKEN_CONTENT>.
15+
> For more information about providing a token, see [provide your token](/influxdb3/core/admin/tokens/#provide-your-token).
1616
1717

1818
## List all tokens

0 commit comments

Comments
 (0)