Mengalihkan atau merollback tugas migrasi untuk peningkatan satu klik dari RDS ke PolarDB Basis Data Relasional Cloud-Native.
Deskripsi operasi
-
If this operation is called before the switchover, it performs a switchover.
-
If this operation is called after the switchover is complete, it performs a rollback.
A one-click upgrade task must be created for the cluster before you call this operation. To create the task, call the CreateDBCluster operation and set the CreationOption parameter to MigrationFromRDS. For more information, see One-click upgrade from RDS MySQL to PolarDB for MySQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterMigration |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster PolarDB Basis Data Relasional Cloud-Native. |
pc-************** |
| SourceRDSDBInstanceId |
string |
Yes |
ID instans RDS sumber. |
rm-************ |
| NewMasterInstanceId |
string |
Yes |
ID instans atau kluster baru. Nilai valid:
|
pc-************** |
| SwapConnectionString |
string |
No |
Apakah akan mengalihkan titik akhir. Nilai valid:
Nilai default: false. |
false |
| ConnectionStrings |
string |
No |
Titik akhir spesifik yang akan dialihkan. Nilainya adalah string JSON yang menentukan titik akhir yang akan ditukar. Catatan
Parameter ini hanya valid jika SwapConnectionString diatur ke true. |
{"rm-2ze73el581cs*****.mysql.pre.rds.aliyuncs.com":"pc-2ze8200s298e*****.mysql.polardb.pre.rds.aliyuncs.com","rm-2ze73el581cs86*****.mysql.pre.rds.aliyuncs.com":"test-p*****.mysql.polardb.pre.rds.aliyuncs.com"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A1B303A5-653F-4AEE-A598-023FF9****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A1B303A5-653F-4AEE-A598-023FF9******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidConnectionString.Malformed | The specified parameter ConnectionString is not valid. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.