新增傳送器
產品版本: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": "add",
"data": [{
"id": null,
"loggingLevel": "AUTO",
"name": "10.10.15.107",
"description": "",
"host": "10.10.15.107",
"port": 9446,
"dataPortRangeStart": 9448,
"dataPortRangeEnd": 10000,
"loadFactor": 6,
"additionalLoadFactor": 2,
"isProxyTransporter": false,
"masterPassword": "123123",
"preSharedKey": "116c172b77b009d418ef57e4fc2cb2d96187fa2c86e3c7df652a72e85bac741cd404b1c0f602550050ee987fa2134305f020c85671aa3a3417f093a49a3c1252"
}],
"type": "rpc",
"tid": 1
}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 |
|
被呼叫的方法 |
data
|
陣列 |
|
待新增的運輸器資料 |
type
|
字串 | rpc
|
通訊協定類型 |
tid
|
整數 | 1 | 交易編號。用於讓客戶端和伺服器雙方識別該請求 |
資料
|
領域
|
類型
|
Description
|
|---|---|---|
id
|
整數 | 傳輸器識別碼。設定為 null 時, |
loggingLevel
|
字串 | 此 Transporter 應啟用的記錄層級 |
|
|
字串 | 「Transporter」的顯示名稱 |
description
|
字串 | 「傳送器」的說明 |
|
|
字串 | 安裝了 Transporter 的電腦之 IP 位址或主機名稱 |
|
|
整數 | 用於連線至 Transporter 的埠號 |
|
|
整數 | 用於資料傳輸的埠範圍起始號碼 |
|
|
整數 | 用於資料傳輸的埠範圍的結束埠號 |
|
|
整數 | 「Transporter」應同時處理的任務最大數量 |
additionalLoadFactor
|
整數 | 「Transporter」應處理的額外最大同時執行任務數 |
|
|
布林值 | true 若要將該傳輸器用作代理傳輸器 |
|
|
字串 | 使用者主密碼 |
preSharedKey
|
字串 | 從 接收到的傳輸器的預共享金鑰 連接傳送器 方法 |
回應範例
{
"action":"TransporterManagement",
"method":"add",
"tid":"1",
"type":"rpc",
"message":null,
"where":null,
"cause":null,
"data":17
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |
|
|
整數 | 新增的 Transporter 的 ID |