启用集群的弹性计划。
接口说明
当前服务的接入地址请参见服务接入点。
调试
您可以在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 值是否正确。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。