You can call this operation to modify the maintenance window of an ApsaraDB for Redis instance. Alibaba Cloud maintains the ApsaraDB for Redis instance in the specified maintenance window.

For more information about how to perform the corresponding operation in the console, see Set a maintenance window.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyInstanceMaintainTime

The operation that you want to perform. Set this parameter to ModifyInstanceMaintainTime.

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance for which you want to modify the maintenance window.

MaintainStartTime String Yes 03:00Z

The start time of the maintenance window. The time must be in the HH:mmZ format.

MaintainEndTime String Yes 02:00Z

The end time of the maintenance window. The time must be in the HH:mmZ format.

Note The interval between the start time and the end time must be one hour. For example, if the value of the MaintainStartTime parameter is 01:00Z, the value of the MaintainEndTime parameter must be 02:00Z.
AccessKeyId String No Lxxxxxxxxxxxxxxw

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Parameter Type Example Description
RequestId String 8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76

The ID of the request.


Sample request
? Action=ModifyInstanceMaintainTime
&<Common request parameters>

Sample success response

XML format


JSON format


Error codes

HTTP status code Error code Error message Description
400 InvalidEndTime.Format Specified end time is not valid. The error message returned because the verification of the end time failed.

View error codes.