All Products
Search
Document Center

App Streaming:GetConnectionTicket

Last Updated:Jun 17, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 :

    Cloud application.

  • AndroidCloud :

    Android cloud.

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-shenzhen :

    cn-shenzhen

  • cn-beijing :

    cn-beijing

  • cn-shanghai :

    cn-shanghai

  • cn-zhangjiakou :

    cn-zhangjiakou

  • cn-hangzhou :

    cn-hangzhou

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
  • If you specify this parameter, application instances are allocated only from the specified authorized delivery groups.

  • If you specify the AppInstanceId or AppInstancePersistentId parameter, this parameter is required.

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
  • If you specify this parameter, only the specified application instance is allocated.

  • If you specify this parameter, you must also specify the AppInstanceGroupIdList parameter, and the number of delivery group IDs in AppInstanceGroupIdList must be 1.

ai-1rznfnrvsa99d****

AccessType

string

No

The access type. If you do not specify this parameter, both types are displayed. Valid values:

  • INTERNET: Internet access.

  • VPC: Express Connect access.

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:

  • Finished :

    Completed.

  • Failed :

    Failed.

  • Running :

    Running.

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 :

    Windows operating system.

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.