Changes the high availability mode and data replication mode of an ApsaraDB for RDS instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBInstanceHAConfig |
The operation that you want to perform. Set the value to ModifyDBInstanceHAConfig. |
DbInstanceId | String | Yes | rm-uf6wjk5xxxxxxx |
The ID of the instance. |
HAMode | String | Yes | RPO |
The high availability mode. Valid values:
|
SyncMode | String | Yes | Sync |
The data replication mode. Valid values:
Note This parameter is not supported for instances that run SQL Server 2017 EE.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/? Action=ModifyDBInstanceHAConfig
&DbInstanceId=rm-uf6wjk5xxxxxxx
&HAMode=RPO
&SyncMode=Sync
&<Common request parameters>
Sample success responses
XML
format
<ModifyDBInstanceHAConfigResponse>
<RequestId>D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD</RequestId>
</ModifyDBInstanceHAConfigResponse>
JSON
format
{
"RequestId":"D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD"
}
Error codes
For a list of error codes, visit the API Error Center.