influx v1 auth create
influx v1 auth create command creates a legacy authorization with the InfluxDB 1.x compatibility API.
influx v1 auth create [flags]
|Flag||Description||Input type||Maps to ?|
|Config name to use for command||string|
|Path to the influx CLI configurations (default: ||string|
|Help for the |
|Hide the table headers (default: |
|HTTP address of InfluxDB||string|
|Output data as JSON (default: |
|Don’t prompt for a password (to use the token, you must set a password with |
|Organization name (mutually exclusive with ||string|
|Organization ID (mutually exclusive with ||string|
|Password to set on the authorization|
|Bucket ID to assign read permissions to|
|Skip TLS certificate verification|
|(Required) Token username||string|
|Bucket ID(s) to assign write permissions to||stringArray|
The examples below assume your InfluxDB host, organization, and token are
provided by the active
influx CLI configuration.
If you do not have a CLI configuration set up, use the appropriate flags to provide these required credentials.
Create a v1 authorization with read and write permissions
# Create an authorization with read and write access to bucket 00xX00o0X001 # but only read access to bucket 00xX00o0X002 influx v1 auth create \ --read-bucket 00xX00o0X001 \ --read-bucket 00xX00o0X002 \ --write-bucket 00xX00o0X001 \ --username example-user
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.