全部產品
Search
文件中心

ApsaraDB RDS:UpdateDBInstanceReplication - 更新複製通道

更新時間:Apr 18, 2026

原生複製執行個體更新複製通道

介面說明

適用引擎

RDS MySQL

相關功能文檔

重要 使用該介面前,請仔細閱讀功能文檔,確保完全瞭解使用介面的前提條件及使用後造成的影響後,再進行操作。
RDS MySQL 原生複製執行個體

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST  HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

地區 ID。

cn-hangzhou

DbInstanceId

string

執行個體 ID。

rm-bp1234567890abcdef

ChannelName

string

複製通道名稱,用於標識複製通道。

replication-channel-001

MasterHost

string

主要資料庫主機地址,支援 IP 或網域名稱。

192.168.1.100

MasterPort

integer

主要資料庫連接埠號碼,通常為 3306(MySQL)

3306

MasterUser

string

主要資料庫使用者名稱,用於建立複製串連,僅在需要更新時提供。

repl_user

MasterPassword

string

主要資料庫密碼,用於驗證複製使用者,需要提前經過 Base 64 編碼。

U2VjdXJlUGFzczEyMyE=

Operation

string

操作類型,指定對複製通道執行的操作。

Start

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

Id of the request

17F57FEE-EA4F-4337-8D2E-9C23CAA63D74

樣本

正常返回樣本

JSON格式

{
  "RequestId": "17F57FEE-EA4F-4337-8D2E-9C23CAA63D74"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidReplicationChannelName.Forbid Specified replication channel name is forbidden (reserved for internal use). 指定的複製鏈路僅供內部使用。
400 InvalidReplicationChannel.Duplicate Specified replication channel already exists. 指定的複製鏈路已存在。
400 MissingReplicationParam Missing required parameters for replication operation: MasterHost, MasterPort, MasterUser, MasterPassword. 缺少必要的複製相關參數
400 MissingOperationParam Missing required parameter: Operation. 更新原生複製執行個體複製鏈路:缺少Operation參數
400 InvalidOperation.NotSupport Specified operation is not supported. Supported operations: Stop, Start, Restart, Rebuild. 傳入的Operation參數不支援
400 InvalidMasterPort.Format Specified MasterPort format is not valid. 指定的MasterPort參數不合法
400 MissingRebuildParam Missing required parameters for rebuild operation: MasterHost, MasterPort, MasterUser, MasterPassword. 重建複製鏈路操作缺少需要的參數:源端網域名稱、源端連接埠、源端使用者或源端密碼
404 InvalidReplicationChannel.NotFound Specified replication channel does not exist. 指定的複製鏈路不存在

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情