You can call this operation to modify an elastic plan. This operation can be used only for AnalyticDB for MySQL elastic clusters.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyElasticPlan

The operation that you want to perform. Set the value to

ModifyElasticPlan.

DBClusterId String Yes am-bpxxxxxxxx47

The ID of the cluster.

ElasticPlanEnable Boolean Yes true

Specifies whether to enable the elastic plan.

ElasticPlanName String Yes realtime

The name of the elastic plan.

ResourcePoolName String Yes test

The name of the resource pool.

ElasticPlanNodeNum Integer No 1

The number of nodes in the elastic plan. This parameter and the following parameters can be modified. You must specify at least one of these parameters.

ElasticPlanTimeStart String No 08:00:00

The start time of the elastic plan on the hour. Example: 08:00:00.

ElasticPlanTimeEnd String No 10:00:00

The end time of the elastic plan on the hour. Example: 10:00:00. You can specify a point of time of the next day. The time elapsed from when the elastic plan starts to when the elastic plan ends cannot exceed 24 hours.

ElasticPlanWeeklyRepeat String No 1,2,3,4,5

The days of the week when you want to execute the elastic plan. 0 to 6 indicate Sunday to Saturday. Separate multiple days with commas (,). Example: 1,2,3,4,5.

ElasticPlanStartDay String No 20201011

The start date of the elastic plan. Example: 2020-10-10.

ElasticPlanEndDay String No 20201101

The end date of the elastic plan. Example: 2020-10-10.

Response parameters

Parameter Type Example Description
RequestId String 1AD222E9-E606-4A42-BF6D-8A4442913CEF

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyElasticPlan
&DBClusterId=am-bpxxxxxxxx47
&ElasticPlanEnable=true
&ElasticPlanName=realtime
&ResourcePoolName=test
&<Common request parameters>

Sample success responses

XML format

<RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>

JSON format

{
    "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF"
}

Error codes

HttpCode Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified DBClusterId parameter does not exist. Check whether you specify the DBClusterId parameter correctly.

For a list of error codes, visit the API Error Center.