檢查使用者email是否唯一
產品版本:10.11
最後修改日期:2024年7月31日
若已提供,則檢查該使用者的email是否唯一。此功能用於建立新的使用者帳戶。
終點
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": "AuthenticationManagement",
"method": "checkUserEmailUniqueness",
"data": [null,"admin1@nakivo.com"],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 | checkUserEmailUniqueness |
被呼叫的方法 |
data
|
陣列 | [null, "admin1@nakivo.com"] |
參數。請參閱下方的資料表 |
type
|
字串 | rpc |
通訊協定類型 |
tid
|
整數 | 1 |
交易編號。用於讓客戶端和伺服器雙方識別該請求 |
資料
|
領域
|
類型
|
Description
|
|---|---|---|
userId |
長 | 可選。需從檢查中排除的現有使用者 ID,例如,正在編輯其帳戶的使用者。如果 null,系統會將該email與所有使用者進行比對 |
|
字串 |
需檢查唯一性的使用者email |
回應範例
複製
{
"action": "AuthenticationManagement",
"method": "checkUserEmailUniqueness",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": true
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
|
字串 |
若請求失敗,請顯示此訊息 |
|
字串 |
提及發生問題的方法 |
|
字串 |
故障原因 |
|
布林值 |
|