DescribeResourceGroups
Viewing resource groups
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeResourceGroups |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupName |
string |
No |
The name of the resource group. |
部门A资源组 |
| ResourceGroupIds |
array |
No |
The IDs of the resource groups. |
|
|
string |
No |
The ID of the resource group. |
rg-9th3k8twp3ox2*** |
|
| PageSize |
integer |
No |
The number of entries per page. |
20 |
| PageNumber |
integer |
No |
The page number. |
1 |
| NeedContainResourceGroupWithOfficeSite |
integer |
No |
Note
This parameter is for internal use only. |
0 |
| Platform |
string |
No |
Note
The value must be AliyunConsole.
|
AliyunConsole |
| BusinessChannel |
string |
No |
The business channel. |
ENTERPRISE |
| AliyunResourceGroupIds |
array |
No |
The IDs of the Alibaba Cloud resource groups. |
|
|
string |
No |
The ID of the resource group. |
rg-as8nlsbsxsldk*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
68BA1DF7-8814-5AED-B844-F8F7F7**** |
| ResourceGroup |
array<object> |
A list of resource groups. |
|
|
array<object> |
Details of a resource group. |
||
| ResourceGroupId |
string |
The resource group ID. |
rg-cyo0il2pzge1*** |
| ResourceGroupName |
string |
The resource group name. |
测试资源组 |
| ResourceCount |
string |
The number of resources in the resource group. |
119 |
| AuthCount |
string |
The number of administrators authorized for the resource group. |
3 |
| CreateTime |
string |
The time when the resource group was created. |
2022-11-29T17:25:40.000000000Z |
| Policies |
array<object> |
Note
The policies associated with the resource group.
|
|
|
object |
|||
| Id |
string |
The policy ID. |
pl-a8jnatl8kjasb*** |
| Name |
string |
The policy name. |
测试策略123 |
| IsDefault |
boolean |
Specifies whether this is the default policy. |
False |
| Timers |
array<object> |
Note
The scheduled tasks associated with the resource group.
|
|
|
object |
|||
| Id |
string |
The scheduled task ID. |
t-asdzx0mbjhg*** |
| Name |
string |
The scheduled task name. |
测试任务123 |
| TimerStatus |
string |
||
| BindStatus |
string |
||
| AppRules |
array<object> |
||
|
object |
|||
| Id |
string |
||
| Name |
string |
||
| Type |
integer |
||
| AliyunResourceGroupId |
string |
The ID of the Alibaba Cloud resource group. |
rg-123456 |
| TotalCount |
string |
The total number of resource groups returned. |
7 |
Examples
Success response
JSON format
{
"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": "测试策略123",
"IsDefault": true
}
],
"Timers": [
{
"Id": "t-asdzx0mbjhg***",
"Name": "测试任务123",
"TimerStatus": "",
"BindStatus": ""
}
],
"AppRules": [
{
"Id": "",
"Name": "",
"Type": 0
}
],
"AliyunResourceGroupId": "rg-123456"
}
],
"TotalCount": "7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.