ti db describe-db-cluster-branch
根据集群 ID 和分支 ID 描述一个分支。默认的 FULL 视图会返回 TiDB Cloud API 提供的完整分支详细信息;使用 --view BASIC 可仅请求基本信息。该命令会在读取分支前验证父集群是否为 Starter。
语法
ti db describe-db-cluster-branch
--db-cluster-branch-id <string>
--db-cluster-id <string>
[--help]
[--version]
[--view <string>]
选项
--db-cluster-branch-id <string>: Starter DB cluster branch ID。[required]--db-cluster-id <string>: Starter DB cluster ID。[required]--help: 显示帮助信息。--version: 显示版本信息。--view <string>: 详细级别:BASIC或FULL。如果省略,TiDB Cloud API 使用FULL。
有关所有命令共享的选项,请参见全局选项。
示例
描述一个分支:
# Return full lifecycle and connection details for one branch. ti db describe-db-cluster-branch --db-cluster-id "<cluster-id>" --db-cluster-branch-id "<branch-id>" --view FULL