All Products
Search
Document Center

ApsaraDB RDS:CreateDBInstanceReplication

Last Updated:Jun 12, 2026

Membuat tautan replikasi untuk instance replikasi native.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST  HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID region tempat instance berada.

cn-hangzhou

DbInstanceId

string

Yes

ID instance. Anda dapat memanggil operasi DescribeDBInstances untuk memperolehnya.

rm-bp1234567890abcdef

ChannelName

string

No

Nama channel replikasi, digunakan untuk mengidentifikasi tautan replikasi.

replication-channel-001

MasterHost

string

Yes

Alamat host database master. Mendukung alamat IP atau nama domain.

192.168.1.100

MasterPort

integer

Yes

Nomor port database master. Nilai default adalah 3306 (MySQL).

3306

MasterUser

string

Yes

Nama pengguna database master, digunakan untuk membuat koneksi replikasi.

repl_user

MasterPassword

string

Yes

Kata sandi database master, digunakan untuk mengautentikasi pengguna replikasi. Nilai harus dikodekan dengan Base64 terlebih dahulu.

U2VjdXJlUGFzczEyMyE=

Elemen respons

Element

Type

Description

Example

object

Skema Respons

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.