Creates a resource group for an Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
Operation description
For the service endpoints, see 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, see Introduction to resource groups (Data Lakehouse Edition). |
Job |
| MinComputeResource |
string |
No |
The minimum amount of reserved computing resources, in AnalyticDB compute units (ACUs).
|
0ACU |
| MaxComputeResource |
string |
No |
The maximum amount of reserved computing resources, in ACUs.
|
48ACU |
| ClusterSizeResource |
string |
No |
This parameter is reserved. |
无 |
| MinClusterCount |
integer |
No |
This parameter is reserved. |
无 |
| MaxClusterCount |
integer |
No |
This parameter is reserved. |
无 |
| ClusterMode |
string |
No |
This parameter is reserved. |
无 |
| EnableSpot |
boolean |
No |
Specifies whether to enable the spot instance feature for the resource group. After you enable this feature, the unit price of resources is reduced, but the resources may be released at any time. This feature is available only for Job resource groups. Valid values:
|
True |
| RegionId |
string |
No |
The region ID. Note
Call the DescribeRegions operation to query the region ID of an AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster. |
cn-hangzhou |
| Rules |
array<object> |
No |
The job delivery rules. |
|
|
object |
No |
A list of rule information. |
||
| GroupName |
string |
No |
The name of the resource group.
|
test_group |
| QueryTime |
string |
No |
The threshold for the query running time. Unit: milliseconds (ms). |
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 configuration. |
{\"spark.adb.version\":\"3.5\"} |
| AutoStopInterval |
string |
No |
The auto-stop time. Unit: minutes (m). |
5m |
| SpecName |
string |
No |
This parameter is reserved. |
预留参数,不涉及。 |
| MinGpuQuantity |
integer |
No |
This parameter is reserved. |
预留参数,不涉及。 |
| MaxGpuQuantity |
integer |
No |
This parameter is reserved. |
预留参数,不涉及。 |
| TargetResourceGroupName |
string |
No |
This parameter is reserved. |
预留参数,不涉及。 |
| RayConfig |
object |
No |
The Ray configuration. This parameter is required if the resource group is an AI resource group and the engine is RayCluster. |
|
| EnableUserEni |
boolean |
No |
||
| HeadSpecType |
string |
No |
||
| HeadSpec |
string |
No |
The specifications of the head node. |
xlarge |
| HeadAllocateUnit |
string |
No |
||
| HeadDiskCapacity |
string |
No |
||
| Category |
string |
No |
The type of the Ray cluster. Valid values:
|
BASIC |
| WorkerGroups |
array<object> |
No |
A list of configurations for Ray worker groups. |
|
|
object |
No |
The configuration of a Ray worker group. |
||
| 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 a worker node. |
100G |
| WorkerSpecName |
string |
No |
The specifications of a worker node. |
xlarge |
| WorkerSpecType |
string |
No |
The resource type of a worker node. |
GPU |
| GpuElasticPlan |
object |
No |
||
| Enabled |
boolean |
No |
||
| Rules |
array<object> |
No |
||
|
object |
No |
|||
| StartCronExpression |
string |
No |
||
| EndCronExpression |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the 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.