Modifies the maintenance window of an ApsaraDB for Redis instance. Alibaba Cloud maintains ApsaraDB for Redis instances in the specified maintenance window.
You can also modify the maintenance window of an instance in the ApsaraDB for Redis console. For more information, see Set a maintenance window.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyInstanceMaintainTime |
The operation that you want to perform. Set the value to ModifyInstanceMaintainTime. |
InstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. |
MaintainStartTime | String | Yes | 03:00Z |
The start time of the maintenance window. Specify the time in the HH:mmZ format. The time must be in UTC. For example, if the maintenance window starts at
01:00 (UTC+8), you must set this parameter to |
MaintainEndTime | String | Yes | 04:00Z |
The end time of the maintenance window. Specify the time in the HH:mmZ format. The time must be in UTC. For example, if the maintenance ends at 02:00 (UTC+8),
you must set this parameter to Note The end time must be one hour later than the start time. For example, if the value
of the MaintainStartTime parameter is
17:00Z , the value of the MaintainEndTime parameter must be 18:00Z .
|
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76 |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=ModifyInstanceMaintainTime
&InstanceId=r-bp1zxszhcgatnx****
&MaintainStartTime=17:00Z
&MaintainEndTime=18:00Z
&<Common request parameters>
Sample success responses
XML
format
<ModifyInstanceMaintainTimeResponse>
<RequestId>8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76</RequestId>
</ModifyInstanceMaintainTimeResponse>
JSON
format
{
"RequestId": "8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidEndTime.Format | Specified end time is not valid. | The error message returned because the specified end time is invalid. |
For a list of error codes, visit the API Error Center.