Restarts a running ApsaraDB for Redis instance.


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
Action String Yes RestartInstance

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

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

EffectiveTime String No Immediately

The time when you want to restart the instance. Valid values:

  • Immediately: immediately restarts the instance.
  • MaintainTime: restarts the instance in the maintenance window.
Note Default value: Immediately.
UpgradeMinorVersion Boolean No true

Specifies whether to upgrade to the latest minor version after the instance is restarted. Valid values:

  • true: upgrades the minor version.
  • false: do not upgrade the minor version.
Note Default value: true.
RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

Response parameters

Parameter Type Example Description
InstanceId String r-bp1zxszhcgatnx****

The ID of the instance.

TaskId String 11111****

The ID of the task.

RequestId String EFC9161F-15E3-4A6E-8A99-C33331****

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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