Modifies the maintenance window of an AnalyticDB for MySQL cluster.

Debugging

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

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDBClusterMaintainTime

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

DBClusterId String Yes am-bp111m2cfrdl****

The ID of cluster.

Note You can call the DescribeDBClusters operation to query the details of all AnalyticDB for MySQL clusters within a specific region, including cluster IDs.
MaintainTime String Yes 22:00Z-23:00Z

The maintenance window of the cluster. It is in the hh:mmZ-hh:mmZ format.

Note The maintenance window lasts only 1 hour. Specify the beginning and end of the time range on the hour.

Response parameters

Parameter Type Example Description
RequestId String 65BDA532-28AF-4122-AA39-B382721EEE64

The ID of the request.

Examples

Sample requests

http(s)://adb.aliyuncs.com/?Action=ModifyDBClusterMaintainTime
&DBClusterId=am-bp111m2cfrdl****
&MaintainTime=22:00Z-23:00Z
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDBClusterMaintainTimeResponse>
    <RequestId>65BDA532-28AF-4122-AA39-B382721EEE64</RequestId>
</ModifyDBClusterMaintainTimeResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "65BDA532-28AF-4122-AA39-B382721EEE64"
}

Error codes

HTTP status code 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 the cluster ID is valid.

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