All Products
Search
Document Center

Elastic Desktop Service:DescribeGlobalDesktopRecords

Last Updated:Nov 14, 2025

Queries the basic information of all cloud computers and the corresponding usage duration records.

Operation description

  • Domestic site users query site selection Shanghai, international site users choose Singapore.
  • By default, you can query all cloud computers that are deleted or not deleted.
  • Deleted cloud computers can be queried only if the deletion time is less than three months.
  • Sort criteria cannot be shared with other criteria.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecd:DescribeGlobalDesktopRecordslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

  • China (Shanghai)
  • Singapore
cn-shanghai
OfficeSiteIdstringNo

The office network IDs.

cn-hangzhou+dir-363353****
StartTimestringNo

The start time. Supported formats:

  • Format: YYYY-MM-DDThh:mm:ssZ.
2022-03-23T04:10:21Z
EndTimestringNo

The end time. The interval between the start time and end time can be up to 30 days. Supported formats:

  • Format: YYYY-MM-DDThh:mm:ssZ.
2022-08-31T06:56:45Z
PageNumberintegerNo

The page number of the current page.
Default value: 1

1
PageSizeintegerNo

The number of entries to return on each page. Valid values: 1 to 100.

20
DesktopIdarrayNo

The cloud computer IDs. You can specify 1 to 100 office network IDs.

stringNo

The ID of the cloud desktop.

ecd-gx2x1dhsmucyy****
DesktopNamestringNo

The name of the cloud computer.

DemoComputer
SubPayTypestringNo

The way to purchase cloud computers. Valid values:

  • prePaid: The monthly purchase is unlimited.
  • postPaid: pay-as-you-go
  • monthPackage: monthly duration.
monthPackage
ScopestringNo

The query range. This parameter is empty by default. Optional values are:

  • ADVANCED: indicates that statistics such as the connection duration are queried.
ADVANCED
OrderBystringNo

The sorting field. If this parameter is not provided, results are sorted by creation time in descending order. Valid values:

  • uptime: indicates that the cloud computers are sorted by startup duration.
uptime
SortTypestringNo

The sorting method. Default value: ascending. Valid value:

  • Asc: ascending order
  • Desc: descending.
Asc
EndUserIdstringNo

The end user ID.

TestUser
DesktopTypestringNo

The cloud computer type. You can call the DescribeDesktopTypes operation to query the IDs of the specifications supported by the cloud computer.

eds.enterprise_office.2c4g
ResourceGroupIdstringNo

The ID of the resource group.

rg-3mtuc28rx95lx****

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned.

1
RequestIdstring

The request ID.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****
Sessionsarray<object>

The session details.

Sessionobject

The details of the session.

Platformstring

The specific model of the operating system.

Windows 10
StatusChangeTimelong

The time when the status of the cloud computer was changed.

1760583xxxx
Memorylong

The memory of the cloud computer. Unit: MiB.

4096
DesktopNamestring

The cloud computer name.

DemoComputer
Cpuinteger

The number of vCPUs.

2
SubPayTypestring

The billing method of the cloud computer. Valid values:

  • prePaid: The monthly purchase is unlimited.
  • postPaid: pay-as-you-go
  • monthPackage: monthly duration.
monthPackage
EndUserIdstring

The end user ID.

TestUser
OsTypestring

The OS type. Valid values:

  • Windows
  • Linux
Linux
SessionIdleTimelong

The idle duration of the session. Unit: minutes.

120
OfficeSiteNamestring

The office network name.

TestOfficeSite
ConnectionStatusstring

The connection status of the cloud desktop.

Connected
Sessionsarray<object>

The session details.

Sessionobject

End user information.

EndUserIdstring

The end user ID.

TestUser
EstablishmentTimestring

The time when the session was created.

2022-08-31T06:56:45Z
DesktopIdstring

The cloud computer IDs.

ecd-g6t1ukbaea****
EndUserIdsarray

The list of assigned terminal user IDs.

EndUserIdstring

The end user ID.

TestUser
ResourceGroupsarray<object>

The name of the enterprise resource group.

ResourceGroupobject

The name of the enterprise resource group.

ResourceGroupIdstring

The ID of the enterprise resource group.

rg-f3s3dgt8dtb0vlqc8
ResourceGroupNamestring

The queried resource group name.

dms_test
OfficeSiteIdstring

The office network ID.

cn-hangzhou+dir-8904****
UpTimelong

The startup duration of the cloud computer. Unit: seconds

86400
ProtocolTypestring

Protocol type.

  • HDX
  • ASP
ASP
GpuSpecstring

The size of the GPU memory.

8GiB
LatestConnectionTimelong

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

120
TotalConnectionTimelong

The total connection duration. Unit: seconds

240
RegionIdstring

The ID of the region where the instance resides.

cn-beijing
DesktopGroupIdstring

The ID of the cloud computer share.

dg-iaqu3bi2xtie****
DesktopGroupNamestring

The name of the cloud computer share.

DemoCCGroup
DesktopStatusstring

桌面状态

Running

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "Sessions": [
    {
      "Platform": "Windows 10",
      "StatusChangeTime": 0,
      "Memory": 4096,
      "DesktopName": "DemoComputer",
      "Cpu": 2,
      "SubPayType": "monthPackage",
      "EndUserId": "TestUser",
      "OsType": "Linux",
      "SessionIdleTime": 120,
      "OfficeSiteName": "TestOfficeSite",
      "ConnectionStatus": "Connected",
      "Sessions": [
        {
          "EndUserId": "TestUser",
          "EstablishmentTime": "2022-08-31T06:56:45Z"
        }
      ],
      "DesktopId": "ecd-g6t1ukbaea****",
      "EndUserIds": [
        "TestUser"
      ],
      "ResourceGroups": [
        {
          "ResourceGroupId": "rg-f3s3dgt8dtb0vlqc8",
          "ResourceGroupName": "dms_test"
        }
      ],
      "OfficeSiteId": "cn-hangzhou+dir-8904****",
      "UpTime": 86400,
      "ProtocolType": "ASP",
      "GpuSpec": "8GiB",
      "LatestConnectionTime": 120,
      "TotalConnectionTime": 240,
      "RegionId": "cn-beijing",
      "DesktopGroupId": "dg-iaqu3bi2xtie****",
      "DesktopGroupName": "DemoCCGroup",
      "DesktopStatus": "Running"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-10-21Add OperationView Change Details