ListAuthorizedAppInstanceGroupByUser

Updated at:

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

Parameter description

  • ProductType and EndUserId are required. If ProductType is not specified, the error code InvalidParameter.ProductType is returned. If EndUserId is not specified, the error code InvalidParameter.UserId is 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

  1. 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.

  2. Call this operation to query the app instance groups authorized for the user and the applications deployed in the app instance groups.

  3. 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

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

  • CloudApp: Cloud App.

  • CloudBrowser: Cloud Browser.

  • WuyingServer: Enterprise Edition workstation.

  • WuyingWorkstation: Personal Edition Linggou container workstation.

  • WuyingWorkstationTeam: Team Edition Linggou container workstation.

  • WuyingWorkstationBusiness: Exclusive 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 :

    Cloud App.

  • CloudBrowser :

    Cloud Browser.

  • AIAgent :

    AgentBay (AI agent)

  • AndroidCloud :

    Cloud Phone.

  • WuyingWorkstationBusiness :

    Exclusive Edition Linggou container workstation.

  • WuyingServer :

    Enterprise Edition workstation.

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 Office applications, app instance groups whose names contain Office applications (such as My office applications and Office applications A) are queried.

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:

  • DEPLOYING: Deploying. The app instance group is creating or starting resources and cannot be connected.

  • DEPLOYED: Deployed. Resources are ready but the app instance group is not listed to provide external services.

  • PUBLISHED: Published. The app instance group is listed and users can connect to it.

  • STOPPING: Delisting. The app instance group is stopping services.

  • STOPPED: Delisted. The app instance group has stopped services and users cannot connect to it.

  • MAINTAINING: Updating. The app instance group is undergoing maintenance or changes.

  • FAILED: Publishing failed. Resource initialization failed.

  • MAINTAIN_FAILED: Update failed. Maintenance or changes were not successful.

  • DELETING: Deleting. The app instance group is being deleted.

Note

Deleted app instance groups are not returned.

Valid values:

  • DEPLOYED :

    Deployed (pending listing)

  • PUBLISHED :

    Published.

  • FAILED :

    Publishing failed.

  • MAINTAIN_FAILED :

    Update failed.

  • STOPPED :

    Delisted.

  • MAINTAINING :

    Updating.

  • DELETING :

    Deleting.

  • STOPPING :

    Delisting.

  • DEPLOYING :

    Deploying.

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:

  • User :

    Only single-user authorization is supported.

  • Mixed :

    Both user groups and users are supported.

  • UserGroup :

    Only user group authorization is supported.

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.