Manage database tokens
InfluxDB Clustered database tokens grant read and write permissions to one or more databases and allow for actions like writing and querying data.
Create a database token
Use the influxctl token create
command to create a database token for reading and writing data in your InfluxDB cluster. Provide a token description and permissions for databases.
influxctl token create \
--read-database DATABASE1_NAME \
--read-database DATABASE2_NAME \
--write-database DATABASE2_NAME \
"Read-only on DATABASE1_NAME, Read/write on DATABASE2_NAME"
Update a database token
Use the influxctl token update
command to update a database token’s permissions in your InfluxDB cluster.
influxctl token update \
--read-database <DATABASE1_NAME> \
--read-database <DATABASE2_NAME> \
--write-database <DATABASE2_NAME> \
<TOKEN_ID>
List database tokens
Use the influxctl token list
command to list tokens in your InfluxDB cluster.
influxctl token list
Delete a database token
Use the influxctl token delete
command to delete a token from your InfluxDB cluster and revoke all permissions associated with the token. Provide the ID of the token you want to delete.
influxctl token delete <TOKEN_ID>
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.