All Products
Search
Document Center

DataWorks:GetResourceGroup

Last Updated:Jan 12, 2026

Queries the information about a resource group based on its ID.

Operation description

You can use this API operation only in DataWorks Basic Edition or an advanced edition.

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:GetResourceGroupget
*DwResourceGroup
acs:dataworks:{#regionId}:{#accountId}:dwresourcegroup/{#DwResourceGroupId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
IdstringYes

The ID of the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Successboolean

Indicates whether the request was successful.

true
ResourceGroupobject

The details about the resource group.

Idstring

The ID of the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX
Namestring

The name of the resource group.

common_resource_group
Remarkstring

The description of the resource group.

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

The specifications of the resource group.

Standardstring

The number of compute units (CUs) in the resource group.

2CU
Amountinteger

The number of resources in the resource group.

1
ResourceGroupTypestring

The type of the resource group. Valid values:

  • 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 instance ID of the order that is used to create the resource group.

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

The ID of the account that is used to create the resource group.

11075500042XXXXX
CreateTimelong

The time when the resource group was created. The value is a 64-bit timestamp.

1727055811000
DefaultVpcIdstring

The ID of the virtual private cloud (VPC) with which the resource group is associated by default.

vpc-m2et4f3oc8msfbccXXXXX
DefaultVswitchIdstring

The ID of the vSwitch with which the resource group is associated by default.

vsw-uf8usrhs7hjd9amsXXXXX
AliyunResourceGroupIdstring

The ID of the Alibaba Cloud resource group.

rg-aek2kqofrgXXXXX
AliyunResourceTagsarray<object>

The tags.

tagsobject

The tag.

Keystring

The tag key.

key
Valuestring

The tag value.

value
RequestIdstring

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "ResourceGroup": {
    "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",
    "DefaultVswitchId": "vsw-uf8usrhs7hjd9amsXXXXX",
    "AliyunResourceGroupId": "rg-aek2kqofrgXXXXX",
    "AliyunResourceTags": [
      {
        "Key": "key",
        "Value": "value"
      }
    ]
  },
  "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-01-02The response structure of the API has changedView Change Details