创建AI集群。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
polardb:CreateAIDBCluster |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-beijing |
| ZoneId |
string |
否 |
可用区 ID。 |
cn-beijing-i |
| DBNodeClass |
string |
是 |
节点规格 |
polar.pg.g4.6xlarge.gu4 |
| DBClusterDescription |
string |
否 |
集群描述,可模糊查询。 |
test |
| PayType |
string |
是 |
付费类型,取值范围如下:
|
Postpaid |
| AutoRenew |
string |
否 |
是否自动续费,取值范围如下:
默认为 false。 说明
当参数 PayType 取值为 Prepaid 时,该参数才生效。 |
false |
| Period |
string |
否 |
若付费类型为 Prepaid 时,该参数为必传参数。指定预付费集群为包年或包月类型。
|
5 |
| UsedTime |
string |
否 |
若付费类型为 Prepaid 时,该参数为必传参数。
|
1 |
| VPCId |
string |
是 |
专有网络 ID。 |
vpc-******************* |
| VSwitchId |
string |
是 |
虚拟交换机 ID。 |
vsw-********** |
| SecurityGroupId |
string |
否 |
安全组 ID |
sg-bp************** |
| StorageType |
string |
否 |
存储类型。 |
essdpl0 |
| StorageSpace |
integer |
否 |
存储空间。 |
1024 |
| Password |
string |
否 |
密码 |
xxx |
| KubeConfig |
string |
否 |
Kubernetes 配置 |
xxx |
| KubeClusterId |
string |
否 |
ACK 集群 ID |
xxxxxxxxxxxxxxxxxxxxxxx |
| KubeType |
string |
否 |
aideploy |
aideploy |
| AckAdmin |
string |
否 |
是否被 ACK 集群纳管 |
yes |
| ManagementMode |
string |
否 |
管理方式 |
ack |
| KubeManagement |
string |
否 |
K8s 集群管理方式 |
self_k8s |
| ModelName |
string |
否 |
Qwen3-30B-A3B |
|
| Extension |
string |
否 |
扩展 |
maas |
| InferenceEngine |
string |
否 |
推理引擎 |
sglang |
| TimeSlices |
array<object> |
否 |
按量售卖区间 |
|
|
object |
否 |
按量售卖区间 |
||
| BeginTime |
integer |
否 |
任务开始时间,格式为 |
1758729600 |
| EndTime |
integer |
否 |
查询结束时间,查询结束时间需晚于开始时间,格式为 |
1758733200 |
| DBClusterId |
string |
否 |
应用依赖的 PolarDB 实例 ID |
pc-****************** |
| KubernetesConfig |
string |
否 |
Kubernetes 配置 |
xxx |
| AutoUseCoupon |
boolean |
否 |
是否自动使用优惠券,取值:
|
false |
| PromotionCode |
string |
否 |
优惠券编号,不填时使用默认优惠券 |
727xxxxxx934 |
| ClientToken |
string |
否 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| DBClusterId |
string |
集群 ID。 |
pc-****************** |
| OrderId |
string |
订单 ID。 |
2035638******* |
| ResourceGroupId |
string |
资源组 ID。 |
rg-************ |
示例
正常返回示例
JSON格式
{
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"DBClusterId": "pc-******************",
"OrderId": "2035638*******",
"ResourceGroupId": "rg-************"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。