啟用叢集的彈性計劃。
介面說明
當前服務的接入地址請參見服務存取點。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
adb:EnableElasticPlan |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ElasticPlanName |
string |
是 |
彈性計劃名稱。 說明
調用 DescribeElasticPlans 介面可以查看叢集的彈性計劃名稱。 |
test |
| 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.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.InvalidEndTime | The end time should be later than current time. | 分時彈性的結束時間應該晚於目前時間。 |
| 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 值是否正確。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。