DescribeResourceGroups
Queries 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. |
Department A resource group |
| 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 not publicly available. |
0 |
| Platform |
string |
No |
Note
Fixed value: AliyunConsole.
|
AliyunConsole |
| BusinessChannel |
string |
No |
The channel tag. |
ENTERPRISE |
| AliyunResourceGroupIds |
array |
No |
The IDs of the cloud platform resource groups. |
|
|
string |
No |
The ID of the resource group. |
rg-as8nlsbsxsldk*** |
|
| ResourceClassification |
string |
No |
The classification of resources in the resource group. Valid values:
|
Default |
| AgentType |
string |
No |
The agent subtype for the Desktop Agent resource group. Valid values: JVSClaw and HermesAgent. |
JVSClaw |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned information. |
||
| RequestId |
string |
The ID of the request. |
68BA1DF7-8814-5AED-B844-F8F7F7**** |
| ResourceGroup |
array<object> |
The list of resource group details. |
|
|
array<object> |
The resource group details. |
||
| AgentType |
string |
The agent subtype for the Desktop Agent resource group. Valid values: JVSClaw and HermesAgent. |
JVSClaw |
| AliyunResourceGroupId |
string |
The ID of the Alibaba Cloud resource group. |
rg-123456 |
| AppRules |
array<object> |
The list of application rules associated with the resource group. |
|
|
object |
The application rule associated with the resource group. |
||
| Id |
string |
The ID of the application rule. |
ruleId1 |
| Name |
string |
The name of the application rule. |
ruleName1 |
| Type |
integer |
The type of the application rule. |
1 |
| AuthCount |
string |
The number of administrators authorized for the resource group. |
3 |
| CreateTime |
string |
The creation time in ISO 8601 UTC format. |
2022-11-29T17:25:40.000000000Z |
| Policies |
array<object> |
Note
The policies associated with the resource group.
|
|
|
object |
The policy associated with the resource group. |
||
| Id |
string |
The ID of the policy. |
pl-a8jnatl8kjasb*** |
| IsDefault |
boolean |
Specifies whether the policy is the default policy. |
False |
| Name |
string |
The Policy Name. |
Test policy 123 |
| ResourceCount |
string |
The resource count in the resource group. |
119 |
| ResourceGroupDescription |
string |
The description of the resource group. If no description is set, an empty string is returned. |
Department A resource group |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-cyo0il2pzge1*** |
| ResourceGroupName |
string |
The name of the resource group. |
Test resource group |
| Timers |
array<object> |
Note
The scheduled tasks associated with the resource group.
|
|
|
object |
The scheduled task associated with the resource group. |
||
| BindStatus |
string |
The association status between the scheduled task and the resource group. |
BIND |
| Id |
string |
The ID of the scheduled task. |
t-asdzx0mbjhg*** |
| Name |
string |
The name of the scheduled task. |
Test task 123 |
| TimerStatus |
string |
The running status of the scheduled task. |
AVAILABLE |
| Type |
string |
The type of the scheduled task. |
TIMER |
| TotalCount |
string |
The total number of resource groups. |
7 |
Examples
Success response
JSON format
{
"RequestId": "68BA1DF7-8814-5AED-B844-F8F7F7****",
"ResourceGroup": [
{
"AgentType": "JVSClaw",
"AliyunResourceGroupId": "rg-123456",
"AppRules": [
{
"Id": "ruleId1",
"Name": "ruleName1",
"Type": 1
}
],
"AuthCount": "3",
"CreateTime": "2022-11-29T17:25:40.000000000Z",
"Policies": [
{
"Id": "pl-a8jnatl8kjasb***",
"IsDefault": true,
"Name": "Test policy 123"
}
],
"ResourceCount": "119",
"ResourceGroupDescription": "Department A resource group",
"ResourceGroupId": "rg-cyo0il2pzge1***",
"ResourceGroupName": "Test resource group",
"Timers": [
{
"BindStatus": "BIND",
"Id": "t-asdzx0mbjhg***",
"Name": "Test task 123",
"TimerStatus": "AVAILABLE",
"Type": "TIMER"
}
]
}
],
"TotalCount": "7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.