Document `--write-variables` and `--write-annotations` in `influx auth create` (#3939)

* Document --write-variables in influx auth create

Seems like this has not found it's way into the documentation, yet. Here, I added the info to use `--write-variables` which can be granted to users via the `influx auth create` command.

* Update create.md

Added `--write-annotations`.

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
pull/3989/head^2
Chris Blättermann 2022-04-29 02:35:41 +02:00 committed by GitHub
parent 522e71ce95
commit 322724fecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,7 @@ influx auth create [flags]
| | `--skip-verify` | Skip TLS certificate verification | | `INFLUX_SKIP_VERIFY` | | | `--skip-verify` | Skip TLS certificate verification | | `INFLUX_SKIP_VERIFY` |
| `-t` | `--token` | API token | string | `INFLUX_TOKEN` | | `-t` | `--token` | API token | string | `INFLUX_TOKEN` |
| `-u` | `--user` | Username | string | | | `-u` | `--user` | Username | string | |
| | `--write-annotations` | Grant permission to create annotations | | |
| | `--write-bucket` | Grant permission to write to specified a bucket ID | stringArray | | | | `--write-bucket` | Grant permission to write to specified a bucket ID | stringArray | |
| | `--write-buckets` | Grant permission to create and update **all** organization buckets | | | | | `--write-buckets` | Grant permission to create and update **all** organization buckets | | |
| | `--write-checks` | Grant permission to create checks | | | | | `--write-checks` | Grant permission to create checks | | |
@ -60,6 +61,7 @@ influx auth create [flags]
| | `--write-tasks` | Grant permission to create and update tasks | | | | | `--write-tasks` | Grant permission to create and update tasks | | |
| | `--write-telegrafs` | Grant permission to create and update Telegraf configurations | | | | | `--write-telegrafs` | Grant permission to create and update Telegraf configurations | | |
| | `--write-users` | Grant permission to create and update organization users | | | | | `--write-users` | Grant permission to create and update organization users | | |
| | `--write-variables` | Grant permission to create and update variables | | |
## Examples ## Examples
@ -107,6 +109,7 @@ influx auth create \
--read-tasks \ --read-tasks \
--read-telegrafs \ --read-telegrafs \
--read-users \ --read-users \
--write-annotations \
--write-buckets \ --write-buckets \
--write-checks \ --write-checks \
--write-dashboards \ --write-dashboards \
@ -118,7 +121,8 @@ influx auth create \
--write-replications \ --write-replications \
--write-tasks \ --write-tasks \
--write-telegrafs \ --write-telegrafs \
--write-users --write-users \
--write-variables
``` ```
### Create an API token with read and write access to specific buckets ### Create an API token with read and write access to specific buckets