Queries user resources.
Operation description
Before you call this operation, verify supported resource and service types in Alibaba Cloud Workspace.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ClientId | string | Yes | The client ID. The system generates a unique ID for each client. This parameter is non-sensitive and does not need encryption. | 54c17e1d-2d72-4b87-aa33-25f3b3f2**** |
| ClientType | string | No | The client type. Valid values:
| windows |
| ClientVersion | string | No | The client version. | 7.6.0-R-20241112.222305 |
| LoginToken | string | Yes | The logon token. You can call the | v18101ac6a9e69c66b04a163031680463660b4b216cd758f34b60b9ad6a7c7f7334b83dd8f75eef4209c68f9f1080b**** |
| SessionId | string | Yes | The session ID. You can call the | cd45e873-650d-4d70-acb9-f996187a**** |
| LoginRegionId | string | No | The ID of the region where end users log on to clients. This parameter applies to office network ID-based logons. For organization ID-based logons, you can leave this parameter empty. | cn-hangzhou |
| SearchRegionId | string | No | The ID of the searched region. You can specify this parameter to filter cloud resources in specific regions. | cn-hangzhou |
| OfficeSiteIds | array | No | The office network IDs. This parameter is required for logons by using enterprise Active Directory (AD) accounts. | |
| string | No | The office network ID. | cn-hangzhou+dir-5440**** | |
| ResourceTypes | array | No | The resource types. If you leave this parameter empty, resources of all supported types will be queried. | |
| string | No | The resource type. Valid values:
| Desktop | |
| ProductTypes | array | No | The service types. If you leave this parameter empty, services of all supported types will be queried. | |
| string | No | The service type. Valid values:
| CloudApp | |
| ResourceIds | array | No | The resource IDs. You can specify up to 100 resource IDs. | |
| string | No | The resource ID. | ecd-00001 | |
| ResourceName | string | No | The resource name. Fuzzy search is supported. | testName |
| ProtocolType | string | No | The protocol type. You can specify this parameter to filter cloud computers. Valid values:
| ASP |
| AccessType | string | No | The access type. If you leave this parameter empty, both types will be displayed. Valid values:
| INTERNET |
| Language | string | No | The client language. Valid values:
| zh-CN |
| CategoryType | integer | No | The level-1 resource category. | 1 |
| CategoryId | integer | No | The level-2 resource category. | 0 |
| QueryFotaUpdate | boolean | No | Specifies whether to return the image version information of cloud computers. | false |
| RefreshFotaUpdate | boolean | No | Specifies whether to refresh over-the-air (OTA) information in real time. | false |
| OrderBy | string | No | The sorting field. If you do not specify this parameter, resources are sorted by creation time by default. Valid values:
| AssignTime |
| SortType | string | No | The sorting method. Valid values:
| ASC |
| MaxResults | integer | No | The number of entries per page. Default value: 500. | 500 |
| NextToken | string | No | A pagination token. It can be used in the next request to retrieve a new page of results. | caeba0bbb2be03f84eb48b699f0a4883 |
| AutoRefresh | boolean | No | Specifies whether to enable the immediate refresh feature. Note
To ensure the operation response speed, we recommend that you set the value to false.
Valid values:
| false |
| Scene | string | No | The client usage scenario. Set the value to Valid value:
| desktop |
DualCenterForwarddeprecated | boolean | No | Specifies whether to enable geo-redundant forwarding. Set the value to Valid value:
| false |
| QueryDesktopTimers | boolean | No | 是否查询云电脑定时任务信息,默认为 true。 Enumeration Value:
| true |
| QueryDesktopDurationList | boolean | No | 是否查询云桌面套餐包信息,默认为 true。 Enumeration Value:
| true |
Response parameters
This response parameter is not available for all resources. Ensure you know the fields for each resource.
Examples
Sample success responses
JSONformat
{
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6nmB7qrRFJ8vmttjxPL****",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"QueryFailedResourceTypes": [
"CloudDesktop"
],
"Resources": [
{
"AliUid": 0,
"ResourceType": "Desktop",
"RegionId": "cn-hangzhou",
"RegionLocation": "Mainland",
"ResourceGroupId": "dg-0****",
"ResourceId": "ecd-d19tya8zi4****",
"ResourceLevel": "Center",
"CenterResourceId": "ecds-0****",
"ResourceName": "testName01",
"CreateTime": "2024-12-11T07:12:12Z",
"ProductType": "AndroidCloud",
"OfficeSiteId": "cn-shanghai+dir-3367****",
"AccessType": "INTERNET",
"ProtocolType": "ASP",
"OsType": "Windows",
"Os": "Windows Server 2022",
"OsDescription": "",
"SupportHibernation": true,
"HibernationBeta": false,
"SessionType": "SINGLE_SESSION",
"ChargeType": "PrePaid",
"SubPayType": "PrePaid",
"ExpiredTime": "2025-02-22T16:00:00Z",
"AuthMode": "App",
"AppId": "app-0001",
"Version": "",
"CategoryType": 1,
"CategoryId": 0,
"Icon": "http://example.com/icon.png",
"ThemeColor": "#FFFFFF",
"CdsName": "cn-shanghai+cds-695277****",
"ExternalDomainId": "stg114510",
"ExternalUserId": "test001",
"GlobalStatus": true,
"LocalName": "",
"DesktopTimers": [
{
"TimerType": "TimerBoot",
"CronExpression": "0 30 13 ? * 1-7",
"Interval": 15,
"Enforce": false,
"ResetType": "RESET_TYPE_SYSTEM",
"AllowClientSetting": false,
"OperationType": "Hibernate",
"ExecutionTime": "2025-01-21T11:37Z"
}
],
"Clients": [
{
"ClientType": "windows",
"Status": "ON"
}
],
"ResourceStatus": "Running",
"LastStartTime": "2025-01-24T03:12:04Z",
"OrderStatus": "Normal",
"ManagementStatuses": [
"NoFlag"
],
"ResourceSessionStatus": "Connected",
"Sessions": [
{
"UserId": "user001",
"UserPrincipalName": "benchmark_test@test.shenzhen",
"ResourceSessionStartTime": "2025-01-22T11:03:36Z",
"NickName": "user-001"
}
],
"RealDesktopId": "ecd-0001",
"UserCustomName": "",
"FotaUpdate": {
"Project": "wuying-asp_single_session_desktop_win_x64",
"Channel": "aliyun",
"CurrentAppVersion": "2.7.0-R-20250122.154826",
"NewAppVersion": "2.7.0-R-20250125.154826",
"Force": false,
"ReleaseNote": "up",
"Size": 474981930,
"ReleaseNoteEn": "up",
"ReleaseNoteJp": "up",
"NewDcdVersion": "2.6.9-R-20250123.153415"
},
"OsUpdate": {
"CheckId": "wua-1740652957251743***",
"PackageCount": 1,
"Packages": [
{
"Kb": "KB2267***",
"Title": "",
"Description": ""
}
],
"KbListString": "KB2267***",
"UpdateCatalogUrl": "https://catalog.update.microsoft.com/home.aspx"
},
"HasUpgrade": true,
"DesktopDurationList": [
{
"PackageCreationTime": "2025-01-17T07:01Z",
"PackageStatus": "Available",
"UsedDuration": 16850,
"PackageExpiredTime": "2025-02-17T15:59Z",
"PackageId": "mdp-0bxls4qpi6bl6****",
"TotalDuration": 432000,
"PackageType": "NORMAL_PACKAGE",
"PeriodStartTime": "2025-01-17T07:01Z",
"PeriodEndTime": "2025-02-17T15:59Z",
"PostPaidLimitFee": 199,
"OrderInstanceId": "mdp-0bxls4qpi6bl6****",
"PackageUsedUpStrategy": "Postpaid"
}
],
"ConnectionProperties": {
"authMode": "App"
},
"SupportedActions": [
"Start"
]
}
],
"RankVersion": 1732869815062,
"TotalCount": 10,
"MaxResults": 100
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-02-25 | The response structure of the API has changed | View Change Details |
