ListPublishedAppInstanceGroup
Queries published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by page, and supports filtering by delivery group, application, and user authorization status.
Operation description
Prerequisites
When you call this operation as a RAM user or by using STS credentials, you must have the appstreaming:ListPublishedAppInstanceGroup permission.
Only delivery groups that are in the published state and have deployed applications in their images are included in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
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.
AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all support fuzzy match. You can specify them individually or in combination. If multiple conditions are specified, all conditions must be met. If both AppId and AppName are specified, they must be met by the same application.
If an optional filter parameter is not specified or an empty string is specified, the condition is not used for filtering. The query results are sorted in descending order of the delivery group creation time. A delivery group is not returned multiple times even if it contains multiple matched applications.
ExcludeUserId is used to exclude delivery groups for which all applications have been directly authorized to a specified user. It cannot be used to determine whether the user has no access permissions at all.
AppId and AppName only filter delivery groups and do not limit the returned Apps list to the matched applications.
Call sequence
Initiate a query with PageNumber=1 and the required PageSize. For Wuying Cloud App scenarios, set ProductType=CloudApp.
Read AppInstanceGroupModels. To retrieve the next page, keep the product type and filter conditions unchanged and increment PageNumber. If no delivery groups match the conditions, the total count is 0 and the list is empty. If the page number exceeds the range of the current results, the list may also be empty, but the total count still indicates the total number of all matched delivery groups.
To obtain the details of a single delivery group, pass the complete AppInstanceGroupId returned and the same ProductType to GetAppInstanceGroup.
The desensitized identity in the examples is used to demonstrate the format. Replace it with your actual identity when you call the operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:ListPublishedAppInstanceGroup |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
Yes |
The product type. This parameter is required. The value must be the same as the product type to which the delivery groups to be queried belong. Only published delivery groups of this product type are returned. If an unrecognized value is specified, a parameter error is returned. Valid values:
Valid values:
|
CloudApp |
| PageNumber |
integer |
Yes |
The page number. This parameter is required. Start the query from page 1 and use this parameter together with PageSize. Keep other filter conditions unchanged when you query subsequent pages. |
1 |
| PageSize |
integer |
Yes |
The maximum number of delivery groups to return on each page. This parameter is required. Valid values: 1 to 100. Unit: delivery groups. Explicitly specify this parameter and do not use the default values of other query operations. |
10 |
| AppInstanceGroupId |
string |
No |
The ID of the delivery group used for filtering. Fuzzy match is supported. You can specify the complete ID or a contiguous segment of the ID. If this parameter is not specified or an empty string is specified, delivery groups are not filtered by 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. Fuzzy match is supported. For example, if you specify Office applications, delivery groups whose names contain this text are matched. If this parameter is not specified or an empty string is specified, delivery groups are not filtered by name. If this parameter is specified together with the delivery group ID, both the ID and the name must be matched. |
Office applications |
| ExcludeUserId |
string |
No |
The username to be excluded based on existing authorizations. Exact match is performed based on the complete username, such as alice. If this parameter is specified, delivery groups for which all applications have been directly authorized to the user are excluded. If this parameter is not specified or an empty string is specified, delivery groups are not excluded based on user authorization status. This condition does not fully determine access permissions granted for a single application or obtained through a user group. You cannot equate the returned results with a list of delivery groups to which the user has absolutely no access. |
alice |
| AppId |
string |
No |
The ID of the application used to filter delivery groups. Fuzzy match is supported. The delivery group must contain a deployed application that meets the condition. If this parameter is not specified or an empty string is specified, delivery groups are not filtered by application ID. If this parameter is specified together with AppName, both conditions must be met by the same application. This condition does not trim the returned Apps list. |
ca-i87mycyn419nu**** |
| AppName |
string |
No |
The name of the application used to filter delivery groups. Fuzzy match is supported. The delivery group must contain a deployed application whose name contains the specified text. If this parameter is not specified or an empty string is specified, delivery groups are not filtered by application name. If this parameter is specified together with AppId, both conditions must be met by the same application. This condition does not trim the returned Apps list. |
Office applications |
| OfficeSiteId |
string |
No |
The ID of the office network. |
cn-beijing+dir-172301**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The results of the paged query, including the request ID, paging information, total number of matched delivery groups, and the list of delivery groups on the current page. |
||
| AppInstanceGroupModels |
array<object> |
The list of published delivery groups on the current page, sorted in descending order of creation time. If no results match or the requested page exceeds the result range, an empty list is returned. |
|
|
array<object> |
A published delivery group and the information about deployed applications in its image. |
||
| AppCenterImageId |
string |
The ID of the application image. |
img-8z4nztpaqvay4**** |
| AppInstanceGroupId |
string |
The ID of the delivery group. |
aig-9ciijz60n4xsv**** |
| AppInstanceGroupName |
string |
The name of the delivery group. |
Office applications |
| AppInstanceType |
string |
The specification type of the delivery group. |
__dynamic__ |
| Apps |
array<object> |
The list of deployed applications in the image of the delivery group. The AppId and AppName parameters in the request only determine whether the delivery group is selected, and do not trim this list to the matched applications. |
|
|
object |
The identifier, name, version, and icon information of a deployed application. |
||
| AppIcon |
string |
The icon of the application. |
https://app-center-icon-****.png |
| AppId |
string |
The ID of the application. |
ca-i87mycyn419nu**** |
| AppName |
string |
The name of the application. |
Office applications |
| AppVersion |
string |
The version of the application. |
1.0.0 |
| AppVersionName |
string |
The version name of the application. |
Initial version |
| ExpiredTime |
string |
The expiration time of the delivery group. For delivery groups sold as resources, the expiration time of their resources is returned. For other delivery groups, the expiration time of the delivery groups themselves is returned. The time is in the ISO 8601 date and time format, including milliseconds and time zone offset. The returned time zone offset is +00:00. Format: yyyy-MM-ddTHH:mm:ss.SSS+HH:mm. |
2022-04-27T16:00:00.000+00:00 |
| GmtCreate |
string |
The creation time of the delivery group. The time is in the ISO 8601 date and time format, including milliseconds and time zone offset. The returned time zone offset is +00:00. Format: yyyy-MM-ddTHH:mm:ss.SSS+HH:mm. |
2022-04-26T15:06:16.000+00:00 |
| RegionId |
string |
The ID of the region to which the delivery group belongs. |
cn-hangzhou |
| Status |
string |
The status of the delivery group. This operation only returns delivery groups in the following status:
Valid values:
|
PUBLISHED |
| SupportUserGroupMixedAuth |
boolean |
Indicates whether mixed authorization of users and user groups is supported. |
|
| UserGroupAuthMode |
string |
The authorization mode for users and user groups. Valid values:
|
Mixed |
| PageNumber |
integer |
The page number specified in the current request. |
1 |
| PageSize |
integer |
The number of delivery groups per page specified in the request. Unit: delivery groups. This value does not indicate the actual number of entries 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 delivery groups that meet all filter conditions. Unit: delivery groups. This value is not the number of entries returned on the current page. Each delivery group is counted only once. If no results match, the value is 0. |
15 |
Examples
Success response
JSON format
{
"AppInstanceGroupModels": [
{
"AppCenterImageId": "img-8z4nztpaqvay4****",
"AppInstanceGroupId": "aig-9ciijz60n4xsv****",
"AppInstanceGroupName": "Office applications",
"AppInstanceType": "__dynamic__",
"Apps": [
{
"AppIcon": "https://app-center-icon-****.png",
"AppId": "ca-i87mycyn419nu****",
"AppName": "Office applications",
"AppVersion": "1.0.0",
"AppVersionName": "Initial version"
}
],
"ExpiredTime": "2022-04-27T16:00:00.000+00:00",
"GmtCreate": "2022-04-26T15:06:16.000+00:00",
"RegionId": "cn-hangzhou",
"Status": "PUBLISHED",
"SupportUserGroupMixedAuth": false,
"UserGroupAuthMode": "Mixed"
}
],
"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.