Melakukan alih bencana primer/sekunder manual untuk kluster tepi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:FailoverDBClusterZonal |
update |
*Semua sumber daya.
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-************** |
| TargetDBNodeId |
string |
No |
ID node yang akan dialihkan menjadi node primer. Jika Anda mengosongkan parameter ini, sistem akan memilih node secara otomatis. Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri ID node. |
pi-*********** |
| RollBackForDisaster |
boolean |
No |
Apakah akan beralih kembali ke zona primer asli setelah failover. Nilai valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilai ini. Pastikan nilai tersebut unik di antara berbagai permintaan. Token ini bersifat case-sensitive dan dapat berisi maksimal 64 karakter ASCII. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5****** |
| TargetZoneType |
string |
No |
Apakah alih bencana merupakan alih bencana primer/sekunder di dalam zona primer. Nilai valid:
Nilai default: Primary. Nilai ini menunjukkan bahwa alih bencana dilakukan di dalam zona aktif. Valid values:
|
Primary |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
925B84D9-CA72-432C-95CF-738C22****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "925B84D9-CA72-432C-95CF-738C22******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | HaStatusNotSupport | Current DB instance HA status does not support this operation. | Status ketersediaan tinggi instans tidak mendukung operasi ini. |
| 400 | InvalidDBNodeId.Malformed | The specified parameter DBNodeId is not valid. | Parameter DBNodeId yang ditentukan tidak valid. |
| 400 | InvalidDBType.Malformed | The Specified DBType is not valid. | Tipe database yang ditentukan tidak valid. |
| 400 | UnsupportHighFrequenceSwitchOver | The instance has switch over too frequent within ten minutes. | Alih bencana terlalu sering. Coba lagi setelah 5 menit. |
| 400 | UnsupportWitchUnhealthyReplication | The action is unsupported with unhealthy replication. | Hubungan replikasi saat ini tidak normal. Alih bencana tidak didukung. |
| 403 | OperationDenied.DBNodeType | The operation is not permitted due to type of node. | Operasi gagal karena tipe node tidak mengizinkan operasi ini. |
| 403 | OperationDenied.ClusterCategory | The operation is not permitted due to cluster category. | Kluster tidak mendukung seri produk ini. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | Operasi gagal. ID instans kluster yang ditentukan tidak ada. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | DBClusterId yang ditentukan tidak ada dalam catatan kami. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.