Manage tokens
InfluxDB uses token authentication to authorize access to data in your InfluxDB Cloud Dedicated cluster. Each token grants read and write permissions to one or more databases and allows for actions like writing and querying data.
All read and write actions performed against time series data in your InfluxDB
Cloud Dedicated cluster must be authorized using a token. Administrative actions
such as managing tokens and databases are authorized using management tokens
issued by Auth0. Management tokens allow clients, such as the influxctl
CLI,
to perform administrative actions.
Store secure tokens in a secret store
Token strings are returned only on token creation. We recommend storing database tokens in a secure secret store.
Tokens cannot be updated
Once created, token permissions cannot be updated. If you need a token with different permissions, create a token with the appropriate permissions.
Create a token
Use the influxctl token create
command to create a database token in your InfluxDB Cloud Dedicated cluster. Provide a token description and grant permissions to databases.
influxctl token create \
--write-database <DATABASE_NAME> \
--read-database <DATABASE_NAME> \
<TOKEN_DESCRIPTION>
List tokens
Use the influxctl token list
command to list tokens in your InfluxDB Cloud Dedicated cluster.
influxctl token list
Delete a token
Use the influxctl token delete
command to delete a token from your InfluxDB Cloud Dedicated 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:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.