You need to enable JavaScript to run this app.
Cache for Redis

Cache for Redis

Copy page
Download PDF
Instance management
RestartDBInstance
Copy page
Download PDF
RestartDBInstance
Call the RestartDBInstance API to restart target Redis instance.​
Request type​
Asynchronous request.​
Precautions​
  • Only instances with the status Running support restart operations.​
  • During an instance restart, access to some services may be affected for a short period. Proceed with caution.​
  • Restart instances during off-peak hours and ensure your application has an automatic reconnection mechanism.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameters​
Type​
Required​
Example​
Description​
InstanceId​
String​
Yes​
redis-cn0212gzmh2xs1111​
Instance ID.​
tip​
You can call the DescribeDBInstances API to query the basic information of all Redis instances in the target region, including the instance ID.​
ClientToken​
String​
No​
WbiAlPqJM6tMoSOYhT****​
To ensure the idempotence of requests and prevent duplicate submission of requests. The client generates the parameter values to ensure the uniqueness among different requests. Values are case-sensitive, no more than 127 ASCII characters.​
​
Response parameters​
The current API has no specified response parameters. For more information, see Response structure.​
Example​
Request example​
​
POST https://redis.cn-beijing.volcengineapi.com/?Action=RestartDBInstance&Version=2020-12-07 HTTP/1.1​
Host: redis.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=utf-8​
X-Date: 20201103T104027Z​
Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/Redis/request,SignedHeaders=content-type;host;x-date,Signature=****​
{​
"InstanceId":"redis-cn0212gzmh2xs1111"​
}​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "2022041515431901021203723025661111",​
"Action": "RestartDBInstance",​
"Version": "2020-12-07",​
"Service": "Redis",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
Error code​
For more details, see Error code.​
Last updated: 2026.09.21 15:01:08