From 5764693640e909af21e5bd525163fffecf218b71 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 10 Dec 2025 16:58:59 +0800 Subject: [PATCH 1/2] add --- .../data_source_tc_cdwdoris_instances.go | 172 +++++++++--------- .../data_source_tc_cdwdoris_instances.md | 2 +- .../cdwdoris/resource_tc_cdwdoris_instance.md | 10 +- .../cdwdoris/resource_tc_cdwdoris_user.md | 2 +- .../resource_tc_cdwdoris_workload_group.md | 2 +- .../docs/d/cdwdoris_instances.html.markdown | 88 ++++++++- .../docs/r/cdwdoris_instance.html.markdown | 12 +- .../r/cdwdoris_workload_group.html.markdown | 4 +- 8 files changed, 188 insertions(+), 104 deletions(-) diff --git a/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.go b/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.go index 3c71c1581c..59ae11908d 100644 --- a/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.go +++ b/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.go @@ -59,126 +59,124 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { Schema: map[string]*schema.Schema{ "instance_id": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Cluster instance ID, `cdw-xxxx` string type. Note: This field may return null, indicating that no valid values can be obtained.", }, "instance_name": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Cluster instance name. Note: This field may return null, indicating that no valid values can be obtained.", }, "status": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Status,. Init is being created. Serving is running. Deleted indicates the cluster has been terminated. Deleting indicates the cluster is being terminated. Modify indicates the cluster is being changed. Note: This field may return null, indicating that no valid values can be obtained.", }, "version": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Version. Note: This field may return null, indicating that no valid values can be obtained.", }, "region": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Region, ap-guangzhou. Note: This field may return null, indicating that no valid values can be obtained.", }, "zone": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Availability zone, ap-guangzhou-3. Note: This field may return null, indicating that no valid values can be obtained.", }, "vpc_id": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "VPC name. Note: This field may return null, indicating that no valid values can be obtained.", }, "subnet_id": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Subnet name. Note: This field may return null, indicating that no valid values can be obtained.", }, "pay_mode": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Payment type: hour and prepay. Note: This field may return null, indicating that no valid values can be obtained.", }, "create_time": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Creation time. Note: This field may return null, indicating that no valid values can be obtained.", }, "expire_time": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Expiration time. Note: This field may return null, indicating that no valid values can be obtained.", }, "master_summary": { Type: schema.TypeList, - Required: true, - MaxItems: 1, + Computed: true, Description: "Data node description information. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "spec": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Model, such as S1.", }, "node_size": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Number of nodes.", }, "core": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Number of CPU cores, in counts.", }, "memory": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Memory size, in GB.", }, "disk": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Disk size, in GB.", }, "disk_type": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Disk type.", }, "disk_desc": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Disk description.", }, "attach_cbs_spec": { Type: schema.TypeList, - Required: true, - MaxItems: 1, + Computed: true, Description: "Information of mounted cloud disks. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "disk_type": { Type: schema.TypeString, - Optional: true, + Computed: true, Description: "Node disk type, such as CLOUD_SSD, CLOUD_PREMIUM.", }, "disk_size": { Type: schema.TypeInt, - Optional: true, + Computed: true, Description: "Disk capacity, in GB.", }, "disk_count": { Type: schema.TypeInt, - Optional: true, + Computed: true, Description: "Total number of disks.", }, "disk_desc": { Type: schema.TypeString, - Optional: true, + Computed: true, Description: "Description.", }, }, @@ -186,32 +184,32 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "sub_product_type": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Sub-product name. Note: This field may return null, indicating that no valid values can be obtained.", }, "spec_core": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Specified cores. Note: This field may return null, indicating that no valid values can be obtained.", }, "spec_memory": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Specified memory. Note: This field may return null, indicating that no valid values can be obtained.", }, "disk_count": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Disk size. Note: This field may return null, indicating that no valid values can be obtained.", }, "encrypt": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Whether it is encrypted.. Note: This field may return null, indicating that no valid values can be obtained.", }, "max_disk_size": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Maximum disk. Note: This field may return null, indicating that no valid values can be obtained.", }, }, @@ -219,71 +217,69 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "core_summary": { Type: schema.TypeList, - Required: true, - MaxItems: 1, + Computed: true, Description: "Zookeeper node description information. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "spec": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Model, such as S1.", }, "node_size": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Number of nodes.", }, "core": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Number of CPU cores, in counts.", }, "memory": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Memory size, in GB.", }, "disk": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Disk size, in GB.", }, "disk_type": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Disk type.", }, "disk_desc": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Disk description.", }, "attach_cbs_spec": { Type: schema.TypeList, - Required: true, - MaxItems: 1, + Computed: true, Description: "Information of mounted cloud disks. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "disk_type": { Type: schema.TypeString, - Optional: true, + Computed: true, Description: "Node disk type, such as CLOUD_SSD, CLOUD_PREMIUM.", }, "disk_size": { Type: schema.TypeInt, - Optional: true, + Computed: true, Description: "Disk capacity, in GB.", }, "disk_count": { Type: schema.TypeInt, - Optional: true, + Computed: true, Description: "Total number of disks.", }, "disk_desc": { Type: schema.TypeString, - Optional: true, + Computed: true, Description: "Description.", }, }, @@ -291,32 +287,32 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "sub_product_type": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Sub-product name. Note: This field may return null, indicating that no valid values can be obtained.", }, "spec_core": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Specified cores. Note: This field may return null, indicating that no valid values can be obtained.", }, "spec_memory": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Specified memory. Note: This field may return null, indicating that no valid values can be obtained.", }, "disk_count": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Disk size. Note: This field may return null, indicating that no valid values can be obtained.", }, "encrypt": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Whether it is encrypted.. Note: This field may return null, indicating that no valid values can be obtained.", }, "max_disk_size": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Maximum disk. Note: This field may return null, indicating that no valid values can be obtained.", }, }, @@ -324,63 +320,63 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "ha": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "High availability, being true or false. Note: This field may return null, indicating that no valid values can be obtained.", }, "ha_type": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "High availability type: 0: non-high availability. 1: read high availability. 2: read-write high availability. Note: This field may return null, indicating that no valid values can be obtained.", }, "access_info": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Access address. Example: 10.0.0.1:9000. Note: This field may return null, indicating that no valid values can be obtained.", }, "id": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Record ID, in numerical type. Note: This field may return null, indicating that no valid values can be obtained.", }, "region_id": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Region ID, indicating the region. Note: This field may return null, indicating that no valid values can be obtained.", }, "zone_desc": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Note about availability zone, such as Guangzhou Zone 2. Note: This field may return null, indicating that no valid values can be obtained.", }, "flow_msg": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Error process description information. Note: This field may return null, indicating that no valid values can be obtained.", }, "status_desc": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Status description, such as `running`. Note: This field may return null, indicating that no valid values can be obtained.", }, "renew_flag": { Type: schema.TypeBool, - Required: true, + Computed: true, Description: "Automatic renewal marker. Note: This field may return null, indicating that no valid values can be obtained.", }, "tags": { Type: schema.TypeList, - Required: true, + Computed: true, Description: "Tag list. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "tag_key": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Tag key.", }, "tag_value": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Tag value.", }, }, @@ -388,72 +384,72 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "monitor": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Monitoring Information. Note: This field may return null, indicating that no valid values can be obtained.", }, "has_cls_topic": { Type: schema.TypeBool, - Required: true, + Computed: true, Description: "Whether to enable logs. Note: This field may return null, indicating that no valid values can be obtained.", }, "cls_topic_id": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Log Topic ID. Note: This field may return null, indicating that no valid values can be obtained.", }, "cls_log_set_id": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Logset ID. Note: This field may return null, indicating that no valid values can be obtained.", }, "enable_xml_config": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Whether to support XML configuration management. Note: This field may return null, indicating that no valid values can be obtained.", }, "region_desc": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Region. Note: This field may return null, indicating that no valid values can be obtained.", }, "eip": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Elastic network interface address. Note: This field may return null, indicating that no valid values can be obtained.", }, "cos_move_factor": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Cold and hot stratification coefficient. Note: This field may return null, indicating that no valid values can be obtained.", }, "kind": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "external/local/yunti. Note: This field may return null, indicating that no valid values can be obtained.", }, "cos_bucket_name": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "COS bucket. Note: This field may return null, indicating that no valid values can be obtained.", }, "can_attach_cbs": { Type: schema.TypeBool, - Required: true, + Computed: true, Description: "cbs. Note: This field may return null, indicating that no valid values can be obtained.", }, "build_version": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Minor versions. Note: This field may return null, indicating that no valid values can be obtained.", }, "components": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Component Information. Note: The return type here is map[string]struct, not the string type displayed. You can refer to Sample Value to parse the data. Note: This field may return null, indicating that no valid values can be obtained.", }, "characteristic": { Type: schema.TypeSet, - Required: true, + Computed: true, Description: "Page features, used to block some page entrances on the front end.. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Schema{ Type: schema.TypeString, @@ -461,27 +457,27 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "restart_timeout": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "Timeout period, in seconds. Note: This field may return null, indicating that no valid values can be obtained.", }, "grace_shutdown_wait_seconds": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "The timeout time for the graceful restart of the kernel. If it is -1, it means it is not set.. Note: This field may return null, indicating that no valid values can be obtained.", }, "case_sensitive": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "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.. Note: This field may return null, indicating that no valid values can be obtained.", }, "is_white_s_gs": { Type: schema.TypeBool, - Required: true, + Computed: true, Description: "Whether users can bind security groups.. Note: This field may return null, indicating that no valid values can be obtained.", }, "bind_s_gs": { Type: schema.TypeSet, - Required: true, + Computed: true, Description: "Bound security group information. Note: This field may return null, indicating that no valid values can be obtained.", Elem: &schema.Schema{ Type: schema.TypeString, @@ -489,22 +485,22 @@ func DataSourceTencentCloudCdwdorisInstances() *schema.Resource { }, "enable_multi_zones": { Type: schema.TypeBool, - Required: true, + Computed: true, Description: "Whether it is a multi-AZ.. Note: This field may return null, indicating that no valid values can be obtained.", }, "user_network_infos": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "User availability zone and subnet information. Note: This field may return null, indicating that no valid values can be obtained.", }, "enable_cool_down": { Type: schema.TypeInt, - Required: true, + Computed: true, Description: "Whether to enable hot and cold stratification. 0 refers to disabled, and 1 refers to enabled.. Note: This field may return null, indicating that no valid values can be obtained.", }, "cool_down_bucket": { Type: schema.TypeString, - Required: true, + Computed: true, Description: "COS buckets are used for hot and cold stratification. Note: This field may return null, indicating that no valid values can be obtained.", }, }, diff --git a/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.md b/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.md index 9cab07e576..43d250fe0e 100644 --- a/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.md +++ b/tencentcloud/services/cdwdoris/data_source_tc_cdwdoris_instances.md @@ -1,4 +1,4 @@ -Use this data source to query detailed information of cdwdoris instances +Use this data source to query detailed information of CDWDoris instances Example Usage diff --git a/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_instance.md b/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_instance.md index 9e60f74003..effaef9969 100644 --- a/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_instance.md +++ b/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_instance.md @@ -1,4 +1,4 @@ -Provides a resource to create a cdwdoris instance +Provides a resource to create a CDWDoris instance Example Usage @@ -43,7 +43,8 @@ resource "tencentcloud_cdwdoris_instance" "example" { product_version = "2.1" instance_name = "tf-example" doris_user_pwd = "Password@test" - ha_flag = false + ha_flag = true + ha_type = 1 case_sensitive = 0 enable_multi_zones = false workload_group_status = "open" @@ -75,7 +76,7 @@ resource "tencentcloud_cdwdoris_instance" "example" { } ``` -Create a POSTPAID instance +Create a PREPAID instance ```hcl # availability zone @@ -116,7 +117,8 @@ resource "tencentcloud_cdwdoris_instance" "example" { product_version = "2.1" instance_name = "tf-example" doris_user_pwd = "Password@test" - ha_flag = false + ha_flag = true + ha_type = 1 case_sensitive = 0 enable_multi_zones = false workload_group_status = "close" diff --git a/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_user.md b/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_user.md index 4a27128546..a3882458c7 100644 --- a/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_user.md +++ b/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_user.md @@ -1,4 +1,4 @@ -Provides a resource to create a cdwdoris user +Provides a resource to create a CDWDoris user Example Usage diff --git a/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_workload_group.md b/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_workload_group.md index df906c1b2e..fa08f77509 100644 --- a/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_workload_group.md +++ b/tencentcloud/services/cdwdoris/resource_tc_cdwdoris_workload_group.md @@ -1,4 +1,4 @@ -Provides a resource to create a cdwdoris workload group +Provides a resource to create a CDWDoris workload group ~> **NOTE:** To use this resource, The `workload_group_status` field of `tencentcloud_cdwdoris_instance` needs to be set to true. diff --git a/website/docs/d/cdwdoris_instances.html.markdown b/website/docs/d/cdwdoris_instances.html.markdown index 81d2a60dd2..d26c19aafa 100644 --- a/website/docs/d/cdwdoris_instances.html.markdown +++ b/website/docs/d/cdwdoris_instances.html.markdown @@ -4,12 +4,12 @@ layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_cdwdoris_instances" sidebar_current: "docs-tencentcloud-datasource-cdwdoris_instances" description: |- - Use this data source to query detailed information of cdwdoris instances + Use this data source to query detailed information of CDWDoris instances --- # tencentcloud_cdwdoris_instances -Use this data source to query detailed information of cdwdoris instances +Use this data source to query detailed information of CDWDoris instances ## Example Usage @@ -62,5 +62,89 @@ The `search_tags` object supports the following: In addition to all arguments above, the following attributes are exported: * `instances_list` - Quantities of instances array. + * `access_info` - Access address. Example: 10.0.0.1:9000. Note: This field may return null, indicating that no valid values can be obtained. + * `bind_s_gs` - Bound security group information. Note: This field may return null, indicating that no valid values can be obtained. + * `build_version` - Minor versions. Note: This field may return null, indicating that no valid values can be obtained. + * `can_attach_cbs` - cbs. Note: This field may return null, indicating that no valid values can be obtained. + * `case_sensitive` - 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.. Note: This field may return null, indicating that no valid values can be obtained. + * `characteristic` - Page features, used to block some page entrances on the front end.. Note: This field may return null, indicating that no valid values can be obtained. + * `cls_log_set_id` - Logset ID. Note: This field may return null, indicating that no valid values can be obtained. + * `cls_topic_id` - Log Topic ID. Note: This field may return null, indicating that no valid values can be obtained. + * `components` - Component Information. Note: The return type here is map[string]struct, not the string type displayed. You can refer to Sample Value to parse the data. Note: This field may return null, indicating that no valid values can be obtained. + * `cool_down_bucket` - COS buckets are used for hot and cold stratification. Note: This field may return null, indicating that no valid values can be obtained. + * `core_summary` - Zookeeper node description information. Note: This field may return null, indicating that no valid values can be obtained. + * `attach_cbs_spec` - Information of mounted cloud disks. Note: This field may return null, indicating that no valid values can be obtained. + * `disk_count` - Total number of disks. + * `disk_desc` - Description. + * `disk_size` - Disk capacity, in GB. + * `disk_type` - Node disk type, such as CLOUD_SSD, CLOUD_PREMIUM. + * `core` - Number of CPU cores, in counts. + * `disk_count` - Disk size. Note: This field may return null, indicating that no valid values can be obtained. + * `disk_desc` - Disk description. + * `disk_type` - Disk type. + * `disk` - Disk size, in GB. + * `encrypt` - Whether it is encrypted.. Note: This field may return null, indicating that no valid values can be obtained. + * `max_disk_size` - Maximum disk. Note: This field may return null, indicating that no valid values can be obtained. + * `memory` - Memory size, in GB. + * `node_size` - Number of nodes. + * `spec_core` - Specified cores. Note: This field may return null, indicating that no valid values can be obtained. + * `spec_memory` - Specified memory. Note: This field may return null, indicating that no valid values can be obtained. + * `spec` - Model, such as S1. + * `sub_product_type` - Sub-product name. Note: This field may return null, indicating that no valid values can be obtained. + * `cos_bucket_name` - COS bucket. Note: This field may return null, indicating that no valid values can be obtained. + * `cos_move_factor` - Cold and hot stratification coefficient. Note: This field may return null, indicating that no valid values can be obtained. + * `create_time` - Creation time. Note: This field may return null, indicating that no valid values can be obtained. + * `eip` - Elastic network interface address. Note: This field may return null, indicating that no valid values can be obtained. + * `enable_cool_down` - Whether to enable hot and cold stratification. 0 refers to disabled, and 1 refers to enabled.. Note: This field may return null, indicating that no valid values can be obtained. + * `enable_multi_zones` - Whether it is a multi-AZ.. Note: This field may return null, indicating that no valid values can be obtained. + * `enable_xml_config` - Whether to support XML configuration management. Note: This field may return null, indicating that no valid values can be obtained. + * `expire_time` - Expiration time. Note: This field may return null, indicating that no valid values can be obtained. + * `flow_msg` - Error process description information. Note: This field may return null, indicating that no valid values can be obtained. + * `grace_shutdown_wait_seconds` - The timeout time for the graceful restart of the kernel. If it is -1, it means it is not set.. Note: This field may return null, indicating that no valid values can be obtained. + * `ha_type` - High availability type: 0: non-high availability. 1: read high availability. 2: read-write high availability. Note: This field may return null, indicating that no valid values can be obtained. + * `ha` - High availability, being true or false. Note: This field may return null, indicating that no valid values can be obtained. + * `has_cls_topic` - Whether to enable logs. Note: This field may return null, indicating that no valid values can be obtained. + * `id` - Record ID, in numerical type. Note: This field may return null, indicating that no valid values can be obtained. + * `instance_id` - Cluster instance ID, `cdw-xxxx` string type. Note: This field may return null, indicating that no valid values can be obtained. + * `instance_name` - Cluster instance name. Note: This field may return null, indicating that no valid values can be obtained. + * `is_white_s_gs` - Whether users can bind security groups.. Note: This field may return null, indicating that no valid values can be obtained. + * `kind` - external/local/yunti. Note: This field may return null, indicating that no valid values can be obtained. + * `master_summary` - Data node description information. Note: This field may return null, indicating that no valid values can be obtained. + * `attach_cbs_spec` - Information of mounted cloud disks. Note: This field may return null, indicating that no valid values can be obtained. + * `disk_count` - Total number of disks. + * `disk_desc` - Description. + * `disk_size` - Disk capacity, in GB. + * `disk_type` - Node disk type, such as CLOUD_SSD, CLOUD_PREMIUM. + * `core` - Number of CPU cores, in counts. + * `disk_count` - Disk size. Note: This field may return null, indicating that no valid values can be obtained. + * `disk_desc` - Disk description. + * `disk_type` - Disk type. + * `disk` - Disk size, in GB. + * `encrypt` - Whether it is encrypted.. Note: This field may return null, indicating that no valid values can be obtained. + * `max_disk_size` - Maximum disk. Note: This field may return null, indicating that no valid values can be obtained. + * `memory` - Memory size, in GB. + * `node_size` - Number of nodes. + * `spec_core` - Specified cores. Note: This field may return null, indicating that no valid values can be obtained. + * `spec_memory` - Specified memory. Note: This field may return null, indicating that no valid values can be obtained. + * `spec` - Model, such as S1. + * `sub_product_type` - Sub-product name. Note: This field may return null, indicating that no valid values can be obtained. + * `monitor` - Monitoring Information. Note: This field may return null, indicating that no valid values can be obtained. + * `pay_mode` - Payment type: hour and prepay. Note: This field may return null, indicating that no valid values can be obtained. + * `region_desc` - Region. Note: This field may return null, indicating that no valid values can be obtained. + * `region_id` - Region ID, indicating the region. Note: This field may return null, indicating that no valid values can be obtained. + * `region` - Region, ap-guangzhou. Note: This field may return null, indicating that no valid values can be obtained. + * `renew_flag` - Automatic renewal marker. Note: This field may return null, indicating that no valid values can be obtained. + * `restart_timeout` - Timeout period, in seconds. Note: This field may return null, indicating that no valid values can be obtained. + * `status_desc` - Status description, such as `running`. Note: This field may return null, indicating that no valid values can be obtained. + * `status` - Status,. Init is being created. Serving is running. Deleted indicates the cluster has been terminated. Deleting indicates the cluster is being terminated. Modify indicates the cluster is being changed. Note: This field may return null, indicating that no valid values can be obtained. + * `subnet_id` - Subnet name. Note: This field may return null, indicating that no valid values can be obtained. + * `tags` - Tag list. Note: This field may return null, indicating that no valid values can be obtained. + * `tag_key` - Tag key. + * `tag_value` - Tag value. + * `user_network_infos` - User availability zone and subnet information. Note: This field may return null, indicating that no valid values can be obtained. + * `version` - Version. Note: This field may return null, indicating that no valid values can be obtained. + * `vpc_id` - VPC name. Note: This field may return null, indicating that no valid values can be obtained. + * `zone_desc` - Note about availability zone, such as Guangzhou Zone 2. Note: This field may return null, indicating that no valid values can be obtained. + * `zone` - Availability zone, ap-guangzhou-3. Note: This field may return null, indicating that no valid values can be obtained. diff --git a/website/docs/r/cdwdoris_instance.html.markdown b/website/docs/r/cdwdoris_instance.html.markdown index a114c202e4..c6de21de6f 100644 --- a/website/docs/r/cdwdoris_instance.html.markdown +++ b/website/docs/r/cdwdoris_instance.html.markdown @@ -4,12 +4,12 @@ layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_cdwdoris_instance" sidebar_current: "docs-tencentcloud-resource-cdwdoris_instance" description: |- - Provides a resource to create a cdwdoris instance + Provides a resource to create a CDWDoris instance --- # tencentcloud_cdwdoris_instance -Provides a resource to create a cdwdoris instance +Provides a resource to create a CDWDoris instance ## Example Usage @@ -54,7 +54,8 @@ resource "tencentcloud_cdwdoris_instance" "example" { product_version = "2.1" instance_name = "tf-example" doris_user_pwd = "Password@test" - ha_flag = false + ha_flag = true + ha_type = 1 case_sensitive = 0 enable_multi_zones = false workload_group_status = "open" @@ -86,7 +87,7 @@ resource "tencentcloud_cdwdoris_instance" "example" { } ``` -### Create a POSTPAID instance +### Create a PREPAID instance ```hcl # availability zone @@ -127,7 +128,8 @@ resource "tencentcloud_cdwdoris_instance" "example" { product_version = "2.1" instance_name = "tf-example" doris_user_pwd = "Password@test" - ha_flag = false + ha_flag = true + ha_type = 1 case_sensitive = 0 enable_multi_zones = false workload_group_status = "close" diff --git a/website/docs/r/cdwdoris_workload_group.html.markdown b/website/docs/r/cdwdoris_workload_group.html.markdown index 85f58950c4..eaeb9160ca 100644 --- a/website/docs/r/cdwdoris_workload_group.html.markdown +++ b/website/docs/r/cdwdoris_workload_group.html.markdown @@ -4,12 +4,12 @@ layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_cdwdoris_workload_group" sidebar_current: "docs-tencentcloud-resource-cdwdoris_workload_group" description: |- - Provides a resource to create a cdwdoris workload group + Provides a resource to create a CDWDoris workload group --- # tencentcloud_cdwdoris_workload_group -Provides a resource to create a cdwdoris workload group +Provides a resource to create a CDWDoris workload group ~> **NOTE:** To use this resource, The `workload_group_status` field of `tencentcloud_cdwdoris_instance` needs to be set to true. From c3c886cdc04ca13f1d7f109fd15e8a54d02d96cb Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 10 Dec 2025 17:00:58 +0800 Subject: [PATCH 2/2] add --- .changelog/3646.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changelog/3646.txt diff --git a/.changelog/3646.txt b/.changelog/3646.txt new file mode 100644 index 0000000000..23623382ab --- /dev/null +++ b/.changelog/3646.txt @@ -0,0 +1,7 @@ +```release-note:enhancement +resource/tencentcloud_cdwdoris_instance: update doc +``` + +```release-note:enhancement +data-source/tencentcloud_cdwdoris_instances: update doc +``` \ No newline at end of file