Retrieves connection credentials for a cloud application.
Operation description
This operation requires multiple invokes (at least two) to obtain the connection credentials.
On the first invoke, an application instance is allocated to the specified convenience account and the application is started. A startup task ID (TaskID) is returned.
On subsequent invokes, pass the TaskID request parameter to query whether the task is complete. When the returned task status (TaskStatus) is completed (Finished), the connection credentials (Ticket) are also returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:GetConnectionTicket |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
Yes |
The product type. Valid values:
|
CloudApp |
| EndUserId |
string |
Yes |
The username. |
alice |
| BizRegionId |
string |
No |
The region ID. Note
If you specify this parameter, application instances are allocated only from delivery groups in the specified region. Valid values:
|
cn-hangzhou |
| TaskId |
string |
No |
The task ID. Note
This request parameter is required for non-initial invokes. Use this parameter to check the task status and connection credentials. |
28778acb-a469-4bc0-8e0f**** |
| AppId |
string |
No |
The application ID. Note
This parameter is required for the initial call and optional for subsequent calls. |
ca-e4s0puhmwi7v**** |
| AppVersion |
string |
No |
The application version. If you specify this parameter, only the specified version of the application is opened. If you do not specify this parameter, any authorized version of the application is opened. |
1.0.0 |
| AppStartParam |
string |
No |
The application startup parameter. For information about how to obtain startup parameters, see How to obtain application installation and startup parameters. |
/q /n |
| EnvironmentConfig |
string |
No |
The environment configuration. |
|
| AppInstanceGroupIdList |
array |
No |
The list of delivery groups. Note
|
|
|
string |
No |
The delivery group ID. |
aig-4xz0oy8x4ipyv**** |
|
| AppInstancePersistentId |
string |
No |
The persistent session ID. |
p-0bxls9m3cl7s**** |
| AppInstanceId |
string |
No |
The application instance ID. Note
|
ai-1rznfnrvsa99d**** |
| AccessType |
string |
No |
The access type. If you do not specify this parameter, both types are displayed. Valid values:
|
INTERNET |
| AppPolicyId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| TaskStatus |
string |
The task status. Valid values:
|
Running |
| TaskId |
string |
The task ID. |
f3d1b31c-605e-4d04-a896**** |
| BizRegionId |
string |
The region ID. |
cn-hangzhou |
| Ticket |
string |
The credentials for connecting to the cloud application. Note
This parameter is returned only on non-initial calls. |
DQpbRGVza3RvcF0NCkZvcmNlVGxzVHlwZT0xDQpHV1Rva2VuUGFydDE9MDAva09ROW1FUTU3dU**** |
| AppInstanceGroupId |
string |
The delivery group ID. |
aig-53fvrq1oan**** |
| AppInstancePersistentId |
string |
The persistent session ID. |
p-0bxls9m3cl7s**** |
| AppInstanceId |
string |
The application instance ID. |
ai-7ybdeiyoeh5e**** |
| OsType |
string |
The operating system type. Valid values:
|
Windows |
| TenantId |
integer |
The tenant ID (Alibaba Cloud account UID). |
148871678899**** |
| AvatarId |
string |
The avatar ID. |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"TaskStatus": "Running",
"TaskId": "f3d1b31c-605e-4d04-a896****",
"BizRegionId": "cn-hangzhou",
"Ticket": "DQpbRGVza3RvcF0NCkZvcmNlVGxzVHlwZT0xDQpHV1Rva2VuUGFydDE9MDAva09ROW1FUTU3dU****",
"AppInstanceGroupId": "aig-53fvrq1oan****",
"AppInstancePersistentId": "p-0bxls9m3cl7s****",
"AppInstanceId": "ai-7ybdeiyoeh5e****",
"OsType": "Windows",
"TenantId": 0,
"AvatarId": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.