ListAuthorizedAppInstanceGroupByUser
Performs a paging query on the app instance groups for which a specified user has obtained access permissions through app instance group-level authorization, and supports fuzzy filtering by app instance group ID, app instance group name, application ID, and application name.
Operation description
Operation description
This operation queries the list of app instance groups to which a specified user (EndUserId) has been granted app instance group-level authorization. It returns the basic information of each app instance group (such as ID, name, status, region, creation time, and expiration time) and the list of applications deployed in the app instance group.
Scope of returned results:
Only app instance groups that are authorized to the user as a whole through the AuthorizeInstanceGroup operation are returned. Records authorized for individual applications through the AuthorizeUsersForApp operation are not included.
Only app instance groups whose product type matches ProductType and that are not deleted are returned. If no applications are deployed in the app instance group image, the app instance group is not returned.
The results are sorted in descending order based on the update time of the authorization records. The most recently authorized or modified app instance groups are ranked first.
Before you begin
The AuthorizeInstanceGroup operation is called to authorize the app instance group to the user.
Parameter description
ProductType and EndUserId are required. If ProductType is not specified, the error code
InvalidParameter.ProductTypeis returned. If EndUserId is not specified, the error codeInvalidParameter.UserIdis returned.EndUserId uses exact match based on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName use fuzzy match (a hit occurs if the string is contained). If multiple filter conditions are specified, all conditions must be met.
PageNumber starts from 1. Valid values for PageSize: 1 to 100.
If the user does not have any app instance groups with authorization that meet the conditional requirements, the operation returns a normal response: AppInstanceGroupModels is an empty list and TotalCount is 0.
Call sequence
Call the ListAppInstanceGroup operation to obtain the app instance group ID, and then call the AuthorizeInstanceGroup operation to authorize the app instance group to the user.
Call this operation to query the app instance groups authorized for the user and the applications deployed in the app instance groups.
To obtain the application connection ticket for the user, call the GetConnectionTicket operation based on the returned AppInstanceGroupId and the AppId in Apps.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:ListAuthorizedAppInstanceGroupByUser |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
Yes |
The product type. The value must be consistent with the product type of the queried app instance groups. Only app instance groups of this product type are returned. Valid values:
Valid values:
|
CloudApp |
| PageNumber |
integer |
Yes |
The page number. Pages start from 1. |
1 |
| PageSize |
integer |
Yes |
The number of app instance groups to return on each page. Valid values: 1 to 100. |
10 |
| AppInstanceGroupId |
string |
No |
The app instance group ID. Fuzzy match is supported. App instance groups whose IDs contain this string are returned. You can call the ListAppInstanceGroup operation to obtain the ID. If this parameter is not specified, app instance groups are not filtered by app instance group ID. |
aig-9ciijz60n4xsv**** |
| AppId |
string |
No |
The application ID. Fuzzy match is supported. App instance groups in which the IDs of deployed applications contain this string are returned. You can obtain the application ID from the Apps list returned by this operation. If this parameter is not specified, app instance groups are not filtered by application ID. |
ca-i87mycyn419nu**** |
| EndUserId |
string |
Yes |
The username. Exact match is used based on the username to query the app instance groups to which the user has been granted app instance group-level authorization. Note
This parameter is required. If this parameter is not specified, the error code InvalidParameter.UserId is returned. |
alice |
| AppInstanceGroupName |
string |
No |
The app instance group name. Fuzzy match is supported. For example, if you specify If this parameter is not specified, app instance groups are not filtered by app instance group name. |
Office applications |
| AppName |
string |
No |
The application name. Fuzzy match is supported. App instance groups in which the names of deployed applications contain this string are returned. If this parameter is not specified, app instance groups are not filtered by application name. |
Office applications |
| OfficeSiteId |
string |
No |
The office network ID. |
cn-shenzhen+dir-436909**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| AppInstanceGroupModels |
array<object> |
The list of authorized app instance groups on the current page. If the user does not have any authorized app instance groups that meet the conditions, an empty list is returned. |
|
|
array<object> |
|||
| AppCenterImageId |
string |
The ID of the application image used by the app instance group. |
img-8z4nztpaqvay4**** |
| AppInstanceGroupId |
string |
The app instance group ID. When you call the GetConnectionTicket operation, you can specify this value to indicate the app instance group to connect to. |
aig-9ciijz60n4xsv**** |
| AppInstanceGroupName |
string |
The app instance group name. |
Office applications |
| AppInstanceType |
string |
The specification type of the app instance group. |
__dynamic__ |
| Apps |
array<object> |
The list of applications deployed in the app instance group. This list includes all applications deployed in the app instance group image and is not affected by the AppId and AppName request parameters. |
|
|
object |
|||
| AppIcon |
string |
The URL of the application icon. |
https://app-center-icon-****.png |
| AppId |
string |
The application ID. When you call the GetConnectionTicket operation to obtain the connection ticket for the application, specify this value. |
ca-i87mycyn419nu**** |
| AppName |
string |
The application name. |
Office applications |
| AppVersion |
string |
The application version number. |
1.0.0 |
| AppVersionName |
string |
The application version name. |
Initial version |
| ExpiredTime |
string |
The expiration time of the app instance group. The time is displayed in the ISO 8601 standard 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 app instance group. The time is displayed in the ISO 8601 standard 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 region ID of the app instance group. For more information about supported regions, see Limits. |
cn-hangzhou |
| Status |
string |
The status of the app instance group. Valid values:
Note
Deleted app instance groups are not returned. Valid values:
|
PUBLISHED |
| SupportUserGroupMixedAuth |
boolean |
Specifies whether mixed authorization for users and user groups is supported. |
|
| UserGroupAuthMode |
string |
The authorization mode for users and user groups. Valid values:
|
Mixed |
| PageNumber |
integer |
The current page number, which is the same as the PageNumber request parameter. |
1 |
| PageSize |
integer |
The number of app instance groups returned on each page, which is the same as the PageSize request parameter. |
10 |
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| TotalCount |
integer |
The total number of authorized app instance groups that meet the filter conditions. |
3 |
Examples
Success response
JSON format
{
"AppInstanceGroupModels": [
{
"AppCenterImageId": "img-8z4nztpaqvay4****",
"AppInstanceGroupId": "aig-9ciijz60n4xsv****",
"AppInstanceGroupName": "Office apps",
"AppInstanceType": "__dynamic__",
"Apps": [
{
"AppIcon": "https://app-center-icon-****.png",
"AppId": "ca-i87mycyn419nu****",
"AppName": "Office apps",
"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": 3
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.