tencent cloud

腾讯云数据仓库 TCHouse-D

产品简介
产品概述
基本概念
集群架构
产品优势
应用场景
购买指南
计费概述
续费说明
到期与欠费说明
退费说明
配置变更计费说明
快速入门
通过控制台使用腾讯云数据仓库 TCHouse-D
通过客户端使用腾讯云数据仓库 TCHouse-D
操作指南
集群操作
监控和告警配置
账户权限管理
数据管理
查询管理
配置管理
节点管理
日志分析
SQL 工作区
开启资源隔离
开发指南
数据表设计
数据导入
数据导出
基础功能
查询优化
生态扩展功能
API 文档
History
Introduction
API Category
Making API Requests
Cluster Operation APIs
Database and Table APIs
Cluster Information Viewing APIs
Hot-Cold Data Layering APIs
Database and Operation Audit APIs
User and Permission APIs
Resource Group Management APIs
Data Types
Error Codes
云上生态
为子账号授予 CAM 策略
查询加速腾讯云 DLC
实践教程
基本功能使用
高级特性使用
资源规格选型及调优建议
命名规范及库表限制
表设计与数据导入
查询调优
建议规避的用法
通过 JDBC 方式公网访问 TCHouse-D
性能测试
TPC-H 性能测试
SSB 性能测试
TPC-DS 性能测试
常见问题
常见操作问题
常见报错
联系我们
词汇表
产品协议
服务等级协议
隐私政策
数据处理和安全协议

CreateInstanceNew

聚焦模式
字号
最后更新时间: 2025-10-30 21:32:26

1. API Description

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

This API is used to create clusters.

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: CreateInstanceNew.
Version Yes String Common Params. The value used for this API: 2021-12-28.
Region No String Common Params. This parameter is not required for this API.
Zone Yes String Availability zone
FeSpec Yes CreateInstanceSpec FE specifications
BeSpec Yes CreateInstanceSpec BE specifications.
HaFlag Yes Boolean Whether it is highly available.
UserVPCId Yes String User VPCID
UserSubnetId Yes String User subnet ID
ProductVersion Yes String Product version number
ChargeProperties Yes ChargeProperties Payment type
InstanceName Yes String Instance name
DorisUserPwd Yes String Database password
Tags.N No Array of Tag Tag list
HaType No Integer High availability type:
0 indicates non-high availability (only one FE, FeSpec.CreateInstanceSpec.Count=1),
1 indicates read high availability (at least 3 FEs must be deployed, FeSpec.CreateInstanceSpec.Count>=3, and it must be an odd number),
2 indicates read and write high availability (at least 5 FEs must be deployed, FeSpec.CreateInstanceSpec.Count>=5, and it must be an odd number).
CaseSensitive No Integer Whether the table name is case sensitive, 0 refers to sensitive, 1 refers to insensitive, compared in lowercase; 2 refers to insensitive, and the table name is changed to lowercase for storage.
EnableMultiZones No Boolean Whether to enable multi-availability zone.
UserMultiZoneInfos No NetworkInfo After the Multi-AZ is enabled, all user's Availability Zones and Subnets information are shown.

3. Output Parameters

Parameter Name Type Description
FlowId String Process ID
InstanceId String Instance ID
ErrorMsg String Error message
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 An Example of Creating Clusters

This example shows you how to create a cluster.

Input Example

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

{
    "InstanceName": "test-by-quantity-hazk2 node",
    "Zone": "ap-beijing-2",
    "FeSpec": {
        "SpecName": "S_4_16_H",
        "Count": 3,
        "DiskSize": 200
    },
    "BeSpec": {
        "SpecName": "S_4_16_H",
        "Count": 3,
        "DiskSize": 1000
    },
    "HaFlag": true,
    "UserVPCId": "vpc-8visjoh9",
    "UserSubnetId": "subnet-03ij1dki",
    "ProductVersion": "1.2",
    "DorisUserPwd": "ujA7xa2*1",
    "ChargeProperties": {
        "ChargeType": "POSTPAID_BY_HOUR"
    }
}

Output Example

{
    "Response": {
        "InstanceId": "cdwdoris-aijqera",
        "FlowId": "1231",
        "RequestId": "lweinasd-28kamasd-xasdas",
        "ErrorMsg": ""
    }
}

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.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