ti db list-db-cluster-branches
列出一个 TiDB Cloud Starter 实例的分支,并可选择使用分页。该命令会在列出分支前验证父集群是否为 Starter。
语法
ti db list-db-cluster-branches
--db-cluster-id <string>
[--help]
[--page-size <int32>]
[--page-token <string>]
[--version]
选项
--db-cluster-id <string>: Starter DB 集群 ID。[必需]--help: 显示帮助信息。--page-size <int32>: 要请求的分支数量。如果省略或设置为0,API 最多返回10个。API 的最大值为100;大于100的值会被设置为100。--page-token <string>: 上一次调用 list-db-cluster-branches 返回的分页令牌。--version: 显示版本信息。
有关所有命令共享的选项,请参见全局选项。
示例
列出集群分支:
# Return all branches that belong to the selected TiDB Cloud Starter instance. ti db list-db-cluster-branches --db-cluster-id "<cluster-id>"