All Products
Search
Document Center

DataWorks:ListResourceGroups

Last Updated:Jan 12, 2026

Queries a list of 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
dataworks:ListResourceGroupslist
*DwResourceGroup
acs:dataworks:{#regionId}:{#accountId}:dwresourcegroup/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringNo

The name of a resource group, which is used for fuzzy match.

Resource
ProjectIdlongNo

The ID of the DataWorks workspace.

1000
StatusesarrayNo

The statuses of resource groups.

stringNo

The status of resource groups. Valid values:

  • Normal: The resource group is running or in use.
  • Stop: The resource group has expired.
  • Deleted: The resource group is released or destroyed.
  • Creating: The resource group is being created.
  • CreateFailed: The resource group fails to be created.
  • Updating: The resource group is being scaled in or out, or its configurations are being changed.
  • UpdateFailed: The resource group fails to be scaled out or upgraded.
  • Deleting: The resource group is being released or destroyed.
  • DeleteFailed: The resource group fails to be released or destroyed.
  • Timeout: The operations that are performed on the resource group time out.
  • Freezed: The resource group is frozen.
  • Starting
Normal
ResourceGroupTypesarrayNo

The types of resource groups to query. If you do not configure this parameter, only serverless resource groups are returned by default.

stringNo

Resource group types:

  • CommonV2: serverless resource group
  • ExclusiveDataIntegration: exclusive resource group for Data Integration
  • ExclusiveScheduler: exclusive resource group for scheduling
  • ExclusiveDataService: exclusive resource group for DataService Studio
CommonV2
PaymentTypestringNo

The billing method of resource groups. Valid values:

  • PrePaid
  • PostPaid
PrePaid
AliyunResourceGroupIdstringNo

Alibaba Cloud Resource Group ID

rg-aek2kqofrgXXXXX
AliyunResourceTagsarray<object>No

Alibaba Cloud tag list

objectNo

Alibaba Cloud label

KeystringNo

Tag Key

key
ValuestringNo

Tag Value

value
PageSizeintegerNo

The number of entries per page.

100
PageNumberintegerNo

The page number.

1
SortBystringNo

The list of fields used for sorting. Fields such as TriggerTime and StartedTime are supported. You must configure this parameter in the Sorting field + Sort by (Desc/Asc). By default, results are sorted in ascending order. Valid values:

  • Id (Desc/Asc): the resource group ID
  • Name (Desc/Asc): the name of the resource group
  • Remark (Desc/Asc): the remarks of the resource group
  • Type (Desc/Asc): the type of the resource group
  • Status (Desc/Asc): the status of the resource group
  • Spec (Desc/Asc): the specifications of the resource group
  • CreateUser (Desc/Asc): the creator of the resource group
  • CreateTime (Desc/Asc): the time when the resource group is created

Default value: CreateTime Asc

CreateTime Asc

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Successboolean

Indicates whether the request was successful. Valid values: true and false.

true
PagingInfoobject

The pagination information.

ResourceGroupListarray<object>

The resource groups returned.

Dataobject

The details about a resource group.

Idstring

Unique identifier of a resource group

Serverless_res_group_524257424564736_6831777003XXXXX
Namestring

The name of the resource group.

common_resource_group
Remarkstring

Remarks for resource groups

Create a common resource group for common tasks
PaymentTypestring

The billing method of the resource group. Valid values: PrePaid and PostPaid. The value PrePaid indicates the subscription billing method, and the value PostPaid indicates the pay-as-you-go billing method.

PrePaid
Statusstring

The status of the resource group. Valid values:

  • Normal: The resource group is running or in use.
  • Stop: The resource group is expired.
  • Deleted: The resource group is released or destroyed.
  • Creating: The resource group is being created.
  • CreateFailed: The resource group fails to be created.
  • Updating: The resource group is being scaled in or out, or the configurations of the resource group are being changed.
  • UpdateFailed: The resource group fails to be scaled out or upgraded.
  • Deleting: The resource group is being released or destroyed.
  • DeleteFailed: The resource group fails to be released or destroyed.
  • Timeout: The operations that are performed on the resource group time out.
  • Freezed: The resource group is frozen.
  • Starting: The resource group is being started.
Normal
Specobject

Resource Group specifications

Standardstring

Specification details

2CU
Amountinteger

Quantity

1
ResourceGroupTypestring

Resource group types:

  • CommonV2: Serverless resource group
  • ExclusiveDataIntegration: Exclusive resource group for Data Integration
  • ExclusiveScheduler: Exclusive resource group for scheduling
  • ExclusiveDataService: Exclusive resource group for DataService Studio
CommonV2
OrderInstanceIdstring

The order instance ID of the resource group.

c442b330-3b10-4584-959e-736e4edXXXXX
CreateUserstring

The ID of the user who created the resource group.

11075500042XXXXX
CreateTimelong

The creation time, which is a 64-bit timestamp.

1727055811000
DefaultVpcIdstring

Default VPC ID bound to a common resource group

vpc-m2et4f3oc8msfbccXXXXX
DefaultVswicthIdstring

The default switch ID bound to the common resource group.

vsw-uf8usrhs7hjd9amsXXXXX
AliyunResourceGroupIdstring

Alibaba Cloud Resource Group ID

rg-aek2kqofrgXXXXX
AliyunResourceTagsarray<object>

Alibaba Cloud tag list

aliyunResourceTagsobject
Keystring

Tag Key

Key
Valuestring

Tag Value

Value
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

100
TotalCountinteger

All data entries

100
RequestIdstring

The request ID. You can use the ID to query logs and troubleshoot issues.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "PagingInfo": {
    "ResourceGroupList": [
      {
        "Id": "Serverless_res_group_524257424564736_6831777003XXXXX",
        "Name": "common_resource_group",
        "Remark": "Create a common resource group for common tasks",
        "PaymentType": "PrePaid",
        "Status": "Normal",
        "Spec": {
          "Standard": "2CU",
          "Amount": 1
        },
        "ResourceGroupType": "CommonV2",
        "OrderInstanceId": "c442b330-3b10-4584-959e-736e4edXXXXX",
        "CreateUser": "11075500042XXXXX",
        "CreateTime": 1727055811000,
        "DefaultVpcId": "vpc-m2et4f3oc8msfbccXXXXX",
        "DefaultVswicthId": "vsw-uf8usrhs7hjd9amsXXXXX",
        "AliyunResourceGroupId": "rg-aek2kqofrgXXXXX",
        "AliyunResourceTags": [
          {
            "Key": "Key",
            "Value": "Value"
          }
        ]
      }
    ],
    "PageNumber": 1,
    "PageSize": 100,
    "TotalCount": 100
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-02-21The response structure of the API has changedView Change Details
2025-02-10The response structure of the API has changedView Change Details
2025-01-02The request parameters of the API has changed. The response structure of the API has changedView Change Details