CreateDBResourceGroup
Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
Operation description
For the service registration address of the current service, refer to Endpoints.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateDBResourceGroup |
create |
*DBClusterLakeVersion
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster. |
amv-bp11q28kvl688**** |
| GroupName |
string |
Yes |
The name of the resource group.
|
test_group |
| GroupType |
string |
Yes |
The type of the resource group. Valid values:
Note
For more information about resource groups in Data Lakehouse Edition, refer to Resource group overview (Data Lakehouse Edition). |
Job |
| MinComputeResource |
string |
No |
The minimum reserved computing resources, in ACUs.
|
0ACU |
| MaxComputeResource |
string |
No |
The maximum reserved computing resources, in ACUs.
|
48ACU |
| ClusterSizeResource |
string |
No |
The reserved parameter. This parameter is not applicable. |
24ACU |
| MinClusterCount |
integer |
No |
The reserved parameter. This parameter is not applicable. |
1 |
| MaxClusterCount |
integer |
No |
The reserved parameter. This parameter is not applicable. |
1 |
| ClusterMode |
string |
No |
The reserved parameter. This parameter is not applicable. |
AutoScale |
| EnableSpot |
boolean |
No |
Specifies whether to enable the spot instance feature for the resource group. After you enable spot instances, the unit price of resources decreases, but the instances may be released. This feature can be enabled only for Job resource groups. Valid values:
|
True |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query the region ID of an AnalyticDB for MySQL Data Lakehouse Edition (3.0) cluster. |
cn-hangzhou |
| Rules |
array<object> |
No |
The job routing rules. |
|
|
object |
No |
The list of rules. |
||
| GroupName |
string |
No |
The name of the resource group.
|
test_group |
| QueryTime |
string |
No |
The query execution time threshold, in milliseconds. |
180000 |
| TargetGroupName |
string |
No |
The name of the target resource group. |
job |
| Engine |
string |
No |
The database engine. Valid values:
|
SparkWarehouse |
| EngineParams |
object |
No |
The engine configurations. |
{"spark.adb.version":"3.5"} |
|
any |
No |
The value of a single engine configuration parameter. |
3.5 |
|
| AutoStopInterval |
string |
No |
The auto-stop time, in minutes. |
5m |
| SpecName |
string |
No |
The specification name. |
ADB.MLLarge.2 |
| MinGpuQuantity |
integer |
No |
The minimum number of GPUs. |
1 |
| MaxGpuQuantity |
integer |
No |
The maximum number of GPUs. |
2 |
| TargetResourceGroupName |
string |
No |
The name of the target resource group. |
test |
| RayConfig |
object |
No |
The Ray configuration information. Note
This parameter is required when the resource group is an AI resource group and the corresponding engine is RayCluster. |
|
| AuthToken |
string |
No |
The Ray authentication token. |
KnDC43ClfXqv&P*s |
| Category |
string |
No |
The Ray cluster type. Valid values:
Valid values:
|
BASIC |
| EnableUserEni |
boolean |
No |
Specifies whether to enable user ENI connectivity. |
|
| HeadAllocateUnit |
string |
No |
The allocation unit of the head node. |
1 |
| HeadDiskCapacity |
string |
No |
The disk size of the head node. |
100G |
| HeadSpec |
string |
No |
The node specifications of the head node. |
xlarge |
| HeadSpecType |
string |
No |
The resource type of the head node. Valid values:
|
CPU |
| StorageMounts |
array<object> |
No |
The list of storage resources to mount. |
|
|
object |
No |
|||
| MountPath |
string |
No |
The storage mount path. |
/mnt/data01 |
| StorageId |
integer |
No |
The ID of the storage resource to mount. |
1 |
| StorageName |
string |
No |
The name of the storage resource to mount. This parameter and StorageId are mutually exclusive. |
training-data |
| UserDefinedRequirements |
string |
No |
The custom Python dependencies for RayCluster. Specify the content in the requirements.txt format, with one pip dependency per line. A maximum of 200 lines are allowed, and each line cannot exceed 512 characters. Version constraints, extras, PEP 440 direct URLs, and # comments are supported. Shell metacharacters are not supported. This parameter applies only to AI resource groups of the RayCluster type. |
numpy==1.24.0 |
| WorkerGroups |
array<object> |
No |
The list of Ray worker group configuration information. |
|
|
object |
No |
The Ray worker group configuration information. |
||
| AllocateUnit |
string |
No |
The allocation unit. |
1 |
| GroupName |
string |
No |
The name of the worker group. |
test |
| MaxWorkerQuantity |
integer |
No |
The maximum number of workers. |
2 |
| MinWorkerQuantity |
integer |
No |
The minimum number of workers. |
1 |
| WorkerDiskCapacity |
string |
No |
The disk size of the worker node. |
100G |
| WorkerSpecName |
string |
No |
The node specifications of the worker node. |
xlarge |
| WorkerSpecType |
string |
No |
The resource type of the worker node. Valid values:
|
GPU |
| GpuElasticPlan |
object |
No |
The GPU time-based elastic plan. |
|
| Enabled |
boolean |
No |
Specifies whether to enable the elastic plan immediately after creation. Valid values:
|
true |
| Rules |
array<object> |
No |
The list of rules. |
|
|
object |
No |
The rule. |
||
| EndCronExpression |
string |
No |
The end time, specified as a cron expression. The interval must be no less than 1 hour. |
0 0 3 * * ? |
| StartCronExpression |
string |
No |
The start time, specified as a cron expression. The interval must be no less than 1 hour. |
0 0 2 * * ? |
| ScalePolicy |
string |
No |
The scale-out policy for the resource group. Valid values:
Valid values:
|
AutoScaling |
| Classification |
string |
No |
The classification of the resource group. Valid values:
Valid values:
|
SQL |
| AtmConfig |
object |
No |
The PromQL resource group configuration. |
|
| AuthNodeNum |
integer |
No |
The number of authentication nodes. |
2 |
| AuthNodeSpec |
string |
No |
The node specifications of the authentication node ([0-9+] ACUs). |
8ACU |
| InsertNodeNum |
integer |
No |
The number of insert nodes. |
2 |
| InsertNodeSpec |
string |
No |
The node specifications of the insert node ([0-9+] ACUs). |
8ACU |
| SelectNodeCacheSize |
integer |
No |
The cache size of the query node, in GB. |
10 |
| SelectNodeNum |
integer |
No |
The number of query nodes. |
1 |
| SelectNodeSpec |
string |
No |
The node specifications of the query node ([0-9+] ACUs). |
8ACU |
| StorageNodeDiskSize |
integer |
No |
The disk size of the storage node. |
1 |
| StorageNodeDiskType |
string |
No |
The disk type of the storage node (essd_pl1 or essd_pl2). Valid values:
|
essd_pl1 |
| StorageNodeNum |
integer |
No |
The number of storage nodes. |
2 |
| StorageNodeSpec |
string |
No |
The storage node specifications ([0-9+] ACUs). |
8ACU |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
A94B6C02-7BD4-5D67-9776-3AC8317E8DD5 |
Examples
Success response
JSON format
{
"RequestId": "A94B6C02-7BD4-5D67-9776-3AC8317E8DD5"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPoolName.Malformed | The specified parameter PoolName is not valid. | The PoolName parameter is invalid. Check the parameter. |
| 400 | InvalidPoolUser.Malformed | The specified parameter PoolUser is not valid. | The PoolUser parameter is invalid. Check the parameter. |
| 400 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The DBClusterId parameter is invalid. Check the parameter. |
| 400 | InvalidPoolType.Malformed | The specified parameter PoolType is not valid. | The PoolType parameter is invalid. Check the parameter. |
| 400 | InvalidMinComputeResource.Malformed | The specified parameter MinComputeResource is not valid. | The MinComputeResource parameter is invalid. Check the parameter. |
| 400 | InvalidMaxComputeResource.Malformed | The specified parameter MaxComputeResource is not valid. | The MaxComputeResource parameter is invalid. Check the parameter. |
| 400 | ACS.ResourceGroup.InvalidResourceGroupState | The state of this resource group does not support this operation. | This operation is not supported due to the current state of the resource group. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.