Queries the events of resource groups.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| StartTime | string | No | The beginning of the time range to query. The time is displayed in UTC. | 2025-11-30 23:43:16 |
| EndTime | string | No | The end of the time range to query. The time is displayed in UTC. | 2025-11-30 23:43:16 |
| EventCategory | string | Yes | The event type. | MemberShipChange |
| ResourceGroupId | string | No | The resource group ID. | rg-9gLOoK**** |
| NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. | TGlzdFJlc291cm**** |
| MaxResults | string | No | The number of entries per page. Valid values: 1 to 100. Default value: 10. | 10 |
| LookupAttributes | array<object> | No | The attributes used for advanced search. | |
| object | No | The attribute. | ||
| Key | string | No | The key of the attribute. | key |
| Value | string | No | The value of the attribute. | value |
| ResourceGroupDisplayName | string | No | The resource group name. | ProjectA |
Response parameters
Examples
Sample success responses
JSONformat
{
"Events": [
{
"ChangeType": "Add",
"EventTime": "2025-12-04T18:35:17Z",
"RegionId": "cn-qingdao",
"ResourceGroupDisplayName": "ProjectA",
"ResourceGroupId": "rg-acfm2sohr74****",
"ResourceId": "i-wz9fpfe64****",
"ResourceType": "instance",
"Service": "ecs",
"SourceResourceGroupInfo": {
"ResourceGroupDisplayName": "TestGroupA",
"ResourceGroupId": "rg-aekz25pfurj****"
},
"TargetResourceGroupInfo": {
"ResourceGroupDisplayName": "TestGroupB",
"ResourceGroupId": "rg-acfmwfrxcre****"
}
}
],
"NextToken": "TGlzdFJlc291cm****",
"RequestId": "F7701451-340B-5CB3-AEA7-7D831F7F****"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-12-15 | Add Operation | View Change Details |
