You can call this operation to modify the maintenance time of the instance.

You can set a period of time during off-peak hours. Alibaba Cloud performs routine maintenance within the maintenance period to minimize impact on your business.

Debugging

You can use OpenAPI Explorer to perform debugging. OpenAPI Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDBInstanceMaintainTime

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

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

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

The period during which the maintenance performs. The format is yyyy-MM-ddZ-HH:mm:ssZ.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID that Alibaba Cloud issues to a user for service access.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxxxxx

The client token that is used to guarantee the idempotency of requests. The client token is generated by the client and is unique among different requests. It is a string of up to 64 ASCII characters.

Response parameters

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

The ID of the request.

Examples

Sample requests


http(s)://rds.aliyuncs.com/? Action=ModifyDBInstanceMaintainTime
&DBInstanceId=rm-uf6wjk5xxxxxxx
&MaintainTime=22:00Z-02:00Z  
&<Common request parameters>

Successful response examples

XML format

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

JSON format

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

Error codes

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