You can call this operation to restart a running ApsaraDB for Redis instance.

For more information about how to perform the corresponding operation in the console, see Restart an 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-bp1xxxxxxxxxxxxx

The ID of the instance.

EffectiveTime String No 1

The restart time. Valid values:

  • 0: restarts the instance immediately.
  • 1: restarts the instance within the maintenance window.
Note Default value: 0.
UpgradeMinorVersion Boolean No true

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

  • true
  • false
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-bp1xxxxxxxxxxxxx

The ID of the instance.

TaskId String 111111111

The ID of the task.

RequestId String EFC9161F-15E3-4A6E-8A99-C33331F464

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.