Creates a resource group for a cluster.
Operation description
Supported product editions:
Enterprise Edition
Basic Edition
Data Lakehouse Edition
Data Warehouse Edition (Elastic Mode): Requires specifications of 32 cores and 128 GB or higher.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateDBResourceGroup |
create |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
Call the DescribeDBClusters operation to query the IDs of all Data Warehouse Edition clusters in the destination region. |
am-bp1ub9grke1**** |
| GroupName |
string |
Yes |
The name of the resource group.
|
TEST_GROUP |
| GroupType |
string |
No |
The query type. Valid values:
|
interactive |
| MinComputeResource |
string |
No |
The minimum reserved computing resources, in ACU.
|
0ACU |
| MaxComputeResource |
string |
No |
The maximum reserved computing resources, in ACU.
|
32ACU |
| ClusterSizeResource |
string |
No |
The resource specifications of a single cluster, in ACU. |
16ACU |
| MinClusterCount |
integer |
No |
The minimum number of clusters that must run in the resource group. The minimum value is 1. |
1 |
| MaxClusterCount |
integer |
No |
The maximum number of clusters that can run in the resource group. The maximum value is 10. |
2 |
| ClusterMode |
string |
No |
The mode of the resource group. Valid values:
|
AutoScale |
| Engine |
string |
No |
The engine of the resource group. Valid values:
|
AnalyticDB |
| EngineParams |
object |
No |
The configuration parameters for the Spark application. These parameters apply to all Spark jobs that are executed in the resource group. To configure parameters for a specific Spark job, set the parameters in the code when you submit the job. |
{\"spark.adb.version\":\"3.5\"} |
| NodeNum |
integer |
No |
The number of nodes. The default value is 0.
|
2 |
| ClientToken |
string |
No |
A client token used to ensure the idempotence of the request. The client generates this value to make sure that it is unique among different requests. The token is case-sensitive and cannot exceed 64 ASCII characters. |
123e4567-e89b-12d3-a456-t7241**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
3A8F6106-6AFD-5A34-9C80-8DE2C42D06E8 |
Examples
Success response
JSON format
{
"RequestId": "3A8F6106-6AFD-5A34-9C80-8DE2C42D06E8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | OperationDenied.DBClusterStatus | The operation is not permitted due to cluster status. | This operation is prohibited due to the current state of the cluster. |
| 404 | InvalidDBCluster.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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.