ListAuthorizedAppInstanceGroupByUser
Queries the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization by paging, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, or application name.
Operation description
Operation description
This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted delivery group-level authorization. The response includes basic information about each delivery group (ID, name, status, region, creation time, expiration time, and more) and the list of applications deployed in the delivery group.
Scope of returned results:
Only delivery groups that are authorized to the user as a whole through the AuthorizeInstanceGroup operation are returned. Records authorized on a per-application basis through the AuthorizeUsersForApp operation are not included.
Only delivery groups whose product type matches the ProductType parameter and that have not been deleted are returned. A delivery group is not returned if its image contains no deployed applications.
Results are sorted in reverse chronological order by the update time of the authorization record. The most recently authorized or modified delivery groups appear first.
Before you begin
Call the AuthorizeInstanceGroup operation to authorize the delivery 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 performs an exact match on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all perform fuzzy matching (a hit occurs if the value is contained). When multiple filter conditions are specified, all conditions must be met simultaneously.
PageNumber starts from 1. Valid values of PageSize: 1 to 100.
If the user has no authorized delivery groups that match the conditions, the operation returns normally: AppInstanceGroupModels is an empty list and TotalCount is 0.
Call sequence
Call the ListAppInstanceGroup operation to obtain the delivery group ID, and then call the AuthorizeInstanceGroup operation to authorize the delivery group to the user.
Call this operation to query the delivery groups authorized to the user and the applications deployed in each delivery group.
To obtain an application connection ticket for the user, call the GetConnectionTicket operation with the AppInstanceGroupId and the AppId from the Apps list in the response.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
Yes |
The product type. The value must match the product type of the delivery groups to query. Only delivery groups of the specified product type are returned. Valid values:
Valid values:
|
CloudApp |
| PageNumber |
integer |
Yes |
The page number. Pages start from page 1. |
1 |
| PageSize |
integer |
Yes |
The number of delivery groups to return per page. Valid values: 1 to 100. |
10 |
| AppInstanceGroupId |
string |
No |
The delivery group ID. Fuzzy matching is supported: delivery groups whose IDs contain the specified string are returned. You can call the ListAppInstanceGroup operation to obtain the delivery group ID. If this parameter is not specified, no filtering by delivery group ID is applied. |
aig-9ciijz60n4xsv**** |
| AppId |
string |
No |
The application ID. Fuzzy matching is supported: delivery groups that contain a deployed application whose ID includes the specified string are returned. You can obtain the application ID from the Apps list returned by this operation. If this parameter is not specified, no filtering by application ID is applied. |
ca-i87mycyn419nu**** |
| EndUserId |
string |
Yes |
The username. An exact match is performed on the username to query the delivery groups for which the user has been granted delivery group-level authorization. Note
This parameter is required. If this parameter is not specified, the error code |
alice |
| AppInstanceGroupName |
string |
No |
The delivery group name. Fuzzy matching is supported. For example, if you set this parameter to If this parameter is not specified, no filtering by delivery group name is applied. |
Office App |
| AppName |
string |
No |
The application name. Fuzzy matching is supported: delivery groups that contain a deployed application whose name includes the specified string are returned. If this parameter is not specified, no filtering by application name is applied. |
Office App |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| AppInstanceGroupModels |
array<object> |
The list of authorized delivery groups on the current page. This is an empty list if the user has no authorized delivery groups that match the conditions. |
|
|
array<object> |
|||
| AppCenterImageId |
string |
The ID of the application image used by the delivery group. |
img-8z4nztpaqvay4**** |
| AppInstanceGroupId |
string |
The delivery group ID. You can pass this value to the GetConnectionTicket operation to specify the delivery group to connect to. |
aig-9ciijz60n4xsv**** |
| AppInstanceGroupName |
string |
The delivery group name. |
Office App |
| AppInstanceType |
string |
The specification type of the delivery group. |
__dynamic__ |
| Apps |
array<object> |
The list of applications deployed in the delivery group. This list includes all deployed applications in the delivery group image and is not affected by the AppId or AppName request parameters. |
|
|
object |
|||
| AppIcon |
string |
The URL of the application icon. |
https://app-center-icon-****.png |
| AppId |
string |
The application ID. Pass this value to the GetConnectionTicket operation to obtain a connection ticket for the application. |
ca-i87mycyn419nu**** |
| AppName |
string |
The application name. |
Office App |
| AppVersion |
string |
The application version number. |
1.0.0 |
| AppVersionName |
string |
The application version name. |
Initial version |
| ExpiredTime |
string |
The expiration time of the delivery group. The value is in the ISO 8601 datetime format with milliseconds and a 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 value is in the ISO 8601 datetime format with milliseconds and a 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 delivery group. For more information about supported regions, see Limits. |
cn-hangzhou |
| Status |
string |
The delivery group status. Valid values:
Note
Deleted delivery groups are not returned. Valid values:
|
PUBLISHED |
| PageNumber |
integer |
The current page number. This value is the same as the PageNumber request parameter. |
1 |
| PageSize |
integer |
The number of delivery groups returned per page. This value 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 delivery groups that match the filter conditions. |
3 |
Examples
Success response
JSON format
{
"AppInstanceGroupModels": [
{
"AppCenterImageId": "img-8z4nztpaqvay4****",
"AppInstanceGroupId": "aig-9ciijz60n4xsv****",
"AppInstanceGroupName": "办公应用",
"AppInstanceType": "__dynamic__",
"Apps": [
{
"AppIcon": "https://app-center-icon-****.png",
"AppId": "ca-i87mycyn419nu****",
"AppName": "办公应用",
"AppVersion": "1.0.0",
"AppVersionName": "初始版本"
}
],
"ExpiredTime": "2022-04-27T16:00:00.000+00:00",
"GmtCreate": "2022-04-26T15:06:16.000+00:00",
"RegionId": "cn-hangzhou",
"Status": "PUBLISHED"
}
],
"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.