Update a token
In the navigation menu on the left, select Data (Load Data) > Tokens.
Load Data
Click the pencil icon next to the token’s name in the Description column.
Update the token description, then click anywhere else to save.
-
Load Data
Click the Status toggle.
Use the influx auth active command to activate a token.
This command requires an authorization ID, which is available in the output of .
influx auth find --json
Use the to deactivate a token.
This command requires an authorization ID, which is available in the output of influx auth find
.
To get the current status of a token, use the JSON output of the influx auth list command.
influx auth find --json
Use the /api/v2/authorizations
InfluxDB API endpoint to update the description and status of a token.
Disable a token
# Update the description and status of the first authorization listed for the user.
curl --request GET \
--header "Authorization: Token ${INFLUX_TOKEN}" \
--header 'Content-type: application/json' \
| xargs -I authid curl --request PATCH \
http://localhost:8086/api/v2/authorizations/authid \
--header "Authorization: Token ${INFLUX_TOKEN}" \
--header 'Content-type: application/json' \
--data '{
"description": "deactivated_auth",