Changes the routine maintenance window of a specified PolarDB cluster.

Note We recommend that you set the routine maintenance window to off-peak hours. Alibaba Cloud maintains your cluster within the specified maintenance window to minimize the negative impacts on your business.

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 Position Type Required Example Description
Action Query String No ModifyDBClusterMaintainTime

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

DBClusterId Query String Yes pc-***************

The ID of the PolarDB cluster.

MaintainTime Query String Yes 02:00Z-03:00Z

The maintenance window of the cluster. The format is HH:mmZ-HH:mmZ. For example, a value of 16:00Z-17:00Z indicates that the routine maintenance can be performed on the cluster from 00:00 to 01:00 (UTC+08:00).

Note The maintenance window must start on the hour and last for an hour.

Response parameters

Parameter Type Example Description
RequestId String 70656639-1416-479F-AF13-D08197******

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=ModifyDBClusterMaintainTime
&DBClusterId=pc-***************
&MaintainTime=02:00Z-03:00Z
&<Common request parameters>

Sample success responses

XML format

<ModifyDBClusterMaintainTimeResponse>  
	  <RequestId>70656639-1416-479F-AF13-D08197******</RequestId>
</ModifyDBClusterMaintainTimeResponse>

JSON format

{
    "RequestId":"70656639-1416-479F-AF13-D08197******"
}

Error codes

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