This API is used to change the data synchronize model of primary/standby DB instances based on service requirements.
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
instance_id |
Yes |
Specifies the DB instance ID. |
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
mode |
Yes |
String |
Specifies the synchronize model. For MySQL, the value can be any of the following:
For PostgreSQL, the value can be any of the following:
|
PUT https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/failover/mode
{
"mode": "semisync"
}
Name |
Description |
|---|---|
workflowId |
Indicates the workflow ID. For details about how to query this parameter, see Obtaining Task Information. |
instanceId |
Indicates the DB instance ID. |
replicationMode |
Indicates the replication mode. |
{
"instanceId": "c8a7d0abe94840dda99bc437e9442982in01",
"replicationMode": "semisync",
"workflowId": "7b55d6ca-dc8e-4844-a9da-6c53a1506db3"
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.