Update _index.md

Document did not show the arguments for --permission at the correct place. Needed to be moved from the end of the statement to behind --permission
pull/6098/head
jaal2001 2025-05-28 17:41:44 +02:00 committed by GitHub
parent dc533920f1
commit a0bc2aa6b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -362,12 +362,12 @@ The following example shows how to create a database token that expires in 90 da
```bash
influxdb3 create token \
--permission \
--permission "db:*:read,write"\
--expiry 90d \
--token ADMIN_TOKEN \
--host http://{{< influxdb/host >}} \
--name "rw all databases" \
"db:*:read,write"
```
{{% /code-placeholders %}}
@ -402,12 +402,12 @@ The following example shows how to create a system token that expires in 1 year
```bash
influxdb3 create token \
--permission \
--permission "system:*:read"\
--expiry 1y \
--token ADMIN_TOKEN \
--host http://{{< influxdb/host >}} \
--name "all system endpoints" \
"system:*:read"
```
{{% /code-placeholders %}}
@ -1673,4 +1673,4 @@ Replace the following placeholders with your values:
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}: your {{% token-link "admin" %}}
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}: the name of the database to create the file index in
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}: the name of the table to create the file index in
- {{% code-placeholder-key %}}`COLUMNS`{{% /code-placeholder-key %}}: a comma-separated list of columns to index on, for example, `host,application`
- {{% code-placeholder-key %}}`COLUMNS`{{% /code-placeholder-key %}}: a comma-separated list of columns to index on, for example, `host,application`