influx auth inactive (禁用认证)
The influx auth inactive
command inactivates an API token in InfluxDB. Inactive tokens do not authorize access to InfluxDB. (influx auth inactive
命令用于禁用 InfluxDB 中的 API 令牌。禁用的令牌不能授权访问 InfluxDB。)
To temporarily disable client access to InfluxDB, inactivate the authentication token the client is using rather than delete the token. If you delete the token, you have to generate a new token and update the client with the new token. By setting a token to inactive, you can activate the token to grant the client access without having to modify the client. (要临时禁用客户端对 InfluxDB 的访问,请禁用客户端正在使用的身份验证令牌,而不是删除令牌。如果删除令牌,则必须生成一个新令牌并使用新令牌更新客户端。通过将令牌设置为禁用,您可以激活令牌以授予客户端访问权限,而无需修改客户端。)
Usage (用法)
influx auth inactive [flags]
Flags (标志)
Flag (标志) | Description (描述) | Input type (输入类型) | Maps to ? (映射到?) | |
---|---|---|---|---|
-c | --active-config (活动配置) | CLI configuration to use for command (用于命令的 CLI 配置) | string (字符串) | |
--configs-path (配置路径) | Path to influx CLI configurations (default ~/.influxdbv2/configs ) (influx CLI 配置的路径 (默认为 ~/.influxdbv2/configs )) | string (字符串) | INFLUX_CONFIGS_PATH | |
-h | --help (帮助) | Help for the inactive command (inactive 命令的帮助) | ||
--hide-headers (隐藏标题) | Hide table headers (default false ) (隐藏表头 (默认为 false )) | INFLUX_HIDE_HEADERS | ||
--host (主机) | HTTP address of InfluxDB (default https://127.0.0.1:8086 ) (InfluxDB 的 HTTP 地址 (默认为 https://127.0.0.1:8086 )) | string (字符串) | INFLUX_HOST | |
--http-debug (HTTP 调试) | Inspect communication with InfluxDB servers. (检查与 InfluxDB 服务器的通信。) | string (字符串) | ||
-i | --id (ID) | (Required) API token ID ( (必需) API 令牌 ID) | string (字符串) | |
--json (JSON) | Output data as JSON (default false ) (将数据输出为 JSON (默认为 false )) | INFLUX_OUTPUT_JSON | ||
--skip-verify (跳过验证) | Skip TLS certificate verification (跳过 TLS 证书验证) | INFLUX_SKIP_VERIFY | ||
-t | --token (令牌) | API token (API 令牌) | string (字符串) | INFLUX_TOKEN |
Examples (示例)
Authentication credentials (身份验证凭据)
The examples below assume your InfluxDB host, organization, and token are provided by either the active influx
CLI configuration or by environment variables (INFLUX_HOST
, INFLUX_ORG
, and INFLUX_TOKEN
). If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags (以下示例假定您的 InfluxDB 主机、组织和令牌由活动的 influx
CLI 配置或环境变量 (INFLUX_HOST
、INFLUX_ORG
和 INFLUX_TOKEN
) 提供。 如果您没有设置 CLI 配置或环境变量,请使用以下标志为每个命令包含这些必需的凭据)
--host
: InfluxDB host (--host
: InfluxDB 主机)-o, --org
or--org-id
: InfluxDB organization name or ID (-o, --org
或--org-id
: InfluxDB 组织名称或 ID)-t, --token
: InfluxDB API token (-t, --token
: InfluxDB API 令牌)
Inactivate an API token (禁用 API 令牌)
influx auth inactive --id 06c86c40a9f36000
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 和本文档提供反馈和错误报告。要获得支持,请使用以下资源)
Customers with an annual or support contract can contact InfluxData Support. (拥有年度或支持合同的客户可以联系 InfluxData 支持。)