Creates a resource group for a cluster.
Operation description
Applicable editions:
Enterprise Edition.
Basic Edition.
Data Lakehouse Edition.
Data Warehouse Edition in elastic mode: The specifications must be 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
You can call the DescribeDBClusters operation to query the IDs of all Data Warehouse Edition clusters in the specified 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 compute resources, in ACUs.
|
0ACU |
| MaxComputeResource |
string |
No |
The maximum reserved compute resources, in ACUs.
|
32ACU |
| ClusterSizeResource |
string |
No |
The resource specifications for a single cluster, in ACUs. |
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 resource group mode. Valid values:
|
AutoScale |
| Engine |
string |
No |
The resource group engine. Valid values:
|
AnalyticDB |
| EngineParams |
object |
No |
The configuration parameters for Spark applications, which apply to all Spark jobs executed in this resource group. To configure parameters for a specific Spark job, you can set them in the code when submitting the job. |
{\"spark.adb.version\":\"3.5\"} |
| NodeNum |
integer |
No |
The number of nodes. Default value: 0.
|
2 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. The client generates the parameter value to ensure that it is unique among different requests. The value is case-sensitive and can be up to 64 ASCII characters in length. |
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.