ListPublishedApps
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, andPageSize. The page number starts from1, and the number of entries per page ranges from1to100. If the values are invalid, the error codesInvalidParameter.PageNumberandInvalidParameter.PageSizeare returned, respectively.AppInstanceGroupId,AppInstanceGroupName,AppId, andAppNameall 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.
ExcludeUserIdis 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
Initiate a query with
PageNumber=1and the desiredPageSize. For WUYING Cloud App scenarios, useProductType=CloudApp.Read
Apps. To retrieve the next page, keep the product type and filter conditions unchanged and incrementPageNumber. If no matching results are found,TotalCountis0andAppsis an empty list. If the page number exceeds the result range,Appsmay also be empty, butTotalCountstill indicates the total number of matching records.When you need to grant authorization to a user for an application on a per-application basis, pass the returned
AppInstanceGroupId,AppId, and the sameProductTypeto AuthorizeUsersForApp. To view delivery group details, passAppInstanceGroupIdandProductTypeto 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
Test
RAM authorization
|
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 Valid values:
Valid values:
|
CloudApp |
| PageNumber |
integer |
Yes |
The page number. This parameter is required. Start the query from page |
1 |
| PageSize |
integer |
Yes |
The maximum number of application records to return per page. This parameter is required. Valid values: |
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 |
| 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 |
ca-i87mycyn419nu**** |
| AppName |
string |
No |
The name of the application used for filtering. Substring matching is supported. For example, if you pass |
Office applications |
| ExcludeUserId |
string |
No |
The username to be excluded. Exact matching is performed based on the full username, such as 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 |
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, |
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 |
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.