建立叢集的彈性計劃。
介面說明
當前服務的接入地址請參見服務存取點。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
adb:CreateElasticPlan |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ElasticPlanName |
string |
是 |
彈性計劃名稱。 說明
彈性計劃名稱的長度為 2~30 個字元,以字母開頭,且只能由字母、數字和底線組成。 |
test |
| ResourceGroupName |
string |
否 |
資源群組名稱。 說明
|
test |
| StartTime |
string |
否 |
開始時間。 說明
格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2022-01-01T12:01:00Z |
| EndTime |
string |
否 |
結束時間。 說明
格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2025-01-01T12:01:00Z |
| Enabled |
boolean |
是 |
建立後是否立即啟用彈性計劃。 取值說明:
|
true |
| CronExpression |
string |
否 |
Cron 運算式,表示彈性計劃的變更配置周期和變更配置時間。 說明
Type 參數取值為 EXECUTOR 時,該參數必填。 |
0 20 14 * * ? |
| TargetSize |
string |
否 |
目標規格。 說明
|
32ACU |
| Type |
string |
是 |
彈性計劃類型。 取值說明:
|
EXECUTOR |
| AutoScale |
boolean |
否 |
是否啟用儲存加速服務(EIU)按比例預設彈性。 取值說明:
說明
|
false |
| DBClusterId |
string |
是 |
叢集 ID。 說明
調用 DescribeDBClusters 介面查看叢集 ID。 |
amv-wz9509beptiz**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
BaseResponse |
||
| RequestId |
string |
請求 ID。 |
A5C433C2-001F-58E3-99F5-3274C14DF8BD |
樣本
正常返回樣本
JSON格式
{
"RequestId": "A5C433C2-001F-58E3-99F5-3274C14DF8BD"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ACS.ElasticPlan.InvalidEndTime | The end time should be later than current time. | 分時彈性的結束時間應該晚於目前時間。 |
| 400 | ACS.ElasticPlan.NameAlreadyExists | The name already exists. | 存在同名的彈性計劃。 |
| 400 | ACS.ElasticPlan.WorkerNotFound | Worker not found. | 此執行個體沒有預留儲存資源,無法設定儲存彈性計劃。 |
| 400 | ACS.ElasticPlan.AutoWorkerPlanExists | Failed to enable the elastic plan. The instance already has an active elastic plan. | 啟用此儲存彈性計劃失敗,當前執行個體存在啟用的儲存自動彈性計劃。 |
| 400 | ACS.ElasticPlan.WorkerPlanExists | Failed to enable the elastic plan. At least one active elastic plan already exists. | 啟用儲存自動彈性計劃失敗,當前存在另外一個啟用的儲存彈性計劃。 |
| 400 | ACS.ElasticPlan.InvalidStartTimeInterval | The start time of this elastic plan is too closed to another one. | 此彈性計劃的啟用時間和另外一個彈性計划過於接近。 |
| 400 | ACS.ElasticPlan.InvalidTodayPlan | Failed to enable this elastic plan. Today's schedule time is missed and you should prepare at least %s minutes for us to prepare resource. | 啟用彈性計劃失敗。今天的彈性變更配置功能已經無法於彈性計劃配置的變更配置時間進行觸發,請檢查配置的時間是否晚於可變更配置時間(目前時間加上資源準備時間%s分鐘)。 |
| 400 | ACS.ElasticPlan.InvalidTargetSize | Invalid target size. | 無效的目標規格 |
| 400 | ACS.ElasticPlan.InvalidStartTime | Invalid start time. | 彈性計劃開始時間填寫不正確 |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | 您指定的 DBClusterId 不存在,請確認 DBClusterId 值是否正確。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。