ticloud serverless spending-limit
为 TiDB Cloud Serverless 集群设置每月的最大 消费限额:
ticloud serverless spending-limit [flags]
示例
以交互模式为 TiDB Cloud Serverless 集群设置消费限额:
ticloud serverless spending-limit
以非交互模式为 TiDB Cloud Serverless 集群设置消费限额:
ticloud serverless spending-limit -c <cluster-id> --monthly <spending-limit-monthly>
参数说明
在非交互模式下,你需要手动输入所需的参数。在交互模式下,你只需按照 CLI 提示填写即可。
| Flag | 描述 | 是否必需 | 备注 |
|---|---|---|---|
| -c, --cluster-id string | 指定集群的 ID。 | 是 | 仅在非交互模式下生效。 |
| --monthly int32 | 指定每月最大消费限额(单位为美元分)。 | 是 | 仅在非交互模式下生效。 |
| -h, --help | 显示该命令的帮助信息。 | 否 | 在非交互和交互模式下均可用。 |
继承参数
| Flag | 描述 | 是否必需 | 备注 |
|---|---|---|---|
| --no-color | 禁用输出中的颜色。 | 否 | 仅在非交互模式下生效。在交互模式下,禁用颜色可能会影响部分 UI 组件的显示。 |
| -P, --profile string | 指定该命令使用的活动 用户配置文件。 | 否 | 在非交互和交互模式下均可用。 |
| -D, --debug | 启用调试模式。 | 否 | 在非交互和交互模式下均可用。 |
反馈
如果你对 TiDB Cloud CLI 有任何问题或建议,欢迎创建 issue。我们也欢迎任何形式的贡献。