註冊用戶
產品版本:10.11
最後修改日期:2024年7月31日
在首次登入時為使用者進行註冊。詳情請參閱《登入 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": "RegistrationManagement",
"method": "register",
"data": ["John Dent", "john", "john.dent@company.com", "PasswordXYZ", null],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action |
字串 |
|
所呼叫的動作 |
method |
字串 |
|
被呼叫的方法 |
data |
陣列 |
|
待呼叫方法的參數 |
type |
字串 | rpc |
通訊協定類型 |
tid |
整數 | 1 |
交易編號。用於讓客戶端和伺服器雙方識別該請求 |
資料
|
領域
|
類型
|
Description
|
|---|---|---|
|
字串 | 要註冊的使用者全名 |
|
字串 | 將作為應用程式管理員註冊的使用者名稱 |
|
字串 | 待註冊使用者的email地址 |
|
字串 | 要註冊的用戶的密碼 |
|
字串 | EC2 執行個體 ID,可選 |
回應範例
複製
{
"action": "RegistrationManagement",
"method": "register",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
|
字串 | 若請求失敗,請顯示此訊息 |
|
字串 | 關於發生問題的方法的說明 |
|
字串 | 故障原因 |
|
字串 |
|