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

Cache for Redis

Copy page
Download PDF
Instance management
ModifyDBInstanceDeletionProtectionPolicy
Copy page
Download PDF
ModifyDBInstanceDeletionProtectionPolicy
Call the ModifyDBInstanceDeletionProtectionPolicy API to enable or disable the instance deletion protection.​
Request type​
Synchronous request.​
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.​
DeletionProtection​
String​
Yes​
enabled​
Enable or disable instance deletion protection. Valid values:​
  • enabled: Enable.​
  • disabled: Disable.​
tip​
For more information on deletion protection, refer to Instance deletion protection.​
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=ModifyDBInstanceDeletionProtectionPolicy&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",​
"DeletionProtection": "enabled"​
}​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "2022072317504601017424420201BD1111",​
"Action": "ModifyDBInstanceDeletionProtectionPolicy",​
"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