influxd-ctl token
The influxd-ctl token command generates a signed JSON Web Token (JWT).
Usage
influxd-ctl -auth-type jwt -secret <shared secret> token [flags]Requires global flags
influxd-ctl token requires the -auth-type and -secret
global flags.
- Set
-auth-typetojwt - Use
-secretto provide your JWT shared secret
Flags
| Flag | Description |
|---|---|
-exp | Token expiration duration (default is 1m0s) |
Also see influxd-ctl global flags.
Examples
Generate a JWT token that expires in 5 minutes
influxd-ctl \
-auth-type jwt \
-secret sHaR3dS3cRe7 \
token -exp 5mWas 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 Enterprise v1 and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.