Obtains the credential that is used to connect to a cloud desktop.
Operation description
The cloud computer must be in the Running state. The ticket obtained by calling this operation will expire in 10 minutes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:GetConnectionTicket |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| EndUserId |
string |
No |
The ID of the end user of the cloud computer. The end user must be the current end user of the cloud computer. |
alice |
| Password |
string |
No |
The password of the current end user of the cloud computer. |
Ab123456 |
| TaskId |
string |
No |
The ID of the cloud computer connection task. |
2afbad19-778a-4fc5-9674-1f19c638**** |
| DesktopId |
string |
No |
The ID of the cloud computer for which you want to generate a connection credential. This parameter is required. |
ecd-gx2x1dhsmucyy**** |
| Uuid |
string |
No |
The unique identifier of the client. If you use an Alibaba Cloud Workspace client, click About on the client logon page to view the identifier of the client. |
28c80e90-f71e-4c23-93d6-1225329cf949 |
| CommandContent |
string |
No |
The command that you want to run to configure a custom application in user mode. After you obtain the credential, the application is automatically started. Parameter description in the command:
|
{ "startApplication": { "startApplicationList": [ { "sessionName": "", "appList": [ { "appPath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe", "appParameter": "www.example.com www.example1.com" } ] } ] } } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| TaskStatus |
string |
The task status. Valid values:
Valid values:
|
FINISHED |
| Ticket |
string |
The credentials for connecting to the cloud computer. |
W0VuY29kaW5nXQ0KSW5wdXRFbmNvZGluZz1V******** |
| TaskId |
string |
The ID of the cloud computer connection task. |
2afbad19-778a-4fc5-9674-1f19c638**** |
| TaskCode |
string |
Before you use the credential, you must Base64 decode the content of the credential, save the credential as an xxx.ica file, and then open the file. Python sample code: |
W0VuY29kaW5nXQ0KSW5wdXRFbmNvZGluZz1V******** |
| TaskMessage |
string |
The ID of the connection task. |
2afbad19-778a-4fc5-9674-1f19c638**** |
| DesktopId |
string |
The ID of the cloud computer. |
ecd-gx2x1dhsmucyy**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"TaskStatus": "FINISHED",
"Ticket": "W0VuY29kaW5nXQ0KSW5wdXRFbmNvZGluZz1V********",
"TaskId": "2afbad19-778a-4fc5-9674-1f19c638****",
"TaskCode": "W0VuY29kaW5nXQ0KSW5wdXRFbmNvZGluZz1V********",
"TaskMessage": "2afbad19-778a-4fc5-9674-1f19c638****",
"DesktopId": "ecd-gx2x1dhsmucyy****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.