Permanently closes the data connection of a specified session.
Operation description
-
Closes the data connection of a specified session. The session can no longer be used.
-
The WebSocket URL associated with the session also becomes invalid and can no longer be used.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:EndTerminalSession |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the session resides. |
cn-hangzhou |
| SessionId |
string |
Yes |
The session ID. |
s-hz023od0x9**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RegionId.ApiNotSupported | The api is not supported in this region. | The API operation cannot be called in the specified region. Check whether the specified RegionId parameter is valid. |
| 403 | Operation.Forbidden | The operation is not permitted. | The operation is not supported. |
| 404 | InvalidSessionId.NotFound | The specified SessionId does not exist. | SessionId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.