Mengaktifkan atau menonaktifkan fitur failover dengan replika panas untuk node di Kluster.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBNodeHotReplicaMode |
update |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri detail Kluster yang dimiliki akun Alibaba Cloud Anda, seperti ID Kluster. |
pc-***************** |
| DBNodeId |
string |
Yes |
ID node di Kluster. |
pi-***************** |
| HotReplicaMode |
string |
Yes |
Apakah akan mengaktifkan fitur hot standby. Nilai valid:
|
ON |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
9F4DDFBF-205C-5A3E-8DC2-C6********** |
| DBClusterId |
string |
The ID of the cluster. Catatan
You can call the DescribeDBClusters operation to query information about all clusters that are deployed in a specified region, such as the cluster ID. |
pc-***************** |
| OrderId |
string |
The ID of the order. |
2148126708***** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "9F4DDFBF-205C-5A3E-8DC2-C6**********",
"DBClusterId": "pc-*****************",
"OrderId": "2148126708*****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBNodeId.Malformed | The specified parameter DBNodeId is not valid. | |
| 404 | InvalidDBInstanceClass.NotFound | rw class code must be equal with hot replica | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 404 | InvalidDBNodeId.NotFound | The DBNodeId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.