Simulates a zone-level failover for an ApsaraDB for Redis (Tair-compatible) cluster instance, triggering an automatic switchover to the standby zone.
Operation description
-
本接口仅适用于多(双)可用区集群架构实例。
-
模拟故障的节点会在稍后自动恢复。但主节点位于备可用区、备节点位于主可用区,此时可能产生实例与其他业务跨机房访问的情况。如需解决该问题,您可以在控制台服务可用性页面手动切换可用区。
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:SwitchInstanceZoneFailOver |
update |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| TargetZoneId |
string |
No |
The ID of the destination zone. |
cn-hangzhou-j |
| SiteFaultTime |
string |
No |
The simulated fault duration. Unit: minutes. Valid values:
|
5 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
2D9F3768-EDA9-4811-943E-42C8006E**** |
Examples
Success response
JSON format
{
"RequestId": "2D9F3768-EDA9-4811-943E-42C8006E****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.