Retrieves the credential that is used to connect to a cloud computer.
Operation description
The first time you call this operation, the system returns a task ID in the TaskID parameter. Use the task ID indicated in the TaskID parameter to continue calling this operation until the value of the TaskStatus parameter becomes FINISHED or FAILED. When TaskStatus becomes FINISHED, the value of the Ticket parameter is the ticket that is used to connect the client to the cloud computer.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the list of regions where Elastic Desktop Service (EDS) Enterprise is available. | cn-hangzhou |
| TaskId | string | No | The ID of the cloud computer connection task. | 2afbad19-778a-4fc5-9674-1f19c638**** |
| DesktopId | string | No | The cloud compute ID. | ecd-gx2x1dhsmucyy**** |
| ClientType | string | No | The type of the client. Valid values:
| windows |
| Tag | array<object> | No | The tags. You can specify 1 to 20 tags. | |
| object | No | The tag. | ||
| Key | string | No | The tag key. If you specify the | TestKey |
| Value | string | No | The tag value. You can specify an empty string as a tag value. A tag value can be up to 128 characters in length and cannot start with | TestValue |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"TaskStatus": "FINISHED",
"Ticket": "W0VuY29kaW5nXQ0KSW5wdXRFbmNvZGluZz1V********",
"TaskId": "2afbad19-778a-4fc5-9674-1f19c63862da",
"TaskCode": "W0VuY29kaW5nXQ0KSW5wdXRFbmNvZGluZz1V********",
"TaskMessage": "2afbad19-778a-4fc5-9674-1f19c638****",
"P2PToken": ""
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | DesktopMemoryHighLoad%s | The specified desktop memory high load. | A time out error occurred when connecting to this cloud computer because the memory usage of it is too high. The app consuming the most memory is %s. Please reconnect or restart the cloud computer. If the issue persists, please contact your IT administrator. |
| 400 | DesktopCpuHighLoad%s | The specified desktop cpu high load. | The CPU usage of this cloud computer is too high, causing the connection to time out. The application with the highest CPU usage is% s. Please reconnect or restart the cloud computer. If the connection failure still occurs, contact your IT administrator. |
| 400 | InvalidClientIp.Policy | Client ip %s is not in white list. | The IT administrator has set an IP whitelist policy that prevents you from connecting to this cloud computer under your current IP environment (%s). Please contact the IT administrator. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-10-17 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
| 2024-11-24 | The Error code has changed. The request parameters of the API has changed | View Change Details |
