建立會話
產品版本: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": "BrandingManagement",
"method": "createSession",
"data": null,
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 |
|
被呼叫的方法 |
data
|
null |
|
此方法沒有參數 |
type
|
字串 | rpc
|
通訊協定類型 |
tid
|
整數 | 1 | 交易編號。用於讓客戶端和伺服器雙方識別該請求 |
回應範例
複製
{
"action": "BrandingManagement",
"method": "createSession",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": "a62608ca-facb-49be-ba44-9cc6907fb05b"
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
|
字串 |
若請求失敗,請顯示此訊息 |
|
字串 |
關於發生問題的方法的說明 |
|
字串 |
故障原因 |
data |
字串 |
已建立的會話 ID |