連接傳送器
產品版本:11.00
最後修改日期:2024年30月9日
將已安裝的 Transporter 連接到您的 NAKIVO Backup & Replication 設定。
終點
https://<Director_IP_address>:4443/c/router
請求範例
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "TransporterManagement",
"method": "connect",
"data": [{
"id": null,
"host": "10.10.15.107",
"port": 9446,
"dataPortRangeStart": 0,
"dataPortRangeEnd": 0,
"masterPassword": "123123"
}],
"type": "rpc",
"tid": 1
}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 |
|
被呼叫的方法 |
data
|
陣列 |
|
待新增的運輸器資料 |
type
|
字串 | rpc
|
通訊協定類型 |
tid
|
整數 | 1 | 交易編號。用於讓客戶端和伺服器雙方識別該請求 |
資料
|
領域
|
類型
|
Description
|
|---|---|---|
|
|
整數 | 運輸器識別碼 |
|
|
字串 | 安裝了 Transporter 的電腦之 IP 位址或主機名稱 |
|
|
整數 | 用於連線至 Transporter 的埠號 |
|
|
整數 | 用於資料傳輸的埠範圍起始號碼 |
|
|
整數 | 用於資料傳輸的埠範圍的結束埠號 |
|
|
字串 | 使用者主密碼 |
回應範例
{
"action":"TransporterManagement",
"method":"connect",
"tid":"1",
"type":"rpc",
"message":null,
"where":null,
"cause":null,
"data":{
"versionNumber":"11.3.0.r116966",
"preSharedKey":"116c172b77b009d418ef57e4fc2cb2d96187fa2c86e3c7df652a72e85bac741cd404b1c0f602550050ee987fa2134305f020c85671aa3a3417f093a49a3c1252",
"acceptTransCert":false,
"host":null,
"uuid":"1C49D5ED-5DA0-3AD2-A688-79D1F15DEC73"
}
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |
|
|
物件 | 已連線的傳輸器 詳情。請參閱下方的資料表 |
資料
|
領域
|
類型
|
Description
|
|---|---|---|
versionNumber
|
字串 | Transporter 版本號 |
preSharedKey
|
字串 | 將傳輸器的預共享金鑰傳遞給 新增傳送器 方法 |
|
|
布林值 | true 以接受「傳送器」憑證 |
|
|
字串 | 安裝了 Transporter 的電腦之 IP 位址或主機名稱 |
|
|
字串 | 傳輸器 UUID |