Creates a resource group for a specified Dedicated Edition, Basic Edition, or Data Lakehouse Edition cluster.
Operation description
For information about the service registration of this service, see Endpoint.
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 Dedicated 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 Data Lakehouse Edition resource groups, see Resource group overview (Data Lakehouse Edition). |
Job |
| MinComputeResource |
string |
No |
The minimum amount of reserved computing resources. Unit: ACUs.
|
0ACU |
| MaxComputeResource |
string |
No |
The maximum amount of reserved computing resources. Unit: ACUs.
|
48ACU |
| ClusterSizeResource |
string |
No |
A reserved parameter (not applicable). |
- |
| MinClusterCount |
integer |
No |
A reserved parameter (not applicable). |
- |
| MaxClusterCount |
integer |
No |
A reserved parameter (not applicable). |
- |
| ClusterMode |
string |
No |
A reserved parameter (not applicable). |
- |
| EnableSpot |
boolean |
No |
Specifies whether to enable the spot instance feature for the resource group. After the spot instance feature is enabled, the unit price of resources is reduced, but the resources may be released. Only Job resource groups support this feature. Valid values:
|
True |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query the region IDs of AnalyticDB for MySQL Data Lakehouse Edition (V3.0) clusters. |
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. Unit: milliseconds (ms). |
180000 |
| TargetGroupName |
string |
No |
The name of the destination resource group. |
job |
| Engine |
string |
No |
The database engine. Valid values:
|
SparkWarehouse |
| EngineParams |
object |
No |
The engine configuration. |
{\"spark.adb.version\":\"3.5\"} |
| AutoStopInterval |
string |
No |
The automatic stop interval. Unit: minutes (m). |
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 destination resource group. |
test |
| RayConfig |
object |
No |
The Ray configuration. Note
This parameter is required when the resource group is an AI resource group and the corresponding engine is RayCluster. |
|
| EnableUserEni |
boolean |
No |
Specifies whether to enable user ENI connectivity. |
|
| HeadSpecType |
string |
No |
The resource type of the head node. |
CPU |
| HeadSpec |
string |
No |
The node specifications of the head node. |
xlarge |
| HeadAllocateUnit |
string |
No |
The allocation unit of the head node. |
1 |
| HeadDiskCapacity |
string |
No |
The disk size of the head node. |
100G |
| Category |
string |
No |
The Ray cluster type. Valid values:
|
BASIC |
| WorkerGroups |
array<object> |
No |
The list of Ray worker group configurations. |
|
|
object |
No |
The Ray worker group configuration. |
||
| GroupName |
string |
No |
The name of the worker group. |
test |
| AllocateUnit |
string |
No |
The allocation unit. |
1 |
| 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. |
GPU |
| UserDefinedRequirements |
string |
No |
||
| GpuElasticPlan |
object |
No |
The GPU time-sharing 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. |
||
| StartCronExpression |
string |
No |
The start time as a cron expression. The interval must be at least 1 hour. |
0 0 2 * * ? |
| EndCronExpression |
string |
No |
The end time as a cron expression. The interval must be at least 1 hour. |
0 0 3 * * ? |
| ScalePolicy |
string |
No |
The scaling policy of the resource group. Valid values:
|
AutoScaling |
| Classification |
string |
No |
The classification of the resource group. Valid values:
|
SQL |
| AtmConfig |
object |
No |
||
| SelectNodeSpec |
string |
No |
8ACU |
|
| SelectNodeNum |
integer |
No |
1 |
|
| SelectNodeCacheSize |
integer |
No |
10 |
|
| StorageNodeSpec |
string |
No |
8ACU |
|
| StorageNodeNum |
integer |
No |
2 |
|
| StorageNodeDiskSize |
integer |
No |
1 |
|
| StorageNodeDiskType |
string |
No |
essd_pl1 |
|
| InsertNodeSpec |
string |
No |
8ACU |
|
| InsertNodeNum |
integer |
No |
2 |
|
| AuthNodeSpec |
string |
No |
8ACU |
|
| AuthNodeNum |
integer |
No |
2 |
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.