tencent cloud

CreateResourceGroup
Last updated:2026-03-02 12:25:32
CreateResourceGroup
Last updated: 2026-03-02 12:25:32

1. API Description

Domain name for API request: wedata.intl.tencentcloudapi.com.

This API is used to purchase resources.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateResourceGroup.
Version Yes String Common Params. The value used for this API: 2025-08-06.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
Name Yes String Resource group name. specifies the name of a general resource group. it must start with a letter, may include letters, numbers, and underscores (_), and can contain up to 64 characters.
Type Yes ResourceType Opened resource group information.
AutoRenewEnabled Yes Boolean Whether to perform auto-renewal.
PurchasePeriod Yes Integer Purchase duration, in unit month.
VpcId Yes String vpcId
SubNet Yes String Subnet
ResourceRegion Yes String Resource purchase region.
AssociatedProjectId No String Project id of the associated project space.
Description No String Resource group description

3. Output Parameters

Parameter Name Type Description
Data ResourceResult Successfully enabled.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Create an Execution Resource Group

Input Example

POST / HTTP/1.1
Host: wedata.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateResourceGroup
<Common request parameters>

{
    "Name": "test8",
    "Type": {
        "ResourceGroupType": "Integration",
        "Integration": {
            "OfflineDataSync": {
                "Specification": "integrated",
                "Number": 2
            }
        }
    },
    "AutoRenewEnabled": false,
    "PurchasePeriod": 1,
    "VpcId": "vpc-4t9mtwbv",
    "SubNet": "subnet-h2ga4dks",
    "ResourceRegion": "ap-guangzhou",
    "AssociatedProjectId": null,
    "Description": null
}

Output Example

{
    "Response": {
        "Data": {
            "ResourceGroupId": "1757153576853",
            "Status": true
        },
        "RequestId": "a6e763a4-88d9-482d-b5fc-b7ff597446b9"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback