influx scripts list(列出脚本)
The influx scripts list
command lists and searches for invokable scripts in InfluxDB.(influx scripts list
命令列出并搜索 InfluxDB 中可调用的脚本。)
Usage(用法)
influx scripts list [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 list command(list 命令的帮助信息) | ||
--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 | Inspect communication with InfluxDB servers(检查与 InfluxDB 服务器的通信) | string(字符串) | ||
--json | Output data as JSON (default false )(将数据输出为 JSON 格式(默认 false )) | INFLUX_OUTPUT_JSON | ||
-l | --limit | Number of scripts to return (default 0 )(要返回的脚本数量(默认 0 )) | integer(整数) | |
-o | --offset | Pagination offset (default 0 )(分页偏移量(默认 0 )) | integer(整数) | |
--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 令牌)
- List all invokable scripts(列出所有可调用脚本)
- Limit the number of invokable scripts returned to 20(限制返回的可调用脚本数量为 20)
List all invokable scripts(列出所有可调用脚本)
influx scripts list
Limit the number of invokable scripts returned to 20(限制返回的可调用脚本数量为 20)
influx scripts list --limit 20
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 支持。)