Creates an AI cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateAIDBCluster |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-beijing |
| ZoneId |
string |
No |
The zone ID. |
cn-beijing-i |
| DBNodeClass |
string |
No |
The node specifications. |
polar.pg.g4.6xlarge.gu4 |
| DBClusterDescription |
string |
No |
The description of the cluster. Fuzzy match is supported. |
test |
| PayType |
string |
Yes |
The billing method. Valid values:
|
Postpaid |
| AutoRenew |
string |
No |
Specifies whether to enable auto-renewal. Valid values:
Default value: false. Note
This parameter takes effect only when the PayType parameter is set to Prepaid. |
false |
| Period |
string |
No |
This parameter is required when the PayType parameter is set to Prepaid. Specifies the billing cycle of the subscription cluster. Valid values:
|
5 |
| UsedTime |
string |
No |
The subscription duration. This parameter is required when the PayType parameter is set to Prepaid.
|
1 |
| VPCId |
string |
Yes |
The ID of the VPC. |
vpc-******************* |
| VSwitchId |
string |
Yes |
The ID of the vSwitch. |
vsw-********** |
| SecurityGroupId |
string |
No |
The ID of the security group. |
sg-bp************** |
| StorageType |
string |
No |
The storage type. |
essdpl0 |
| StorageSpace |
integer |
No |
The storage space. |
1024 |
| Password |
string |
No |
The password. |
xxx |
| KubeConfig |
string |
No |
The Kubernetes configuration. |
xxx |
| KubeClusterId |
string |
No |
The ID of the ACK cluster. |
xxxxxxxxxxxxxxxxxxxxxxx |
| KubeType |
string |
No |
aideploy |
aideploy |
| AckAdmin |
string |
No |
Specifies whether the cluster is managed by an ACK cluster. |
yes |
| ManagementMode |
string |
No |
The management mode. |
ack |
| KubeManagement |
string |
No |
The management mode of the Kubernetes cluster. |
self_k8s |
| ModelName |
string |
No |
The name of the model. |
Qwen3-30B-A3B |
| Extension |
string |
No |
The extension. |
maas |
| InferenceEngine |
string |
No |
The inference engine. |
sglang |
| Capacity |
integer |
No |
The initial model capacity of the instance. The value must be a positive integer. A capacity unit of 1000 is equivalent to one L20N card. |
4000 |
| TimeSlices |
array<object> |
No |
The pay-as-you-go time ranges. |
|
|
object |
No |
The pay-as-you-go time ranges. |
||
| BeginTime |
integer |
No |
The start time of the task. Specify the time in the |
1758729600 |
| EndTime |
integer |
No |
The end time of the query. The end time must be later than the start time. Specify the time in the |
1758733200 |
| DBClusterId |
string |
No |
The PolarDB instance ID on which the application depends. |
pc-****************** |
| KubernetesConfig |
string |
No |
The Kubernetes configuration. |
xxx |
| AutoUseCoupon |
boolean |
No |
Specifies whether to automatically use coupons. Valid values:
|
false |
| PromotionCode |
string |
No |
The coupon code. If you do not specify this parameter, the default coupon is used. |
727xxxxxx934 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can generate the token on the client side. Ensure that the token is unique across different requests. The token is case-sensitive and can be up to 64 ASCII characters in length. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
| ModelSpace |
string |
No |
The model operator space. |
pms-xxx |
| CreatePublicEndpoint |
string |
No |
Specifies whether to create a public endpoint. |
ON |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| DBClusterId |
string |
The ID of the cluster. |
pc-****************** |
| OrderId |
string |
The ID of the order. |
2035638******* |
| RequestId |
string |
Id of the request |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-************ |
Examples
Success response
JSON format
{
"DBClusterId": "pc-******************",
"OrderId": "2035638*******",
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"ResourceGroupId": "rg-************"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | The specified parameters are invalid. | The specified parameters are invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.