DescribeEvents

Updated at:

Queries the resource and session events of the current account within the last 30 days by using paging.

Operation description

Queries the resource and session events of the current account. Both StartTime and EndTime must be specified, and the time range is inclusive. The service only retrieves logs from 30 days before the call time to the current time, so events outside this window are not returned. If multiple filter parameters are specified, the intersection of the conditions is applied. The results are returned in descending order of the event log time. To use page number-based pagination, specify PageSize and PageNumber. The current version does not use MaxResults and NextToken.

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

list

*All Resource

*

None None

Request syntax

GET / HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

EventId

string

No

The event ID. This parameter is used to query a specific event. If you do not specify this parameter, events are not filtered by event ID.

evt-9ciijz60n4xsv****

EventType

string

No

The event type identifier. This parameter is used to filter events precisely. Different products may generate different event types, and this operation does not restrict the value to a fixed enumeration. You should use the EventList.EventType values obtained from previous queries as the filter value.

SessionDisconnected

ProductType

string

No

The product type. The value is case-insensitive. The request fails if an unsupported value is specified. If this parameter is not specified, results are not filtered by product type. Only the following public product values are supported:

  • CloudApp: WUYING Cloud App.

  • CloudBrowser: Cloud Browser.

  • WuyingServer: Enterprise Edition workstation.

  • WuyingWorkstation: Personal Edition Linggou container workstation.

  • WuyingWorkstationTeam: Team Edition Linggou container workstation.

  • WuyingWorkstationBusiness: Dedicated Edition Linggou container workstation.

  • AndroidCloud: Cloud Phone.

  • AIAgent: AgentBay (AI agent).

CloudApp

UserId

string

No

The end user ID. This parameter is used to filter events generated by a specific user. If you do not specify this parameter, events are not filtered by user.

user01

EndUserIds

array

No

The list of user IDs.

["user-1","user-2"]

string

No

userid

user1

AppInstanceGroupId

string

No

The delivery group ID. This parameter is used to filter events of a specific delivery group. If you do not specify this parameter, events are not filtered by delivery group. You can call the ListAppInstanceGroup operation to obtain the ID.

aig-9ciijz60n4xsv****

AppInstanceGroupName

string

No

The delivery group name. If the name contains only letters, digits, underscores, or hyphens, events are filtered by name prefix. If the name contains spaces or other special characters, events are filtered by the exact value. If you do not specify this parameter, events are not filtered by name.

R&D workstation group

BizRegionId

string

No

The business region ID of the event. This parameter is used to filter events precisely. If you do not specify this parameter, events are not filtered by business region. You can call the ListRegions operation to obtain the ID.

cn-shanghai

MemberEniIp

string

No

The private IP address of the member elastic network interface (ENI) of the cloud resource. This parameter is used to filter related events precisely. If you do not specify this parameter, events are not filtered by IP address.

192.168.1.10

OfficeSiteId

string

No

The office network ID. This parameter is used to filter events generated within a specific office network. If you do not specify this parameter, events are not filtered by office network.

cn-shanghai+dir-123456****

StartTime

string

Yes

The start time of the query. Required. Specify the time in the ISO 8601 standard: yyyy-MM-dd'T'HH:mm:ss. You can include three digits for milliseconds and use Z or ±HH:mm to specify the time zone. We recommend that you always include the time zone offset. The query includes this exact time, and the start time must be earlier than or equal to the EndTime. The service retains and retrieves only events that occurred within 30 days before the call time.

2026-09-28T16:00:00Z

EndTime

string

Yes

The end time of the query. Required. The format is the same as that of StartTime. We recommend that you always include the time zone offset. The query includes this exact time, and the end time cannot be earlier than the StartTime. A time range later than the call time does not generate future events.

2026-09-29T15:59:59Z

PageSize

integer

No

The number of events to return on each page. Default value: 10. The current operation does not declare a fixed upper limit. We recommend that you set this parameter to a reasonable positive integer based on your actual needs.

20

PageNumber

integer

No

The page number to query. Pages start from 1. Default value: 1. This parameter is used together with PageSize.

1

MaxResults

integer

No

A compatibility field. The current version does not read this parameter. Use PageSize to control the number of records on each page.

20

NextToken

string

No

A compatibility field. The current version does not read this parameter and does not support token-based pagination. Use PageNumber.

unused

AppInstanceId

string

No

The application instance ID. This parameter is used to filter events associated with a specific instance. If you do not specify this parameter, events are not filtered by application instance. To obtain this value, first call the ListAppInstanceGroup operation to obtain the delivery group ID, and then use the ID as AppInstanceGroupId to call the ListAppInstances operation.

ai-azn3kmwruh1vl****

Response elements

Element

Type

Description

Example

object

The operation response.

RequestId

string

The unique identifier of the request. You can use this ID to troubleshoot request issues.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

TotalCount

integer

The total number of events that meet all filter conditions within the 30-day retrievable window. Unit: entries.

36

PageSize

integer

The number of events per page used in this response.

20

PageNumber

integer

The page number corresponding to this response.

1

MaxResults

integer

A compatibility field. The current version does not set this field. Do not rely on its value.

0

NextToken

string

A compatibility field. The current version does not generate a next page token. Do not use this field for pagination.

unused

EventList

array<object>

The list of events on the current page. The events are returned in descending order of the event log time.

object

The event list object.

EventId

string

The unique identifier of the event.

evt-9ciijz60n4xsv****

EventType

string

The event type identifier. Different products may return different values. You can use this value for subsequent precise filtering.

SessionDisconnected

OccurredTime

string

The time when the event occurred. Format: yyyy-MM-dd HH:mm:ss. Time zone: UTC+8 (Asia/Shanghai).

2026-09-29 14:17:33

ProductType

string

The product type to which the event belongs. This field is an open string and may be extended as supported event sources expand. Callers should not restrict the value to the products currently listed in the ProductType request parameter.

CloudApp

UserId

string

The ID of the end user who generated the event. This field may be empty if the event is not associated with an end user.

user01

AppInstanceGroupId

string

The ID of the delivery group associated with the event. This field may be empty if the event is not associated with a delivery group.

aig-9ciijz60n4xsv****

AppInstanceGroupName

string

The name of the delivery group associated with the event. This field may be empty if the event is not associated with a delivery group.

R&D workstation group

MemberEniIp

string

The private IP address of the member ENI of the cloud resource associated with the event. This field may be empty if it is not applicable.

192.168.1.10

OfficeSiteId

string

The ID of the office network associated with the event. This field may be empty if it is not applicable.

cn-shanghai+dir-123456****

DetailInfo

string

The event detail text. The content varies based on the EventType and may be empty. For example, a session release event may return a JSON text that describes the release cause.

{"Reason":"ByUser"}

Examples

Success response

JSON format

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "TotalCount": 36,
  "PageSize": 20,
  "PageNumber": 1,
  "MaxResults": 0,
  "NextToken": "unused",
  "EventList": [
    {
      "EventId": "evt-9ciijz60n4xsv****",
      "EventType": "SessionDisconnected",
      "OccurredTime": "2026-09-29 14:17:33",
      "ProductType": "CloudApp",
      "UserId": "user01",
      "AppInstanceGroupId": "aig-9ciijz60n4xsv****",
      "AppInstanceGroupName": "R&D workstation group",
      "MemberEniIp": "192.168.1.10",
      "OfficeSiteId": "cn-shanghai+dir-123456****",
      "DetailInfo": "{\"Reason\":\"ByUser\"}"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.