DescribeEvents
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
Test
RAM authorization
|
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 |
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 |
| 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: |
2026-09-28T16:00:00Z |
| EndTime |
string |
Yes |
The end time of the query. Required. The format is the same as that of |
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 |
| MaxResults |
integer |
No |
A compatibility field. The current version does not read this parameter. Use |
20 |
| NextToken |
string |
No |
A compatibility field. The current version does not read this parameter and does not support token-based pagination. Use |
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 |
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: |
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 |
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 |
{"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.