All Products
Search
Document Center

Resource Management:ListResourceGroupsWithAuthDetails

Last Updated:Mar 26, 2026

Queries resource groups and their user authorization information.

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
StatusstringNo

The status of the resource group. This parameter specifies a filter condition for the query. Valid values:

  • Creating: The resource group is being created.
  • OK: The resource group is created.
  • PendingDelete: The resource group is waiting to be deleted.
OK
PageNumberintegerNo

The page number of the returned page.

1
PageSizeintegerNo

The number of entries returned per page.

10
DisplayNamestringNo

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
NamestringNo

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
Tagarray<object>No

The tags.

objectNo

The tag.

KeystringNo

The tag key.

k1
ValuestringNo

The tag value.

v1
IncludeTagsbooleanNo

Specifies whether to return the information of tags. Valid values:

  • false (default)
  • true
Note If you set a tag filter condition, the tag information is returned regardless of the IncludeTags value.
true
ResourceGroupIdsarrayNo

The IDs of the resource groups that you want to query.

stringNo

The IDs of the resource groups that you want to query.

rg-acfm3uwewyefzuy
ResourceTypesarray<object>No

The resource types.

objectNo

The resource types.

ResourceTypeCodestringNo

The resource type.

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

instance
ServicestringNo

The service code.

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

ecs
ResourceRegionIdstringNo

The ID of the region where the resource resides.

cn-shenzhen

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

AuthDetailsarray<object>

The authorization details for resource groups.

AuthDetailobject

The authorization details for a type of resource groups.

AccountScopeAuthboolean

Indicates whether the user has account-level authorization for this resource type.

AuthOfResourceGroupsarray<object>

The permission details for the resource groups on the specified resource types.

AuthOfResourceGroupobject

The permission details for the resource groups on the specified resource type.

HasPermissionboolean

Indicates whether the user has permissions on the resource group for the specified resource type.

true
ResourceGroupIdstring

The resource group ID.

rg-aekzscexx6w3u2y
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 ID of the Alibaba Cloud service.

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

ecs
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries returned per page.

10
RequestIdstring

The response parameters.

4141780B-4E3D-5D2A-A8F4-44D6D34F****
ResourceGroupsarray<object>

The information of the resource groups.

ResourceGroupobject

The information about a resource group.

AccountIdstring

The ID of the Alibaba Cloud account to which the resource group belongs.

123456789****
CreateDatestring

The time when the resource group was created. The time is displayed in UTC.

2015-01-23T12:33:18Z
DisplayNamestring

The display name of the resource group.

my-project
Idstring

The ID of your Alibaba Cloud resource group.

rg-9gLOoK****
Namestring

The unique identifier of the resource group.

my-project
Statusstring

The status of the resource group. Valid values:

  • Creating: The resource group is being created.
  • OK: The resource group is created.
  • PendingDelete: The resource group is waiting to be deleted.
OK
Tagsarray<object>

The tags.

Tagobject

The tags.

TagKeystring

The tag key.

k1
TagValuestring

The tag value.

v1
TotalCountinteger

The total number of entries returned.

10

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