All Products
Search
Document Center

Elastic Desktop Service:DescribeDesktopSessions

Last Updated:Oct 17, 2024

Queries the detailed session information of a cloud computer.

Operation description

You can only query data within the last 30 days.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region. You can call the DescribeRegions operation to query the regions supported by Elastic Desktop Service.

cn-hangzhou
OfficeSiteIdstringYes

The ID of the office network.

cn-hangzhou+dir-363353****
EndUserIdstringNo

The ID of the end user.

testUser
SessionStatusstringNo

The state of the session.

Valid values:

  • Connected
  • Disconnected
Connected
StartTimestringNo

The start of the time range to query.

2023-01-28T02:31:43Z
EndTimestringNo

The end of the time range to query.

2023-02-13T02:51:43Z
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries returned per page.

10
DesktopIdarrayNo

The IDs of the cloud computers. You can specify the IDs of 1 to 100 cloud computers.

stringNo

The ID of the cloud computer.

ecd-gx2x1dhsmucyy****
DesktopNamestringNo

The name of the cloud computer.

DemoComputer

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned.

1
RequestIdstring

The request ID.

3EC4A6DB-EC8D-55B0-9038-543DE671****
Sessionsarray<object>

Details of the session.

Sessionobject
SessionStatusstring

The state of the session.

Valid values:

  • Connected
  • Disconnected
Connected
EndUserIdstring

The ID of the end user.

testUser
OfficeSiteIdstring

The ID of the office network.

cn-hangzhou+dir-8904****
ClientIpstring

The IP address of the client.

172.21.XX.XX
ClientOSstring

The client OS.

windows_\"Windows10Enterprise\"10.0(Build22000)
DesktopIdstring

The ID of the cloud computer.

ecd-g6t1ukbaea****
DesktopNamestring

The name of the cloud computer.

testDesktop
OfficeSiteNamestring

The name of the office network.

DemoOfficeSite
ClientVersionstring

The client version.

2.0.0-R-20221030.08****
ProtocolTypestring

The protocol type.

Valid values:

  • HDX
  • ASP
ASP
LatestConnectionTimelong

The duration of the last connection to the cloud computer. Unit: seconds.

120
TotalConnectionTimelong

The total connection duration. Unit: seconds.

240
SessionStartTimestring

The start time of the session.

2023-01-28T02:31:43Z
SessionEndTimestring

The end time of the session.

2023-01-28T02:31:43Z
SessionIdleTimelong

The idle duration of the session. Unit: seconds.

120
OsTypestring

The OS.

Valid values:

  • Linux
  • Windows
Windows
EndUserApplyCoordinateTimelong

The duration of the remote assistance. Unit: seconds.

120

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "3EC4A6DB-EC8D-55B0-9038-543DE671****",
  "Sessions": [
    {
      "SessionStatus": "Connected",
      "EndUserId": "testUser",
      "OfficeSiteId": "cn-hangzhou+dir-8904****",
      "ClientIp": "172.21.XX.XX",
      "ClientOS": "windows_\\\"Windows10Enterprise\\\"10.0(Build22000)",
      "DesktopId": "ecd-g6t1ukbaea****",
      "DesktopName": "testDesktop",
      "OfficeSiteName": "DemoOfficeSite",
      "ClientVersion": "2.0.0-R-20221030.08****",
      "ProtocolType": "ASP",
      "LatestConnectionTime": 120,
      "TotalConnectionTime": 240,
      "SessionStartTime": "2023-01-28T02:31:43Z\n",
      "SessionEndTime": "2023-01-28T02:31:43Z",
      "SessionIdleTime": 120,
      "OsType": "Windows",
      "EndUserApplyCoordinateTime": 120
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-08The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-07-01The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-04-15The request parameters of the API has changedView Change Details