This topic describes how to create 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 availability zone ID. |
cn-beijing-i |
| DBNodeClass |
string |
Yes |
The node specification. |
polar.pg.g4.6xlarge.gu4 |
| DBClusterDescription |
string |
No |
The description of the cluster. You can use the description to perform a fuzzy search. |
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 PayType is set to Prepaid. |
false |
| Period |
string |
No |
The unit of the subscription duration. This parameter is required if PayType is set to Prepaid. Valid values:
|
5 |
| UsedTime |
string |
No |
The subscription duration. This parameter is required if PayType is set to Prepaid.
|
1 |
| VPCId |
string |
Yes |
The virtual private cloud (VPC) ID. |
vpc-******************* |
| VSwitchId |
string |
Yes |
The vSwitch ID. |
vsw-********** |
| SecurityGroupId |
string |
No |
The security group ID. |
sg-bp************** |
| StorageType |
string |
No |
The storage type. |
essdpl0 |
| StorageSpace |
integer |
No |
The storage space. Unit: GB. |
1024 |
| Password |
string |
No |
The password. |
xxx |
| KubeConfig |
string |
No |
The Kubernetes configuration. |
xxx |
| KubeClusterId |
string |
No |
The Container Service for Kubernetes (ACK) cluster ID. |
xxxxxxxxxxxxxxxxxxxxxxx |
| KubeType |
string |
No |
The type of the Kubernetes deployment. |
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 |
| Extension |
string |
No |
The extension. |
maas |
| InferenceEngine |
string |
No |
The inference engine. |
sglang |
| TimeSlices |
array<object> |
No |
The billing intervals for the pay-as-you-go cluster. |
|
|
object |
No |
|
||
| BeginTime |
integer |
No |
|
1758729600 |
| EndTime |
integer |
No |
|
1758733200 |
| DBClusterId |
string |
No |
The ID of the PolarDB cluster that the application depends on. |
pc-****************** |
| KubernetesConfig |
string |
No |
The Kubernetes configuration. |
xxx |
| AutoUseCoupon |
boolean |
No |
Specifies whether to automatically use a coupon. 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. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| DBClusterId |
string |
The cluster ID. |
pc-****************** |
| OrderId |
string |
The order ID. |
2035638******* |
| ResourceGroupId |
string |
The resource group ID. |
rg-************ |
Examples
Success response
JSON format
{
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"DBClusterId": "pc-******************",
"OrderId": "2035638*******",
"ResourceGroupId": "rg-************"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.