All Products
Search
Document Center

Cloud Phone:DescribeResourceGroups

Last Updated:Nov 14, 2025

Queries 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecd:DescribeResourceGroupslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupNamestringNo

The name of the resource group.

ResourceGroupIdsarrayNo

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

stringNo

The ID of the resource group that you want to query.

rg-9th3k8twp3ox2***
PageSizeintegerNo

The number of entries per page.

20
PageNumberintegerNo

The page number. Pages start from page 1.

1
NeedContainResourceGroupWithOfficeSitelongNo
Note This parameter is not publicly available.
0
PlatformstringNo
Note Set the value to AliyunConsole.
  • This parameter is not publicly available on other platforms.
AliyunConsole

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

68BA1DF7-8814-5AED-B844-F8F7F7****
ResourceGrouparray<object>

The resource groups.

ResourceGroupobject

The resource group.

ResourceGroupIdstring

The ID of the resource group.

rg-cyo0il2pzge1***
ResourceGroupNamestring

The name of the resource group.

ResourceCountstring

The number of resources in the resource group.

119
AuthCountstring

The number of administrators that are authorized to access the resource group.

3
CreateTimestring

The time when the resource group was created.

2022-11-29T17:25:40.000000000Z
Policiesarray<object>
Note The policy that is associated with the resource group.
  • The policy applies to cloud computers in the resource group. If multiple policies exist, they are enforced in order of priority.

  • If any of these cloud computers are already associated with other policies, the resource group's policy takes precedence.

Policyobject
Idstring

The policy ID.

pl-a8jnatl8kjasb***
Namestring

The policy name.

IsDefaultboolean

Specifies whether to use the default policy.

False
Timersarray<object>
Note The associated scheduled task.
  • The scheduled task applies to all cloud computers in the resource group. If any of these cloud computers are already associated with other scheduled tasks, the resource group's scheduled task takes precedence.
Timerobject
Idstring

The ID of the scheduled task.

t-asdzx0mbjhg***
Namestring

The name of the scheduled task.

TotalCountstring

The total number of resource groups.

7

Examples

Sample success responses

JSONformat

{
  "RequestId": "68BA1DF7-8814-5AED-B844-F8F7F7****",
  "ResourceGroup": [
    {
      "ResourceGroupId": "rg-cyo0il2pzge1***",
      "ResourceGroupName": "",
      "ResourceCount": 119,
      "AuthCount": 3,
      "CreateTime": "2022-11-29T17:25:40.000000000Z",
      "Policies": [
        {
          "Id": "pl-a8jnatl8kjasb***",
          "Name": "",
          "IsDefault": true
        }
      ],
      "Timers": [
        {
          "Id": "t-asdzx0mbjhg***",
          "Name": "",
          "TimerStatus": "",
          "BindStatus": ""
        }
      ],
      "AppRules": [
        {
          "Id": "",
          "Name": "",
          "Type": 0
        }
      ]
    }
  ],
  "TotalCount": 7
}

Error codes

For a list of error codes, visit the Service error codes.