docs(influxdb3): scope token placeholder per tab and move replace instruction
parent
98416297aa
commit
aa4e8c4c85
|
@ -1,4 +1,46 @@
|
|||
Manage tokens to authenticate and authorize access to resources and data in your
|
||||
{{< product-name >}} instance.
|
||||
Manage tokens to authenticate and authorize access to resources and data in your {{< product-name >}} instance.
|
||||
|
||||
## Provide your token
|
||||
|
||||
Before running CLI commands or making HTTP API requests, you must provide a valid token to authenticate.
|
||||
|
||||
Use one of the following methods to provide your token:
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
|
||||
{{% code-tabs %}}
|
||||
[CLI](#cli-auth)
|
||||
[HTTP API](#http-api-auth)
|
||||
{{% /code-tabs %}}
|
||||
|
||||
{{% code-tab-content %}}
|
||||
|
||||
{{% code-placeholders "your-token" %}}
|
||||
```bash
|
||||
# Export your token as an environment variable
|
||||
export INFLUXDB3_AUTH_TOKEN=your-token
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace `your-token` with your actual InfluxDB 3 token.
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
|
||||
{{% code-tab-content %}}
|
||||
|
||||
{{% code-placeholders "your-token" %}}
|
||||
|
||||
```bash
|
||||
# Add your token to the HTTP Authorization header
|
||||
--header "Authorization: Bearer your-token"
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace `your-token` with your actual InfluxDB 3 token.
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
{{< children hlevel="h2" readmore=true hr=true >}}
|
||||
|
|
|
@ -12,7 +12,7 @@ data and resources in your InfluxDB 3 instance.
|
|||
> #### Required permissions
|
||||
>
|
||||
> 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 %}}.
|
||||
> For more information about providing a token, see <LINK_TO_NEW_TOKEN_CONTENT>.
|
||||
> For more information about providing a token, see [provide your token](/influxdb3/core/admin/tokens/#provide-your-token).
|
||||
|
||||
|
||||
## List all tokens
|
||||
|
|
Loading…
Reference in New Issue