Queries resource groups and their user authorization information.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Status | string | No | The status of the resource group. This parameter specifies a filter condition for the query. Valid values:
| OK |
| PageNumber | integer | No | The page number of the returned page. | 1 |
| PageSize | integer | No | The number of entries returned per page. | 10 |
| DisplayName | string | No | The display name of the resource group. This parameter specifies a filter condition for the query. Fuzzy search is supported. The display name can be a maximum of 50 characters in length. | TestRG-BVT1 |
| Name | string | No | The identifier of the resource group. This parameter specifies a filter condition for the query. Fuzzy search is supported. The identifier can be a maximum of 50 characters in length and can contain letters, digits, and hyphens (-). | prod-rg |
| Tag | array<object> | No | The tags. | |
| object | No | The tag. | ||
| Key | string | No | The tag key. | k1 |
| Value | string | No | The tag value. | v1 |
| IncludeTags | boolean | No | Specifies whether to return the information of tags. Valid values:
Note
If you set a tag filter condition, the tag information is returned regardless of the IncludeTags value.
| true |
| ResourceGroupIds | array | No | The IDs of the resource groups that you want to query. | |
| string | No | The IDs of the resource groups that you want to query. | rg-acfm3uwewyefzuy | |
| ResourceTypes | array<object> | No | The resource types. | |
| object | No | The resource types. | ||
| ResourceTypeCode | string | No | The resource type. You can obtain the resource type from the Resource type column in Services that work with Resource Group. | instance |
| Service | string | No | The service code. You can obtain the code from the Service code column in Services that work with Resource Group. | ecs |
| ResourceRegionId | string | No | The ID of the region where the resource resides. | cn-shenzhen |
Response parameters
Examples
Sample success responses
JSONformat
{
"AuthDetails": [
{
"AccountScopeAuth": true,
"AuthOfResourceGroups": [
{
"HasPermission": true,
"ResourceGroupId": "rg-aekzscexx6w3u2y"
}
],
"ResourceType": "instance",
"Service": "ecs"
}
],
"PageNumber": 1,
"PageSize": 10,
"RequestId": "4141780B-4E3D-5D2A-A8F4-44D6D34F****",
"ResourceGroups": [
{
"AccountId": "123456789****",
"CreateDate": "2015-01-23T12:33:18Z",
"DisplayName": "my-project",
"Id": "rg-9gLOoK****",
"Name": "my-project",
"Status": "OK",
"Tags": [
{
"TagKey": "k1",
"TagValue": "v1"
}
]
}
],
"TotalCount": 10
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-12-10 | Add Operation | View Change Details |
