ListPublishedApps

Updated at:

Performs a paging query on applications deployed in published delivery groups of a specified product type under the current Alibaba Cloud account. Returns each application along with its delivery group and the number of users granted authorization for the application. Supports filtering by delivery group, application, and user authorization status.

Operation description

Prerequisites

To call this operation as a RAM user or by using STS credentials, you must have the appstreaming:ListPublishedApps permission.

Only applications deployed in the images of published delivery groups are returned in the query results. This operation only queries information. It does not create delivery groups, nor does it grant or revoke application access permissions.

Return granularity

Results are returned item by item based on the "delivery group + application" combination. If the same application is deployed in multiple published delivery groups, multiple records are returned. TotalCount also counts the number of combinations. The list is sorted in descending order of the creation time of the associated delivery groups.

Query and pagination

  • You must explicitly specify ProductType, PageNumber, and PageSize. The page number starts from 1, and the number of entries per page ranges from 1 to 100. If the values are invalid, the error codes InvalidParameter.PageNumber and InvalidParameter.PageSize are returned, respectively.

  • AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all support substring matching. You can specify them individually or in combination. If multiple conditions are specified, all conditions must be met.

  • If an optional filter parameter is not specified or an empty string is passed, filtering is not performed based on this condition.

  • ExcludeUserId is used to exclude applications that have been authorized for a specified user on a per-application basis, making it easier to filter out applications that can still be authorized for the user. Access permissions obtained through overall delivery group authorization or user groups are not evaluated by this condition.

Call sequence

  1. Initiate a query with PageNumber=1 and the desired PageSize. For WUYING Cloud App scenarios, use ProductType=CloudApp.

  2. Read Apps. To retrieve the next page, keep the product type and filter conditions unchanged and increment PageNumber. If no matching results are found, TotalCount is 0 and Apps is an empty list. If the page number exceeds the result range, Apps may also be empty, but TotalCount still indicates the total number of matching records.

  3. When you need to grant authorization to a user for an application on a per-application basis, pass the returned AppInstanceGroupId, AppId, and the same ProductType to AuthorizeUsersForApp. To view delivery group details, pass AppInstanceGroupId and ProductType to GetAppInstanceGroup.

The masked identity in the examples is used to demonstrate the format. Replace it with your actual identity when you invoke the operation.

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

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProductType

string

Yes

The product type. This parameter is required and is not case-sensitive. Only applications in published delivery groups of this product type are returned. If an unrecognized value is passed, the error code InvalidParameter.ProductType is returned. Filtering and statistics related to per-application authorization (ExcludeUserId and AuthorizedUserCount) are primarily used in WUYING Cloud App scenarios.

Valid values:

  • CloudApp: WUYING Cloud App.

  • CloudBrowser: Cloud browser.

  • WuyingServer: Enterprise Edition workstation.

  • WuyingWorkstation: Personal Edition Linggou container workstation.

  • WuyingWorkstationTeam: Team Edition Linggou container workstation.

  • WuyingWorkstationBusiness: Dedicated Edition Linggou container workstation.

  • AndroidCloud: Cloud phone.

  • AIAgent: AgentBay (AI agent).

Valid values:

  • WuyingWorkstation :

    Personal Edition Linggou container workstation.

  • WuyingWorkstationTeam :

    Team Edition Linggou container workstation.

  • CloudApp :

    WUYING Cloud App.

  • CloudBrowser :

    Cloud browser.

  • AIAgent :

    AgentBay (AI agent)

  • AndroidCloud :

    Cloud phone.

  • WuyingWorkstationBusiness :

    Dedicated Edition Linggou container workstation.

  • WuyingServer :

    Enterprise Edition workstation.

CloudApp

PageNumber

integer

Yes

The page number. This parameter is required. Start the query from page 1 and use it in conjunction with PageSize. Keep other filter conditions unchanged when querying subsequent pages. If the value is invalid, the error code InvalidParameter.PageNumber is returned.

1

PageSize

integer

Yes

The maximum number of application records to return per page. This parameter is required. Valid values: 1 to 100. If the value is out of range, the error code InvalidParameter.PageSize is returned.

10

AppInstanceGroupId

string

No

