取得工作階段狀態
產品版本: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": "getSessionState",
"data": ["a62608ca-facb-49be-ba44-9cc6907fb05b"],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
|
|
字串 |
|
應採取的行動 |
|
|
字串 |
|
應採用的方法 |
|
|
陣列 |
|
排隊中會話的 ID |
|
|
string
|
|
通訊協定類型 |
|
|
整數 |
|
交易編號。用於讓客戶端和伺服器雙方識別該請求 |
回應範例
{
"action": "BrandingManagement",
"method": "getSessionState",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"imagePath": [null, null, null, null, null],
"imageAttributeDto": [
{"size": 0, "height": 0, "width": 0},
{"size": 0, "height": 0, "width": 0},
{"size": 0, "height": 0, "width": 0},
{"size": 0, "height": 0, "width": 0},
{"size": 0, "height": 0, "width": 0}
],
"state": "INITIAL",
"lastError": null,
"updated": null
}
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
|
|
字串 | 若請求失敗,請顯示此訊息 |
|
|
字串 | 關於發生問題的方法的說明 |
|
|
字串 | 故障原因 |
|
|
物件 | 排隊中會話的資料。請參閱 data 下表 |
資料
|
領域
|
價值
|
Description
|
|---|---|---|
|
|
陣列 |
已處理影像的路徑,該工作階段中 5 個影像區塊各對應一個元素。一個元素 |
|
|
陣列 |
每個桶中圖片的尺寸、高度和寬度,順序與 |
|
|
enum |
工作階段狀態: |
|
|
字串 |
排程工作階段中可取得的最後一個錯誤 |
|
|
dateTime |
最後一次更新工作階段狀態的日期與時間,例如, |