All Products
Search
Document Center

Resource Management:LookupResourceGroupEvents

Last Updated:Dec 17, 2025

Queries the events of resource groups.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
StartTimestringNo

The beginning of the time range to query. The time is displayed in UTC.

2025-11-30 23:43:16
EndTimestringNo

The end of the time range to query. The time is displayed in UTC.

2025-11-30 23:43:16
EventCategorystringYes

The event type.

MemberShipChange
ResourceGroupIdstringNo

The resource group ID.

rg-9gLOoK****
NextTokenstringNo

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****
MaxResultsstringNo

The number of entries per page.

Valid values: 1 to 100. Default value: 10.

10
LookupAttributesarray<object>No

The attributes used for advanced search.

objectNo

The attribute.

KeystringNo

The key of the attribute.

key
ValuestringNo

The value of the attribute.

value
ResourceGroupDisplayNamestringNo

The resource group name.

ProjectA

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Eventsarray<object>

The queried events.

eventsobject

The details of the event.

ChangeTypestring

The type of the resource change event.

Add
EventTimestring

The time when the event was triggered.

2025-12-04T18:35:17Z
RegionIdstring

The region ID.

cn-qingdao
ResourceGroupDisplayNamestring

The resource group name.

ProjectA
ResourceGroupIdstring

The resource group ID.

rg-acfm2sohr74****
ResourceIdstring

The resource ID.

i-wz9fpfe64****
ResourceTypestring

The resource type.

You can obtain the resource type from the Resource type column in Services that work with Resource Group.

instance
Servicestring

The service code.

You can obtain the code from the Service code column in Services that work with Resource Group.

ecs
SourceResourceGroupInfoobject

The source resource group.

ResourceGroupDisplayNamestring

The resource group name.

TestGroupA
ResourceGroupIdstring

The resource group ID.

rg-aekz25pfurj****
TargetResourceGroupInfoobject

The destination resource group.

ResourceGroupDisplayNamestring

The resource group name.

TestGroupB
ResourceGroupIdstring

The resource group ID.

rg-acfmwfrxcre****
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

TGlzdFJlc291cm****
RequestIdstring

The request ID.

F7701451-340B-5CB3-AEA7-7D831F7F****

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 timeSummary of changesOperation
2025-12-15Add OperationView Change Details