The ID of the delivery group used for filtering. Substring matching is supported. You can pass the complete ID or a continuous segment of it. If this parameter is not specified or an empty string is passed, filtering is not performed based on the delivery group ID. You can call the ListAppInstanceGroup operation to obtain the delivery group ID. This parameter can be used together with other filter conditions, and all conditions must be met.

aig-9ciijz60n4xsv****

AppInstanceGroupName

string

No

The name of the delivery group used for filtering. Substring matching is supported. For example, if you pass Office applications, delivery groups whose names contain this text are matched. If this parameter is not specified or an empty string is passed, filtering is not performed based on the delivery group name. If this parameter and the delivery group ID are specified at the same time, both conditions must be met.

Office applications

AppId

string

No

The ID of the application used for filtering. Substring matching is supported. You can pass the complete ID or a continuous segment of it. If this parameter is not specified or an empty string is passed, filtering is not performed based on the application ID. If this parameter and AppName are specified at the same time, both conditions must be met by the same application.

ca-i87mycyn419nu****

AppName

string

No

The name of the application used for filtering. Substring matching is supported. For example, if you pass Office applications, applications whose names contain this text are matched. If this parameter is not specified or an empty string is passed, filtering is not performed based on the application name. If this parameter and AppId are specified at the same time, both conditions must be met by the same application.

Office applications

ExcludeUserId

string

No

The username to be excluded. Exact matching is performed based on the full username, such as alice. If this parameter is specified, applications that have been authorized for this user on a per-application basis through AuthorizeUsersForApp are not returned. This can be used to find applications that can still be authorized for the user. If this parameter is not specified or an empty string is passed, filtering is not performed based on user authorization.

Access permissions obtained through overall delivery group authorization or user groups are not evaluated by this condition. Do not equate the returned results with a list of applications that the user has absolutely no access to.

alice

Response elements

Element

Type

Description

Example

object

The results of the current paging query, including the request ID, paging information, total number of matching records, and the list of applications on the current page.

Apps

array<object>

The list of application records on the current page. Each record corresponds to a deployed application in a published delivery group, sorted in descending order of the creation time of the associated delivery group. If no matching results are found or the requested page exceeds the result range, an empty list is returned.

object

A deployed application in a published delivery group, including the application identifier, version, icon, associated delivery group, and the number of users authorized on a per-application basis.

AppIcon

string

The access URL of the application icon.

https://app-center-icon-****.png

AppId

string

The application ID. When you invoke the AuthorizeUsersForApp operation to grant authorization to a user for this application, pass this value together with AppInstanceGroupId.

ca-i87mycyn419nu****

AppInstanceGroupId

string

The ID of the published delivery group to which the application belongs.

aig-9ciijz60n4xsv****

AppInstanceGroupName

string

The name of the published delivery group to which the application belongs.

Office applications

AppName

string

The application name.

Office applications

AppVersion

string

The application version number.

1.0.0

AppVersionName

string

The application version name, which is the name set for this version when the application is published.

Initial version

AuthorizedUserCount

integer

The number of users currently authorized for this application on a per-application basis within the associated delivery group. Only users authorized on a per-application basis through AuthorizeUsersForApp are counted. If no users are authorized on a per-application basis, 0 is returned.

5

PageNumber

integer

The page number specified in the current request.

1

PageSize

integer

The number of records per page specified in the current request. This value does not represent the actual number of records returned on the current page. The actual number on the current page may be less than this value.

10

RequestId

string

The unique identifier of the current request, which can be used to troubleshoot request issues.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

TotalCount

integer

The total number of records that meet all filter conditions. The count is based on the "delivery group + application" combination. If the same application appears in multiple published delivery groups, it is counted separately. This value is not the number of records returned on the current page. If no matching results are found, the value is 0.

15

Examples

Success response

JSON format

{
  "Apps": [
    {
      "AppIcon": "https://app-center-icon-****.png",
      "AppId": "ca-i87mycyn419nu****",
      "AppInstanceGroupId": "aig-9ciijz60n4xsv****",
      "AppInstanceGroupName": "OfficeApps",
      "AppName": "OfficeApps",
      "AppVersion": "1.0.0",
      "AppVersionName": "Initial version",
      "AuthorizedUserCount": 5
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "TotalCount": 15
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.