CreateSession
Creates a Web Terminal session.
Operation description
Creates a session, returns the frontend endpoint, and starts a periodic task to track the session status.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:CreateSession |
create |
*Cluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NodeId |
string |
No |
The instance ID. |
e01-cn-kvw44e6dn04 |
| StartTime |
string |
No |
The start time, as a 13-digit timestamp. |
1669340937156 |
| SessionType |
string |
No |
The session type for the session package. |
Valid values: Sol (default): based on serial port Assistant: based on cloud assistant |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
887FA855-89F4-5DB3-B305-C5879EC480E6 |
| WssEndpoint |
string |
The WebSocket address. |
ws://x.x.x.x:xx/calypso_web_console |
| SessionId |
string |
The session ID. |
i207023871669364793713 |
| SessionToken |
string |
The session credential. |
03f53c719015a9ad4f4f55d66cac2dac161b18e8065ca75a3220b89de389c980 |
| ServerSn |
string |
The node ID. |
2A59143F1 |
Examples
Success response
JSON format
{
"RequestId": "887FA855-89F4-5DB3-B305-C5879EC480E6",
"WssEndpoint": "ws://x.x.x.x:xx/calypso_web_console",
"SessionId": "i207023871669364793713",
"SessionToken": "03f53c719015a9ad4f4f55d66cac2dac161b18e8065ca75a3220b89de389c980",
"ServerSn": "2A59143F1"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.