Creates a time-based elastic plan. This operation applies only to Data Warehouse Edition clusters in elastic mode (new version).
Operation description
Usage notes
This operation applies only to Data Warehouse Edition clusters in elastic mode (new version) with 32 or more cores.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateElasticPlan |
create |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the Data Warehouse Edition cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all Data Warehouse Edition clusters in the specified region. |
am-bp1d8lbdj22rx**** |
| ElasticPlanName |
string |
Yes |
The name of the elastic plan. Valid values:
|
test |
| ResourcePoolName |
string |
No |
The name of the resource group. Note
You can call the DescribeDBResourceGroup operation to query the name of the resource group. |
realtime |
| ElasticPlanNodeNum |
integer |
No |
The number of nodes in the elastic plan.
|
0 |
| ElasticPlanTimeStart |
string |
Yes |
The start time of the scale-out for the elastic plan. Only time frame settings are supported. Format: HH:mm:ss. |
08:00:00 |
| ElasticPlanTimeEnd |
string |
Yes |
The revert time of the elastic plan. Only time frame settings are supported. The interval between the scale-out time and the revert time cannot exceed 24 hours. Format: HH:mm:ss. |
10:00:00 |
| ElasticPlanWeeklyRepeat |
string |
No |
The weekly recurrence of the elastic plan. Valid values: 0 to 6, which represent Sunday to Saturday. Separate multiple days with commas (,). |
1,2,3,4,5 |
| ElasticPlanMonthlyRepeat |
string |
No |
The monthly recurrence of the elastic plan. The value represents the day of the month. Separate multiple days with commas (,). |
1,15,25 |
| ElasticPlanStartDay |
string |
No |
The start date of the elastic plan. Format: yyyy-MM-dd. |
2022-12-02 |
| ElasticPlanEndDay |
string |
No |
The end date of the elastic plan. Format: yyyy-MM-dd. |
2022-12-09 |
| ElasticPlanEnable |
boolean |
No |
Specifies whether the elastic plan takes effect. Valid values:
|
true |
| ElasticPlanType |
string |
No |
The resource type of the elastic plan. Valid values:
Note
|
worker |
| ElasticPlanWorkerSpec |
string |
No |
The resource specification supported for scale-out in the elastic plan. Valid values:
|
32 Core 64 GB |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The ID of the request. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.