Get Session State
Product version: 10.11
Last modified: 31 July 2024
Gets the state of the session. This is used for tenant creation. Refer to Create Tenant.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
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}'
Request Fields
|
Field
|
Type
|
Value(s)
|
Description |
|---|---|---|---|
|
|
string |
|
Action to be used |
|
|
string |
|
Method to be used |
|
|
array |
|
ID of the queued session |
|
|
string
|
|
Type of communication protocol |
|
|
integer |
|
Transaction ID. Used to identify the request by both the client and the server |
Response Sample
{
"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
}
}
Response Fields
|
Field
|
Value
|
Description
|
|---|---|---|
|
|
string | Message if the request failed |
|
|
string | Reference to the method where the problem occurred |
|
|
string | Cause of failure |
|
|
object | Data of the queued session. See the data table below |
data
|
Field
|
Value
|
Description
|
|---|---|---|
|
|
array |
Paths of the processed images, one element for each of the 5 image buckets of the session. An element is |
|
|
array |
Size, height, and width of the image in each bucket, in the same order as |
|
|
enum |
State of the session: |
|
|
string |
Last error available for the queued session |
|
|
dateTime |
Date and time when the session state was last updated, for example, |