ListPublishedAppInstanceGroup

Updated at:

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

  1. Initiate a query with PageNumber=1 and the required PageSize. For Wuying Cloud App scenarios, set ProductType=CloudApp.

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

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

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

  • CloudApp: Wuying 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 :

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

  • PUBLISHED: Published and listed. Delivery groups in this status can be included in the query results of this operation. This status does not indicate that a specified user has obtained access permissions.

Valid values:

  • PUBLISHED :

    Published and listed.

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:

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