You can call this operation to modify the maintenance window of a specified ApsaraDB for PolarDB cluster. You can specify the time period to off-peak hours. Alibaba Cloud maintains your clusters within the specified maintenance window to minimize the impact 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 Type Required Example Description
DBClusterId String Yes pc-xxxxxxxxxxxxxxxx

The ID of the cluster.

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

The maintenance time of the cluster. It is in the HH:mmZ- HH:mmZ format. For example, 16:00Z-17:00Z indicates that the cluster can be maintained from 0 o'clock to 1 o'clock (UTC+8).

Note The maintenance time must start on the hour and last for an hour.
AccessKeyId String No key-test

The AccessKey ID provided to you by Alibaba Cloud.

Action String No ModifyDBClusterMaintainTime

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

Response parameters

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

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ModifyDBClusterMaintainTime
&DBClusterId=pc-xxxxxxxxxxxxxxxx
&MaintainTime=02:00Z-03:00Z
&<Common request parameters>

Sample success responses

XML format

<ModifyDBClusterMaintainTimeResponse>  
	  <RequestId>70656639-1416-479F-AF13-D08197F9C43B</RequestId>
</ModifyDBClusterMaintainTimeResponse>

JSON format

{
	"RequestId":"70656639-1416-479F-AF13-D08197F9C43B"
}

Error codes

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