Membuat tugas replikasi untuk instans replikasi native.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. |
cn-hangzhou |
| DbInstanceId |
string |
Yes |
ID instans. Anda dapat memanggil DescribeDBInstances untuk mendapatkan ID instans. |
rm-bp1234567890abcdef |
| ChannelName |
string |
No |
Nama saluran replikasi yang digunakan untuk mengidentifikasi tugas replikasi. |
replication-channel-001 |
| MasterHost |
string |
Yes |
Alamat host database utama. Alamat IP dan nama domain didukung. |
192.168.1.100 |
| MasterPort |
integer |
Yes |
Nomor Port database utama. Port default adalah 3306 untuk MySQL. |
3306 |
| MasterUser |
string |
Yes |
Nama pengguna database utama yang digunakan untuk membuat koneksi replikasi. |
repl_user |
| MasterPassword |
string |
Yes |
Kata sandi database utama yang digunakan untuk mengautentikasi pengguna replikasi. Kata sandi harus dienkode Base64 terlebih dahulu. |
U2VjdXJlUGFzczEyMyE= |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
76364A52-E0AB-5CC8-9818-CF1DC482C092 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "76364A52-E0AB-5CC8-9818-CF1DC482C092"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidReplicationChannel.Duplicate | Specified replication channel already exists. | |
| 400 | InvalidReplicationChannelName.Forbid | Specified replication channel name is forbidden (reserved for internal use). | |
| 400 | MissingReplicationParam | Missing required parameters for replication operation: MasterHost, MasterPort, MasterUser, MasterPassword. | |
| 400 | InvalidMasterPort.Format | Specified MasterPort format is not valid. | |
| 400 | InvalidDBInstanceEngineType.Format | the DB instance engine type does not support this operation. | |
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.