All Products
Search
Document Center

DataWorks:CreateResourceGroup

Last Updated:Dec 10, 2025

Creates a serverless resource group.

Operation description

  1. You can use this API operation only in DataWorks Basic Edition or an advanced edition.
  2. **Before you call this API operation, you must make sure that you have a good command of the billing details and pricing of serverless 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:CreateResourceGroupcreate
*DwResourceGroup
acs:dataworks:{#regionId}:{#accountId}:dwresourcegroup/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the serverless resource group. The name can be a maximum of 128 characters in length and can contain letters, digits, and underscores (_). The name must start with a letter.

common_resource_group
RemarkstringNo

The description of the serverless resource group. The description can be a maximum of 128 characters in length and can contain letters, digits, and underscores (_).

Create a serverless resource group for common tasks
PaymentTypestringYes

The billing method of the serverless 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
PaymentDurationUnitstringNo

The unit of the subscription duration. Valid values: Month and Year.

Month
PaymentDurationintegerNo

The subscription duration.

1
AutoRenewEnabledbooleanNo

Specifies whether to enable auto-renewal.

SpecintegerNo

The specifications of the serverless resource group. Unit: CU. This parameter is required only if you set the PaymentType parameter to PrePaid.

2
VpcIdstringYes

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

vpc-m2et4f3oc8msfbccXXXXX
VswitchIdstringYes

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

vsw-uf8usrhs7hjd9amsXXXXX
ClientTokenstringYes

The client token that is used to ensure the idempotence of the request.

eb870033-74c8-4b1b-9664-04c4e7cc3465
AliyunResourceGroupIdstringNo

The ID of the Alibaba Cloud resource group.

rg-aek2kqofrgXXXXX
AliyunResourceTagsarray<object>No

The tags.

objectNo

The tag.

KeystringNo

The tag key.

key
ValuestringNo

The tag value.

value

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful.

true
ResourceGroupOrderobject

The information about the order that is used to create the serverless resource group.

OrderIdlong

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

2391982058XXXXX
OrderInstanceIdstring

The instance ID of the order that is used to create the serverless resource group.

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

The ID of the serverless resource group.

Serverless_res_group_524257424564736_6831777003XXXXX
RequestIdstring

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "ResourceGroupOrder": {
    "OrderId": 0,
    "OrderInstanceId": "c442b330-3b10-4584-959e-736e4edXXXXX",
    "Id": "Serverless_res_group_524257424564736_6831777003XXXXX"
  },
  "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 request parameters of the API has changedView Change Details