Retrieves a connection credential for a cloud application.
Operation description
To obtain a ticket, you must call this operation at least twice.
The first call allocates an application instance to the specified convenience account and starts the application. The response includes a TaskID.
In subsequent calls, include the TaskID in your request to query the task status. When TaskStatus is Finished, the response will include the Ticket.
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 ID of the end user. |
alice |
| BizRegionId |
string |
No |
The region ID. Note
If you specify this parameter, an application instance is allocated only from delivery groups in the specified region. Valid values:
|
cn-hangzhou |
| TaskId |
string |
No |
The task ID. Note
Required for subsequent calls to query the task status and retrieve the connection ticket. |
28778acb-a469-4bc0-8e0f**** |
| AppId |
string |
No |
The application ID. Note
Required for the initial call. Optional for subsequent calls. |
ca-e4s0puhmwi7v**** |
| AppVersion |
string |
No |
The version of the application to start. If you omit this parameter, the system starts any authorized version. |
1.0.0 |
| AppStartParam |
string |
No |
The application startup parameter. For more information, see How to obtain application installation and startup parameters. |
/q /n |
| EnvironmentConfig |
string |
No |
The environment configuration. |
|
| AppInstanceGroupIdList |
array |
No |
A list of delivery group IDs. 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 omit this parameter, details for both access types are returned.
Valid values: |
INTERNET |
| AppPolicyId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| 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 ticket to connect to the cloud application. Note
This parameter is returned only for subsequent 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 ID). |
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.