登出
產品版本:10.11
最後修改日期:2024年7月31日
將當前使用者登出。
終點
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": "logoutCurrentUser",
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 | logoutCurrentUser |
被呼叫的方法 |
type
|
字串 | rpc |
通訊協定類型 |
tid
|
整數 | 1 |
交易編號。用於讓客戶端和伺服器雙方識別該請求 |
回應範例
複製
{
"action": "AuthenticationManagement",
"method": "logoutCurrentUser",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 提及發生問題的方法 |
cause
|
字串 | 故障原因 |
| 資料 | null
|
總是 null:此方法不傳回任何資料 |