登入狀態檢查
產品版本: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": "isLogged",
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 | isLogged |
被呼叫的方法 |
type
|
字串 | rpc
|
通訊協定類型 |
tid
|
整數 | 1 | 交易編號。用於讓客戶端和伺服器雙方識別該請求 |
回應範例
複製
{
"action": "AuthenticationManagement",
"method": "isLogged",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": true
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 提及發生問題的方法 |
cause
|
字串 | 故障原因 |
data
|
布林值 | true 如果使用者已登入, false 否則 |