DescribeResourceGroups

Updated at:

Queries resource groups.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.

  • For Wuying Workspace Enterprise Edition, always pass AliyunConsole. Other platforms are not currently available for public use.

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:

  • DesktopAgent :

    Desktop Agent resource group.

  • Default :

    Default resource group.

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.

  • Associated policies take effect on the cloud desktops in the resource group. If multiple policies exist, they take effect based on their priorities.

  • If a cloud desktop in the resource group is already assigned another policy, the policy associated with the resource group takes precedence.

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.

  • Associated scheduled tasks take effect on the cloud desktops in the resource group. If a cloud desktop in the resource group is already associated with another scheduled task, the task associated with the resource group takes precedence.

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.