创建 AgenticDB 分支
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
polardb:CreateAgenticDBBranch |
create |
*DBCluster
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID |
cn-hangzhou |
| DBClusterId |
string |
是 |
AgenticDB 集群 ID |
pagc-bp1abcdef1234567 |
| TenantId |
string |
是 |
归属 Tenant ID |
t-4b83e0da66674951 |
| ProjectId |
string |
是 |
归属 Project ID |
proj-a1b2c3d4e5f6 |
| BranchName |
string |
是 |
分支名称 |
feature-analytics |
| ParentBranchId |
string |
否 |
父分支 ID,缺省从 main 分支派生 |
br-1a2b3c4d5e6f |
| Description |
string |
否 |
描述 |
Feature branch for analytics |
| ParentTimestamp |
string |
否 |
基于父分支在指定时间点的数据创建分支;不传则使用最新数据。采用带时区的 RFC3339 格式,最多支持 9 位小数秒;不支持空字符串或未来时间。 |
2026-10-15T07:32:00.123456Z |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| BranchComputeClusterId |
string |
分支计算集群 ID |
pc-g0lsayq8c5qe |
| BranchId |
string |
分支 ID |
br-7g8h9i0j1k2l |
| BranchName |
string |
分支名称 |
feature-analytics |
| DBClusterId |
string |
AgenticDB 集群 ID |
pagc-bp1abcdef1234567 |
| ParentBranchId |
string |
父分支 ID |
br-1a2b3c4d5e6f |
| ParentBranchName |
string |
父分支名称 |
main |
| ParentTimestamp |
string |
创建分支时指定的父分支历史时间,采用 UTC RFC3339 格式。未指定历史时间或旧记录可能为空。 |
2026-10-15T07:32:00.123456Z |
| ProjectId |
string |
归属 Project ID |
proj-a1b2c3d4e5f6 |
| ProjectName |
string |
归属 Project 名称 |
analytics-prod |
| RequestId |
string |
请求 ID |
A1B2C3D4-E5F6-7890-ABCD-1234567890AB |
| Status |
string |
状态 |
Active |
示例
正常返回示例
JSON格式
{
"BranchComputeClusterId": "pc-g0lsayq8c5qe",
"BranchId": "br-7g8h9i0j1k2l",
"BranchName": "feature-analytics",
"DBClusterId": "pagc-bp1abcdef1234567",
"ParentBranchId": "br-1a2b3c4d5e6f",
"ParentBranchName": "main",
"ParentTimestamp": "2026-10-15T07:32:00.123456Z",
"ProjectId": "proj-a1b2c3d4e5f6",
"ProjectName": "analytics-prod",
"RequestId": "A1B2C3D4-E5F6-7890-ABCD-1234567890AB",
"Status": "Active"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。