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
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| ecd:DescribeGlobalDesktopRecords | list | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID.
| cn-shanghai |
| OfficeSiteId | string | No | The office network IDs. | cn-hangzhou+dir-363353**** |
| StartTime | string | No | The start time. Supported formats:
| 2022-03-23T04:10:21Z |
| EndTime | string | No | The end time. The interval between the start time and end time can be up to 30 days. Supported formats:
| 2022-08-31T06:56:45Z |
| PageNumber | integer | No | The page number of the current page. | 1 |
| PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 100. | 20 |
| DesktopId | array | No | The cloud computer IDs. You can specify 1 to 100 office network IDs. | |
| string | No | The ID of the cloud desktop. | ecd-gx2x1dhsmucyy**** | |
| DesktopName | string | No | The name of the cloud computer. | DemoComputer |
| SubPayType | string | No | The way to purchase cloud computers. Valid values:
| monthPackage |
| Scope | string | No | The query range. This parameter is empty by default. Optional values are:
| ADVANCED |
| OrderBy | string | No | The sorting field. If this parameter is not provided, results are sorted by creation time in descending order. Valid values:
| uptime |
| SortType | string | No | The sorting method. Default value: ascending. Valid value:
| Asc |
| EndUserId | string | No | The end user ID. | TestUser |
| DesktopType | string | No | 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 |
| ResourceGroupId | string | No | The ID of the resource group. | rg-3mtuc28rx95lx**** |
Response parameters
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 time | Summary of changes | Operation |
|---|---|---|
| 2025-10-21 | Add Operation | View Change Details |
