diff --git a/gendoc/main.go b/gendoc/main.go index 82d4b0e3d5..a4f2e7099f 100644 --- a/gendoc/main.go +++ b/gendoc/main.go @@ -2,8 +2,6 @@ package main import ( "fmt" - "go/parser" - "go/token" "os" "path/filepath" "reflect" @@ -16,6 +14,7 @@ import ( "github.com/fatih/color" "github.com/hashicorp/hcl/v2/hclwrite" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cloud "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud" ) @@ -28,9 +27,10 @@ const ( ) var ( - hclMatch = regexp.MustCompile("(?si)([^`]+)?```(hcl)?(.*?)```") - usageMatch = regexp.MustCompile(`(?s)(?m)^([^ \n].*?)(?:\n{2}|$)(.*)`) - bigSymbol = regexp.MustCompile("([\u007F-\uffff])") + hclMatch = regexp.MustCompile("(?si)([^`]+)?```(hcl)?(.*?)```") + usageMatch = regexp.MustCompile(`(?s)(?m)^([^ \n].*?)(?:\n{2}|$)(.*)`) + bigSymbol = regexp.MustCompile("([\u007F-\uffff])") + productNameRegexp = regexp.MustCompile(`^.*\((.*)\)$`) ) func main() { @@ -59,15 +59,16 @@ func main() { // genIdx generating index for resource func genIdx(filePath string) (prods []Product) { - filename := "provider.go" + filename := "provider.md" message("[START]get description from file: %s\n", filename) - description, err := getFileDescription(filepath.Join(filePath, filename)) + raw, err := os.ReadFile(filepath.Join(filePath, filename)) if err != nil { message("[SKIP!]get description failed, skip: %s", err) return } + description := string(raw) description = strings.TrimSpace(description) if description == "" { @@ -132,14 +133,24 @@ func genDoc(product, dtype, fpath, name string, resource *schema.Resource) { "import": "", } - filename := fmt.Sprintf("%s_%s_%s.go", dtype, cloudMarkShort, data["resource"]) + productDir := strings.ToLower(product) + groups := productNameRegexp.FindStringSubmatch(productDir) + if groups != nil { + productDir = groups[1] + } + if productDir == "provider data sources" { + productDir = "common" + } + + filename := fmt.Sprintf("%s/%s_%s_%s.md", productDir, dtype, cloudMarkShort, data["resource"]) message("[START]get description from file: %s\n", filename) - description, err := getFileDescription(filepath.Join(fpath, filename)) + raw, err := os.ReadFile(filepath.Join(fpath, filename)) if err != nil { message("[FAIL!]get description failed: %s", err) os.Exit(1) } + description := string(raw) description = strings.TrimSpace(description) if description == "" { @@ -334,18 +345,6 @@ func getAttributes(step int, k string, v *schema.Schema) []string { return attributes } -// getFileDescription get description from go file -func getFileDescription(fname string) (string, error) { - fset := token.NewFileSet() - - parsedAst, err := parser.ParseFile(fset, fname, nil, parser.ParseComments) - if err != nil { - return "", err - } - - return parsedAst.Doc.Text(), nil -} - // getSubStruct get sub structure from go file func getSubStruct(step int, k string, v *schema.Schema) []string { var subStructs []string diff --git a/tencentcloud/antiddos/data_source_tc_antiddos_basic_device_status.md b/tencentcloud/antiddos/data_source_tc_antiddos_basic_device_status.md new file mode 100644 index 0000000000..e08d92ed20 --- /dev/null +++ b/tencentcloud/antiddos/data_source_tc_antiddos_basic_device_status.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of antiddos basic_device_status + +Example Usage + +```hcl +data "tencentcloud_antiddos_basic_device_status" "basic_device_status" { + ip_list = [ + "127.0.0.1" + ] + filter_region = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/antiddos/data_source_tc_antiddos_bgp_biz_trend.md b/tencentcloud/antiddos/data_source_tc_antiddos_bgp_biz_trend.md new file mode 100644 index 0000000000..a54049b39e --- /dev/null +++ b/tencentcloud/antiddos/data_source_tc_antiddos_bgp_biz_trend.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of antiddos bgp_biz_trend + +Example Usage + +```hcl +data "tencentcloud_antiddos_bgp_biz_trend" "bgp_biz_trend" { + business = "bgp-multip" + start_time = "2023-11-22 09:25:00" + end_time = "2023-11-22 10:25:00" + metric_name = "intraffic" + instance_id = "bgp-00000ry7" + flag = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/antiddos/data_source_tc_antiddos_list_listener.md b/tencentcloud/antiddos/data_source_tc_antiddos_list_listener.md new file mode 100644 index 0000000000..0ea070779d --- /dev/null +++ b/tencentcloud/antiddos/data_source_tc_antiddos_list_listener.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of antiddos list_listener + +Example Usage + +```hcl +data "tencentcloud_antiddos_list_listener" "list_listener" { +} +``` \ No newline at end of file diff --git a/tencentcloud/antiddos/data_source_tc_antiddos_overview_attack_trend.md b/tencentcloud/antiddos/data_source_tc_antiddos_overview_attack_trend.md new file mode 100644 index 0000000000..31019e170f --- /dev/null +++ b/tencentcloud/antiddos/data_source_tc_antiddos_overview_attack_trend.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of antiddos overview_attack_trend + +Example Usage + +```hcl +data "tencentcloud_antiddos_overview_attack_trend" "overview_attack_trend" { + type = "ddos" + dimension = "attackcount" + period = 86400 + start_time = "2023-11-21 10:28:31" + end_time = "2023-11-22 10:28:31" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_app_api.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_app_api.md new file mode 100644 index 0000000000..00299ab62b --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_app_api.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of apiGateway api_app_api + +Example Usage + +```hcl +data "tencentcloud_api_gateway_api_app_api" "example" { + service_id = "service-nxz6yync" + api_id = "api-0cvmf4x4" + api_region = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_app_service.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_app_service.md new file mode 100644 index 0000000000..a2c00565b4 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_app_service.md @@ -0,0 +1,52 @@ +Use this data source to query detailed information of apigateway api_app_services + +Example Usage + +```hcl +data "tencentcloud_api_gateway_api_app_service" "example" { + service_id = tencentcloud_api_gateway_api.example.service_id + api_region = "ap-guangzhou" +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf_example" + protocol = "http&https" + service_desc = "desc." + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "example" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "tf_example" + api_desc = "my hello api update" + auth_type = "APP" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "POST" + request_parameters { + name = "email" + position = "QUERY" + type = "string" + desc = "desc." + default_value = "test@qq.com" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 10 + service_config_url = "http://www.tencent.com" + service_config_path = "/user" + service_config_method = "POST" + response_type = "XML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 500 + msg = "system error" + desc = "system error code" + converted_code = 5000 + need_convert = true + } +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_apps.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_apps.md new file mode 100644 index 0000000000..837e1f240f --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_apps.md @@ -0,0 +1,10 @@ +Use this data source to query list information of api_gateway api_app + +Example Usage + +```hcl +data "tencentcloud_api_gateway_api_apps" "test" { + api_app_id = ["app-rj8t6zx3"] + api_app_name = ["app_test"] +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_docs.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_docs.md new file mode 100644 index 0000000000..8bbc95c1ef --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_docs.md @@ -0,0 +1,6 @@ +Use this data source to query list information of api_gateway api_doc +Example Usage +```hcl +data "tencentcloud_api_gateway_api_docs" "my_api_doc" { +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_keys.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_keys.md new file mode 100644 index 0000000000..6f256c1f9e --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_keys.md @@ -0,0 +1,18 @@ +Use this data source to query API gateway access keys. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_api_key" "test" { + secret_name = "my_api_key" + status = "on" +} + +data "tencentcloud_api_gateway_api_keys" "name" { + secret_name = tencentcloud_api_gateway_api_key.test.secret_name +} + +data "tencentcloud_api_gateway_api_keys" "id" { + api_key_id = tencentcloud_api_gateway_api_key.test.id +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_plugins.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_plugins.md new file mode 100644 index 0000000000..f031b76c7a --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_plugins.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of apiGateway api_plugins + +Example Usage + +```hcl +data "tencentcloud_api_gateway_api_plugins" "example" { + api_id = "api-0cvmf4x4" + service_id = "service-nxz6yync" + environment_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_api_usage_plans.md b/tencentcloud/apigateway/data_source_tc_api_gateway_api_usage_plans.md new file mode 100644 index 0000000000..861225101d --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_api_usage_plans.md @@ -0,0 +1,66 @@ +Use this data source to query detailed information of apigateway api_usage_plan + +Example Usage + +```hcl +data "tencentcloud_api_gateway_api_usage_plans" "example" { + service_id = tencentcloud_api_gateway_usage_plan_attachment.example.service_id +} + +resource "tencentcloud_api_gateway_usage_plan" "example" { + usage_plan_name = "tf_example" + usage_plan_desc = "desc." + max_request_num = 100 + max_request_num_pre_sec = 10 +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf_example" + protocol = "http&https" + service_desc = "desc." + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "example" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "tf_example" + api_desc = "my hello api update" + auth_type = "SECRET" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "POST" + request_parameters { + name = "email" + position = "QUERY" + type = "string" + desc = "desc." + default_value = "test@qq.com" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 10 + service_config_url = "http://www.tencent.com" + service_config_path = "/user" + service_config_method = "POST" + response_type = "XML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 500 + msg = "system error" + desc = "system error code" + converted_code = 5000 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_usage_plan_attachment" "example" { + usage_plan_id = tencentcloud_api_gateway_usage_plan.example.id + service_id = tencentcloud_api_gateway_service.example.id + environment = "release" + bind_type = "API" + api_id = tencentcloud_api_gateway_api.example.id +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_apis.md b/tencentcloud/apigateway/data_source_tc_api_gateway_apis.md new file mode 100644 index 0000000000..4382e60490 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_apis.md @@ -0,0 +1,42 @@ +Use this data source to query API gateway APIs. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "ck" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "api" { + service_id = tencentcloud_api_gateway_service.service.id + api_name = "hello" + api_desc = "my hello api" + auth_type = "NONE" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "GET" + service_config_type = "HTTP" + service_config_timeout = 15 + service_config_url = "http://www.qq.com" + service_config_path = "/user" + service_config_method = "GET" + response_type = "HTML" + response_success_example = "success" + response_fail_example = "fail" +} + +data "tencentcloud_api_gateway_apis" "id" { + service_id = tencentcloud_api_gateway_service.service.id + api_id = tencentcloud_api_gateway_api.api.id +} + +data "tencentcloud_api_gateway_apis" "name" { + service_id = tencentcloud_api_gateway_service.service.id + api_name = tencentcloud_api_gateway_api.api.api_name +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_bind_api_apps_status.md b/tencentcloud/apigateway/data_source_tc_api_gateway_bind_api_apps_status.md new file mode 100644 index 0000000000..3b5f6d6f4f --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_bind_api_apps_status.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of apiGateway bind_api_apps_status + +Example Usage + +```hcl +data "tencentcloud_api_gateway_bind_api_apps_status" "example" { + service_id = "service-nxz6yync" + api_ids = ["api-0cvmf4x4", "api-jvqlzolk"] + filters { + name = "ApiAppId" + values = ["app-krljp4wn"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_customer_domains.md b/tencentcloud/apigateway/data_source_tc_api_gateway_customer_domains.md new file mode 100644 index 0000000000..525aeccd38 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_customer_domains.md @@ -0,0 +1,19 @@ +Use this data source to query API gateway domain list. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_custom_domain" "foo" { + service_id = "service-ohxqslqe" + sub_domain = "tic-test.dnsv1.com" + protocol = "http" + net_type = "OUTER" + is_default_mapping = "false" + default_domain = "service-ohxqslqe-1259649581.gz.apigw.tencentcs.com" + path_mappings = ["/good#test","/root#release"] +} + +data "tencentcloud_api_gateway_customer_domains" "id" { + service_id = tencentcloud_api_gateway_custom_domain.foo.service_id +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_ip_strategies.md b/tencentcloud/apigateway/data_source_tc_api_gateway_ip_strategies.md new file mode 100644 index 0000000000..ab48b6eca9 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_ip_strategies.md @@ -0,0 +1,29 @@ +Use this data source to query API gateway IP strategy. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "ck" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_ip_strategy" "test"{ + service_id = tencentcloud_api_gateway_service.service.id + strategy_name = "tf_test" + strategy_type = "BLACK" + strategy_data = "9.9.9.9" +} + +data "tencentcloud_api_gateway_ip_strategies" "id" { + service_id = tencentcloud_api_gateway_ip_strategy.test.service_id +} + +data "tencentcloud_api_gateway_ip_strategies" "name" { + service_id = tencentcloud_api_gateway_ip_strategy.test.service_id + strategy_name = tencentcloud_api_gateway_ip_strategy.test.strategy_name +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_plugins.md b/tencentcloud/apigateway/data_source_tc_api_gateway_plugins.md new file mode 100644 index 0000000000..8684e9bafb --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_plugins.md @@ -0,0 +1,76 @@ +Use this data source to query detailed information of apigateway plugin + +Example Usage + +```hcl +data "tencentcloud_api_gateway_plugins" "example" { + service_id = tencentcloud_api_gateway_service_release.example.service_id + plugin_id = tencentcloud_api_gateway_plugin.example.id + environment_name = "release" +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf_example" + protocol = "http&https" + service_desc = "desc." + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" + tags = { + testKey = "testValue" + } + release_limit = 500 + pre_limit = 500 + test_limit = 500 +} + +resource "tencentcloud_api_gateway_api" "example" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "hello" + api_desc = "my hello api" + auth_type = "NONE" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "GET" + + request_parameters { + name = "name" + position = "QUERY" + type = "string" + desc = "who are you?" + default_value = "tom" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 15 + service_config_url = "http://www.qq.com" + service_config_path = "/user" + service_config_method = "GET" + response_type = "HTML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 500 + msg = "system error" + desc = "system error code" + converted_code = 5000 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_service_release" "example" { + service_id = tencentcloud_api_gateway_api.example.service_id + environment_name = "release" + release_desc = "desc." +} + +resource "tencentcloud_api_gateway_plugin" "example" { + plugin_name = "tf-example" + plugin_type = "IPControl" + plugin_data = jsonencode({ + "type" : "white_list", + "blocks" : "1.1.1.1", + }) + description = "desc." +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_service_environment_list.md b/tencentcloud/apigateway/data_source_tc_api_gateway_service_environment_list.md new file mode 100644 index 0000000000..826373fca0 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_service_environment_list.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of apiGateway service_environment_list + +Example Usage + +```hcl +data "tencentcloud_api_gateway_service_environment_list" "example" { + service_id = "service-nxz6yync" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_service_release_versions.md b/tencentcloud/apigateway/data_source_tc_api_gateway_service_release_versions.md new file mode 100644 index 0000000000..db252af475 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_service_release_versions.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of apiGateway service_release_versions + +Example Usage + +```hcl +data "tencentcloud_api_gateway_service_release_versions" "example" { + service_id = "service-nxz6yync" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_services.md b/tencentcloud/apigateway/data_source_tc_api_gateway_services.md new file mode 100644 index 0000000000..68ac27bdd1 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_services.md @@ -0,0 +1,21 @@ +Use this data source to query API gateway services. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "niceservice" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +data "tencentcloud_api_gateway_services" "name" { + service_name = tencentcloud_api_gateway_service.service.service_name +} + +data "tencentcloud_api_gateway_services" "id" { + service_id = tencentcloud_api_gateway_service.service.id +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_throttling_apis.md b/tencentcloud/apigateway/data_source_tc_api_gateway_throttling_apis.md new file mode 100644 index 0000000000..5905422825 --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_throttling_apis.md @@ -0,0 +1,60 @@ +Use this data source to query API gateway throttling APIs. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "niceservice" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "api" { + service_id = tencentcloud_api_gateway_service.service.id + api_name = "tf_example" + api_desc = "my hello api update" + auth_type = "SECRET" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "POST" + request_parameters { + name = "email" + position = "QUERY" + type = "string" + desc = "your email please?" + default_value = "tom@qq.com" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 10 + service_config_url = "http://www.tencent.com" + service_config_path = "/user" + service_config_method = "POST" + response_type = "XML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 10 + msg = "system error" + desc = "system error code" + converted_code = -10 + need_convert = true + } + + release_limit = 100 + pre_limit = 100 + test_limit = 100 +} + +data "tencentcloud_api_gateway_throttling_apis" "id" { + service_id = tencentcloud_api_gateway_api.service_id +} + +data "tencentcloud_api_gateway_throttling_apis" "foo" { + service_id = tencentcloud_api_gateway_api.service.service_id + environment_names = ["release", "test"] +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_throttling_services.md b/tencentcloud/apigateway/data_source_tc_api_gateway_throttling_services.md new file mode 100644 index 0000000000..daeec028fe --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_throttling_services.md @@ -0,0 +1,20 @@ +Use this data source to query API gateway throttling services. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "niceservice" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" + release_limit = 100 + pre_limit = 100 + test_limit = 100 +} + +data "tencentcloud_api_gateway_throttling_services" "id" { + service_id = tencentcloud_api_gateway_service.service.id +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_upstreams.md b/tencentcloud/apigateway/data_source_tc_api_gateway_upstreams.md new file mode 100644 index 0000000000..4304ab413a --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_upstreams.md @@ -0,0 +1,22 @@ +Use this data source to query detailed information of apigateway upstream + +Example Usage + +```hcl +data "tencentcloud_api_gateway_upstreams" "example" { + upstream_id = "upstream-4n5bfklc" +} +``` + +Filtered Queries + +```hcl +data "tencentcloud_api_gateway_upstreams" "example" { + upstream_id = "upstream-4n5bfklc" + + filters { + name = "ServiceId" + values = "service-hvg0uueg" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_usage_plan_environments.md b/tencentcloud/apigateway/data_source_tc_api_gateway_usage_plan_environments.md new file mode 100644 index 0000000000..89fbf9b98b --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_usage_plan_environments.md @@ -0,0 +1,32 @@ +Used to query the environment list bound by the plan. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_usage_plan" "plan" { + usage_plan_name = "my_plan" + usage_plan_desc = "nice plan" + max_request_num = 100 + max_request_num_pre_sec = 10 +} + +resource "tencentcloud_api_gateway_service" "service" { + service_name = "niceservice" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_usage_plan_attachment" "attach_service" { + usage_plan_id = tencentcloud_api_gateway_usage_plan.plan.id + service_id = tencentcloud_api_gateway_service.service.id + environment = "test" + bind_type = "SERVICE" +} + +data "tencentcloud_api_gateway_usage_plan_environments" "environment_test" { + usage_plan_id = tencentcloud_api_gateway_usage_plan_attachment.attach_service.usage_plan_id + bind_type = "SERVICE" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/data_source_tc_api_gateway_usage_plans.md b/tencentcloud/apigateway/data_source_tc_api_gateway_usage_plans.md new file mode 100644 index 0000000000..45ea1766fe --- /dev/null +++ b/tencentcloud/apigateway/data_source_tc_api_gateway_usage_plans.md @@ -0,0 +1,20 @@ +Use this data source to query API gateway usage plans. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_usage_plan" "plan" { + usage_plan_name = "my_plan" + usage_plan_desc = "nice plan" + max_request_num = 100 + max_request_num_pre_sec = 10 +} + +data "tencentcloud_api_gateway_usage_plans" "name" { + usage_plan_name = tencentcloud_api_gateway_usage_plan.plan.usage_plan_name +} + +data "tencentcloud_api_gateway_usage_plans" "id" { + usage_plan_id = tencentcloud_api_gateway_usage_plan.plan.id +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_api.md b/tencentcloud/apigateway/resource_tc_api_gateway_api.md new file mode 100644 index 0000000000..99d285c40b --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_api.md @@ -0,0 +1,51 @@ +Use this resource to create API of API gateway. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf-example" + protocol = "http&https" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "api" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "tf-example" + api_desc = "desc." + auth_type = "NONE" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "GET" + + request_parameters { + name = "name" + position = "QUERY" + type = "string" + desc = "who are you?" + default_value = "tom" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 15 + service_config_url = "http://www.qq.com" + service_config_path = "/user" + service_config_method = "GET" + response_type = "HTML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 500 + msg = "system error" + desc = "system error code" + converted_code = 5000 + need_convert = true + } + + release_limit = 500 + pre_limit = 500 + test_limit = 500 +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_api_app.md b/tencentcloud/apigateway/resource_tc_api_gateway_api_app.md new file mode 100644 index 0000000000..bd04a4a293 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_api_app.md @@ -0,0 +1,33 @@ +Provides a resource to create a APIGateway ApiApp + +Example Usage + +Create a basic apigateway api_app + +```hcl +resource "tencentcloud_api_gateway_api_app" "example" { + api_app_name = "tf_example" + api_app_desc = "app desc." +} +``` + +Bind Tag + +```hcl +resource "tencentcloud_api_gateway_api_app" "example" { + api_app_name = "tf_example" + api_app_desc = "app desc." + + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +apigateway api_app can be imported using the id, e.g. + +``` +terraform import tencentcloud_api_gateway_api_app.example app-poe0pyex +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_api_app_attachment.md b/tencentcloud/apigateway/resource_tc_api_gateway_api_app_attachment.md new file mode 100644 index 0000000000..8e6b6e7617 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_api_app_attachment.md @@ -0,0 +1,70 @@ +Provides a resource to create a apigateway api_app_attachment + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_api_app" "example" { + api_app_name = "tf_example" + api_app_desc = "app desc." +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf_example_service" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "example" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "tf_example_api" + api_desc = "desc." + auth_type = "APP" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "GET" + + request_parameters { + name = "name" + position = "QUERY" + type = "string" + desc = "desc." + default_value = "terraform" + required = true + } + + service_config_type = "HTTP" + service_config_timeout = 15 + service_config_url = "https://www.qq.com" + service_config_path = "/user" + service_config_method = "GET" + response_type = "HTML" + response_success_example = "success" + response_fail_example = "fail" + + response_error_codes { + code = 400 + msg = "system error msg." + desc = "system error desc." + converted_code = 407 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_api_app_attachment" "example" { + api_app_id = tencentcloud_api_gateway_api_app.example.id + environment = "test" + service_id = tencentcloud_api_gateway_service.example.id + api_id = tencentcloud_api_gateway_api.example.id +} +``` + +Import + +apigateway api_app_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_api_gateway_api_app_attachment.example app-f2dxx0lv#test#service-h0trno8e#api-grsomg0w +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_api_doc.md b/tencentcloud/apigateway/resource_tc_api_gateway_api_doc.md new file mode 100644 index 0000000000..2664606406 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_api_doc.md @@ -0,0 +1,12 @@ +Provides a resource to create a APIGateway ApiDoc + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_api_doc" "my_api_doc" { + api_doc_name = "doc_test1" + service_id = "service_test1" + environment = "release" + api_ids = ["api-test1", "api-test2"] +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_api_key.md b/tencentcloud/apigateway/resource_tc_api_gateway_api_key.md new file mode 100644 index 0000000000..d7a93b2e47 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_api_key.md @@ -0,0 +1,31 @@ +Use this resource to create API gateway access key. + +Example Usage + +Automatically generate key for API gateway access key. + +```hcl +resource "tencentcloud_api_gateway_api_key" "example_auto" { + secret_name = "tf_example_auto" + status = "on" +} +``` + +Manually generate a secret key for API gateway access key. + +```hcl +resource "tencentcloud_api_gateway_api_key" "example_manual" { + secret_name = "tf_example_manual" + status = "on" + access_key_type = "manual" + access_key_id = "28e287e340507fa147b2c8284dab542f" + access_key_secret = "0198a4b8c3105080f4acd9e507599eff" +} +``` +Import + +API gateway access key can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_api_key.test AKIDMZwceezso9ps5p8jkro8a9fwe1e7nzF2k50B +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_api_key_attachment.md b/tencentcloud/apigateway/resource_tc_api_gateway_api_key_attachment.md new file mode 100644 index 0000000000..a122c5ccc8 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_api_key_attachment.md @@ -0,0 +1,30 @@ +Use this resource to API gateway attach access key to usage plan. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_api_key" "key" { + secret_name = "my_api_key" + status = "on" +} + +resource "tencentcloud_api_gateway_usage_plan" "plan" { + usage_plan_name = "my_plan" + usage_plan_desc = "nice plan" + max_request_num = 100 + max_request_num_pre_sec = 10 +} + +resource "tencentcloud_api_gateway_api_key_attachment" "attach" { + api_key_id = tencentcloud_api_gateway_api_key.key.id + usage_plan_id = tencentcloud_api_gateway_usage_plan.plan.id +} +``` + +Import + +API gateway attach access key can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_api_key_attachment.attach AKID110b8Rmuw7t0fP1N8bi809n327023Is7xN8f#usagePlan-gyeafpab +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_custom_domain.md b/tencentcloud/apigateway/resource_tc_api_gateway_custom_domain.md new file mode 100644 index 0000000000..a6d96ae4e0 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_custom_domain.md @@ -0,0 +1,15 @@ +Use this resource to create custom domain of API gateway. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_custom_domain" "foo" { + service_id = "service-ohxqslqe" + sub_domain = "tic-test.dnsv1.com" + protocol = "http" + net_type = "OUTER" + is_default_mapping = "false" + default_domain = "service-ohxqslqe-1259649581.gz.apigw.tencentcs.com" + path_mappings = ["/good#test","/root#release"] +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_import_open_api.md b/tencentcloud/apigateway/resource_tc_api_gateway_import_open_api.md new file mode 100644 index 0000000000..86b29c43a0 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_import_open_api.md @@ -0,0 +1,25 @@ +Provides a resource to create a apiGateway import_open_api + +Example Usage + +Import open Api by YAML + +```hcl +resource "tencentcloud_api_gateway_import_open_api" "example" { + service_id = "service-nxz6yync" + content = "info:\n title: keep-service\n version: 1.0.1\nopenapi: 3.0.0\npaths:\n /api/test:\n get:\n description: desc\n operationId: test\n responses:\n '200':\n content:\n text/html:\n example: '200'\n description: '200'\n default:\n content:\n text/html:\n example: '400'\n description: '400'\n x-apigw-api-business-type: NORMAL\n x-apigw-api-type: NORMAL\n x-apigw-backend:\n ServiceConfig:\n Method: GET\n Path: /test\n Url: http://domain.com\n ServiceType: HTTP\n x-apigw-cors: false\n x-apigw-protocol: HTTP\n x-apigw-service-timeout: 15\n" + encode_type = "YAML" + content_version = "openAPI" +} +``` + +Import open Api by JSON + +```hcl +resource "tencentcloud_api_gateway_import_open_api" "example" { + service_id = "service-nxz6yync" + content = "{\"openapi\": \"3.0.0\", \"info\": {\"title\": \"keep-service\", \"version\": \"1.0.1\"}, \"paths\": {\"/api/test\": {\"get\": {\"operationId\": \"test\", \"description\": \"desc\", \"responses\": {\"200\": {\"description\": \"200\", \"content\": {\"text/html\": {\"example\": \"200\"}}}, \"default\": {\"content\": {\"text/html\": {\"example\": \"400\"}}, \"description\": \"400\"}}, \"x-apigw-api-type\": \"NORMAL\", \"x-apigw-api-business-type\": \"NORMAL\", \"x-apigw-protocol\": \"HTTP\", \"x-apigw-cors\": false, \"x-apigw-service-timeout\": 15, \"x-apigw-backend\": {\"ServiceType\": \"HTTP\", \"ServiceConfig\": {\"Url\": \"http://domain.com\", \"Path\": \"/test\", \"Method\": \"GET\"}}}}}}" + encode_type = "JSON" + content_version = "openAPI" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_ip_strategy.md b/tencentcloud/apigateway/resource_tc_api_gateway_ip_strategy.md new file mode 100644 index 0000000000..5a0c2a8caa --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_ip_strategy.md @@ -0,0 +1,28 @@ +Use this resource to create IP strategy of API gateway. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "niceservice" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_ip_strategy" "test"{ + service_id = tencentcloud_api_gateway_service.service.id + strategy_name = "tf_test" + strategy_type = "BLACK" + strategy_data = "9.9.9.9" +} +``` + +Import + +IP strategy of API gateway can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_ip_strategy.test service-ohxqslqe#IPStrategy-q1lk8ud2 +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_plugin.md b/tencentcloud/apigateway/resource_tc_api_gateway_plugin.md new file mode 100644 index 0000000000..a4175ee463 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_plugin.md @@ -0,0 +1,23 @@ +Provides a resource to create a apiGateway plugin + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_plugin" "example" { + plugin_name = "tf-example" + plugin_type = "IPControl" + plugin_data = jsonencode({ + "type" : "white_list", + "blocks" : "1.1.1.1", + }) + description = "desc." +} +``` + +Import + +apiGateway plugin can be imported using the id, e.g. + +``` +terraform import tencentcloud_api_gateway_plugin.plugin plugin_id +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_plugin_attachment.md b/tencentcloud/apigateway/resource_tc_api_gateway_plugin_attachment.md new file mode 100644 index 0000000000..4aeb116767 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_plugin_attachment.md @@ -0,0 +1,81 @@ +Provides a resource to create a apiGateway plugin_attachment + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_plugin" "example" { + plugin_name = "tf-example" + plugin_type = "IPControl" + plugin_data = jsonencode({ + "type" : "white_list", + "blocks" : "1.1.1.1", + }) + description = "desc." +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf_example_service" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "example" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "tf_example_api" + api_desc = "desc." + auth_type = "APP" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "GET" + + request_parameters { + name = "name" + position = "QUERY" + type = "string" + desc = "desc." + default_value = "terraform" + required = true + } + + service_config_type = "HTTP" + service_config_timeout = 15 + service_config_url = "https://www.qq.com" + service_config_path = "/user" + service_config_method = "GET" + response_type = "HTML" + response_success_example = "success" + response_fail_example = "fail" + + response_error_codes { + code = 400 + msg = "system error msg." + desc = "system error desc." + converted_code = 407 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_service_release" "example" { + service_id = tencentcloud_api_gateway_api.example.service_id + environment_name = "release" + release_desc = "desc." +} + +resource "tencentcloud_api_gateway_plugin_attachment" "example" { + plugin_id = tencentcloud_api_gateway_plugin.example.id + service_id = tencentcloud_api_gateway_service_release.example.service_id + api_id = tencentcloud_api_gateway_api.example.id + environment_name = "release" +} +``` + +Import + +apiGateway plugin_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_api_gateway_plugin_attachment.example plugin-hnqntalp#service-q3f533ja#release#api-62ud9woa +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_service.md b/tencentcloud/apigateway/resource_tc_api_gateway_service.md new file mode 100644 index 0000000000..aa278c0462 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_service.md @@ -0,0 +1,61 @@ +Use this resource to create API gateway service. + +~> **NOTE:** After setting `uniq_vpc_id`, it cannot be modified. + +Example Usage + +Shared Service + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "example-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf-example" + protocol = "http&https" + service_desc = "desc." + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" + uniq_vpc_id = tencentcloud_vpc.vpc.id + + tags = { + createdBy = "terraform" + } + + release_limit = 500 + pre_limit = 500 + test_limit = 500 +} +``` + +Exclusive Service + +```hcl +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf-example" + protocol = "http&https" + service_desc = "desc." + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" + uniq_vpc_id = tencentcloud_vpc.vpc.id + instance_id = "instance-rc6fcv4e" + + tags = { + createdBy = "terraform" + } + + release_limit = 500 + pre_limit = 500 + test_limit = 500 +} +``` + +Import + +API gateway service can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_service.service service-pg6ud8pa +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_service_release.md b/tencentcloud/apigateway/resource_tc_api_gateway_service_release.md new file mode 100644 index 0000000000..4ba2cabb99 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_service_release.md @@ -0,0 +1,61 @@ +Use this resource to create API gateway service release. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "myservice" + protocol = "http" + service_desc = "my nice service" + net_type = ["INNER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "api" { + service_id = tencentcloud_api_gateway_service.service.id + api_name = "tf_example" + api_desc = "my hello api update" + auth_type = "SECRET" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "POST" + request_parameters { + name = "email" + position = "QUERY" + type = "string" + desc = "your email please?" + default_value = "tom@qq.com" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 10 + service_config_url = "http://www.tencent.com" + service_config_path = "/user" + service_config_method = "POST" + response_type = "XML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 10 + msg = "system error" + desc = "system error code" + converted_code = -10 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_service_release" "service" { + service_id = tencentcloud_api_gateway_api.api.service.id + environment_name = "release" + release_desc = "test service release" +} +``` + +Import + +API gateway service release can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_service_release.service service-jjt3fs3s#release#20201015121916d85fb161-eaec-4dda-a7e0-659aa5f401be +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_strategy_attachment.md b/tencentcloud/apigateway/resource_tc_api_gateway_strategy_attachment.md new file mode 100644 index 0000000000..77560bcc80 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_strategy_attachment.md @@ -0,0 +1,75 @@ +Use this resource to create IP strategy attachment of API gateway. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_service" "service" { + service_name = "niceservice" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_ip_strategy" "test"{ + service_id = tencentcloud_api_gateway_service.service.id + strategy_name = "tf_test" + strategy_type = "BLACK" + strategy_data = "9.9.9.9" +} + +resource "tencentcloud_api_gateway_api" "api" { + service_id = tencentcloud_api_gateway_service.service.id + api_name = "tf_example" + api_desc = "my hello api update" + auth_type = "SECRET" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "POST" + request_parameters { + name = "email" + position = "QUERY" + type = "string" + desc = "your email please?" + default_value = "tom@qq.com" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 10 + service_config_url = "http://www.tencent.com" + service_config_path = "/user" + service_config_method = "POST" + response_type = "XML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 10 + msg = "system error" + desc = "system error code" + converted_code = -10 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_service_release" "service" { + service_id = tencentcloud_api_gateway_service.service.id + environment_name = "release" + release_desc = "test service release" +} + +resource "tencentcloud_api_gateway_strategy_attachment" "test"{ + service_id = tencentcloud_api_gateway_service_release.service.service_id + strategy_id = tencentcloud_api_gateway_ip_strategy.test.strategy_id + environment_name = "release" + bind_api_id = tencentcloud_api_gateway_api.api.id +} +``` + +Import + +IP strategy attachment of API gateway can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_strategy_attachment.test service-pk2r6bcc#IPStrategy-4kz2ljfi#api-h3wc5r0s#release +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_update_api_app_key.md b/tencentcloud/apigateway/resource_tc_api_gateway_update_api_app_key.md new file mode 100644 index 0000000000..846db52825 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_update_api_app_key.md @@ -0,0 +1,10 @@ +Provides a resource to create a apiGateway update_api_app_key + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_update_api_app_key" "example" { + api_app_id = "app-krljp4wn" + api_app_key = "APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP" +} +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_upstream.md b/tencentcloud/apigateway/resource_tc_api_gateway_upstream.md new file mode 100644 index 0000000000..d5fbc8f27d --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_upstream.md @@ -0,0 +1,132 @@ +Provides a resource to create a apigateway upstream + +Example Usage + +Create a basic VPC channel + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cvm" +} + +data "tencentcloud_images" "images" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.3.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.3.name + image_id = data.tencentcloud_images.images.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "terraform" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + + data_disks { + data_disk_type = "CLOUD_PREMIUM" + data_disk_size = 50 + encrypt = false + } + + tags = { + tagKey = "tagValue" + } +} + +resource "tencentcloud_api_gateway_upstream" "example" { + scheme = "HTTP" + algorithm = "ROUND-ROBIN" + uniq_vpc_id = tencentcloud_vpc.vpc.id + upstream_name = "tf_example" + upstream_description = "desc." + upstream_type = "IP_PORT" + retries = 5 + + nodes { + host = "1.1.1.1" + port = 9090 + weight = 10 + vm_instance_id = tencentcloud_instance.example.id + tags = ["tags"] + } + + tags = { + "createdBy" = "terraform" + } +} +``` + +Create a complete VPC channel + +```hcl +resource "tencentcloud_api_gateway_upstream" "example" { + scheme = "HTTP" + algorithm = "ROUND-ROBIN" + uniq_vpc_id = tencentcloud_vpc.vpc.id + upstream_name = "tf_example" + upstream_description = "desc." + upstream_type = "IP_PORT" + retries = 5 + + nodes { + host = "1.1.1.1" + port = 9090 + weight = 10 + vm_instance_id = tencentcloud_instance.example.id + tags = ["tags"] + } + + health_checker { + enable_active_check = true + enable_passive_check = true + healthy_http_status = "200" + unhealthy_http_status = "500" + tcp_failure_threshold = 5 + timeout_threshold = 5 + http_failure_threshold = 3 + active_check_http_path = "/" + active_check_timeout = 5 + active_check_interval = 5 + unhealthy_timeout = 30 + } + + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +apigateway upstream can be imported using the id, e.g. + +``` +terraform import tencentcloud_api_gateway_upstream.upstream upstream_id +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_usage_plan.md b/tencentcloud/apigateway/resource_tc_api_gateway_usage_plan.md new file mode 100644 index 0000000000..1570009d71 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_usage_plan.md @@ -0,0 +1,20 @@ +Use this resource to create API gateway usage plan. + +Example Usage + +```hcl +resource "tencentcloud_api_gateway_usage_plan" "example" { + usage_plan_name = "tf_example" + usage_plan_desc = "desc." + max_request_num = 100 + max_request_num_pre_sec = 10 +} +``` + +Import + +API gateway usage plan can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_usage_plan.plan usagePlan-gyeafpab +``` \ No newline at end of file diff --git a/tencentcloud/apigateway/resource_tc_api_gateway_usage_plan_attachment.md b/tencentcloud/apigateway/resource_tc_api_gateway_usage_plan_attachment.md new file mode 100644 index 0000000000..b86ddeb773 --- /dev/null +++ b/tencentcloud/apigateway/resource_tc_api_gateway_usage_plan_attachment.md @@ -0,0 +1,93 @@ +Use this resource to attach API gateway usage plan to service. + +~> **NOTE:** If the `auth_type` parameter of API is not `SECRET`, it cannot be bound access key. + +Example Usage + +Normal creation + +```hcl +resource "tencentcloud_api_gateway_usage_plan" "example" { + usage_plan_name = "tf_example" + usage_plan_desc = "desc." + max_request_num = 100 + max_request_num_pre_sec = 10 +} + +resource "tencentcloud_api_gateway_service" "example" { + service_name = "tf_example" + protocol = "http&https" + service_desc = "desc." + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +resource "tencentcloud_api_gateway_api" "example" { + service_id = tencentcloud_api_gateway_service.example.id + api_name = "tf_example" + api_desc = "my hello api update" + auth_type = "SECRET" + protocol = "HTTP" + enable_cors = true + request_config_path = "/user/info" + request_config_method = "POST" + request_parameters { + name = "email" + position = "QUERY" + type = "string" + desc = "desc." + default_value = "test@qq.com" + required = true + } + service_config_type = "HTTP" + service_config_timeout = 10 + service_config_url = "http://www.tencent.com" + service_config_path = "/user" + service_config_method = "POST" + response_type = "XML" + response_success_example = "success" + response_fail_example = "fail" + response_error_codes { + code = 500 + msg = "system error" + desc = "system error code" + converted_code = 5000 + need_convert = true + } +} + +resource "tencentcloud_api_gateway_usage_plan_attachment" "example" { + usage_plan_id = tencentcloud_api_gateway_usage_plan.example.id + service_id = tencentcloud_api_gateway_service.example.id + environment = "release" + bind_type = "API" + api_id = tencentcloud_api_gateway_api.example.id +} +``` + +Bind the key to a usage plan + +```hcl +resource "tencentcloud_api_gateway_api_key" "example" { + secret_name = "tf_example" + status = "on" +} + +resource "tencentcloud_api_gateway_usage_plan_attachment" "example" { + usage_plan_id = tencentcloud_api_gateway_usage_plan.example.id + service_id = tencentcloud_api_gateway_service.example.id + environment = "release" + bind_type = "API" + api_id = tencentcloud_api_gateway_api.example.id + + access_key_ids = [tencentcloud_api_gateway_api_key.example.id] +} +``` + +Import + +API gateway usage plan attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_api_gateway_usage_plan_attachment.attach_service usagePlan-pe7fbdgn#service-kuqd6xqk#release#API#api-p8gtanvy +``` \ No newline at end of file diff --git a/tencentcloud/apm/resource_tc_apm_instance.md b/tencentcloud/apm/resource_tc_apm_instance.md new file mode 100644 index 0000000000..59208b3a4d --- /dev/null +++ b/tencentcloud/apm/resource_tc_apm_instance.md @@ -0,0 +1,23 @@ +Provides a resource to create a apm instance + +Example Usage + +```hcl +resource "tencentcloud_apm_instance" "instance" { + name = "terraform-test" + description = "for terraform test" + trace_duration = 15 + span_daily_counters = 20 + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +apm instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_apm_instance.instance instance_id +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_advices.md b/tencentcloud/as/data_source_tc_as_advices.md new file mode 100644 index 0000000000..33cd47b7ef --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_advices.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of as advices + +Example Usage + +```hcl +data "tencentcloud_as_advices" "advices" { + auto_scaling_group_ids = ["asc-lo0b94oy"] +} +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_instances.md b/tencentcloud/as/data_source_tc_as_instances.md new file mode 100644 index 0000000000..aa3d7e70b8 --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_instances.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of as instances + +Example Usage + +```hcl +resource "tencentcloud_as_scaling_group" "scaling_group" { + scaling_group_name = "tf-as-group-ds-ins-basic" + configuration_id = "your_launch_configuration_id" + max_size = 1 + min_size = 1 + vpc_id = "your_vpc_id" + subnet_ids = ["your_subnet_id"] + + tags = { + "test" = "test" + } +} + +data "tencentcloud_as_instances" "instances" { + filters { + name = "auto-scaling-group-id" + values = [tencentcloud_as_scaling_group.scaling_group.id] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_last_activity.md b/tencentcloud/as/data_source_tc_as_last_activity.md new file mode 100644 index 0000000000..6b4711022c --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_last_activity.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of as last_activity + +Example Usage + +```hcl +data "tencentcloud_as_last_activity" "last_activity" { + auto_scaling_group_ids = ["asc-lo0b94oy"] +} +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_limits.md b/tencentcloud/as/data_source_tc_as_limits.md new file mode 100644 index 0000000000..3fc7b23a4f --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_limits.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of as limits + +Example Usage + +```hcl +data "tencentcloud_as_limits" "limits" {} +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_scaling_configs.md b/tencentcloud/as/data_source_tc_as_scaling_configs.md new file mode 100644 index 0000000000..f4424e71c9 --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_scaling_configs.md @@ -0,0 +1,10 @@ +Use this data source to query scaling configuration information. + +Example Usage + +```hcl +data "tencentcloud_as_scaling_configs" "as_configs" { + configuration_id = "asc-oqio4yyj" + result_output_file = "my_test_path" +} +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_scaling_groups.md b/tencentcloud/as/data_source_tc_as_scaling_groups.md new file mode 100644 index 0000000000..460b4289dc --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_scaling_groups.md @@ -0,0 +1,11 @@ +Use this data source to query the detail information of an existing autoscaling group. + +Example Usage + +```hcl +data "tencentcloud_as_scaling_groups" "as_scaling_groups" { + scaling_group_name = "myasgroup" + configuration_id = "asc-oqio4yyj" + result_output_file = "my_test_path" +} +``` \ No newline at end of file diff --git a/tencentcloud/as/data_source_tc_as_scaling_policies.md b/tencentcloud/as/data_source_tc_as_scaling_policies.md new file mode 100644 index 0000000000..816c126002 --- /dev/null +++ b/tencentcloud/as/data_source_tc_as_scaling_policies.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of scaling policy. + +Example Usage + +```hcl +data "tencentcloud_as_scaling_policies" "as_scaling_policies" { + scaling_policy_id = "asg-mvyghxu7" + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_attachment.md b/tencentcloud/as/resource_tc_as_attachment.md new file mode 100644 index 0000000000..de00a8570d --- /dev/null +++ b/tencentcloud/as/resource_tc_as_attachment.md @@ -0,0 +1,77 @@ +Provides a resource to attach or detach CVM instances to a specified scaling group. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example_instance" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + allocate_public_ip = true + internet_max_bandwidth_out = 10 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_as_attachment" "attachment" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = [tencentcloud_instance.example.id] +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_complete_lifecycle.md b/tencentcloud/as/resource_tc_as_complete_lifecycle.md new file mode 100644 index 0000000000..abf6efb78f --- /dev/null +++ b/tencentcloud/as/resource_tc_as_complete_lifecycle.md @@ -0,0 +1,87 @@ +Provides a resource to create a as complete_lifecycle + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_lifecycle_hook" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + lifecycle_hook_name = "tf-as-lifecycle-hook" + lifecycle_transition = "INSTANCE_LAUNCHING" + default_result = "CONTINUE" + heartbeat_timeout = 500 + notification_metadata = "tf test" +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_as_complete_lifecycle" "complete_lifecycle" { + lifecycle_hook_id = tencentcloud_as_lifecycle_hook.example.id + instance_id = tencentcloud_instance.example.id + lifecycle_action_result = "CONTINUE" +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_execute_scaling_policy.md b/tencentcloud/as/resource_tc_as_execute_scaling_policy.md new file mode 100644 index 0000000000..4221635305 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_execute_scaling_policy.md @@ -0,0 +1,73 @@ +Provides a resource to create a as execute_scaling_policy + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 4 + min_size = 1 + desired_capacity = 2 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_scaling_policy" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + policy_name = "tf-as-scaling-policy" + adjustment_type = "EXACT_CAPACITY" + adjustment_value = 0 + comparison_operator = "GREATER_THAN" + metric_name = "CPU_UTILIZATION" + threshold = 80 + period = 300 + continuous_time = 10 + statistic = "AVERAGE" + cooldown = 360 +} + +resource "tencentcloud_as_execute_scaling_policy" "example" { + auto_scaling_policy_id = tencentcloud_as_scaling_policy.example.id + honor_cooldown = false + trigger_source = "API" +} +``` + +Import + +as execute_scaling_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_as_execute_scaling_policy.execute_scaling_policy execute_scaling_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_lifecycle_hook.md b/tencentcloud/as/resource_tc_as_lifecycle_hook.md new file mode 100644 index 0000000000..a43331d9f7 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_lifecycle_hook.md @@ -0,0 +1,85 @@ +Provides a resource for an AS (Auto scaling) lifecycle hook. + +Example Usage + +Create a basic LifecycleHook + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_lifecycle_hook" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + lifecycle_hook_name = "tf-as-lifecycle-hook" + lifecycle_transition = "INSTANCE_LAUNCHING" + default_result = "CONTINUE" + heartbeat_timeout = 500 + notification_metadata = "tf test" +} +``` + +If `notification_target_type` is `CMQ_QUEUE` + +```hcl +resource "tencentcloud_as_lifecycle_hook" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + lifecycle_hook_name = "tf-as-lifecycle-hook" + lifecycle_transition = "INSTANCE_LAUNCHING" + default_result = "CONTINUE" + heartbeat_timeout = 500 + notification_metadata = "tf test" + notification_target_type = "CMQ_QUEUE" + notification_queue_name = "lifcyclehook" +} +``` + +Or `notification_target_type` is `CMQ_TOPIC` + +```hcl +resource "tencentcloud_as_lifecycle_hook" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + lifecycle_hook_name = "tf-as-lifecycle-hook" + lifecycle_transition = "INSTANCE_LAUNCHING" + default_result = "CONTINUE" + heartbeat_timeout = 500 + notification_metadata = "tf test" + notification_target_type = "CMQ_TOPIC" + notification_topic_name = "lifcyclehook" +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_notification.md b/tencentcloud/as/resource_tc_as_notification.md new file mode 100644 index 0000000000..3f5cd58dbe --- /dev/null +++ b/tencentcloud/as/resource_tc_as_notification.md @@ -0,0 +1,57 @@ +Provides a resource for an AS (Auto scaling) notification. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_cam_group" "example" { + name = "tf-example" + remark = "desc." +} + +resource "tencentcloud_as_notification" "as_notification" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + notification_types = [ + "SCALE_OUT_SUCCESSFUL", "SCALE_OUT_FAILED", "SCALE_IN_FAILED", "REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL", "REPLACE_UNHEALTHY_INSTANCE_FAILED" + ] + notification_user_group_ids = [tencentcloud_cam_group.example.id] +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_protect_instances.md b/tencentcloud/as/resource_tc_as_protect_instances.md new file mode 100644 index 0000000000..c65c7ac2a0 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_protect_instances.md @@ -0,0 +1,95 @@ +Provides a resource to create a as protect_instances + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +# Attachment Instance +resource "tencentcloud_as_attachment" "attachment" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = [tencentcloud_instance.example.id] +} + +# Set protect +resource "tencentcloud_as_protect_instances" "protect" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = tencentcloud_as_attachment.attachment.instance_ids + protected_from_scale_in = true +} +``` + +Or close protect + +```hcl +resource "tencentcloud_as_protect_instances" "protect" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = tencentcloud_as_attachment.attachment.instance_ids + protected_from_scale_in = false +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_remove_instances.md b/tencentcloud/as/resource_tc_as_remove_instances.md new file mode 100644 index 0000000000..a9b6420569 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_remove_instances.md @@ -0,0 +1,84 @@ +Provides a resource to create a as remove_instances + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +# Attachment Instance +resource "tencentcloud_as_attachment" "attachment" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = [tencentcloud_instance.example.id] +} + +# Remove Instance +resource "tencentcloud_as_remove_instances" "remove" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = tencentcloud_as_attachment.attachment.instance_ids +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_scale_in_instances.md b/tencentcloud/as/resource_tc_as_scale_in_instances.md new file mode 100644 index 0000000000..b58f9ed90c --- /dev/null +++ b/tencentcloud/as/resource_tc_as_scale_in_instances.md @@ -0,0 +1,58 @@ +Provides a resource to create a as scale_in_instances + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 4 + min_size = 1 + desired_capacity = 2 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_scale_in_instances" "scale_in_instances" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + scale_in_number = 1 +} +``` + +Import + +as scale_in_instances can be imported using the id, e.g. + +``` +terraform import tencentcloud_as_scale_in_instances.scale_in_instances scale_in_instances_id +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_scale_out_instances.md b/tencentcloud/as/resource_tc_as_scale_out_instances.md new file mode 100644 index 0000000000..53f97c624a --- /dev/null +++ b/tencentcloud/as/resource_tc_as_scale_out_instances.md @@ -0,0 +1,58 @@ +Provides a resource to create a as scale_out_instances + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 4 + min_size = 0 + desired_capacity = 2 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_scale_out_instances" "scale_out_instances" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + scale_out_number = 2 +} +``` + +Import + +as scale_out_instances can be imported using the id, e.g. + +``` +terraform import tencentcloud_as_scale_out_instances.scale_out_instances scale_out_instances_id +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_scaling_config.md b/tencentcloud/as/resource_tc_as_scaling_config.md new file mode 100644 index 0000000000..d5ecd567eb --- /dev/null +++ b/tencentcloud/as/resource_tc_as_scaling_config.md @@ -0,0 +1,69 @@ +Provides a resource to create a configuration for an AS (Auto scaling) instance. + +~> **NOTE:** In order to ensure the integrity of customer data, if the cvm instance was destroyed due to shrinking, it will keep the cbs associate with cvm by default. If you want to destroy together, please set `delete_with_instance` to `true`. + +Example Usage + +```hcl +data "tencentcloud_images" "example" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "example-launch-configuration" + image_id = data.tencentcloud_images.example.images.0.image_id + instance_types = ["SA1.SMALL1"] + project_id = 0 + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = "50" + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 10 + public_ip_assigned = true + password = "Test@123#" + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + + host_name_settings { + host_name = "host-name-test" + host_name_style = "UNIQUE" + } + + instance_tags = { + tag = "example" + } +} +``` + +Using `SPOTPAID` charge type + +``` +data "tencentcloud_images" "example" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "launch-configuration" + image_id = data.tencentcloud_images.example.images.0.image_id + instance_types = ["SA1.SMALL1"] + instance_charge_type = "SPOTPAID" + spot_instance_type = "one-time" + spot_max_price = "1000" +} +``` + +Import + +AutoScaling Configuration can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_as_scaling_config.example asc-n32ymck2 +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_scaling_group.md b/tencentcloud/as/resource_tc_as_scaling_group.md new file mode 100644 index 0000000000..52d39ccf59 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_scaling_group.md @@ -0,0 +1,113 @@ +Provides a resource to create a group of AS (Auto scaling) instances. + +Example Usage + +Create a basic Scaling Group + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} +``` + +Create a complete Scaling Group + +```hcl +resource "tencentcloud_clb_instance" "example" { + network_type = "INTERNAL" + clb_name = "clb-example" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + + tags = { + test = "tf" + } +} + +resource "tencentcloud_clb_listener" "example" { + clb_id = tencentcloud_clb_instance.example.id + listener_name = "listener-example" + port = 80 + protocol = "HTTP" +} + +resource "tencentcloud_clb_listener_rule" "example" { + listener_id = tencentcloud_clb_listener.example.listener_id + clb_id = tencentcloud_clb_instance.example.id + domain = "foo.net" + url = "/bar" +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + project_id = 0 + default_cooldown = 400 + desired_capacity = 1 + termination_policies = ["NEWEST_INSTANCE"] + retry_policy = "INCREMENTAL_INTERVALS" + + forward_balancer_ids { + load_balancer_id = tencentcloud_clb_instance.example.id + listener_id = tencentcloud_clb_listener.example.listener_id + rule_id = tencentcloud_clb_listener_rule.example.rule_id + + target_attribute { + port = 80 + weight = 90 + } + } + + tags = { + "createBy" = "tfExample" + } +} +``` + +Import + +AutoScaling Groups can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_as_scaling_group.scaling_group asg-n32ymck2 +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_scaling_group_status.md b/tencentcloud/as/resource_tc_as_scaling_group_status.md new file mode 100644 index 0000000000..da93a7ccc3 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_scaling_group_status.md @@ -0,0 +1,68 @@ +Provides a resource to set as scaling_group status + +Example Usage + +Deactivate Scaling Group + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_scaling_group_status" "scaling_group_status" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + enable = false +} +``` + +Enable Scaling Group + +```hcl +resource "tencentcloud_as_scaling_group_status" "scaling_group_status" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + enable = true +} +``` + +Import + +as scaling_group_status can be imported using the id, e.g. + +``` +terraform import tencentcloud_as_scaling_group_status.scaling_group_status scaling_group_id +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_scaling_policy.md b/tencentcloud/as/resource_tc_as_scaling_policy.md new file mode 100644 index 0000000000..b3bb28423a --- /dev/null +++ b/tencentcloud/as/resource_tc_as_scaling_policy.md @@ -0,0 +1,58 @@ +Provides a resource for an AS (Auto scaling) policy. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_scaling_policy" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + policy_name = "tf-as-scaling-policy" + adjustment_type = "EXACT_CAPACITY" + adjustment_value = 0 + comparison_operator = "GREATER_THAN" + metric_name = "CPU_UTILIZATION" + threshold = 80 + period = 300 + continuous_time = 10 + statistic = "AVERAGE" + cooldown = 360 +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_schedule.md b/tencentcloud/as/resource_tc_as_schedule.md new file mode 100644 index 0000000000..2335914f45 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_schedule.md @@ -0,0 +1,55 @@ +Provides a resource for an AS (Auto scaling) schedule. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_as_schedule" "example" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + schedule_action_name = "tf-as-schedule" + max_size = 10 + min_size = 0 + desired_capacity = 0 + start_time = "2019-01-01T00:00:00+08:00" + end_time = "2019-12-01T00:00:00+08:00" + recurrence = "0 0 * * *" +} +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_start_instances.md b/tencentcloud/as/resource_tc_as_start_instances.md new file mode 100644 index 0000000000..2b6956a517 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_start_instances.md @@ -0,0 +1,84 @@ +Provides a resource to create a as start_instances + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +# Attachment Instance +resource "tencentcloud_as_attachment" "attachment" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = [tencentcloud_instance.example.id] +} + +resource "tencentcloud_as_start_instances" "start_instances" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = tencentcloud_as_attachment.attachment.instance_ids +} + +``` \ No newline at end of file diff --git a/tencentcloud/as/resource_tc_as_stop_instances.md b/tencentcloud/as/resource_tc_as_stop_instances.md new file mode 100644 index 0000000000..4ccfe92fa6 --- /dev/null +++ b/tencentcloud/as/resource_tc_as_stop_instances.md @@ -0,0 +1,84 @@ +Provides a resource to create a as stop_instances + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "as" +} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name +} + +resource "tencentcloud_as_scaling_config" "example" { + configuration_name = "tf-example" + image_id = data.tencentcloud_images.image.images.0.image_id + instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] + instance_name_settings { + instance_name = "test-ins-name" + } +} + +resource "tencentcloud_as_scaling_group" "example" { + scaling_group_name = "tf-example" + configuration_id = tencentcloud_as_scaling_config.example.id + max_size = 1 + min_size = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +# Attachment Instance +resource "tencentcloud_as_attachment" "attachment" { + scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = [tencentcloud_instance.example.id] +} + +resource "tencentcloud_as_stop_instances" "stop_instances" { + auto_scaling_group_id = tencentcloud_as_scaling_group.example.id + instance_ids = tencentcloud_as_attachment.attachment.instance_ids + stopped_mode = "STOP_CHARGING" +} +``` \ No newline at end of file diff --git a/tencentcloud/audit/data_source_tc_audit_cos_regions.md b/tencentcloud/audit/data_source_tc_audit_cos_regions.md new file mode 100644 index 0000000000..0f7353b831 --- /dev/null +++ b/tencentcloud/audit/data_source_tc_audit_cos_regions.md @@ -0,0 +1,7 @@ +Use this data source to query the cos region list supported by the audit. + +Example Usage +```hcl +data "tencentcloud_audit_cos_regions" "foo" { +} +``` \ No newline at end of file diff --git a/tencentcloud/audit/data_source_tc_audit_key_alias.md b/tencentcloud/audit/data_source_tc_audit_key_alias.md new file mode 100644 index 0000000000..6fa7d12f3c --- /dev/null +++ b/tencentcloud/audit/data_source_tc_audit_key_alias.md @@ -0,0 +1,8 @@ +Use this data source to query the key alias list specified with region supported by the audit. + +Example Usage +```hcl +data "tencentcloud_audit_key_alias" "all" { + region = "ap-hongkong" +} +``` \ No newline at end of file diff --git a/tencentcloud/audit/data_source_tc_audits.md b/tencentcloud/audit/data_source_tc_audits.md new file mode 100644 index 0000000000..9a2ee24807 --- /dev/null +++ b/tencentcloud/audit/data_source_tc_audits.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of audits. + +Example Usage + +```hcl +data "tencentcloud_audits" "audits" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/audit/resource_tc_audit.md b/tencentcloud/audit/resource_tc_audit.md new file mode 100644 index 0000000000..5a58ef58dd --- /dev/null +++ b/tencentcloud/audit/resource_tc_audit.md @@ -0,0 +1,24 @@ +Provides a resource to create an audit. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_audit_track. + +Example Usage + +```hcl +resource "tencentcloud_audit" "foo" { + name = "audittest" + cos_bucket = "test" + cos_region = "ap-hongkong" + log_file_prefix = "test" + audit_switch = true + read_write_attribute = 3 +} +``` + +Import + +Audit can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_audit.foo audit-test +``` \ No newline at end of file diff --git a/tencentcloud/audit/resource_tc_audit_track.md b/tencentcloud/audit/resource_tc_audit_track.md new file mode 100644 index 0000000000..047752a878 --- /dev/null +++ b/tencentcloud/audit/resource_tc_audit_track.md @@ -0,0 +1,30 @@ +Provides a resource to create a audit track + +Example Usage + +```hcl +resource "tencentcloud_audit_track" "track" { + action_type = "Read" + event_names = [ + "*", + ] + name = "terraform_track" + resource_type = "*" + status = 1 + track_for_all_members = 0 + + storage { + storage_name = "db90b92c-91d2-46b0-94ac-debbbb21dc4e" + storage_prefix = "cloudaudit" + storage_region = "ap-guangzhou" + storage_type = "cls" + } +} + +``` +Import + +audit track can be imported using the id, e.g. +``` +$ terraform import tencentcloud_audit_track.track track_id +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_acl.md b/tencentcloud/bh/resource_tc_dasb_acl.md new file mode 100644 index 0000000000..43de5266ef --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_acl.md @@ -0,0 +1,43 @@ +Provides a resource to create a dasb acl + +Example Usage + +```hcl +resource "tencentcloud_dasb_acl" "example" { + name = "tf_example" + allow_disk_redirect = true + allow_any_account = false + allow_clip_file_up = true + allow_clip_file_down = true + allow_clip_text_up = true + allow_clip_text_down = true + allow_file_up = true + allow_file_down = true + max_file_up_size = 0 + max_file_down_size = 0 + user_id_set = ["6", "2"] + user_group_id_set = ["6", "36"] + device_id_set = ["39", "81"] + device_group_id_set = ["2", "3"] + account_set = ["root"] + cmd_template_id_set = ["1", "7"] + ac_template_id_set = [] + allow_disk_file_up = true + allow_disk_file_down = true + allow_shell_file_up = true + allow_shell_file_down = true + allow_file_del = true + allow_access_credential = true + department_id = "1.2" + validate_from = "2023-09-22T00:00:00+08:00" + validate_to = "2024-09-23T00:00:00+08:00" +} +``` + +Import + +dasb acl can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_acl.example 132 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_bind_device_account_password.md b/tencentcloud/bh/resource_tc_dasb_bind_device_account_password.md new file mode 100644 index 0000000000..78a1955a19 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_bind_device_account_password.md @@ -0,0 +1,10 @@ +Provides a resource to create a dasb bind_device_account_password + +Example Usage + +```hcl +resource "tencentcloud_dasb_bind_device_account_password" "example" { + device_account_id = 16 + password = "TerraformPassword" +} +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_bind_device_account_private_key.md b/tencentcloud/bh/resource_tc_dasb_bind_device_account_private_key.md new file mode 100644 index 0000000000..8e46909bf6 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_bind_device_account_private_key.md @@ -0,0 +1,11 @@ +Provides a resource to create a dasb bind_device_account_private_key + +Example Usage + +```hcl +resource "tencentcloud_dasb_bind_device_account_private_key" "example" { + device_account_id = 16 + private_key = "MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh" + private_key_password = "TerraformPassword" +} +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_bind_device_resource.md b/tencentcloud/bh/resource_tc_dasb_bind_device_resource.md new file mode 100644 index 0000000000..b0228dfc9b --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_bind_device_resource.md @@ -0,0 +1,10 @@ +Provides a resource to create a dasb bind_device_resource + +Example Usage + +```hcl +resource "tencentcloud_dasb_bind_device_resource" "example" { + resource_id = "bh-saas-ocmzo6lgxiv" + device_id_set = [17, 18] +} +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_cmd_template.md b/tencentcloud/bh/resource_tc_dasb_cmd_template.md new file mode 100644 index 0000000000..821c260c59 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_cmd_template.md @@ -0,0 +1,18 @@ +Provides a resource to create a dasb cmd_template + +Example Usage + +```hcl +resource "tencentcloud_dasb_cmd_template" "example" { + name = "tf_example" + cmd_list = "rm -rf*" +} +``` + +Import + +dasb cmd_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_cmd_template.example 15 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_device.md b/tencentcloud/bh/resource_tc_dasb_device.md new file mode 100644 index 0000000000..5953b18a22 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_device.md @@ -0,0 +1,21 @@ +Provides a resource to create a dasb device + +Example Usage + +```hcl +resource "tencentcloud_dasb_device" "example" { + os_name = "Linux" + ip = "192.168.0.1" + port = 80 + name = "tf_example" + department_id = "1.2.3" +} +``` + +Import + +dasb device can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_device.example 17 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_device_account.md b/tencentcloud/bh/resource_tc_dasb_device_account.md new file mode 100644 index 0000000000..24d0227fbc --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_device_account.md @@ -0,0 +1,18 @@ +Provides a resource to create a dasb device_account + +Example Usage + +```hcl +resource "tencentcloud_dasb_device_account" "example" { + device_id = 100 + account = "root" +} +``` + +Import + +dasb device_account can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_device_account.example 11 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_device_group.md b/tencentcloud/bh/resource_tc_dasb_device_group.md new file mode 100644 index 0000000000..27002617f3 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_device_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a dasb device_group + +Example Usage + +```hcl +resource "tencentcloud_dasb_device_group" "example" { + name = "tf_example" + department_id = "1.2" +} +``` + +Import + +dasb device_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_device_group.example 36 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_device_group_members.md b/tencentcloud/bh/resource_tc_dasb_device_group_members.md new file mode 100644 index 0000000000..e22faef1ec --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_device_group_members.md @@ -0,0 +1,18 @@ +Provides a resource to create a dasb device_group_members + +Example Usage + +```hcl +resource "tencentcloud_dasb_device_group_members" "example" { + device_group_id = 3 + member_id_set = [1, 2, 3] +} +``` + +Import + +dasb device_group_members can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_device_group_members.example 3#1,2,3 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_reset_user.md b/tencentcloud/bh/resource_tc_dasb_reset_user.md new file mode 100644 index 0000000000..4a8320faaa --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_reset_user.md @@ -0,0 +1,9 @@ +Provides a resource to create a dasb reset_user + +Example Usage + +```hcl +resource "tencentcloud_dasb_reset_user" "example" { + user_id = 16 +} +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_resource.md b/tencentcloud/bh/resource_tc_dasb_resource.md new file mode 100644 index 0000000000..36677e745c --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_resource.md @@ -0,0 +1,27 @@ +Provides a resource to create a dasb resource + +Example Usage + +```hcl +resource "tencentcloud_dasb_resource" "example" { + deploy_region = "ap-guangzhou" + vpc_id = "vpc-q1of50wz" + subnet_id = "subnet-7uhvm46o" + resource_edition = "standard" + resource_node = 2 + time_unit = "m" + time_span = 1 + auto_renew_flag = 1 + deploy_zone = "ap-guangzhou-6" + package_bandwidth = 10 + package_node = 50 +} +``` + +Import + +dasb resource can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_resource.example bh-saas-kk5rabk0 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_user.md b/tencentcloud/bh/resource_tc_dasb_user.md new file mode 100644 index 0000000000..10003974f4 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_user.md @@ -0,0 +1,24 @@ +Provides a resource to create a dasb user + +Example Usage + +```hcl +resource "tencentcloud_dasb_user" "example" { + user_name = "tf_example" + real_name = "terraform" + phone = "+86|18345678782" + email = "demo@tencent.com" + validate_from = "2023-09-22T02:00:00+08:00" + validate_to = "2023-09-23T03:00:00+08:00" + department_id = "1.2" + auth_type = 0 +} +``` + +Import + +dasb user can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_user.example 134 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_user_group.md b/tencentcloud/bh/resource_tc_dasb_user_group.md new file mode 100644 index 0000000000..42bf9098af --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_user_group.md @@ -0,0 +1,26 @@ +Provides a resource to create a dasb user_group + +Example Usage + +```hcl +resource "tencentcloud_dasb_user_group" "example" { + name = "tf_example_update" +} +``` + +Or + +```hcl +resource "tencentcloud_dasb_user_group" "example" { + name = "tf_example_update" + department_id = "1.2" +} +``` + +Import + +dasb user_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_user_group.example 16 +``` \ No newline at end of file diff --git a/tencentcloud/bh/resource_tc_dasb_user_group_members.md b/tencentcloud/bh/resource_tc_dasb_user_group_members.md new file mode 100644 index 0000000000..147b40a4a1 --- /dev/null +++ b/tencentcloud/bh/resource_tc_dasb_user_group_members.md @@ -0,0 +1,18 @@ +Provides a resource to create a dasb user_group_members + +Example Usage + +```hcl +resource "tencentcloud_dasb_user_group_members" "example" { + user_group_id = 3 + member_id_set = [1, 2, 3] +} +``` + +Import + +dasb user_group_members can be imported using the id, e.g. + +``` +terraform import tencentcloud_dasb_user_group_members.example 3#1,2,3 +``` \ No newline at end of file diff --git a/tencentcloud/bi/data_source_tc_bi_project.md b/tencentcloud/bi/data_source_tc_bi_project.md new file mode 100644 index 0000000000..ccea8de7c2 --- /dev/null +++ b/tencentcloud/bi/data_source_tc_bi_project.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of bi project + +Example Usage + +```hcl +data "tencentcloud_bi_project" "project" { + page_no = 1 + keyword = "abc" + all_page = true + module_collection = "sys_common_user" +} +``` \ No newline at end of file diff --git a/tencentcloud/bi/data_source_tc_bi_user_project.md b/tencentcloud/bi/data_source_tc_bi_user_project.md new file mode 100644 index 0000000000..2b558ab5ca --- /dev/null +++ b/tencentcloud/bi/data_source_tc_bi_user_project.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of bi user_project + +Example Usage + +```hcl +data "tencentcloud_bi_user_project" "user_project" { + project_id = 123 + all_page = true +} +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_datasource.md b/tencentcloud/bi/resource_tc_bi_datasource.md new file mode 100644 index 0000000000..fe49487880 --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_datasource.md @@ -0,0 +1,25 @@ +Provides a resource to create a bi datasource + +Example Usage + +```hcl +resource "tencentcloud_bi_datasource" "datasource" { + charset = "utf8" + db_host = "bj-cdb-1lxqg5r6.sql.tencentcdb.com" + db_name = "tf-test" + db_port = 63694 + db_type = "MYSQL" + db_pwd = "ABc123,,," + db_user = "root" + project_id = 11015030 + source_name = "tf-source-name" +} +``` + +Import + +bi datasource can be imported using the id, e.g. + +``` +terraform import tencentcloud_bi_datasource.datasource datasource_id +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_datasource_cloud.md b/tencentcloud/bi/resource_tc_bi_datasource_cloud.md new file mode 100644 index 0000000000..5ca7cb0a5d --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_datasource_cloud.md @@ -0,0 +1,24 @@ +Provides a resource to create a bi datasource_cloud + +Example Usage + +```hcl +resource "tencentcloud_bi_datasource_cloud" "datasource_cloud" { + charset = "utf8" + db_name = "bi_dev" + db_type = "MYSQL" + db_user = "root" + project_id = "11015056" + db_pwd = "xxxxxx" + service_type { + instance_id = "cdb-12viotu5" + region = "ap-guangzhou" + type = "Cloud" + } + source_name = "tf-test1" + vip = "10.0.0.4" + vport = "3306" + region_id = "gz" + vpc_id = 5292713 +} +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_embed_interval_apply.md b/tencentcloud/bi/resource_tc_bi_embed_interval_apply.md new file mode 100644 index 0000000000..22db13d9e6 --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_embed_interval_apply.md @@ -0,0 +1,12 @@ +Provides a resource to create a bi embed_interval + +Example Usage + +```hcl +resource "tencentcloud_bi_embed_interval_apply" "embed_interval" { + project_id = 11015030 + page_id = 10520483 + bi_token = "4192d65b-d674-4117-9a59-xxxxxxxxx" + scope = "page" +} +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_embed_token_apply.md b/tencentcloud/bi/resource_tc_bi_embed_token_apply.md new file mode 100644 index 0000000000..5523f3b983 --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_embed_token_apply.md @@ -0,0 +1,14 @@ +Provides a resource to create a bi embed_token + +Example Usage + +```hcl +resource "tencentcloud_bi_embed_token_apply" "embed_token" { + project_id = 11015030 + page_id = 10520483 + scope = "page" + expire_time = "240" + user_corp_id = "100022975249" + user_id = "100024664626" +} +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_project.md b/tencentcloud/bi/resource_tc_bi_project.md new file mode 100644 index 0000000000..c4c68dc49c --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_project.md @@ -0,0 +1,20 @@ +Provides a resource to create a bi project + +Example Usage + +```hcl +resource "tencentcloud_bi_project" "project" { + name = "terraform_test" + color_code = "#7BD936" + logo = "TF-test" + mark = "project mark" +} +``` + +Import + +bi project can be imported using the id, e.g. + +``` +terraform import tencentcloud_bi_project.project project_id +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_project_user_role.md b/tencentcloud/bi/resource_tc_bi_project_user_role.md new file mode 100644 index 0000000000..65e135e06b --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_project_user_role.md @@ -0,0 +1,25 @@ +Provides a resource to create a bi project_user_role + +~> **NOTE:** You cannot use `tencentcloud_bi_user_role` and `tencentcloud_bi_project_user_role` at the same time to modify the `phone_number` and `email` of the same user. + +Example Usage + +```hcl +resource "tencentcloud_bi_project_user_role" "project_user_role" { + area_code = "+86" + project_id = 11015030 + role_id_list = [10629453] + email = "123456@qq.com" + phone_number = "13130001000" + user_id = "100024664626" + user_name = "keep-cam-user" +} +``` + +Import + +bi project_user_role can be imported using the id, e.g. + +``` +terraform import tencentcloud_bi_project_user_role.project_user_role projectId#userId +``` \ No newline at end of file diff --git a/tencentcloud/bi/resource_tc_bi_user_role.md b/tencentcloud/bi/resource_tc_bi_user_role.md new file mode 100644 index 0000000000..2ae2b1eb13 --- /dev/null +++ b/tencentcloud/bi/resource_tc_bi_user_role.md @@ -0,0 +1,24 @@ +Provides a resource to create a bi user_role + +Example Usage + +```hcl +resource "tencentcloud_bi_user_role" "user_role" { + area_code = "+83" + email = "1055000000@qq.com" + phone_number = "13470010000" + role_id_list = [ + 10629359, + ] + user_id = "100032767426" + user_name = "keep-iac-test" +} +``` + +Import + +bi user_role can be imported using the id, e.g. + +``` +terraform import tencentcloud_bi_user_role.user_role user_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_account_summary.md b/tencentcloud/cam/data_source_tc_cam_account_summary.md new file mode 100644 index 0000000000..7881e65fb3 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_account_summary.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of cam account_summary + +Example Usage + +```hcl +data "tencentcloud_cam_account_summary" "account_summary" { + } +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_group_memberships.md b/tencentcloud/cam/data_source_tc_cam_group_memberships.md new file mode 100644 index 0000000000..b34ea81b1c --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_group_memberships.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of CAM group memberships + +Example Usage + +```hcl +data "tencentcloud_cam_group_memberships" "foo" { + group_id = tencentcloud_cam_group.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_group_policy_attachments.md b/tencentcloud/cam/data_source_tc_cam_group_policy_attachments.md new file mode 100644 index 0000000000..3fcf1970bb --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_group_policy_attachments.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of CAM group policy attachments + +Example Usage + +```hcl +# query by group_id +data "tencentcloud_cam_group_policy_attachments" "foo" { + group_id = tencentcloud_cam_group.foo.id +} + +# query by group_id and policy_id +data "tencentcloud_cam_group_policy_attachments" "bar" { + group_id = tencentcloud_cam_group.foo.id + policy_id = tencentcloud_cam_policy.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_group_user_account.md b/tencentcloud/cam/data_source_tc_cam_group_user_account.md new file mode 100644 index 0000000000..124ee2500c --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_group_user_account.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cam group_user_account + +Example Usage + +```hcl +data "tencentcloud_cam_group_user_account" "group_user_account" { + sub_uin = 100033690181 +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_groups.md b/tencentcloud/cam/data_source_tc_cam_groups.md new file mode 100644 index 0000000000..cc27957d9f --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_groups.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of CAM groups + +Example Usage + +```hcl +# query by group_id +data "tencentcloud_cam_groups" "foo" { + group_id = tencentcloud_cam_group.foo.id +} + +# query by name +data "tencentcloud_cam_groups" "bar" { + name = "cam-group-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_list_entities_for_policy.md b/tencentcloud/cam/data_source_tc_cam_list_entities_for_policy.md new file mode 100644 index 0000000000..71eca9effc --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_list_entities_for_policy.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cam list_entities_for_policy + +Example Usage + +```hcl +data "tencentcloud_cam_list_entities_for_policy" "list_entities_for_policy" { + policy_id = 1 + entity_filter = "All" + } +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_oidc_config.md b/tencentcloud/cam/data_source_tc_cam_oidc_config.md new file mode 100644 index 0000000000..af6c072051 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_oidc_config.md @@ -0,0 +1,18 @@ +Use this data source to query detailed information of cam oidc_config + +Example Usage + +```hcl +data "tencentcloud_cam_oidc_config" "oidc_config" { + name = "cls-kzilgv5m" +} + +output "identity_key" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key +} + +output "identity_url" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url +} + +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_policies.md b/tencentcloud/cam/data_source_tc_cam_policies.md new file mode 100644 index 0000000000..3d98b36f8c --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_policies.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of CAM policies + +Example Usage + +```hcl +# query by policy_id +data "tencentcloud_cam_policies" "foo" { + policy_id = tencentcloud_cam_policy.foo.id +} + +# query by policy_id and name +data "tencentcloud_cam_policies" "bar" { + policy_id = tencentcloud_cam_policy.foo.id + name = "tf-auto-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_policy_granting_service_access.md b/tencentcloud/cam/data_source_tc_cam_policy_granting_service_access.md new file mode 100644 index 0000000000..1b391fef61 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_policy_granting_service_access.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cam policy_granting_service_access + +Example Usage + +```hcl +data "tencentcloud_cam_policy_granting_service_access" "policy_granting_service_access" { + role_id = 4611686018436805021 + service_type = "cam" + } +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_role_policy_attachments.md b/tencentcloud/cam/data_source_tc_cam_role_policy_attachments.md new file mode 100644 index 0000000000..97d6eb4e63 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_role_policy_attachments.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of CAM role policy attachments + +Example Usage + +```hcl +# query by role_id +data "tencentcloud_cam_role_policy_attachments" "foo" { + role_id = tencentcloud_cam_role.foo.id +} + +# query by role_id and policy_id +data "tencentcloud_cam_role_policy_attachments" "bar" { + role_id = tencentcloud_cam_role.foo.id + policy_id = tencentcloud_cam_policy.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_roles.md b/tencentcloud/cam/data_source_tc_cam_roles.md new file mode 100644 index 0000000000..03745f21f5 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_roles.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of CAM roles + +Example Usage + +```hcl +# query by role_id +data "tencentcloud_cam_roles" "foo" { + role_id = tencentcloud_cam_role.foo.id +} + +# query by name +data "tencentcloud_cam_roles" "bar" { + name = "cam-role-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_saml_providers.md b/tencentcloud/cam/data_source_tc_cam_saml_providers.md new file mode 100644 index 0000000000..0f3bd47344 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_saml_providers.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of CAM SAML providers + +Example Usage + +```hcl +data "tencentcloud_cam_saml_providers" "foo" { + name = "cam-test-provider" +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_secret_last_used_time.md b/tencentcloud/cam/data_source_tc_cam_secret_last_used_time.md new file mode 100644 index 0000000000..8277852c15 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_secret_last_used_time.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cam secret_last_used_time + +Example Usage + +```hcl +data "tencentcloud_cam_secret_last_used_time" "secret_last_used_time" { + secret_id_list = ["xxxx"] + } +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_user_policy_attachments.md b/tencentcloud/cam/data_source_tc_cam_user_policy_attachments.md new file mode 100644 index 0000000000..93f772cab0 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_user_policy_attachments.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of CAM user policy attachments + +Example Usage + +```hcl +# query by user_id +data "tencentcloud_cam_user_policy_attachments" "foo" { + user_id = tencentcloud_cam_user.foo.id +} + +# query by user_id and policy_id +data "tencentcloud_cam_user_policy_attachments" "bar" { + user_id = tencentcloud_cam_user.foo.id + policy_id = tencentcloud_cam_policy.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_cam_users.md b/tencentcloud/cam/data_source_tc_cam_users.md new file mode 100644 index 0000000000..15ba70f702 --- /dev/null +++ b/tencentcloud/cam/data_source_tc_cam_users.md @@ -0,0 +1,20 @@ +Use this data source to query detailed information of CAM users + +Example Usage + +```hcl +# query by name +data "tencentcloud_cam_users" "foo" { + name = "cam-user-test" +} + +# query by email +data "tencentcloud_cam_users" "bar" { + email = "hello@test.com" +} + +# query by phone +data "tencentcloud_cam_users" "far" { + phone_num = "12345678910" +} +``` \ No newline at end of file diff --git a/tencentcloud/cam/data_source_tc_user_info.md b/tencentcloud/cam/data_source_tc_user_info.md new file mode 100644 index 0000000000..d5a22e2e9a --- /dev/null +++ b/tencentcloud/cam/data_source_tc_user_info.md @@ -0,0 +1,7 @@ +Use this data source to query user appid, uin and ownerUin. + +Example Usage + +```hcl +data "tencentcloud_user_info" "foo" {} +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_access_key.md b/tencentcloud/cam/resource_tc_cam_access_key.md new file mode 100644 index 0000000000..1246591254 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_access_key.md @@ -0,0 +1,30 @@ +Provides a resource to create a cam access_key + +Example Usage + +```hcl +resource "tencentcloud_cam_access_key" "access_key" { + target_uin = 100033690181 +} +``` +Update +```hcl +resource "tencentcloud_cam_access_key" "access_key" { + target_uin = 100033690181 + status = "Inactive" +} +``` +Encrypted +```hcl +resource "tencentcloud_cam_access_key" "access_key" { + target_uin = 100033690181 + pgp_key = "keybase:some_person_that_exists" +} +``` +Import + +cam access_key can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_access_key.access_key access_key_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_group.md b/tencentcloud/cam/resource_tc_cam_group.md new file mode 100644 index 0000000000..89e3165dee --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a CAM group. + +Example Usage + +```hcl +resource "tencentcloud_cam_group" "foo" { + name = "tf_cam_group" + remark = "tf_group_remark" +} +``` + +Import + +CAM group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_group.foo 90496 +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_group_membership.md b/tencentcloud/cam/resource_tc_cam_group_membership.md new file mode 100644 index 0000000000..c6a8ebf67b --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_group_membership.md @@ -0,0 +1,40 @@ +Provides a resource to create a CAM group membership. + +Example Usage + +```hcl +variable "cam_group_basic" { + default = "keep-cam-group" +} + +data "tencentcloud_cam_groups" "groups" { + name = var.cam_group_basic +} + +resource "tencentcloud_cam_user" "foo" { + name = "tf_cam_user" + remark = "tf_user_remark" + console_login = true + use_api = true + need_reset_password = true + password = "Gail@1234" + phone_num = "12345678910" + country_code = "86" + email = "1234@qq.com" + force_delete = true +} + +resource "tencentcloud_cam_group_membership" "group_membership_basic" { + group_id = data.tencentcloud_cam_groups.groups.group_list.0.group_id + user_names = [tencentcloud_cam_user.foo.id] +} + +``` + +Import + +CAM group membership can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_group_membership.foo 12515263 +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_group_policy_attachment.md b/tencentcloud/cam/resource_tc_cam_group_policy_attachment.md new file mode 100644 index 0000000000..f7dafe35b1 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_group_policy_attachment.md @@ -0,0 +1,34 @@ +Provides a resource to create a CAM group policy attachment. + +Example Usage + +```hcl +variable "cam_policy_basic" { + default = "keep-cam-policy" +} + +variable "cam_group_basic" { + default = "keep-cam-group" +} + +data "tencentcloud_cam_groups" "groups" { + name = var.cam_group_basic +} + +data "tencentcloud_cam_policies" "policy" { + name = var.cam_policy_basic +} + +resource "tencentcloud_cam_group_policy_attachment" "group_policy_attachment_basic" { + group_id = data.tencentcloud_cam_groups.groups.group_list.0.group_id + policy_id = data.tencentcloud_cam_policies.policy.policy_list.0.policy_id +} +``` + +Import + +CAM group policy attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_group_policy_attachment.foo 12515263#26800353 +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_mfa_flag.md b/tencentcloud/cam/resource_tc_cam_mfa_flag.md new file mode 100644 index 0000000000..ac427ba163 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_mfa_flag.md @@ -0,0 +1,30 @@ +Provides a resource to create a cam mfa_flag + +Example Usage + +```hcl +data "tencentcloud_user_info" "info"{} + +resource "tencentcloud_cam_mfa_flag" "mfa_flag" { + op_uin = data.tencentcloud_user_info.info.uin + login_flag { + phone = 0 + stoken = 1 + wechat = 0 + } + action_flag { + phone = 0 + stoken = 1 + wechat = 0 + } +} + +``` + +Import + +cam mfa_flag can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_mfa_flag.mfa_flag mfa_flag_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_oidc_sso.md b/tencentcloud/cam/resource_tc_cam_oidc_sso.md new file mode 100644 index 0000000000..7861677e95 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_oidc_sso.md @@ -0,0 +1,24 @@ +Provides a resource to create a CAM-OIDC-SSO. + +Example Usage + +```hcl +resource "tencentcloud_cam_oidc_sso" "foo" { + authorization_endpoint="https://login.microsoftonline.com/.../oauth2/v2.0/authorize" + client_id="..." + identity_key="..." + identity_url="https://login.microsoftonline.com/.../v2.0" + mapping_filed="name" + response_mode="form_post" + response_type="id_token" + scope=["openid", "email"] +} +``` + +Import + +CAM-OIDC-SSO can be imported using the client_id or any string which can identifier resource, e.g. + +``` +$ terraform import tencentcloud_cam_oidc_sso.foo xxxxxxxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_policy.md b/tencentcloud/cam/resource_tc_cam_policy.md new file mode 100644 index 0000000000..9f5c2a990a --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_policy.md @@ -0,0 +1,34 @@ +Provides a resource to create a CAM policy. + +Example Usage + +```hcl +resource "tencentcloud_cam_policy" "foo" { + name = "tf_cam_policy" + document = <:uin/"] + } + } + ] +} +EOF + description = "test" + console_login = true + tags = { + test = "tf-cam-role", + } +} +``` + +Create with SAML provider + +```hcl +resource "tencentcloud_cam_role_by_name" "boo" { + name = "cam-role-test" + document = <:saml-provider/"] + } + } + ] +} +EOF + description = "test" + console_login = true +} +``` + +Import + +CAM role can be imported using the name, e.g. + +``` +$ terraform import tencentcloud_cam_role_by_name.foo cam-role-test +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_role_permission_boundary_attachment.md b/tencentcloud/cam/resource_tc_cam_role_permission_boundary_attachment.md new file mode 100644 index 0000000000..0552352798 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_role_permission_boundary_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a cam role_permission_boundary_attachment + +Example Usage + +```hcl +resource "tencentcloud_cam_role_permission_boundary_attachment" "role_permission_boundary_attachment" { + policy_id = 1 + role_name = "test-cam-tag" +} +``` + +Import + +cam role_permission_boundary_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment role_permission_boundary_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_role_policy_attachment.md b/tencentcloud/cam/resource_tc_cam_role_policy_attachment.md new file mode 100644 index 0000000000..4ae066fa57 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_role_policy_attachment.md @@ -0,0 +1,34 @@ +Provides a resource to create a CAM role policy attachment. + +Example Usage + +```hcl +variable "cam_policy_basic" { + default = "keep-cam-policy" +} + +variable "cam_role_basic" { + default = "keep-cam-role" +} + +data "tencentcloud_cam_policies" "policy" { + name = var.cam_policy_basic +} + +data "tencentcloud_cam_roles" "roles" { + name = var.cam_role_basic +} + +resource "tencentcloud_cam_role_policy_attachment" "role_policy_attachment_basic" { + role_id = data.tencentcloud_cam_roles.roles.role_list.0.role_id + policy_id = data.tencentcloud_cam_policies.policy.policy_list.0.policy_id +} +``` + +Import + +CAM role policy attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_role_policy_attachment.foo 4611686018427922725#26800353 +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_role_policy_attachment_by_name.md b/tencentcloud/cam/resource_tc_cam_role_policy_attachment_by_name.md new file mode 100644 index 0000000000..8ff823f711 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_role_policy_attachment_by_name.md @@ -0,0 +1,34 @@ +Provides a resource to create a CAM role policy attachment. + +Example Usage + +```hcl +variable "cam_policy_basic" { + default = "keep-cam-policy" +} + +variable "cam_role_basic" { + default = "keep-cam-role" +} + +data "tencentcloud_cam_policies" "policy" { + name = var.cam_policy_basic +} + +data "tencentcloud_cam_roles" "roles" { + name = var.cam_role_basic +} + +resource "tencentcloud_cam_role_policy_attachment_by_name" "role_policy_attachment_basic" { + role_name = var.cam_role_basic + policy_name = var.cam_policy_basic +} +``` + +Import + +CAM role policy attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_role_policy_attachment_by_name.foo ${role_name}#${policy_name} +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_role_sso.md b/tencentcloud/cam/resource_tc_cam_role_sso.md new file mode 100644 index 0000000000..89cdb9b828 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_role_sso.md @@ -0,0 +1,21 @@ +Provides a resource to create a CAM-ROLE-SSO (Only support OIDC). + +Example Usage + +```hcl +resource "tencentcloud_cam_role_sso" "foo" { + name="tf_cam_role_sso" + identity_url="https://login.microsoftonline.com/.../v2.0" + identity_key="..." + client_ids=["..."] + description="this is a description" +} +``` + +Import + +CAM-ROLE-SSO can be imported using the `name`, e.g. + +``` +$ terraform import tencentcloud_cam_role_sso.foo "test" +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_saml_provider.md b/tencentcloud/cam/resource_tc_cam_saml_provider.md new file mode 100644 index 0000000000..ed012cd670 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_saml_provider.md @@ -0,0 +1,19 @@ +Provides a resource to create a CAM SAML provider. + +Example Usage + +```hcl +resource "tencentcloud_cam_saml_provider" "saml_provider_basic" { + name = "tf_cam_saml" + meta_data = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI+PG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIj48bWQ6S2V5RGVzY3JpcHRvciB1c2U9InNpZ25pbmciPjxkczpLZXlJbmZvIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj48ZHM6WDUwOURhdGE+PGRzOlg1MDlDZXJ0aWZpY2F0ZT5NSUlEb0RDQ0FvaWdBd0lCQWdJR0FXM0lTcExvTUEwR0NTcUdTSWIzRFFFQkN3VUFNSUdRTVFzd0NRWURWUVFHRXdKVlV6RVRNQkVHDQpBMVVFQ0F3S1EyRnNhV1p2Y201cFlURVdNQlFHQTFVRUJ3d05VMkZ1SUVaeVlXNWphWE5qYnpFTk1Bc0dBMVVFQ2d3RVQydDBZVEVVDQpNQklHQTFVRUN3d0xVMU5QVUhKdmRtbGtaWEl4RVRBUEJnTlZCQU1NQ0dsa2VIVmxkblJoTVJ3d0dnWUpLb1pJaHZjTkFRa0JGZzFwDQpibVp2UUc5cmRHRXVZMjl0TUI0WERURTVNVEF4TkRBek1qSXhNMW9YRFRJNU1UQXhOREF6TWpNeE0xb3dnWkF4Q3pBSkJnTlZCQVlUDQpBbFZUTVJNd0VRWURWUVFJREFwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFRSERBMVRZVzRnUm5KaGJtTnBjMk52TVEwd0N3WURWUVFLDQpEQVJQYTNSaE1SUXdFZ1lEVlFRTERBdFRVMDlRY205MmFXUmxjakVSTUE4R0ExVUVBd3dJYVdSNGRXVjJkR0V4SERBYUJna3Foa2lHDQo5dzBCQ1FFV0RXbHVabTlBYjJ0MFlTNWpiMjB3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQ2g4b3dqDQpZK2dQSUM3blQvNTduLzdmeXJzcDlHMXdxa2UxdXhjMHVrTndnQXozOVNpelY3QVhLMWRReTFLaThXWjJJMzFEczJkT0FNQ1FKR2pWDQpUWWNNbnA3KzhqUzNLdmxNUkRJamk5cmxuUi9vcnBvMll1RHVWby9jVzdidlRIS2h2REo1QWZRaWxzYlNPTXdUOWM2TVlYZGhBNVBwDQpzelFsK1UrdHJmcXUrdUorSER4SVQxdlhWaVI5YlY2SUFRSzZpbWZoc2wxWmVSUytjbVFVNEpjQWlYT0xtTnFVVWM2UkpxUzhrMW1mDQpBLzhmb2VyMGc3SG4xZDVXclpCc2gyUlR2Vzh1ZVdadHQ3dmh4QTlGdE5kSVlEcXJ0eElmMlZXcXhrSHM3WFZDSm5wTnJITVovT1BRDQpGY21YSGVxNlJJMlB3Q1RlOW8zZHZpM0hqeXBaOEl4dkFnTUJBQUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUFHaHk1bG9nbGtTDQoyVHg2YS90MnF5VEx0YVV5cEwrNGhySGJoMVAweVVMc0NrSnFsM2wrWG9VZDZCY2FJaFNSVGFPQk95ODViL0UzelJ4K3JzQXJwTjVVDQp5ZThuUEM4a05PYW5vTk9wWnZvYmhpTzFlMFIvYmxEcnRBL0o5UlBwMWtmdlhmS2NSTTU3TlRCWXppTURlbnFQUTRFOWN1U2lGdFFxDQpJYmpIbThaM1B1YXgwRitldkZ3U1pJMDNCWXNISGw1d1EraEJBS3hTdTJINEZRdU93Zmpnb2EveEN6Z1NKYjJ2UXdEc1MxMk9mSkNiDQpSRm1ZL1VYZXQramFhdEVORktLZStZSUJpU0J2WG1adTN0MHN5NDZTNzlPVzBacXJ0NUh2bElsT2lpTFpaN1FZamxjM1kxeG1LZ1luDQpXM2M2WGZkdmhGWHo0ZDdkbWYvTUdpNGY0enM9PC9kczpYNTA5Q2VydGlmaWNhdGU+PC9kczpYNTA5RGF0YT48L2RzOktleUluZm8+PC9tZDpLZXlEZXNjcmlwdG9yPjxtZDpOYW1lSURGb3JtYXQ+dXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6MS4xOm5hbWVpZC1mb3JtYXQ6dW5zcGVjaWZpZWQ8L21kOk5hbWVJREZvcm1hdD48bWQ6TmFtZUlERm9ybWF0PnVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMTpuYW1laWQtZm9ybWF0OmVtYWlsQWRkcmVzczwvbWQ6TmFtZUlERm9ybWF0PjxtZDpTaW5nbGVTaWduT25TZXJ2aWNlIEJpbmRpbmc9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpiaW5kaW5nczpIVFRQLVBPU1QiIExvY2F0aW9uPSJodHRwczovL2lkeHVldnRhLm9rdGEuY29tL2FwcC9pZHh1ZW9yZzYzNzM1OF90ZXN0XzEvZXhrMWtxeG1jalFtR0FETXkzNTcvc3NvL3NhbWwiLz48bWQ6U2luZ2xlU2lnbk9uU2VydmljZSBCaW5kaW5nPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YmluZGluZ3M6SFRUUC1SZWRpcmVjdCIgTG9jYXRpb249Imh0dHBzOi8vaWR4dWV2dGEub2t0YS5jb20vYXBwL2lkeHVlb3JnNjM3MzU4X3Rlc3RfMS9leGsxa3F4bWNqUW1HQURNeTM1Ny9zc28vc2FtbCIvPjwvbWQ6SURQU1NPRGVzY3JpcHRvcj48L21kOkVudGl0eURlc2NyaXB0b3I+" + description = "tf_test" +} +``` + +Import + +CAM SAML provider can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_saml_provider.foo cam-SAML-provider-test +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_service_linked_role.md b/tencentcloud/cam/resource_tc_cam_service_linked_role.md new file mode 100644 index 0000000000..b8e8bd2d59 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_service_linked_role.md @@ -0,0 +1,15 @@ +Provides a resource to create a cam service_linked_role + +Example Usage + +```hcl +resource "tencentcloud_cam_service_linked_role" "service_linked_role" { + qcs_service_name = ["cvm.qcloud.com","ekslog.tke.cloud.tencent.com"] + custom_suffix = "tf" + description = "desc cam" + tags = { + "createdBy" = "terraform" + } +} + +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_set_policy_version_config.md b/tencentcloud/cam/resource_tc_cam_set_policy_version_config.md new file mode 100644 index 0000000000..03a9d0709d --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_set_policy_version_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a cam set_policy_version_config + +Example Usage + +```hcl +resource "tencentcloud_cam_set_policy_version_config" "set_policy_version_config" { + policy_id = 171162811 + version_id = 2 +} +``` + +Import + +cam set_policy_version_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_set_policy_version_config.set_policy_version_config set_policy_version_config_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_tag_role_attachment.md b/tencentcloud/cam/resource_tc_cam_tag_role_attachment.md new file mode 100644 index 0000000000..d50c0b45b0 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_tag_role_attachment.md @@ -0,0 +1,21 @@ +Provides a resource to create a cam tag_role + +Example Usage + +```hcl +resource "tencentcloud_cam_tag_role_attachment" "tag_role" { + tags { + key = "test1" + value = "test1" + } + role_id = "test-cam-tag" +} +``` + +Import + +cam tag_role can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_tag_role_attachment.tag_role tag_role_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_user.md b/tencentcloud/cam/resource_tc_cam_user.md new file mode 100644 index 0000000000..2adec9e07e --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_user.md @@ -0,0 +1,29 @@ +Provides a resource to manage CAM user. + +Example Usage + +```hcl +resource "tencentcloud_cam_user" "foo" { + name = "tf_cam_user" + remark = "tf_user_test" + console_login = true + use_api = true + need_reset_password = true + password = "Gail@1234" + phone_num = "12345678910" + email = "hello@test.com" + country_code = "86" + force_delete = true + tags = { + test = "tf_cam_user", + } +} +``` + +Import + +CAM user can be imported using the user name, e.g. + +``` +$ terraform import tencentcloud_cam_user.foo cam-user-test +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_user_permission_boundary_attachment.md b/tencentcloud/cam/resource_tc_cam_user_permission_boundary_attachment.md new file mode 100644 index 0000000000..0367499275 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_user_permission_boundary_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a cam user_permission_boundary + +Example Usage + +```hcl +resource "tencentcloud_cam_user_permission_boundary_attachment" "user_permission_boundary" { + target_uin = 100032767426 + policy_id = 151113272 +} +``` + +Import + +cam user_permission_boundary can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_user_permission_boundary_attachment.user_permission_boundary user_permission_boundary_id +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_user_policy_attachment.md b/tencentcloud/cam/resource_tc_cam_user_policy_attachment.md new file mode 100644 index 0000000000..c33c15f7a8 --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_user_policy_attachment.md @@ -0,0 +1,46 @@ +Provides a resource to create a CAM user policy attachment. + +Example Usage + +```hcl +variable "cam_user_basic" { + default = "keep-cam-user" +} + +resource "tencentcloud_cam_policy" "policy_basic" { + name = "tf_cam_attach_user_policy" + document =jsonencode({ + "version":"2.0", + "statement":[ + { + "action":["cos:*"], + "resource":["*"], + "effect":"allow", + }, + { + "effect":"allow", + "action":["monitor:*","cam:ListUsersForGroup","cam:ListGroups","cam:GetGroup"], + "resource":["*"], + } + ] + }) + description = "tf_test" +} + +data "tencentcloud_cam_users" "users" { + name = var.cam_user_basic +} + +resource "tencentcloud_cam_user_policy_attachment" "user_policy_attachment_basic" { + user_name = data.tencentcloud_cam_users.users.user_list.0.user_id + policy_id = tencentcloud_cam_policy.policy_basic.id +} +``` + +Import + +CAM user policy attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cam_user_policy_attachment.foo cam-test#26800353 +``` \ No newline at end of file diff --git a/tencentcloud/cam/resource_tc_cam_user_saml_config.md b/tencentcloud/cam/resource_tc_cam_user_saml_config.md new file mode 100644 index 0000000000..bb5853ff5d --- /dev/null +++ b/tencentcloud/cam/resource_tc_cam_user_saml_config.md @@ -0,0 +1,20 @@ +Provides a resource to create a cam user_saml_config + +Example Usage + +```hcl +resource "tencentcloud_cam_user_saml_config" "user_saml_config" { + saml_metadata_document = "./metadataDocument.xml" + # saml_metadata_document = <<-EOT + # + # EOT +} +``` + +Import + +cam user_saml_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_user_saml_config.user_saml_config user_id +``` \ No newline at end of file diff --git a/tencentcloud/cat/data_source_tc_cat_metric_data.md b/tencentcloud/cat/data_source_tc_cat_metric_data.md new file mode 100644 index 0000000000..5aa8844bd3 --- /dev/null +++ b/tencentcloud/cat/data_source_tc_cat_metric_data.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of cat metric_data +Example Usage +```hcl +data "tencentcloud_cat_metric_data" "metric_data" { + analyze_task_type = "AnalyzeTaskType_Network" + metric_type = "gauge" + field = "avg(\"ping_time\")" + filters = [ + "\"host\" = 'www.qq.com'", + "time >= now()-1h", + ] +} +``` \ No newline at end of file diff --git a/tencentcloud/cat/data_source_tc_cat_node.md b/tencentcloud/cat/data_source_tc_cat_node.md new file mode 100644 index 0000000000..6e34f84ed8 --- /dev/null +++ b/tencentcloud/cat/data_source_tc_cat_node.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of cat node + +Example Usage + +```hcl +data "tencentcloud_cat_node" "node"{ + node_type = 1 + location = 2 + is_ipv6 = false +} +``` \ No newline at end of file diff --git a/tencentcloud/cat/data_source_tc_cat_probe_data.md b/tencentcloud/cat/data_source_tc_cat_probe_data.md new file mode 100644 index 0000000000..bf7eb4e915 --- /dev/null +++ b/tencentcloud/cat/data_source_tc_cat_probe_data.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of cat probe data + +Example Usage + +```hcl +data "tencentcloud_cat_probe_data" "probe_data" { + begin_time = 1667923200000 + end_time = 1667996208428 + task_type = "AnalyzeTaskType_Network" + sort_field = "ProbeTime" + ascending = true + selected_fields = ["terraform"] + offset = 0 + limit = 20 + task_id = ["task-knare1mk"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cat/resource_tc_cat_task_set.md b/tencentcloud/cat/resource_tc_cat_task_set.md new file mode 100644 index 0000000000..d422dc0091 --- /dev/null +++ b/tencentcloud/cat/resource_tc_cat_task_set.md @@ -0,0 +1,52 @@ +Provides a resource to create a cat task_set + +Example Usage + +```hcl +resource "tencentcloud_cat_task_set" "task_set" { + batch_tasks { + name = "demo" + target_address = "http://www.baidu.com" + } + task_type = 5 + nodes = ["12136", "12137", "12138", "12141", "12144"] + interval = 6 + parameters = jsonencode( + { + "ipType" = 0, + "grabBag" = 0, + "filterIp" = 0, + "netIcmpOn" = 1, + "netIcmpActivex" = 0, + "netIcmpTimeout" = 20, + "netIcmpInterval" = 0.5, + "netIcmpNum" = 20, + "netIcmpSize" = 32, + "netIcmpDataCut" = 1, + "netDnsOn" = 1, + "netDnsTimeout" = 5, + "netDnsQuerymethod" = 1, + "netDnsNs" = "", + "netDigOn" = 1, + "netDnsServer" = 2, + "netTracertOn" = 1, + "netTracertTimeout" = 60, + "netTracertNum" = 30, + "whiteList" = "", + "blackList" = "", + "netIcmpActivexStr" = "" + } + ) + task_category = 1 + cron = "* 0-6 * * *" + tags = { + "createdBy" = "terraform" + } +} +``` +Import + +cat task_set can be imported using the id, e.g. +``` +$ terraform import tencentcloud_cat_task_set.task_set taskSet_id +``` \ No newline at end of file diff --git a/tencentcloud/cbs/data_source_tc_cbs_snapshot_policies.md b/tencentcloud/cbs/data_source_tc_cbs_snapshot_policies.md new file mode 100644 index 0000000000..0a61391c9c --- /dev/null +++ b/tencentcloud/cbs/data_source_tc_cbs_snapshot_policies.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of CBS snapshot policies. + +Example Usage + +```hcl +data "tencentcloud_cbs_snapshot_policies" "policies" { + snapshot_policy_id = "snap-f3io7adt" + snapshot_policy_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/data_source_tc_cbs_snapshots.md b/tencentcloud/cbs/data_source_tc_cbs_snapshots.md new file mode 100644 index 0000000000..3196d6e0b8 --- /dev/null +++ b/tencentcloud/cbs/data_source_tc_cbs_snapshots.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of CBS snapshots. + +Example Usage + +```hcl +data "tencentcloud_cbs_snapshots" "snapshots" { + snapshot_id = "snap-f3io7adt" + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/data_source_tc_cbs_storages.md b/tencentcloud/cbs/data_source_tc_cbs_storages.md new file mode 100644 index 0000000000..0ccadc43ca --- /dev/null +++ b/tencentcloud/cbs/data_source_tc_cbs_storages.md @@ -0,0 +1,24 @@ +Use this data source to query detailed information of CBS storages. + +Example Usage + +```hcl +data "tencentcloud_cbs_storages" "storages" { + storage_id = "disk-kdt0sq6m" + result_output_file = "mytestpath" +} +``` + +The following snippet shows the new supported query params + +```hcl +data "tencentcloud_cbs_storages" "whats_new" { + charge_type = ["POSTPAID_BY_HOUR", "PREPAID"] + portable = true + storage_state = ["ATTACHED"] + instance_ips = ["10.0.0.2"] + instance_name = ["my-instance"] + tag_keys = ["foo"] + tag_values = ["bar", "baz"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/data_source_tc_cbs_storages_set.md b/tencentcloud/cbs/data_source_tc_cbs_storages_set.md new file mode 100644 index 0000000000..0d697c6ac5 --- /dev/null +++ b/tencentcloud/cbs/data_source_tc_cbs_storages_set.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of CBS storages in parallel. + +Example Usage + +```hcl +data "tencentcloud_cbs_storages_set" "storages" { + availability_zone = "ap-guangzhou-3" +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_disk_backup.md b/tencentcloud/cbs/resource_tc_cbs_disk_backup.md new file mode 100644 index 0000000000..25d7b76c60 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_disk_backup.md @@ -0,0 +1,22 @@ +Provides a resource to create a cbs disk_backup. + +~> **NOTE:** Backup quota must greater than 1. + +Example Usage + +```hcl + + resource "tencentcloud_cbs_disk_backup" "disk_backup" { + disk_id = "disk-xxx" + disk_backup_name = "xxx" + } + +``` + +Import + +cbs disk_backup can be imported using the id, e.g. + +``` +terraform import tencentcloud_cbs_disk_backup.disk_backup disk_backup_id +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_disk_backup_rollback_operation.md b/tencentcloud/cbs/resource_tc_cbs_disk_backup_rollback_operation.md new file mode 100644 index 0000000000..4de970c559 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_disk_backup_rollback_operation.md @@ -0,0 +1,10 @@ +Provides a resource to rollback cbs disk backup. + +Example Usage + +```hcl +resource "tencentcloud_cbs_disk_backup_rollback_operation" "operation" { + disk_backup_id = "dbp-xxx" + disk_id = "disk-xxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_snapshot.md b/tencentcloud/cbs/resource_tc_cbs_snapshot.md new file mode 100644 index 0000000000..7aa7ffd516 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_snapshot.md @@ -0,0 +1,18 @@ +Provides a resource to create a CBS snapshot. + +Example Usage + +```hcl +resource "tencentcloud_cbs_snapshot" "snapshot" { + snapshot_name = "unnamed" + storage_id = "disk-kdt0sq6m" +} +``` + +Import + +CBS snapshot can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cbs_snapshot.snapshot snap-3sa3f39b +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_snapshot_policy.md b/tencentcloud/cbs/resource_tc_cbs_snapshot_policy.md new file mode 100644 index 0000000000..11606e3be0 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_snapshot_policy.md @@ -0,0 +1,20 @@ +Provides a snapshot policy resource. + +Example Usage + +```hcl +resource "tencentcloud_cbs_snapshot_policy" "snapshot_policy" { + snapshot_policy_name = "mysnapshotpolicyname" + repeat_weekdays = [1, 4] + repeat_hours = [1] + retention_days = 7 +} +``` + +Import + +CBS snapshot policy can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cbs_snapshot_policy.snapshot_policy asp-jliex1tn +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_snapshot_policy_attachment.md b/tencentcloud/cbs/resource_tc_cbs_snapshot_policy_attachment.md new file mode 100644 index 0000000000..503283dc33 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_snapshot_policy_attachment.md @@ -0,0 +1,10 @@ +Provides a CBS snapshot policy attachment resource. + +Example Usage + +```hcl +resource "tencentcloud_cbs_snapshot_policy_attachment" "foo" { + storage_id = tencentcloud_cbs_storage.foo.id + snapshot_policy_id = tencentcloud_cbs_snapshot_policy.policy.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_snapshot_share_permission.md b/tencentcloud/cbs/resource_tc_cbs_snapshot_share_permission.md new file mode 100644 index 0000000000..d5cf62e621 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_snapshot_share_permission.md @@ -0,0 +1,18 @@ +Provides a resource to create a cbs snapshot_share_permission + +Example Usage + +```hcl +resource "tencentcloud_cbs_snapshot_share_permission" "snapshot_share_permission" { + account_ids = ["1xxxxxx", "2xxxxxx"] + snapshot_id = "snap-xxxxxx" +} +``` + +Import + +cbs snapshot_share_permission can be imported using the id, e.g. + +``` +terraform import tencentcloud_cbs_snapshot_share_permission.snapshot_share_permission snap-xxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_storage.md b/tencentcloud/cbs/resource_tc_cbs_storage.md new file mode 100644 index 0000000000..13611cb30e --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_storage.md @@ -0,0 +1,26 @@ +Provides a resource to create a CBS. + +Example Usage + +```hcl +resource "tencentcloud_cbs_storage" "storage" { + storage_name = "mystorage" + storage_type = "CLOUD_SSD" + storage_size = 100 + availability_zone = "ap-guangzhou-3" + project_id = 0 + encrypt = false + + tags = { + test = "tf" + } +} +``` + +Import + +CBS storage can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cbs_storage.storage disk-41s6jwy4 +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_storage_attachment.md b/tencentcloud/cbs/resource_tc_cbs_storage_attachment.md new file mode 100644 index 0000000000..6274f00fc7 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_storage_attachment.md @@ -0,0 +1,18 @@ +Provides a CBS storage attachment resource. + +Example Usage + +```hcl +resource "tencentcloud_cbs_storage_attachment" "attachment" { + storage_id = "disk-kdt0sq6m" + instance_id = "ins-jqlegd42" +} +``` + +Import + +CBS storage attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cbs_storage_attachment.attachment disk-41s6jwy4 +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_storage_set.md b/tencentcloud/cbs/resource_tc_cbs_storage_set.md new file mode 100644 index 0000000000..c3ceb392f3 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_storage_set.md @@ -0,0 +1,15 @@ +Provides a resource to create CBS set. + +Example Usage + +```hcl +resource "tencentcloud_cbs_storage_set" "storage" { + disk_count = 10 + storage_name = "mystorage" + storage_type = "CLOUD_SSD" + storage_size = 100 + availability_zone = "ap-guangzhou-3" + project_id = 0 + encrypt = false +} +``` \ No newline at end of file diff --git a/tencentcloud/cbs/resource_tc_cbs_storage_set_attachment.md b/tencentcloud/cbs/resource_tc_cbs_storage_set_attachment.md new file mode 100644 index 0000000000..3d924baf13 --- /dev/null +++ b/tencentcloud/cbs/resource_tc_cbs_storage_set_attachment.md @@ -0,0 +1,10 @@ +Provides a CBS storage set attachment resource. + +Example Usage + +```hcl +resource "tencentcloud_cbs_storage_set_attachment" "attachment" { + storage_id = "disk-kdt0sq6m" + instance_id = "ins-jqlegd42" +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/data_source_tc_ccn_bandwidth_limits.md b/tencentcloud/ccn/data_source_tc_ccn_bandwidth_limits.md new file mode 100644 index 0000000000..b12eb01005 --- /dev/null +++ b/tencentcloud/ccn/data_source_tc_ccn_bandwidth_limits.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of CCN bandwidth limits. + +Example Usage + +```hcl +variable "other_region1" { + default = "ap-shanghai" +} + +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +data "tencentcloud_ccn_bandwidth_limits" "limit" { + ccn_id = tencentcloud_ccn.main.id +} + +resource "tencentcloud_ccn_bandwidth_limit" "limit1" { + ccn_id = tencentcloud_ccn.main.id + region = var.other_region1 + bandwidth_limit = 500 +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/data_source_tc_ccn_cross_border_compliance.md b/tencentcloud/ccn/data_source_tc_ccn_cross_border_compliance.md new file mode 100644 index 0000000000..6d799e3ba7 --- /dev/null +++ b/tencentcloud/ccn/data_source_tc_ccn_cross_border_compliance.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of ccn cross_border_compliance + +Example Usage + +```hcl +data "tencentcloud_ccn_cross_border_compliance" "cross_border_compliance" { + service_provider = "UNICOM" + compliance_id = 10002 + email = "test@tencent.com" + service_start_date = "2020-07-29" + service_end_date = "2021-07-29" + state = "APPROVED" +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/data_source_tc_ccn_cross_border_flow_monitor.md b/tencentcloud/ccn/data_source_tc_ccn_cross_border_flow_monitor.md new file mode 100644 index 0000000000..19917f2a33 --- /dev/null +++ b/tencentcloud/ccn/data_source_tc_ccn_cross_border_flow_monitor.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of vpc cross_border_flow_monitor + +Example Usage + +```hcl +data "tencentcloud_ccn_cross_border_flow_monitor" "cross_border_flow_monitor" { + source_region = "ap-guangzhou" + destination_region = "ap-singapore" + ccn_id = "ccn-39lqkygf" + ccn_uin = "979137" + period = 60 + start_time = "2023-01-01 00:00:00" + end_time = "2023-01-01 01:00:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/data_source_tc_ccn_cross_border_region_bandwidth_limits.md b/tencentcloud/ccn/data_source_tc_ccn_cross_border_region_bandwidth_limits.md new file mode 100644 index 0000000000..3ea3fae525 --- /dev/null +++ b/tencentcloud/ccn/data_source_tc_ccn_cross_border_region_bandwidth_limits.md @@ -0,0 +1,19 @@ +Use this data source to query detailed information of ccn_cross_border_region_bandwidth_limits + +-> **NOTE:** This resource is dedicated to Unicom. + +Example Usage + +```hcl +data "tencentcloud_ccn_cross_border_region_bandwidth_limits" "ccn_region_bandwidth_limits" { + filters { + name = "source-region" + values = ["ap-guangzhou"] + } + + filters { + name = "destination-region" + values = ["ap-shanghai"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/data_source_tc_ccn_instances.md b/tencentcloud/ccn/data_source_tc_ccn_instances.md new file mode 100644 index 0000000000..ac2f074305 --- /dev/null +++ b/tencentcloud/ccn/data_source_tc_ccn_instances.md @@ -0,0 +1,19 @@ +Use this data source to query detailed information of CCN instances. + +Example Usage + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +data "tencentcloud_ccn_instances" "id_instances" { + ccn_id = tencentcloud_ccn.main.id +} + +data "tencentcloud_ccn_instances" "name_instances" { + name = tencentcloud_ccn.main.name +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/data_source_tc_ccn_tenant_instances.md b/tencentcloud/ccn/data_source_tc_ccn_tenant_instances.md new file mode 100644 index 0000000000..a14db11972 --- /dev/null +++ b/tencentcloud/ccn/data_source_tc_ccn_tenant_instances.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of vpc tenant_ccn + +Example Usage + +```hcl +data "tencentcloud_ccn_tenant_instances" "tenant_ccn" { + ccn_ids = ["ccn-39lqkygf"] + is_security_lock = ["true"] +} + +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn.md b/tencentcloud/ccn/resource_tc_ccn.md new file mode 100644 index 0000000000..09f0fed229 --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn.md @@ -0,0 +1,47 @@ +Provides a resource to create a CCN instance. + +Example Usage + +Create a prepaid CCN + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" + charge_type = "PREPAID" + bandwidth_limit_type = "INTER_REGION_LIMIT" +} +``` + +Create a post-paid regional export speed limit type CCN + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" + charge_type = "POSTPAID" + bandwidth_limit_type = "OUTER_REGION_LIMIT" +} +``` + +Create a post-paid inter-regional rate limit type CNN + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" + charge_type = "POSTPAID" + bandwidth_limit_type = "INTER_REGION_LIMIT" +} +``` + +Import + +Ccn instance can be imported, e.g. + +``` +$ terraform import tencentcloud_ccn.test ccn-id +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn_attachment.md b/tencentcloud/ccn/resource_tc_ccn_attachment.md new file mode 100644 index 0000000000..d4a89649a3 --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn_attachment.md @@ -0,0 +1,45 @@ +Provides a CCN attaching resource. + +Example Usage + +```hcl +variable "region" { + default = "ap-guangzhou" +} + +variable "otheruin" { + default = "123353" +} + +variable "otherccn" { + default = "ccn-151ssaga" +} + +resource "tencentcloud_vpc" "vpc" { + name = "ci-temp-test-vpc" + cidr_block = "10.0.0.0/16" + dns_servers = ["119.29.29.29", "8.8.8.8"] + is_multicast = false +} + +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +resource "tencentcloud_ccn_attachment" "attachment" { + ccn_id = tencentcloud_ccn.main.id + instance_type = "VPC" + instance_id = tencentcloud_vpc.vpc.id + instance_region = var.region +} + +resource "tencentcloud_ccn_attachment" "other_account" { + ccn_id = var.otherccn + instance_type = "VPC" + instance_id = tencentcloud_vpc.vpc.id + instance_region = var.region + ccn_uin = var.otheruin +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn_bandwidth_limit.md b/tencentcloud/ccn/resource_tc_ccn_bandwidth_limit.md new file mode 100644 index 0000000000..e2d89247b1 --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn_bandwidth_limit.md @@ -0,0 +1,49 @@ +Provides a resource to limit CCN bandwidth. + +Example Usage + +Set the upper limit of regional outbound bandwidth + +```hcl +variable "other_region1" { + default = "ap-shanghai" +} + +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +resource "tencentcloud_ccn_bandwidth_limit" "limit1" { + ccn_id = tencentcloud_ccn.main.id + region = var.other_region1 + bandwidth_limit = 500 +} +``` + +Set the upper limit between regions + +```hcl +variable "other_region1" { + default = "ap-shanghai" +} + +variable "other_region2" { + default = "ap-nanjing" +} + +resource tencentcloud_ccn main { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" + bandwidth_limit_type = "INTER_REGION_LIMIT" +} + +resource tencentcloud_ccn_bandwidth_limit limit1 { + ccn_id = tencentcloud_ccn.main.id + region = var.other_region1 + dst_region = var.other_region2 + bandwidth_limit = 100 +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn_instances_accept_attach.md b/tencentcloud/ccn/resource_tc_ccn_instances_accept_attach.md new file mode 100644 index 0000000000..5d8e1046bb --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn_instances_accept_attach.md @@ -0,0 +1,14 @@ +Provides a resource to create a vpc ccn_instances_accept_attach, you can use this resource to approve cross-region attachment. + +Example Usage + +```hcl +resource "tencentcloud_ccn_instances_accept_attach" "ccn_instances_accept_attach" { + ccn_id = "ccn-39lqkygf" + instances { + instance_id = "vpc-j9yhbzpn" + instance_region = "ap-guangzhou" + instance_type = "VPC" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn_instances_reject_attach.md b/tencentcloud/ccn/resource_tc_ccn_instances_reject_attach.md new file mode 100644 index 0000000000..93f3887698 --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn_instances_reject_attach.md @@ -0,0 +1,14 @@ +Provides a resource to create a vpc ccn_instances_reject_attach, you can use this resource to approve cross-region attachment. + +Example Usage + +```hcl +resource "tencentcloud_ccn_instances_reject_attach" "ccn_instances_reject_attach" { + ccn_id = "ccn-39lqkygf" + instances { + instance_id = "vpc-j9yhbzpn" + instance_region = "ap-guangzhou" + instance_type = "VPC" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn_instances_reset_attach.md b/tencentcloud/ccn/resource_tc_ccn_instances_reset_attach.md new file mode 100644 index 0000000000..bf600531ac --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn_instances_reset_attach.md @@ -0,0 +1,15 @@ +Provides a resource to create a vpc ccn_instances_reset_attach, you can use this resource to reset cross-region attachment. + +Example Usage + +```hcl +resource "tencentcloud_ccn_instances_reset_attach" "ccn_instances_reset_attach" { + ccn_id = "ccn-39lqkygf" + ccn_uin = "100022975249" + instances { + instance_id = "vpc-j9yhbzpn" + instance_region = "ap-guangzhou" + instance_type = "VPC" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ccn/resource_tc_ccn_routes.md b/tencentcloud/ccn/resource_tc_ccn_routes.md new file mode 100644 index 0000000000..911e3001de --- /dev/null +++ b/tencentcloud/ccn/resource_tc_ccn_routes.md @@ -0,0 +1,19 @@ +Provides a resource to create a vpc ccn_routes + +Example Usage + +```hcl +resource "tencentcloud_ccn_routes" "ccn_routes" { + ccn_id = "ccn-39lqkygf" + route_id = "ccnr-3o0dfyuw" + switch = "on" +} +``` + +Import + +vpc ccn_routes can be imported using the id, e.g. + +``` +terraform import tencentcloud_ccn_routes.ccn_routes ccnId#routesId +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_backup_list.md b/tencentcloud/cdb/data_source_tc_mysql_backup_list.md new file mode 100644 index 0000000000..e25cd188bf --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_backup_list.md @@ -0,0 +1,11 @@ +Use this data source to query the list of backup databases. + +Example Usage + +```hcl +data "tencentcloud_mysql_backup_list" "default" { + mysql_id = "terraform-test-local-database" + max_number = 10 + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_backup_overview.md b/tencentcloud/cdb/data_source_tc_mysql_backup_overview.md new file mode 100644 index 0000000000..34985ad608 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_backup_overview.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql backup_overview + +Example Usage + +```hcl +data "tencentcloud_mysql_backup_overview" "backup_overview" { + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_backup_summaries.md b/tencentcloud/cdb/data_source_tc_mysql_backup_summaries.md new file mode 100644 index 0000000000..620d9fea9d --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_backup_summaries.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of mysql backup_summaries + +Example Usage + +```hcl +data "tencentcloud_mysql_backup_summaries" "backup_summaries" { + product = "mysql" + order_by = "BackupVolume" + order_direction = "ASC" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_bin_log.md b/tencentcloud/cdb/data_source_tc_mysql_bin_log.md new file mode 100644 index 0000000000..6dbe22ef90 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_bin_log.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql bin_log + +Example Usage + +```hcl +data "tencentcloud_mysql_bin_log" "bin_log" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_binlog_backup_overview.md b/tencentcloud/cdb/data_source_tc_mysql_binlog_backup_overview.md new file mode 100644 index 0000000000..05b4cee3b7 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_binlog_backup_overview.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql binlog_backup_overview + +Example Usage + +```hcl +data "tencentcloud_mysql_binlog_backup_overview" "binlog_backup_overview" { + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_clone_list.md b/tencentcloud/cdb/data_source_tc_mysql_clone_list.md new file mode 100644 index 0000000000..4132752cac --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_clone_list.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql clone_list + +Example Usage + +```hcl +data "tencentcloud_mysql_clone_list" "clone_list" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_data_backup_overview.md b/tencentcloud/cdb/data_source_tc_mysql_data_backup_overview.md new file mode 100644 index 0000000000..08cb15e6e9 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_data_backup_overview.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql data_backup_overview + +Example Usage + +```hcl +data "tencentcloud_mysql_data_backup_overview" "data_backup_overview" { + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_databases.md b/tencentcloud/cdb/data_source_tc_mysql_databases.md new file mode 100644 index 0000000000..5d392530b8 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_databases.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mysql databases + +Example Usage + +```hcl +data "tencentcloud_mysql_databases" "databases" { + instance_id = "cdb-c1nl9rpv" + database_regexp = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_db_features.md b/tencentcloud/cdb/data_source_tc_mysql_db_features.md new file mode 100644 index 0000000000..56f47c521d --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_db_features.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql db_features + +Example Usage + +```hcl +data "tencentcloud_mysql_db_features" "db_features" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_default_params.md b/tencentcloud/cdb/data_source_tc_mysql_default_params.md new file mode 100644 index 0000000000..0724eac5c3 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_default_params.md @@ -0,0 +1,9 @@ +Provide a datasource to query default mysql parameters. + +Example Usage + +```hcl +resource "tencentcloud_mysql_default_params" "mysql_57" { + db_version = "5.7" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_error_log.md b/tencentcloud/cdb/data_source_tc_mysql_error_log.md new file mode 100644 index 0000000000..5a1d9cab83 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_error_log.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of mysql error_log + +Example Usage + +```hcl +data "tencentcloud_mysql_error_log" "error_log" { + instance_id = "cdb-fitq5t9h" + start_time = 1683538307 + end_time = 1686043908 + key_words = ["Shutting"] + inst_type = "slave" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_inst_tables.md b/tencentcloud/cdb/data_source_tc_mysql_inst_tables.md new file mode 100644 index 0000000000..a651ef0437 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_inst_tables.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of mysql inst_tables + +Example Usage + +```hcl +data "tencentcloud_mysql_inst_tables" "inst_tables" { + instance_id = "cdb-fitq5t9h" + database = "tf_ci_test" + # table_regexp = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_instance.md b/tencentcloud/cdb/data_source_tc_mysql_instance.md new file mode 100644 index 0000000000..feb04b92ee --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_instance.md @@ -0,0 +1,9 @@ +Use this data source to get information about a MySQL instance. + +Example Usage + +```hcl +data "tencentcloud_mysql_instance" "mysql" { + mysql_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_instance_charset.md b/tencentcloud/cdb/data_source_tc_mysql_instance_charset.md new file mode 100644 index 0000000000..3fc1703258 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_instance_charset.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql instance_charset + +Example Usage + +```hcl +data "tencentcloud_mysql_instance_charset" "instance_charset" { + instance_id = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_instance_info.md b/tencentcloud/cdb/data_source_tc_mysql_instance_info.md new file mode 100644 index 0000000000..9c6472a816 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_instance_info.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql instance_info + +Example Usage + +```hcl +data "tencentcloud_mysql_instance_info" "instance_info" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_instance_param_record.md b/tencentcloud/cdb/data_source_tc_mysql_instance_param_record.md new file mode 100644 index 0000000000..e8ca02e731 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_instance_param_record.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql instance_param_record + +Example Usage + +```hcl +data "tencentcloud_mysql_instance_param_record" "instance_param_record" { + instance_id = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_instance_reboot_time.md b/tencentcloud/cdb/data_source_tc_mysql_instance_reboot_time.md new file mode 100644 index 0000000000..8666d09db5 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_instance_reboot_time.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql instance_reboot_time + +Example Usage + +```hcl +data "tencentcloud_mysql_instance_reboot_time" "instance_reboot_time" { + instance_ids = ["cdb-fitq5t9h"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_parameter_list.md b/tencentcloud/cdb/data_source_tc_mysql_parameter_list.md new file mode 100644 index 0000000000..e079d05056 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_parameter_list.md @@ -0,0 +1,11 @@ +Use this data source to get information about a parameter group of a database instance. + +Example Usage + +```hcl +data "tencentcloud_mysql_parameter_list" "mysql" { + mysql_id = "terraform-test-local-database" + engine_version = "5.5" + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_project_security_group.md b/tencentcloud/cdb/data_source_tc_mysql_project_security_group.md new file mode 100644 index 0000000000..3692a083fe --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_project_security_group.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql project_security_group + +Example Usage + +```hcl +data "tencentcloud_mysql_project_security_group" "project_security_group" { + project_id = 1250480 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_ro_min_scale.md b/tencentcloud/cdb/data_source_tc_mysql_ro_min_scale.md new file mode 100644 index 0000000000..423d98eb70 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_ro_min_scale.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mysql ro_min_scale + +Example Usage + +```hcl +data "tencentcloud_mysql_ro_min_scale" "ro_min_scale" { + # ro_instance_id = "" + master_instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_rollback_range_time.md b/tencentcloud/cdb/data_source_tc_mysql_rollback_range_time.md new file mode 100644 index 0000000000..5f4e6ce394 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_rollback_range_time.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql rollback_range_time + +Example Usage + +```hcl +data "tencentcloud_mysql_rollback_range_time" "rollback_range_time" { + instance_ids = ["cdb-fitq5t9h"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_slow_log.md b/tencentcloud/cdb/data_source_tc_mysql_slow_log.md new file mode 100644 index 0000000000..93c6780159 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_slow_log.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql slow_log + +Example Usage + +```hcl +data "tencentcloud_mysql_slow_log" "slow_log" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_slow_log_data.md b/tencentcloud/cdb/data_source_tc_mysql_slow_log_data.md new file mode 100644 index 0000000000..c03698521d --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_slow_log_data.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of mysql slow_log_data + +Example Usage + +```hcl +data "tencentcloud_mysql_slow_log_data" "slow_log_data" { + instance_id = "cdb-fitq5t9h" + start_time = 1682664459 + end_time = 1684392459 + user_hosts = ["169.254.128.158"] + user_names = ["keep_dts"] + data_bases = ["tf_ci_test"] + sort_by = "Timestamp" + order_by = "ASC" + inst_type = "slave" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_supported_privileges.md b/tencentcloud/cdb/data_source_tc_mysql_supported_privileges.md new file mode 100644 index 0000000000..ee77245279 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_supported_privileges.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql supported_privileges + +Example Usage + +```hcl +data "tencentcloud_mysql_supported_privileges" "supported_privileges" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_switch_record.md b/tencentcloud/cdb/data_source_tc_mysql_switch_record.md new file mode 100644 index 0000000000..b75c186f9f --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_switch_record.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mysql switch_record + +Example Usage + +```hcl +data "tencentcloud_mysql_switch_record" "switch_record" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_user_task.md b/tencentcloud/cdb/data_source_tc_mysql_user_task.md new file mode 100644 index 0000000000..3a08d5e3e4 --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_user_task.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of mysql user_task + +Example Usage + +```hcl +data "tencentcloud_mysql_user_task" "user_task" { + instance_id = "cdb-fitq5t9h" + async_request_id = "f2fe828c-773af816-0a08f542-94bb2a9c" + task_types = [5] + task_status = [2] + start_time_begin = "2017-12-31 10:40:01" + start_time_end = "2017-12-31 10:40:01" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/data_source_tc_mysql_zone_config.md b/tencentcloud/cdb/data_source_tc_mysql_zone_config.md new file mode 100644 index 0000000000..cfa790d3eb --- /dev/null +++ b/tencentcloud/cdb/data_source_tc_mysql_zone_config.md @@ -0,0 +1,10 @@ +Use this data source to query the available database specifications for different regions. And a maximum of 20 requests can be initiated per second for this query. + +Example Usage + +```hcl +data "tencentcloud_mysql_zone_config" "mysql" { + region = "ap-guangzhou" + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_account.md b/tencentcloud/cdb/resource_tc_mysql_account.md new file mode 100644 index 0000000000..5d75858c03 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_account.md @@ -0,0 +1,69 @@ +Provides a MySQL account resource for database management. A MySQL instance supports multiple database account. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_account" "example" { + mysql_id = tencentcloud_mysql_instance.example.id + name = "tf_example" + password = "Qwer@234" + description = "desc." + max_user_connections = 10 +} +``` + +Import + +mysql account can be imported using the mysqlId#accountName, e.g. + +``` +terraform import tencentcloud_mysql_account.default cdb-gqg6j82x#tf_account +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_account_privilege.md b/tencentcloud/cdb/resource_tc_mysql_account_privilege.md new file mode 100644 index 0000000000..49b952ecdc --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_account_privilege.md @@ -0,0 +1,70 @@ +Provides a mysql account privilege resource to grant different access privilege to different database. A database can be granted by multiple account. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_mysql_privilege. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_account" "example" { + mysql_id = tencentcloud_mysql_instance.example.id + name = "tf_example" + password = "Qwer@234" + description = "desc." + max_user_connections = 10 +} + +resource "tencentcloud_mysql_account_privilege" "default" { + mysql_id = tencentcloud_mysql_instance.example.id + account_name = tencentcloud_mysql_account.example.name + privileges = ["SELECT", "INSERT", "UPDATE", "DELETE"] + database_names = ["dbname1", "dbname2"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_audit_log_file.md b/tencentcloud/cdb/resource_tc_mysql_audit_log_file.md new file mode 100644 index 0000000000..806a68e1a5 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_audit_log_file.md @@ -0,0 +1,78 @@ +Provides a resource to create a mysql audit_log_file + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_audit_log_file" "example" { + instance_id = tencentcloud_mysql_instance.example.id + start_time = "2023-07-01 00:00:00" + end_time = "2023-10-01 00:00:00" + order = "ASC" + order_by = "timestamp" +} +``` + +Add filter + +```hcl +resource "tencentcloud_mysql_audit_log_file" "example" { + instance_id = tencentcloud_mysql_instance.example.id + start_time = "2023-07-01 00:00:00" + end_time = "2023-10-01 00:00:00" + order = "ASC" + order_by = "timestamp" + + filter { + host = ["30.50.207.46"] + user = ["keep_dbbrain"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_backup_download_restriction.md b/tencentcloud/cdb/resource_tc_mysql_backup_download_restriction.md new file mode 100644 index 0000000000..1f52f2c1f5 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_backup_download_restriction.md @@ -0,0 +1,24 @@ +Provides a resource to create a mysql backup_download_restriction + +Example Usage + +```hcl +resource "tencentcloud_mysql_backup_download_restriction" "example" { + limit_type = "Customize" + vpc_comparison_symbol = "In" + ip_comparison_symbol = "In" + limit_vpc { + region = "ap-guangzhou" + vpc_list = ["vpc-4owdpnwr"] + } + limit_ip = ["127.0.0.1"] +} +``` + +Import + +mysql backup_download_restriction can be imported using the "BackupDownloadRestriction", as follows. + +``` +terraform import tencentcloud_mysql_backup_download_restriction.backup_download_restriction BackupDownloadRestriction +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_backup_encryption_status.md b/tencentcloud/cdb/resource_tc_mysql_backup_encryption_status.md new file mode 100644 index 0000000000..c4b801fc09 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_backup_encryption_status.md @@ -0,0 +1,77 @@ +Provides a resource to create a mysql backup_encryption_status + +Example Usage + +Enable encryption + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_backup_encryption_status" "example" { + instance_id = tencentcloud_mysql_instance.example.id + encryption_status = "on" +} +``` + +Disable encryption + +```hcl +resource "tencentcloud_mysql_backup_encryption_status" "example" { + instance_id = tencentcloud_mysql_instance.example.id + encryption_status = "off" +} +``` + +Import + +mysql backup_encryption_status can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_backup_encryption_status.backup_encryption_status backup_encryption_status_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_backup_policy.md b/tencentcloud/cdb/resource_tc_mysql_backup_policy.md new file mode 100644 index 0000000000..bdbed3206e --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_backup_policy.md @@ -0,0 +1,65 @@ +Provides a mysql policy resource to create a backup policy. + +~> **NOTE:** This attribute `backup_model` only support 'physical' in Terraform TencentCloud provider version 1.16.2 + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_backup_policy" "example" { + mysql_id = tencentcloud_mysql_instance.example.id + retention_period = 7 + backup_model = "physical" + backup_time = "22:00-02:00" + binlog_period = 32 + enable_binlog_standby = "off" + binlog_standby_days = 31 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_database.md b/tencentcloud/cdb/resource_tc_mysql_database.md new file mode 100644 index 0000000000..6f0d42967c --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_database.md @@ -0,0 +1,19 @@ +Provides a resource to create a mysql database + +Example Usage + +```hcl +resource "tencentcloud_mysql_database" "database" { + instance_id = "cdb-i9xfdf7z" + db_name = "for_tf_test" + character_set_name = "utf8" +} +``` + +Import + +mysql database can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_database.database instanceId#dbName +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_deploy_group.md b/tencentcloud/cdb/resource_tc_mysql_deploy_group.md new file mode 100644 index 0000000000..2f16e2339a --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_deploy_group.md @@ -0,0 +1,20 @@ +Provides a resource to create a mysql deploy_group + +Example Usage + +```hcl +resource "tencentcloud_mysql_deploy_group" "example" { + deploy_group_name = "tf-example" + description = "desc." + limit_num = 1 + dev_class = ["TS85"] +} +``` + +Import + +mysql deploy_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_deploy_group.deploy_group deploy_group_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_dr_instance_to_mater.md b/tencentcloud/cdb/resource_tc_mysql_dr_instance_to_mater.md new file mode 100644 index 0000000000..5efb6af342 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_dr_instance_to_mater.md @@ -0,0 +1,65 @@ +Provides a resource to create a mysql dr_instance_to_mater + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_dr_instance_to_mater" "example" { + instance_id = tencentcloud_mysql_instance.example.id +} +``` + +Import + +mysql dr_instance_to_mater can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_dr_instance_to_mater.dr_instance_to_mater dr_instance_to_mater_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_instance.md b/tencentcloud/cdb/resource_tc_mysql_instance.md new file mode 100644 index 0000000000..ab9f95b790 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_instance.md @@ -0,0 +1,130 @@ +Provides a mysql instance resource to create master database instances. + +~> **NOTE:** If this mysql has readonly instance, the terminate operation of the mysql does NOT take effect immediately, maybe takes for several hours. so during that time, VPCs associated with that mysql instance can't be terminated also. + +~> **NOTE:** The value of parameter `parameters` can be used with tencentcloud_mysql_parameter_list to obtain. + +Example Usage + +Create a single node instance + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} +``` + +Create a double node instance + +```hcl +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} +``` + +Create a three node instance + +```hcl +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} +``` + +Import + +MySQL instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_mysql_instance.foo cdb-12345678 +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_instance_encryption_operation.md b/tencentcloud/cdb/resource_tc_mysql_instance_encryption_operation.md new file mode 100644 index 0000000000..3e86a19351 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_instance_encryption_operation.md @@ -0,0 +1,59 @@ +Provides a resource to create a mysql instance_encryption_operation + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_instance_encryption_operation" "example" { + instance_id = tencentcloud_mysql_instance.example.id + key_id = "KMS-CDB" + key_region = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_isolate_instance.md b/tencentcloud/cdb/resource_tc_mysql_isolate_instance.md new file mode 100644 index 0000000000..927fb828f3 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_isolate_instance.md @@ -0,0 +1,58 @@ +Provides a resource to create a mysql isolate_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_isolate_instance" "example" { + instance_id = tencentcloud_mysql_instance.example.id + operate = "recover" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_local_binlog_config.md b/tencentcloud/cdb/resource_tc_mysql_local_binlog_config.md new file mode 100644 index 0000000000..cbbde98cb0 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_local_binlog_config.md @@ -0,0 +1,67 @@ +Provides a resource to create a mysql local_binlog_config + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_local_binlog_config" "example" { + instance_id = tencentcloud_mysql_instance.example.id + save_hours = 140 + max_usage = 50 +} +``` + +Import + +mysql local_binlog_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_local_binlog_config.local_binlog_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_param_template.md b/tencentcloud/cdb/resource_tc_mysql_param_template.md new file mode 100644 index 0000000000..805098ac6a --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_param_template.md @@ -0,0 +1,81 @@ +Provides a resource to create a mysql param template + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_param_template" "example" { + name = "tf-example" + description = "desc." + engine_version = "8.0" + param_list { + current_value = "1" + name = "auto_increment_increment" + } + param_list { + current_value = "1" + name = "auto_increment_offset" + } + param_list { + current_value = "ON" + name = "automatic_sp_privileges" + } + template_type = "HIGH_STABILITY" + engine_type = "InnoDB" +} +``` + +Import + +mysql param template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_param_template.param_template template_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_password_complexity.md b/tencentcloud/cdb/resource_tc_mysql_password_complexity.md new file mode 100644 index 0000000000..ec9cb21804 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_password_complexity.md @@ -0,0 +1,73 @@ +Provides a resource to create a mysql password_complexity + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_password_complexity" "example" { + instance_id = tencentcloud_mysql_instance.example.id + param_list { + name = "validate_password_length" + current_value = "8" + } + param_list { + name = "validate_password_mixed_case_count" + current_value = "2" + } + param_list { + name = "validate_password_number_count" + current_value = "2" + } + param_list { + name = "validate_password_special_char_count" + current_value = "2" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_privilege.md b/tencentcloud/cdb/resource_tc_mysql_privilege.md new file mode 100644 index 0000000000..c17dab1d11 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_privilege.md @@ -0,0 +1,94 @@ +Provides a mysql account privilege resource to grant different access privilege to different database. A database can be granted by multiple account. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_account" "example" { + mysql_id = tencentcloud_mysql_instance.example.id + name = "tf_example" + password = "Qwer@234" + description = "desc." + max_user_connections = 10 +} + +resource "tencentcloud_mysql_privilege" "example" { + mysql_id = tencentcloud_mysql_instance.example.id + account_name = tencentcloud_mysql_account.example.name + global = ["TRIGGER"] + database { + privileges = ["SELECT", "INSERT", "UPDATE", "DELETE", "CREATE"] + database_name = "sys" + } + database { + privileges = ["SELECT"] + database_name = "performance_schema" + } + + table { + privileges = ["SELECT", "INSERT", "UPDATE", "DELETE", "CREATE"] + database_name = "mysql" + table_name = "slow_log" + } + + table { + privileges = ["SELECT", "INSERT", "UPDATE"] + database_name = "mysql" + table_name = "user" + } + + column { + privileges = ["SELECT", "INSERT", "UPDATE", "REFERENCES"] + database_name = "mysql" + table_name = "user" + column_name = "host" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_proxy.md b/tencentcloud/cdb/resource_tc_mysql_proxy.md new file mode 100644 index 0000000000..feeb0d43e5 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_proxy.md @@ -0,0 +1,72 @@ +Provides a resource to create a mysql proxy + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_proxy" "example" { + instance_id = tencentcloud_mysql_instance.example.id + uniq_vpc_id = tencentcloud_vpc.vpc.id + uniq_subnet_id = tencentcloud_subnet.subnet.id + proxy_node_custom { + node_count = 1 + cpu = 2 + mem = 4000 + region = "ap-guangzhou" + zone = "ap-guangzhou-3" + } + security_group = [tencentcloud_security_group.security_group.id] + desc = "desc." + connection_pool_limit = 2 + vip = "10.0.0.120" + vport = 3306 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_readonly_instance.md b/tencentcloud/cdb/resource_tc_mysql_readonly_instance.md new file mode 100644 index 0000000000..42e59fd14f --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_readonly_instance.md @@ -0,0 +1,77 @@ +Provides a mysql instance resource to create read-only database instances. + +~> **NOTE:** Read-only instances can be purchased only for two-node or three-node source instances on MySQL 5.6 or above with the InnoDB engine at a specification of 1 GB memory and 50 GB disk capacity or above. +~> **NOTE:** The terminate operation of read only mysql does NOT take effect immediately, maybe takes for several hours. so during that time, VPCs associated with that mysql instance can't be terminated also. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "UTF8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_readonly_instance" "example" { + master_instance_id = tencentcloud_mysql_instance.example.id + instance_name = "tf-example" + mem_size = 128000 + volume_size = 255 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + createBy = "terraform" + } +} +``` +Import + +mysql read-only database instances can be imported using the id, e.g. +``` +terraform import tencentcloud_mysql_readonly_instance.default cdb-dnqksd9f +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_reload_balance_proxy_node.md b/tencentcloud/cdb/resource_tc_mysql_reload_balance_proxy_node.md new file mode 100644 index 0000000000..205229c6d3 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_reload_balance_proxy_node.md @@ -0,0 +1,77 @@ +Provides a resource to create a mysql reload_balance_proxy_node + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_proxy" "example" { + instance_id = tencentcloud_mysql_instance.example.id + uniq_vpc_id = tencentcloud_vpc.vpc.id + uniq_subnet_id = tencentcloud_subnet.subnet.id + proxy_node_custom { + node_count = 1 + cpu = 2 + mem = 4000 + region = "ap-guangzhou" + zone = "ap-guangzhou-3" + } + security_group = [tencentcloud_security_group.security_group.id] + desc = "desc." + connection_pool_limit = 2 + vip = "10.0.0.120" + vport = 3306 +} + +resource "tencentcloud_mysql_reload_balance_proxy_node" "example" { + proxy_group_id = tencentcloud_mysql_proxy.example.proxy_group_id + proxy_address_id = tencentcloud_mysql_proxy.example.proxy_address_id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_remote_backup_config.md b/tencentcloud/cdb/resource_tc_mysql_remote_backup_config.md new file mode 100644 index 0000000000..ad0f543c3f --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_remote_backup_config.md @@ -0,0 +1,69 @@ +Provides a resource to create a mysql remote_backup_config + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_remote_backup_config" "example" { + instance_id = tencentcloud_mysql_instance.example.id + remote_backup_save = "on" + remote_binlog_save = "on" + remote_region = ["ap-shanghai"] + expire_days = 7 +} +``` + +Import + +mysql remote_backup_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_remote_backup_config.remote_backup_config remote_backup_config_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_renew_db_instance_operation.md b/tencentcloud/cdb/resource_tc_mysql_renew_db_instance_operation.md new file mode 100644 index 0000000000..8d056ad034 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_renew_db_instance_operation.md @@ -0,0 +1,64 @@ +Provides a resource to create a mysql renew_db_instance_operation + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +data "tencentcloud_mysql_rollback_range_time" "example" { + instance_ids = [tencentcloud_mysql_instance.example.id] +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "PREPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_renew_db_instance_operation" "example" { + instance_id = tencentcloud_mysql_instance.example.id + time_span = 1 + modify_pay_type = "PREPAID" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_reset_root_account.md b/tencentcloud/cdb/resource_tc_mysql_reset_root_account.md new file mode 100644 index 0000000000..cd5fa3154d --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_reset_root_account.md @@ -0,0 +1,58 @@ +Provides a resource to create a mysql reset_root_account + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_reset_root_account" "example" { + instance_id = tencentcloud_mysql_instance.example.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_restart_db_instances_operation.md b/tencentcloud/cdb/resource_tc_mysql_restart_db_instances_operation.md new file mode 100644 index 0000000000..ab9584b380 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_restart_db_instances_operation.md @@ -0,0 +1,65 @@ +Provides a resource to create a mysql restart_db_instances_operation + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_restart_db_instances_operation" "example" { + instance_id = tencentcloud_mysql_instance.example.id +} +``` + +Import + +mysql restart_db_instances_operation can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_restart_db_instances_operation.restart_db_instances_operation restart_db_instances_operation_id +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_ro_group.md b/tencentcloud/cdb/resource_tc_mysql_ro_group.md new file mode 100644 index 0000000000..ddfac398ea --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_ro_group.md @@ -0,0 +1,23 @@ +Provides a resource to create a mysql ro_group + +Example Usage + +```hcl +resource "tencentcloud_mysql_ro_group" "example" { + instance_id = "cdb-e8i766hx" + ro_group_id = "cdbrg-f49t0gnj" + ro_group_info { + ro_group_name = "keep-ro" + ro_max_delay_time = 1 + ro_offline_delay = 1 + min_ro_in_group = 1 + weight_mode = "custom" + replication_delay_time = 1 + } + ro_weight_values { + instance_id = "cdbro-f49t0gnj" + weight = 10 + } + is_balance_ro_load = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_ro_group_load_operation.md b/tencentcloud/cdb/resource_tc_mysql_ro_group_load_operation.md new file mode 100644 index 0000000000..b99c6bd943 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_ro_group_load_operation.md @@ -0,0 +1,78 @@ +Provides a resource to create a mysql ro_group_load_operation + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +data "tencentcloud_mysql_instance" "example" { + mysql_id = tencentcloud_mysql_instance.example.id + + depends_on = [tencentcloud_mysql_readonly_instance.example] +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_readonly_instance" "example" { + master_instance_id = tencentcloud_mysql_instance.example.id + instance_name = "tf-mysql" + mem_size = 2000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + createBy = "terraform" + } +} + +resource "tencentcloud_mysql_ro_group_load_operation" "ro_group_load_operation" { + ro_group_id = data.tencentcloud_mysql_instance.example.instance_list.0.ro_groups.0.group_id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_ro_instance_ip.md b/tencentcloud/cdb/resource_tc_mysql_ro_instance_ip.md new file mode 100644 index 0000000000..f9d9124a46 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_ro_instance_ip.md @@ -0,0 +1,28 @@ +Provides a resource to create a mysql ro_instance_ip + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_mysql_ro_instance_ip" "example" { + instance_id = "cdbro-bdlvcfpj" + uniq_subnet_id = tencentcloud_subnet.subnet.id + uniq_vpc_id = tencentcloud_vpc.vpc.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_ro_start_replication.md b/tencentcloud/cdb/resource_tc_mysql_ro_start_replication.md new file mode 100644 index 0000000000..549bc554f9 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_ro_start_replication.md @@ -0,0 +1,76 @@ +Provides a resource to create a mysql ro_start_replication + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_proxy" "example" { + instance_id = tencentcloud_mysql_instance.example.id + uniq_vpc_id = tencentcloud_vpc.vpc.id + uniq_subnet_id = tencentcloud_subnet.subnet.id + proxy_node_custom { + node_count = 1 + cpu = 2 + mem = 4000 + region = "ap-guangzhou" + zone = "ap-guangzhou-3" + } + security_group = [tencentcloud_security_group.security_group.id] + desc = "desc." + connection_pool_limit = 2 + vip = "10.0.0.120" + vport = 3306 +} + +resource "tencentcloud_mysql_ro_start_replication" "example" { + instance_id = tencentcloud_mysql_proxy.example.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_ro_stop_replication.md b/tencentcloud/cdb/resource_tc_mysql_ro_stop_replication.md new file mode 100644 index 0000000000..a085daae9f --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_ro_stop_replication.md @@ -0,0 +1,76 @@ +Provides a resource to create a mysql ro_stop_replication + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_proxy" "example" { + instance_id = tencentcloud_mysql_instance.example.id + uniq_vpc_id = tencentcloud_vpc.vpc.id + uniq_subnet_id = tencentcloud_subnet.subnet.id + proxy_node_custom { + node_count = 1 + cpu = 2 + mem = 4000 + region = "ap-guangzhou" + zone = "ap-guangzhou-3" + } + security_group = [tencentcloud_security_group.security_group.id] + desc = "desc." + connection_pool_limit = 2 + vip = "10.0.0.120" + vport = 3306 +} + +resource "tencentcloud_mysql_ro_stop_replication" "example" { + instance_id = tencentcloud_mysql_proxy.example.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_rollback.md b/tencentcloud/cdb/resource_tc_mysql_rollback.md new file mode 100644 index 0000000000..0db3d6c01d --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_rollback.md @@ -0,0 +1,75 @@ +Provides a resource to create a mysql rollback + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +data "tencentcloud_mysql_rollback_range_time" "example" { + instance_ids = [tencentcloud_mysql_instance.example.id] +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_rollback" "example" { + instance_id = tencentcloud_mysql_instance.example.id + strategy = "full" + rollback_time = data.tencentcloud_mysql_rollback_range_time.example.item.0.times.0.start + databases { + database_name = "tf_db_bak" + new_database_name = "tf_db_bak_new" + } + tables { + database = "tf_db_bak1" + table { + table_name = "tf_table" + new_table_name = "tf_table_new" + } + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_rollback_stop.md b/tencentcloud/cdb/resource_tc_mysql_rollback_stop.md new file mode 100644 index 0000000000..9ccd90d500 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_rollback_stop.md @@ -0,0 +1,11 @@ +Provides a resource to create a mysql rollback_stop + +Example Usage + +Revoke the ongoing rollback task of the instance + +```hcl +resource "tencentcloud_mysql_rollback_stop" "example" { + instance_id = "cdb-fitq5t9h" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_security_groups_attachment.md b/tencentcloud/cdb/resource_tc_mysql_security_groups_attachment.md new file mode 100644 index 0000000000..dbb44006bc --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_security_groups_attachment.md @@ -0,0 +1,66 @@ +Provides a resource to create a mysql security_groups_attachment + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_security_groups_attachment" "example" { + security_group_id = tencentcloud_security_group.security_group.id + instance_id = tencentcloud_mysql_instance.example.id +} +``` + +Import + +mysql security_groups_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_security_groups_attachment.security_groups_attachment securityGroupId#instanceId +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_switch_for_upgrade.md b/tencentcloud/cdb/resource_tc_mysql_switch_for_upgrade.md new file mode 100644 index 0000000000..8f229ffe27 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_switch_for_upgrade.md @@ -0,0 +1,57 @@ +Provides a resource to create a mysql switch_for_upgrade + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_switch_for_upgrade" "example" { + instance_id = tencentcloud_mysql_instance.example.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_switch_master_slave_operation.md b/tencentcloud/cdb/resource_tc_mysql_switch_master_slave_operation.md new file mode 100644 index 0000000000..9f859cc071 --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_switch_master_slave_operation.md @@ -0,0 +1,61 @@ +Provides a resource to create a mysql switch_master_slave_operation + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_switch_master_slave_operation" "example" { + instance_id = tencentcloud_mysql_instance.example.id + dst_slave = "second" + force_switch = true + wait_switch = true +} +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_time_window.md b/tencentcloud/cdb/resource_tc_mysql_time_window.md new file mode 100644 index 0000000000..bedd614e8d --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_time_window.md @@ -0,0 +1,77 @@ +Provides a resource to create a mysql time_window + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_time_window" "example" { + instance_id = tencentcloud_mysql_instance.example.id + max_delay_time = 10 + time_ranges = [ + "01:00-02:01" + ] + weekdays = [ + "friday", + "monday", + "saturday", + "thursday", + "tuesday", + "wednesday", + ] +} +``` + +Import + +mysql time_window can be imported using the id, e.g. + +``` +terraform import tencentcloud_mysql_time_window.time_window instanceId +``` \ No newline at end of file diff --git a/tencentcloud/cdb/resource_tc_mysql_verify_root_account.md b/tencentcloud/cdb/resource_tc_mysql_verify_root_account.md new file mode 100644 index 0000000000..1dbae9e8be --- /dev/null +++ b/tencentcloud/cdb/resource_tc_mysql_verify_root_account.md @@ -0,0 +1,59 @@ +Provides a resource to create a mysql verify_root_account + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-mysql" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-mysql" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-mysql" + description = "mysql test" +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 1 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name + slave_sync_mode = 1 + instance_name = "tf-example-mysql" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + name = "test" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_mysql_verify_root_account" "example" { + instance_id = tencentcloud_mysql_instance.example.id + password = "Qwer@234" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdh/data_source_tc_cdh_instances.md b/tencentcloud/cdh/data_source_tc_cdh_instances.md new file mode 100644 index 0000000000..4e9842ad41 --- /dev/null +++ b/tencentcloud/cdh/data_source_tc_cdh_instances.md @@ -0,0 +1,13 @@ +Use this data source to query CDH instances. + +Example Usage + +```hcl +data "tencentcloud_cdh_instances" "list" { + availability_zone = "ap-guangzhou-3" + host_id = "host-d6s7i5q4" + host_name = "test" + host_state = "RUNNING" + project_id = 1154137 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdh/resource_tc_cdh_instance.md b/tencentcloud/cdh/resource_tc_cdh_instance.md new file mode 100644 index 0000000000..5449a01f6d --- /dev/null +++ b/tencentcloud/cdh/resource_tc_cdh_instance.md @@ -0,0 +1,26 @@ +Provides a resource to manage CDH instance. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +resource "tencentcloud_cdh_instance" "foo" { + availability_zone = var.availability_zone + host_type = "HC20" + charge_type = "PREPAID" + prepaid_period = 1 + host_name = "test" + prepaid_renew_flag = "NOTIFY_AND_MANUAL_RENEW" +} +``` + +Import + +CDH instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cdh_instance.foo host-d6s7i5q4 +``` \ No newline at end of file diff --git a/tencentcloud/cdn/data_source_tc_cdn_domain_verifier.md b/tencentcloud/cdn/data_source_tc_cdn_domain_verifier.md new file mode 100644 index 0000000000..8818fde5b7 --- /dev/null +++ b/tencentcloud/cdn/data_source_tc_cdn_domain_verifier.md @@ -0,0 +1,18 @@ +Provides a resource to check or create a cdn Domain Verify Record + +~> **NOTE:** + +Example Usage + +```hcl +data "tencentcloud_cdn_domain_verifier" "vr" { + domain = "www.examplexxx123.com" + auto_verify = true # auto create record if not verified + freeze_record = true # once been freeze and verified, it will never be changed again +} + +locals { + recordValue = data.tencentcloud_cdn_domain_verifier.record + recordType = data.tencentcloud_cdn_domain_verifier.record_type +} +``` \ No newline at end of file diff --git a/tencentcloud/cdn/data_source_tc_cdn_domains.md b/tencentcloud/cdn/data_source_tc_cdn_domains.md new file mode 100644 index 0000000000..13715e062d --- /dev/null +++ b/tencentcloud/cdn/data_source_tc_cdn_domains.md @@ -0,0 +1,13 @@ +Use this data source to query the detail information of CDN domain. + +Example Usage + +```hcl +data "tencentcloud_cdn_domains" "foo" { + domain = "xxxx.com" + service_type = "web" + full_url_cache = false + origin_pull_protocol = "follow" + https_switch = "on" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdn/resource_tc_cdn_domain.md b/tencentcloud/cdn/resource_tc_cdn_domain.md new file mode 100644 index 0000000000..af776cc2a9 --- /dev/null +++ b/tencentcloud/cdn/resource_tc_cdn_domain.md @@ -0,0 +1,140 @@ +Provides a resource to create a CDN domain. + +~> **NOTE:** To disable most of configuration with switch, just modify switch argument to off instead of remove the whole block + +Example Usage + +```hcl +resource "tencentcloud_cdn_domain" "foo" { + domain = "xxxx.com" + service_type = "web" + area = "mainland" + full_url_cache = false + + origin { + origin_type = "ip" + origin_list = ["127.0.0.1"] + origin_pull_protocol = "follow" + } + + https_config { + https_switch = "off" + http2_switch = "off" + ocsp_stapling_switch = "off" + spdy_switch = "off" + verify_client = "off" + + force_redirect { + switch = "on" + redirect_type = "http" + redirect_status_code = 302 + } + } + + tags = { + hello = "world" + } +} +``` + +Example Usage of cdn uses cache and request headers + +```hcl +resource "tencentcloud_cdn_domain" "foo" { + domain = "xxxx.com" + service_type = "web" + area = "mainland" + # full_url_cache = true # Deprecated, use cache_key below. + cache_key { + full_url_cache = "on" + } + range_origin_switch = "off" + + rule_cache{ + cache_time = 10000 + no_cache_switch="on" + re_validate="on" + } + + request_header{ + switch = "on" + + header_rules { + header_mode = "add" + header_name = "tf-header-name" + header_value = "tf-header-value" + rule_type = "all" + rule_paths = ["*"] + } + } + + origin { + origin_type = "ip" + origin_list = ["127.0.0.1"] + origin_pull_protocol = "follow" + } + + https_config { + https_switch = "off" + http2_switch = "off" + ocsp_stapling_switch = "off" + spdy_switch = "off" + verify_client = "off" + + force_redirect { + switch = "on" + redirect_type = "http" + redirect_status_code = 302 + } + } + + tags = { + hello = "world" + } +} +``` + +Example Usage of COS bucket url as origin + +```hcl +resource "tencentcloud_cos_bucket" "bucket" { + # Bucket format should be [custom name]-[appid]. + bucket = "demo-bucket-1251234567" + acl = "private" +} + +# Create cdn domain +resource "tencentcloud_cdn_domain" "cdn" { + domain = "abc.com" + service_type = "web" + area = "mainland" + # full_url_cache = false # Deprecated + cache_key { + full_url_cache = "off" + } + + origin { + origin_type = "cos" + origin_list = [tencentcloud_cos_bucket.bucket.cos_bucket_url] + server_name = tencentcloud_cos_bucket.bucket.cos_bucket_url + origin_pull_protocol = "follow" + cos_private_access = "on" + } + + https_config { + https_switch = "off" + http2_switch = "off" + ocsp_stapling_switch = "off" + spdy_switch = "off" + verify_client = "off" + } +} +``` + +Import + +CDN domain can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cdn_domain.foo xxxx.com +``` \ No newline at end of file diff --git a/tencentcloud/cdn/resource_tc_cdn_url_purge.md b/tencentcloud/cdn/resource_tc_cdn_url_purge.md new file mode 100644 index 0000000000..dfd0777a8c --- /dev/null +++ b/tencentcloud/cdn/resource_tc_cdn_url_purge.md @@ -0,0 +1,22 @@ +Provide a resource to invoke a Url Purge Request. + +Example Usage + +```hcl +resource "tencentcloud_cdn_url_purge" "foo" { + urls = [ + "https://www.example.com/a" + ] +} +``` + +Change `redo` argument to request new purge task with same urls + +```hcl +resource "tencentcloud_cdn_url_purge" "foo" { + urls = [ + "https://www.example.com/a" + ] + redo = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdn/resource_tc_cdn_url_push.md b/tencentcloud/cdn/resource_tc_cdn_url_push.md new file mode 100644 index 0000000000..b8e11ee215 --- /dev/null +++ b/tencentcloud/cdn/resource_tc_cdn_url_push.md @@ -0,0 +1,20 @@ +Provide a resource to invoke a Url Push request. + +Example Usage + +```hcl +resource "tencentcloud_cdn_url_push" "foo" { + urls = ["https://www.example.com/b"] +} +``` + +Change `redo` argument to request new push task with same urls + +```hcl +resource "tencentcloud_cdn_url_push" "foo" { + urls = [ + "https://www.example.com/a" + ] + redo = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/data_source_tc_clickhouse_backup_job_detail.md b/tencentcloud/cdwch/data_source_tc_clickhouse_backup_job_detail.md new file mode 100644 index 0000000000..ce9a47faf6 --- /dev/null +++ b/tencentcloud/cdwch/data_source_tc_clickhouse_backup_job_detail.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of clickhouse backup job detail + +Example Usage + +```hcl +data "tencentcloud_clickhouse_backup_job_detail" "backup_job_detail" { + instance_id = "cdwch-xxxxxx" + back_up_job_id = 1234 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/data_source_tc_clickhouse_backup_jobs.md b/tencentcloud/cdwch/data_source_tc_clickhouse_backup_jobs.md new file mode 100644 index 0000000000..5c30dfdfd6 --- /dev/null +++ b/tencentcloud/cdwch/data_source_tc_clickhouse_backup_jobs.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clickhouse backup jobs + +Example Usage + +```hcl +data "tencentcloud_clickhouse_backup_jobs" "backup_jobs" { + instance_id = "cdwch-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/data_source_tc_clickhouse_backup_tables.md b/tencentcloud/cdwch/data_source_tc_clickhouse_backup_tables.md new file mode 100644 index 0000000000..9c79eac2b3 --- /dev/null +++ b/tencentcloud/cdwch/data_source_tc_clickhouse_backup_tables.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clickhouse backup tables + +Example Usage + +```hcl +data "tencentcloud_clickhouse_backup_tables" "backup_tables" { + instance_id = "cdwch-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_account.md b/tencentcloud/cdwch/resource_tc_clickhouse_account.md new file mode 100644 index 0000000000..c0ff38824c --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_account.md @@ -0,0 +1,20 @@ +Provides a resource to create a clickhouse account + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_account" "account" { + instance_id = "cdwch-xxxxxx" + user_name = "test" + password = "xxxxxx" + describe = "xxxxxx" +} +``` + +Import + +clickhouse account can be imported using the id, e.g. + +``` +terraform import tencentcloud_clickhouse_account.account ${instance_id}#${user_name} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_account_permission.md b/tencentcloud/cdwch/resource_tc_clickhouse_account_permission.md new file mode 100644 index 0000000000..b10ba2f679 --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_account_permission.md @@ -0,0 +1,32 @@ +Provides a resource to create a clickhouse account_permission + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_account_permission" "account_permission_all_database" { + instance_id = "cdwch-xxxxxx" + cluster = "default_cluster" + user_name = "user1" + all_database = true + global_privileges = ["SELECT", "ALTER"] +} + +resource "tencentcloud_clickhouse_account_permission" "account_permission_not_all_database" { + instance_id = "cdwch-xxxxxx" + cluster = "default_cluster" + user_name = "user2" + all_database = false + database_privilege_list { + database_name = "xxxxxx" + database_privileges = ["SELECT", "ALTER"] + } +} +``` + +Import + +clickhouse account_permission can be imported using the id, e.g. + +``` +terraform import tencentcloud_clickhouse_account_permission.account_permission ${instanceId}#${cluster}#${userName} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_backup.md b/tencentcloud/cdwch/resource_tc_clickhouse_backup.md new file mode 100644 index 0000000000..7362ef900c --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_backup.md @@ -0,0 +1,18 @@ +Provides a resource to open clickhouse backup + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_backup" "backup" { + instance_id = "cdwch-xxxxxx" + cos_bucket_name = "xxxxxx" +} +``` + +Import + +clickhouse backup can be imported using the id, e.g. + +``` +terraform import tencentcloud_clickhouse_backup.backup instance_id +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_backup_strategy.md b/tencentcloud/cdwch/resource_tc_clickhouse_backup_strategy.md new file mode 100644 index 0000000000..7bec194fbe --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_backup_strategy.md @@ -0,0 +1,39 @@ +Provides a resource to create a clickhouse backup strategy + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_backup" "backup" { + instance_id = "cdwch-xxxxxx" + cos_bucket_name = "xxxxxx" +} + +resource "tencentcloud_clickhouse_backup_strategy" "backup_strategy" { + instance_id = "cdwch-xxxxxx" + data_backup_strategy { + week_days = "3" + retain_days = 2 + execute_hour = 1 + back_up_tables { + database = "iac" + table = "my_table" + total_bytes = 0 + v_cluster = "default_cluster" + ips = "10.0.0.35" + } + } + meta_backup_strategy { + week_days = "1" + retain_days = 2 + execute_hour = 3 + } +} +``` + +Import + +clickhouse backup_strategy can be imported using the id, e.g. + +``` +terraform import tencentcloud_clickhouse_backup_strategy.backup_strategy instance_id +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_delete_backup_data.md b/tencentcloud/cdwch/resource_tc_clickhouse_delete_backup_data.md new file mode 100644 index 0000000000..8c05468cec --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_delete_backup_data.md @@ -0,0 +1,10 @@ +Provides a resource to delete a clickhouse back up data + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_delete_backup_data" "delete_back_up_data" { + instance_id = "cdwch-xxxxxx" + back_up_job_id = 1234 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_instance.md b/tencentcloud/cdwch/resource_tc_clickhouse_instance.md new file mode 100644 index 0000000000..4cfd31d98b --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_instance.md @@ -0,0 +1,59 @@ +Provides a resource to create a clickhouse instance. + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_instance" "cdwch_instance" { + zone="ap-guangzhou-6" + ha_flag=true + vpc_id="vpc-xxxxxx" + subnet_id="subnet-xxxxxx" + product_version="21.8.12.29" + data_spec { + spec_name="SCH6" + count=2 + disk_size=300 + } + common_spec { + spec_name="SCH6" + count=3 + disk_size=300 + } + charge_type="POSTPAID_BY_HOUR" + instance_name="tf-test-clickhouse" +} +``` + +PREPAID instance + +```hcl +resource "tencentcloud_clickhouse_instance" "cdwch_instance_prepaid" { + zone="ap-guangzhou-6" + ha_flag=true + vpc_id="vpc-xxxxxx" + subnet_id="subnet-xxxxxx" + product_version="21.8.12.29" + data_spec { + spec_name="SCH6" + count=2 + disk_size=300 + } + common_spec { + spec_name="SCH6" + count=3 + disk_size=300 + } + charge_type="PREPAID" + renew_flag=1 + time_span=1 + instance_name="tf-test-clickhouse-prepaid" +} +``` + +Import + +Clickhouse instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clickhouse_instance.foo cdwch-xxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/cdwch/resource_tc_clickhouse_recover_backup_job.md b/tencentcloud/cdwch/resource_tc_clickhouse_recover_backup_job.md new file mode 100644 index 0000000000..a0b0c3c247 --- /dev/null +++ b/tencentcloud/cdwch/resource_tc_clickhouse_recover_backup_job.md @@ -0,0 +1,10 @@ +Provides a resource to recover a clickhouse back up + +Example Usage + +```hcl +resource "tencentcloud_clickhouse_recover_backup_job" "recover_backup_job" { + instance_id = "cdwch-xxxxxx" + back_up_job_id = 1234 +} +``` \ No newline at end of file diff --git a/tencentcloud/cdwpg/resource_tc_cdwpg_instance.md b/tencentcloud/cdwpg/resource_tc_cdwpg_instance.md new file mode 100644 index 0000000000..e6febc43a1 --- /dev/null +++ b/tencentcloud/cdwpg/resource_tc_cdwpg_instance.md @@ -0,0 +1,53 @@ +Provides a resource to create a cdwpg instance + +Example Usage + +```hcl +resource "tencentcloud_cdwpg_instance" "instance" { + instance_name = "test_cdwpg" + zone = "ap-guangzhou-6" + user_vpc_id = "vpc-xxxxxx" + user_subnet_id = "subnet-xxxxxx" + charge_properties { + renew_flag = 0 + time_span = 1 + time_unit = "h" + charge_type = "POSTPAID_BY_HOUR" + + } + admin_password = "xxxxxx" + resources { + spec_name = "S_4_16_H_CN" + count = 2 + disk_spec { + disk_type = "CLOUD_HSSD" + disk_size = 200 + disk_count = 1 + } + type = "cn" + + } + resources { + spec_name = "S_4_16_H_CN" + count = 2 + disk_spec { + disk_type = "CLOUD_HSSD" + disk_size = 20 + disk_count = 10 + } + type = "dn" + + } + tags = { + "tagKey" = "tagValue" + } +} +``` + +Import + +cdwpg instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_cdwpg_instance.instance instance_id +``` \ No newline at end of file diff --git a/tencentcloud/cfs/data_source_tc_cfs_access_groups.md b/tencentcloud/cfs/data_source_tc_cfs_access_groups.md new file mode 100644 index 0000000000..fb1d7de668 --- /dev/null +++ b/tencentcloud/cfs/data_source_tc_cfs_access_groups.md @@ -0,0 +1,10 @@ +Use this data source to query the detail information of CFS access group. + +Example Usage + +```hcl +data "tencentcloud_cfs_access_groups" "access_groups" { + access_group_id = "pgroup-7nx89k7l" + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/data_source_tc_cfs_access_rules.md b/tencentcloud/cfs/data_source_tc_cfs_access_rules.md new file mode 100644 index 0000000000..e0c99feb42 --- /dev/null +++ b/tencentcloud/cfs/data_source_tc_cfs_access_rules.md @@ -0,0 +1,10 @@ +Use this data source to query the detail information of CFS access rule. + +Example Usage + +```hcl +data "tencentcloud_cfs_access_rules" "access_rules" { + access_group_id = "pgroup-7nx89k7l" + access_rule_id = "rule-qcndbqzj" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/data_source_tc_cfs_available_zone.md b/tencentcloud/cfs/data_source_tc_cfs_available_zone.md new file mode 100644 index 0000000000..fcce08aa79 --- /dev/null +++ b/tencentcloud/cfs/data_source_tc_cfs_available_zone.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of cfs available_zone + +Example Usage + +```hcl +data "tencentcloud_cfs_available_zone" "available_zone" {} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/data_source_tc_cfs_file_system_clients.md b/tencentcloud/cfs/data_source_tc_cfs_file_system_clients.md new file mode 100644 index 0000000000..b13d5ad9d1 --- /dev/null +++ b/tencentcloud/cfs/data_source_tc_cfs_file_system_clients.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cfs file_system_clients + +Example Usage + +```hcl +data "tencentcloud_cfs_file_system_clients" "file_system_clients" { + file_system_id = "cfs-iobiaxtj" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/data_source_tc_cfs_file_systems.md b/tencentcloud/cfs/data_source_tc_cfs_file_systems.md new file mode 100644 index 0000000000..3bca5ee442 --- /dev/null +++ b/tencentcloud/cfs/data_source_tc_cfs_file_systems.md @@ -0,0 +1,11 @@ +Use this data source to query the detail information of cloud file systems(CFS). + +Example Usage + +```hcl +data "tencentcloud_cfs_file_systems" "file_systems" { + file_system_id = "cfs-6hgquxmj" + name = "test" + availability_zone = "ap-guangzhou-3" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/data_source_tc_cfs_mount_targets.md b/tencentcloud/cfs/data_source_tc_cfs_mount_targets.md new file mode 100644 index 0000000000..1e7ae46853 --- /dev/null +++ b/tencentcloud/cfs/data_source_tc_cfs_mount_targets.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cfs mount_targets + +Example Usage + +```hcl +data "tencentcloud_cfs_mount_targets" "mount_targets" { + file_system_id = "cfs-iobiaxtj" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_access_group.md b/tencentcloud/cfs/resource_tc_cfs_access_group.md new file mode 100644 index 0000000000..a87b662920 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_access_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a CFS access group. + +Example Usage + +```hcl +resource "tencentcloud_cfs_access_group" "example" { + name = "tx_example" + description = "desc." +} +``` + +Import + +CFS access group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cfs_access_group.example pgroup-7nx89k7l +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_access_rule.md b/tencentcloud/cfs/resource_tc_cfs_access_rule.md new file mode 100644 index 0000000000..20d2d311a2 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_access_rule.md @@ -0,0 +1,13 @@ +Provides a resource to create a CFS access rule. + +Example Usage + +```hcl +resource "tencentcloud_cfs_access_rule" "foo" { + access_group_id = "pgroup-7nx89k7l" + auth_client_ip = "10.10.1.0/24" + priority = 1 + rw_permission = "RO" + user_permission = "root_squash" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy.md b/tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy.md new file mode 100644 index 0000000000..0be407d196 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy.md @@ -0,0 +1,44 @@ +Provides a resource to create a cfs auto_snapshot_policy + +Example Usage + +use day of week + +```hcl +resource "tencentcloud_cfs_auto_snapshot_policy" "auto_snapshot_policy" { + day_of_week = "1,2" + hour = "2,3" + policy_name = "policy_name" + alive_days = 7 +} +``` + +use day of month + +```hcl +resource "tencentcloud_cfs_auto_snapshot_policy" "auto_snapshot_policy" { + hour = "2,3" + policy_name = "policy_name" + alive_days = 7 + day_of_month = "2,3,4" +} +``` + +use interval days + +```hcl +resource "tencentcloud_cfs_auto_snapshot_policy" "auto_snapshot_policy" { + hour = "2,3" + policy_name = "policy_name" + alive_days = 7 + interval_days = 1 +} +``` + +Import + +cfs auto_snapshot_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfs_auto_snapshot_policy.auto_snapshot_policy auto_snapshot_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy_attachment.md b/tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy_attachment.md new file mode 100644 index 0000000000..261de7e610 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a cfs auto_snapshot_policy_attachment + +Example Usage + +```hcl +resource "tencentcloud_cfs_auto_snapshot_policy_attachment" "auto_snapshot_policy_attachment" { + auto_snapshot_policy_id = "asp-basic" + file_system_ids = "cfs-4xzkct19,cfs-iobiaxtj" +} +``` + +Import + +cfs auto_snapshot_policy_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfs_auto_snapshot_policy_attachment.auto_snapshot_policy_attachment auto_snapshot_policy_id#file_system_ids +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_file_system.md b/tencentcloud/cfs/resource_tc_cfs_file_system.md new file mode 100644 index 0000000000..97484a8fa7 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_file_system.md @@ -0,0 +1,70 @@ +Provides a resource to create a cloud file system(CFS). + +Example Usage + +Standard Nfs CFS + +```hcl +resource "tencentcloud_cfs_file_system" "foo" { + name = "test_file_system" + availability_zone = "ap-guangzhou-3" + access_group_id = "pgroup-7nx89k7l" + protocol = "NFS" + vpc_id = "vpc-ah9fbkap" + subnet_id = "subnet-9mu2t9iw" +} +``` + +High-Performance Nfs CFS + +```hcl +resource "tencentcloud_cfs_file_system" "foo" { + name = "test_file_system" + availability_zone = "ap-guangzhou-6" + access_group_id = "pgroup-drwt29od" + protocol = "NFS" + storage_type = "HP" + vpc_id = "vpc-86v957zb" + subnet_id = "subnet-enm92y0m" +} +``` + +Standard Turbo CFS + +```hcl +resource "tencentcloud_cfs_file_system" "foo" { + name = "test_file_system" + net_interface = "CCN" + availability_zone = "ap-guangzhou-6" + access_group_id = "pgroup-drwt29od" + protocol = "TURBO" + storage_type = "TB" + capacity = 20480 + ccn_id = "ccn-39lqkygf" + cidr_block = "11.0.0.0/24" +} +``` + +High-Performance Turbo CFS + +```hcl +resource "tencentcloud_cfs_file_system" "foo" { + name = "test_file_system" + net_interface = "CCN" + availability_zone = "ap-guangzhou-6" + access_group_id = "pgroup-drwt29od" + protocol = "TURBO" + storage_type = "TP" + capacity = 10240 + ccn_id = "ccn-39lqkygf" + cidr_block = "11.0.0.0/24" +} +``` + +Import + +Cloud file system can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cfs_file_system.foo cfs-6hgquxmj +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_sign_up_cfs_service.md b/tencentcloud/cfs/resource_tc_cfs_sign_up_cfs_service.md new file mode 100644 index 0000000000..80c833c131 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_sign_up_cfs_service.md @@ -0,0 +1,7 @@ +Provides a resource to create a cfs sign_up_cfs_service + +Example Usage + +```hcl +resource "tencentcloud_cfs_sign_up_cfs_service" "sign_up_cfs_service" {} +``` \ No newline at end of file diff --git a/tencentcloud/cfs/resource_tc_cfs_snapshot.md b/tencentcloud/cfs/resource_tc_cfs_snapshot.md new file mode 100644 index 0000000000..53476da171 --- /dev/null +++ b/tencentcloud/cfs/resource_tc_cfs_snapshot.md @@ -0,0 +1,21 @@ +Provides a resource to create a cfs snapshot + +Example Usage + +```hcl +resource "tencentcloud_cfs_snapshot" "snapshot" { + file_system_id = "cfs-iobiaxtj" + snapshot_name = "test" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +cfs snapshot can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfs_snapshot.snapshot snapshot_id +``` \ No newline at end of file diff --git a/tencentcloud/cfw/data_source_tc_cfw_edge_fw_switches.md b/tencentcloud/cfw/data_source_tc_cfw_edge_fw_switches.md new file mode 100644 index 0000000000..3e5f84322c --- /dev/null +++ b/tencentcloud/cfw/data_source_tc_cfw_edge_fw_switches.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of cfw edge_fw_switches + +Example Usage + +```hcl +data "tencentcloud_cfw_edge_fw_switches" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/cfw/data_source_tc_cfw_nat_fw_switches.md b/tencentcloud/cfw/data_source_tc_cfw_nat_fw_switches.md new file mode 100644 index 0000000000..b2dbcd37b1 --- /dev/null +++ b/tencentcloud/cfw/data_source_tc_cfw_nat_fw_switches.md @@ -0,0 +1,20 @@ +Use this data source to query detailed information of cfw nat_fw_switches + +Example Usage + +Query Nat instance'switch by instance id + +```hcl +data "tencentcloud_cfw_nat_fw_switches" "example" { + nat_ins_id = "cfwnat-18d2ba18" +} +``` + +Or filter by switch status + +```hcl +data "tencentcloud_cfw_nat_fw_switches" "example" { + nat_ins_id = "cfwnat-18d2ba18" + status = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/cfw/data_source_tc_cfw_vpc_fw_switches.md b/tencentcloud/cfw/data_source_tc_cfw_vpc_fw_switches.md new file mode 100644 index 0000000000..332e98a208 --- /dev/null +++ b/tencentcloud/cfw/data_source_tc_cfw_vpc_fw_switches.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cfw vpc_fw_switches + +Example Usage + +```hcl +data "tencentcloud_cfw_vpc_fw_switches" "example" { + vpc_ins_id = "cfwg-c8c2de41" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_address_template.md b/tencentcloud/cfw/resource_tc_cfw_address_template.md new file mode 100644 index 0000000000..c2c2a53116 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_address_template.md @@ -0,0 +1,32 @@ +Provides a resource to create a cfw address_template + +Example Usage + +If type is 1 + +```hcl +resource "tencentcloud_cfw_address_template" "example" { + name = "tf_example" + detail = "test template" + ip_string = "1.1.1.1,2.2.2.2" + type = 1 +} +``` + +If type is 5 + +```hcl +resource "tencentcloud_cfw_address_template" "example" { + name = "tf_example" + detail = "test template" + ip_string = "www.qq.com,www.tencent.com" + type = 5 +} +``` +Import + +cfw address_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_address_template.example mb_1300846651_1695611353900 +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_block_ignore.md b/tencentcloud/cfw/resource_tc_cfw_block_ignore.md new file mode 100644 index 0000000000..6738baeddd --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_block_ignore.md @@ -0,0 +1,47 @@ +Provides a resource to create a cfw block_ignore + +~> **NOTE:** If create domain rule, `RuleType` not support set 2. + +Example Usage + +If create ip rule + +```hcl +resource "tencentcloud_cfw_block_ignore" "example" { + ip = "1.1.1.1" + direction = 0 + comment = "remark." + start_time = "2023-09-01 00:00:00" + end_time = "2023-10-01 00:00:00" + rule_type = 1 +} +``` + +If create domain rule + +```hcl +resource "tencentcloud_cfw_block_ignore" "example" { + domain = "domain.com" + direction = 1 + comment = "remark." + start_time = "2023-09-01 00:00:00" + end_time = "2023-10-01 00:00:00" + rule_type = 1 +} +``` + +Import + +cfw block_ignore_list can be imported using the id, e.g. + +If import ip rule + +``` +terraform import tencentcloud_cfw_block_ignore.example 1.1.1.1##0#1 +``` + +If import domain rule + +``` +terraform import tencentcloud_cfw_block_ignore.example domain.com##0#1 +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_edge_firewall_switch.md b/tencentcloud/cfw/resource_tc_cfw_edge_firewall_switch.md new file mode 100644 index 0000000000..93303b735a --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_edge_firewall_switch.md @@ -0,0 +1,28 @@ +Provides a resource to create a cfw edge_firewall_switch + +Example Usage + +If not set subnet_id + +```hcl +data "tencentcloud_cfw_edge_fw_switches" "example" {} + +resource "tencentcloud_cfw_edge_firewall_switch" "example" { + public_ip = data.tencentcloud_cfw_edge_fw_switches.example.data[0].public_ip + switch_mode = 1 + enable = 0 +} +``` + +If set subnet id + +```hcl +data "tencentcloud_cfw_edge_fw_switches" "example" {} + +resource "tencentcloud_cfw_edge_firewall_switch" "example" { + public_ip = data.tencentcloud_cfw_edge_fw_switches.example.data[0].public_ip + subnet_id = "subnet-id" + switch_mode = 1 + enable = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_edge_policy.md b/tencentcloud/cfw/resource_tc_cfw_edge_policy.md new file mode 100644 index 0000000000..212f7a96d0 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_edge_policy.md @@ -0,0 +1,45 @@ +Provides a resource to create a cfw edge_policy + +Example Usage + +```hcl +resource "tencentcloud_cfw_edge_policy" "example" { + source_content = "1.1.1.1/0" + source_type = "net" + target_content = "0.0.0.0/0" + target_type = "net" + protocol = "TCP" + rule_action = "drop" + port = "-1/-1" + direction = 1 + enable = "true" + description = "policy description." + scope = "all" +} +``` + +If target_type is tag + +```hcl +resource "tencentcloud_cfw_edge_policy" "example" { + source_content = "0.0.0.0/0" + source_type = "net" + target_content = jsonencode({"Key":"test","Value":"dddd"}) + target_type = "tag" + protocol = "TCP" + rule_action = "drop" + port = "-1/-1" + direction = 1 + enable = "true" + description = "policy description." + scope = "all" +} +``` + +Import + +cfw edge_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_edge_policy.example edge_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_nat_firewall_switch.md b/tencentcloud/cfw/resource_tc_cfw_nat_firewall_switch.md new file mode 100644 index 0000000000..480d2c6bf3 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_nat_firewall_switch.md @@ -0,0 +1,39 @@ +Provides a resource to create a cfw nat_firewall_switch + +Example Usage + +Turn off switch + +```hcl +data "tencentcloud_cfw_nat_fw_switches" "example" { + nat_ins_id = "cfwnat-18d2ba18" +} + +resource "tencentcloud_cfw_nat_firewall_switch" "example" { + nat_ins_id = data.tencentcloud_cfw_nat_fw_switches.example.id + subnet_id = data.tencentcloud_cfw_nat_fw_switches.example.data[0].subnet_id + enable = 0 +} +``` + +Or turn on switch + +```hcl +data "tencentcloud_cfw_nat_fw_switches" "example" { + nat_ins_id = "cfwnat-18d2ba18" +} + +resource "tencentcloud_cfw_nat_firewall_switch" "example" { + nat_ins_id = data.tencentcloud_cfw_nat_fw_switches.example.id + subnet_id = data.tencentcloud_cfw_nat_fw_switches.example.data[0].subnet_id + enable = 1 +} +``` + +Import + +cfw nat_firewall_switch can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_nat_firewall_switch.example cfwnat-18d2ba18#subnet-ef7wyymr +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_nat_instance.md b/tencentcloud/cfw/resource_tc_cfw_nat_instance.md new file mode 100644 index 0000000000..e0d5a1e757 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_nat_instance.md @@ -0,0 +1,52 @@ +Provides a resource to create a cfw nat_instance + +Example Usage + +If mode is 0 + +```hcl +resource "tencentcloud_cfw_nat_instance" "example" { + name = "tf_example" + width = 20 + mode = 0 + new_mode_items { + vpc_list = [ + "vpc-5063ta4i" + ] + eips = [ + "152.136.168.192" + ] + } + cross_a_zone = 0 + zone_set = [ + "ap-guangzhou-7" + ] +} +``` + +If mode is 1 + +```hcl +resource "tencentcloud_cfw_nat_instance" "example" { + name = "tf_example" + width = 20 + mode = 1 + nat_gw_list = [ + "nat-9wwkz1kr" + ] + cross_a_zone = 1 + cross_a_zone = 0 + zone_set = [ + "ap-guangzhou-6", + "ap-guangzhou-7" + ] +} +``` + +Import + +cfw nat_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_nat_instance.example cfwnat-54a21421 +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_nat_policy.md b/tencentcloud/cfw/resource_tc_cfw_nat_policy.md new file mode 100644 index 0000000000..f32550a666 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_nat_policy.md @@ -0,0 +1,26 @@ +Provides a resource to create a cfw nat_policy + +Example Usage + +```hcl +resource "tencentcloud_cfw_nat_policy" "example" { + source_content = "1.1.1.1/0" + source_type = "net" + target_content = "0.0.0.0/0" + target_type = "net" + protocol = "TCP" + rule_action = "drop" + port = "-1/-1" + direction = 1 + enable = "true" + description = "policy description." +} +``` + +Import + +cfw nat_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_nat_policy.example nat_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_sync_asset.md b/tencentcloud/cfw/resource_tc_cfw_sync_asset.md new file mode 100644 index 0000000000..5f32d202f1 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_sync_asset.md @@ -0,0 +1,7 @@ +Provides a resource to create a cfw sync_asset + +Example Usage + +```hcl +resource "tencentcloud_cfw_sync_asset" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_sync_route.md b/tencentcloud/cfw/resource_tc_cfw_sync_route.md new file mode 100644 index 0000000000..fc3a376adb --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_sync_route.md @@ -0,0 +1,10 @@ +Provides a resource to create a cfw sync_route + +Example Usage + +```hcl +resource "tencentcloud_cfw_sync_route" "example" { + sync_type = "Route" + fw_type = "nat" +} +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_vpc_firewall_switch.md b/tencentcloud/cfw/resource_tc_cfw_vpc_firewall_switch.md new file mode 100644 index 0000000000..c9d307458a --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_vpc_firewall_switch.md @@ -0,0 +1,38 @@ +Provides a resource to create a cfw vpc_firewall_switch + +Example Usage + +Turn off switch + +```hcl +data "tencentcloud_cfw_vpc_fw_switches" "example" { + vpc_ins_id = "cfwg-c8c2de41" +} + +resource "tencentcloud_cfw_vpc_firewall_switch" "example" { + vpc_ins_id = data.tencentcloud_cfw_vpc_fw_switches.example.id + switch_id = data.tencentcloud_cfw_vpc_fw_switches.example.switch_list[0].switch_id + enable = 0 +} +``` + +Or turn on switch + +```hcl +data "tencentcloud_cfw_vpc_fw_switches" "example" { + vpc_ins_id = "cfwg-c8c2de41" +} + +resource "tencentcloud_cfw_vpc_firewall_switch" "example" { + vpc_ins_id = data.tencentcloud_cfw_vpc_fw_switches.example.id + switch_id = data.tencentcloud_cfw_vpc_fw_switches.example.switch_list[0].switch_id + enable = 1 +} +``` +Import + +cfw vpc_firewall_switch can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_vpc_firewall_switch.example cfwg-c8c2de41#cfws-f2c63ded84 +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_vpc_instance.md b/tencentcloud/cfw/resource_tc_cfw_vpc_instance.md new file mode 100644 index 0000000000..3144a8d382 --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_vpc_instance.md @@ -0,0 +1,65 @@ +Provides a resource to create a cfw vpc_instance + +Example Usage + +If mode is 0 + +```hcl +resource "tencentcloud_cfw_vpc_instance" "example" { + name = "tf_example" + mode = 0 + + vpc_fw_instances { + name = "fw_ins_example" + vpc_ids = [ + "vpc-291vnoeu", + "vpc-39ixq9ci" + ] + fw_deploy { + deploy_region = "ap-guangzhou" + width = 1024 + cross_a_zone = 1 + zone_set = [ + "ap-guangzhou-6", + "ap-guangzhou-7" + ] + } + } + + switch_mode = 1 + fw_vpc_cidr = "auto" +} +``` + +If mode is 1 + +```hcl +resource "tencentcloud_cfw_vpc_instance" "example" { + name = "tf_example" + mode = 1 + + vpc_fw_instances { + name = "fw_ins_example" + fw_deploy { + deploy_region = "ap-guangzhou" + width = 1024 + cross_a_zone = 0 + zone_set = [ + "ap-guangzhou-6" + ] + } + } + + ccn_id = "ccn-peihfqo7" + switch_mode = 1 + fw_vpc_cidr = "auto" +} +``` + +Import + +cfw vpc_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_vpc_instance.example cfwg-4ee69507 +``` \ No newline at end of file diff --git a/tencentcloud/cfw/resource_tc_cfw_vpc_policy.md b/tencentcloud/cfw/resource_tc_cfw_vpc_policy.md new file mode 100644 index 0000000000..edd319d3bf --- /dev/null +++ b/tencentcloud/cfw/resource_tc_cfw_vpc_policy.md @@ -0,0 +1,26 @@ +Provides a resource to create a cfw vpc_policy + +Example Usage + +```hcl +resource "tencentcloud_cfw_vpc_policy" "example" { + source_content = "0.0.0.0/0" + source_type = "net" + dest_content = "192.168.0.2" + dest_type = "net" + protocol = "ANY" + rule_action = "log" + port = "-1/-1" + description = "description." + enable = "true" + fw_group_id = "ALL" +} +``` + +Import + +cfw vpc_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_cfw_vpc_policy.vpc_policy vpc_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/data_source_tc_chdfs_access_groups.md b/tencentcloud/chdfs/data_source_tc_chdfs_access_groups.md new file mode 100644 index 0000000000..e9868683c5 --- /dev/null +++ b/tencentcloud/chdfs/data_source_tc_chdfs_access_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of chdfs access_groups + +Example Usage + +```hcl +data "tencentcloud_chdfs_access_groups" "access_groups" { + vpc_id = "vpc-pewdpc0d" +} +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/data_source_tc_chdfs_file_systems.md b/tencentcloud/chdfs/data_source_tc_chdfs_file_systems.md new file mode 100644 index 0000000000..094dd1825d --- /dev/null +++ b/tencentcloud/chdfs/data_source_tc_chdfs_file_systems.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of chdfs file_systems + +Example Usage + +```hcl +data "tencentcloud_chdfs_file_systems" "file_systems" {} +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/data_source_tc_chdfs_mount_points.md b/tencentcloud/chdfs/data_source_tc_chdfs_mount_points.md new file mode 100644 index 0000000000..1e927958dc --- /dev/null +++ b/tencentcloud/chdfs/data_source_tc_chdfs_mount_points.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of chdfs mount_points + +Example Usage + +```hcl +data "tencentcloud_chdfs_mount_points" "mount_points" { + file_system_id = "f14mpfy5lh4e" +} +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/resource_tc_chdfs_access_group.md b/tencentcloud/chdfs/resource_tc_chdfs_access_group.md new file mode 100644 index 0000000000..b3cb1214ef --- /dev/null +++ b/tencentcloud/chdfs/resource_tc_chdfs_access_group.md @@ -0,0 +1,20 @@ +Provides a resource to create a chdfs access_group + +Example Usage + +```hcl +resource "tencentcloud_chdfs_access_group" "access_group" { + access_group_name = "testAccessGroup" + vpc_type = 1 + vpc_id = "vpc-4owdpnwr" + description = "test access group" +} +``` + +Import + +chdfs access_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_chdfs_access_group.access_group access_group_id +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/resource_tc_chdfs_access_rule.md b/tencentcloud/chdfs/resource_tc_chdfs_access_rule.md new file mode 100644 index 0000000000..1f6c10f726 --- /dev/null +++ b/tencentcloud/chdfs/resource_tc_chdfs_access_rule.md @@ -0,0 +1,23 @@ +Provides a resource to create a chdfs access_rule + +Example Usage + +```hcl +resource "tencentcloud_chdfs_access_rule" "access_rule" { + access_group_id = "ag-bvmzrbsm" + + access_rule { + access_mode = 2 + address = "10.0.1.1" + priority = 12 + } +} +``` + +Import + +chdfs access_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_chdfs_access_rule.access_rule access_group_id#access_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/resource_tc_chdfs_file_system.md b/tencentcloud/chdfs/resource_tc_chdfs_file_system.md new file mode 100644 index 0000000000..39e61b26c6 --- /dev/null +++ b/tencentcloud/chdfs/resource_tc_chdfs_file_system.md @@ -0,0 +1,29 @@ +Provides a resource to create a chdfs file_system + +Example Usage + +```hcl +resource "tencentcloud_chdfs_file_system" "file_system" { + capacity_quota = 10995116277760 + description = "file system for terraform test" + enable_ranger = true + file_system_name = "terraform-test" + posix_acl = false + ranger_service_addresses = [ + "127.0.0.1:80", + "127.0.0.1:8000", + ] + super_users = [ + "terraform", + "iac", + ] +} +``` + +Import + +chdfs file_system can be imported using the id, e.g. + +``` +terraform import tencentcloud_chdfs_file_system.file_system file_system_id +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/resource_tc_chdfs_life_cycle_rule.md b/tencentcloud/chdfs/resource_tc_chdfs_life_cycle_rule.md new file mode 100644 index 0000000000..7f432519c9 --- /dev/null +++ b/tencentcloud/chdfs/resource_tc_chdfs_life_cycle_rule.md @@ -0,0 +1,28 @@ +Provides a resource to create a chdfs life_cycle_rule + +Example Usage + +```hcl +resource "tencentcloud_chdfs_life_cycle_rule" "life_cycle_rule" { + file_system_id = "f14mpfy5lh4e" + + life_cycle_rule { + life_cycle_rule_name = "terraform-test" + path = "/test" + status = 1 + + transitions { + days = 30 + type = 1 + } + } +} +``` + +Import + +chdfs life_cycle_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_chdfs_life_cycle_rule.life_cycle_rule file_system_id#life_cycle_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/resource_tc_chdfs_mount_point.md b/tencentcloud/chdfs/resource_tc_chdfs_mount_point.md new file mode 100644 index 0000000000..d937c765a8 --- /dev/null +++ b/tencentcloud/chdfs/resource_tc_chdfs_mount_point.md @@ -0,0 +1,19 @@ +Provides a resource to create a chdfs mount_point + +Example Usage + +```hcl +resource "tencentcloud_chdfs_mount_point" "mount_point" { + file_system_id = "f14mpfy5lh4e" + mount_point_name = "terraform-test" + mount_point_status = 1 +} +``` + +Import + +chdfs mount_point can be imported using the id, e.g. + +``` +terraform import tencentcloud_chdfs_mount_point.mount_point mount_point_id +``` \ No newline at end of file diff --git a/tencentcloud/chdfs/resource_tc_chdfs_mount_point_attachment.md b/tencentcloud/chdfs/resource_tc_chdfs_mount_point_attachment.md new file mode 100644 index 0000000000..64c09e7d94 --- /dev/null +++ b/tencentcloud/chdfs/resource_tc_chdfs_mount_point_attachment.md @@ -0,0 +1,21 @@ +Provides a resource to create a chdfs mount_point_attachment + +Example Usage + +```hcl +resource "tencentcloud_chdfs_mount_point_attachment" "mount_point_attachment" { + access_group_ids = [ + "ag-bvmzrbsm", + "ag-lairqrgr", + ] + mount_point_id = "f14mpfy5lh4e-KuiL" +} +``` + +Import + +chdfs mount_point_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_chdfs_mount_point_attachment.mount_point_attachment mount_point_id +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_bucket_attachment.md b/tencentcloud/ci/resource_tc_ci_bucket_attachment.md new file mode 100644 index 0000000000..e2cdca14d5 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_bucket_attachment.md @@ -0,0 +1,17 @@ +Provides a resource to create a ci bucket + +Example Usage + +```hcl +resource "tencentcloud_ci_bucket_attachment" "bucket_attachment" { + bucket = "terraform-ci-xxxxxx" +} +``` + +Import + +ci bucket can be imported using the id, e.g. + +``` +terraform import tencentcloud_ci_bucket_attachment.bucket_attachment terraform-ci-xxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_bucket_pic_style.md b/tencentcloud/ci/resource_tc_ci_bucket_pic_style.md new file mode 100644 index 0000000000..2fd134dea3 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_bucket_pic_style.md @@ -0,0 +1,19 @@ +Provides a resource to create a ci bucket_pic_style + +Example Usage + +```hcl +resource "tencentcloud_ci_bucket_pic_style" "bucket_pic_style" { + bucket = "terraform-ci-xxxxxx" + style_name = "rayscale_2" + style_body = "imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100" +} +``` + +Import + +ci bucket_pic_style can be imported using the bucket#styleName, e.g. + +``` +terraform import tencentcloud_ci_bucket_pic_style.bucket_pic_style terraform-ci-xxxxxx#rayscale_2 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_guetzli.md b/tencentcloud/ci/resource_tc_ci_guetzli.md new file mode 100644 index 0000000000..0d8374e2ce --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_guetzli.md @@ -0,0 +1,20 @@ +Manage Guetzli compression functionality + +Example Usage + +```hcl + +resource "tencentcloud_ci_guetzli" "foo" { + bucket = "examplebucket-1250000000" + status = "on" +} + +``` + +Import + +Resource guetzli can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_ci_guetzli.example examplebucket-1250000000 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_hot_link.md b/tencentcloud/ci/resource_tc_ci_hot_link.md new file mode 100644 index 0000000000..2fcf9e5bea --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_hot_link.md @@ -0,0 +1,19 @@ +Provides a resource to create a ci hot_link + +Example Usage + +```hcl +resource "tencentcloud_ci_hot_link" "hot_link" { + bucket = "terraform-ci-xxxxxx" + url = ["10.0.0.1", "10.0.0.2"] + type = "white" +} +``` + +Import + +ci hot_link can be imported using the bucket, e.g. + +``` +terraform import tencentcloud_ci_hot_link.hot_link terraform-ci-xxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_animation_template.md b/tencentcloud/ci/resource_tc_ci_media_animation_template.md new file mode 100644 index 0000000000..64171a4282 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_animation_template.md @@ -0,0 +1,29 @@ +Provides a resource to create a ci media_animation_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_animation_template" "media_animation_template" { + bucket = "terraform-ci-1308919341" + name = "animation_template-002" + container { + format = "gif" + } + video { + codec = "gif" + width = "1280" + height = "" + fps = "20" + animate_only_keep_key_frame = "true" + animate_time_interval_of_frame = "" + animate_frames_per_second = "" + quality = "" + + } + time_interval { + start = "0" + duration = "60" + + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_concat_template.md b/tencentcloud/ci/resource_tc_ci_media_concat_template.md new file mode 100644 index 0000000000..6545711807 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_concat_template.md @@ -0,0 +1,60 @@ +Provides a resource to create a ci media_concat_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_concat_template" "media_concat_template" { + bucket = "terraform-ci-xxxxxx" + name = "concat_templates" + concat_template { + concat_fragment { + url = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4" + mode = "Start" + } + concat_fragment { + url = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4" + mode = "End" + } + audio { + codec = "mp3" + samplerate = "" + bitrate = "" + channels = "" + } + video { + codec = "H.264" + width = "1280" + height = "" + bitrate = "1000" + fps = "25" + crf = "" + remove = "" + rotate = "" + } + container { + format = "mp4" + } + audio_mix { + audio_source = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3" + mix_mode = "Once" + replace = "true" + effect_config { + enable_start_fadein = "true" + start_fadein_time = "3" + enable_end_fadeout = "false" + end_fadeout_time = "0.1" + enable_bgm_fade = "true" + bgm_fade_time = "1.7" + } + } + } +} +``` + +Import + +ci media_concat_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_concat_template.media_concat_template id=terraform-ci-xxxxxx#t1cb115dfa1fcc414284f83b7c69bcedcf +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_pic_process_template.md b/tencentcloud/ci/resource_tc_ci_media_pic_process_template.md new file mode 100644 index 0000000000..34bcc42e9a --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_pic_process_template.md @@ -0,0 +1,23 @@ +Provides a resource to create a ci media_pic_process_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_pic_process_template" "media_pic_process_template" { + bucket = "terraform-ci-xxxxxx" + name = "pic_process_template" + pic_process { + is_pic_info = "true" + process_rule = "imageMogr2/rotate/90" + + } +} +``` + +Import + +ci media_pic_process_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_pic_process_template.media_pic_process_template terraform-ci-xxxxx#t184a8a26da4674c80bf260c1e34131a65 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_smart_cover_template.md b/tencentcloud/ci/resource_tc_ci_media_smart_cover_template.md new file mode 100644 index 0000000000..7b28665b93 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_smart_cover_template.md @@ -0,0 +1,25 @@ +Provides a resource to create a ci media_smart_cover_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_smart_cover_template" "media_smart_cover_template" { + bucket = "terraform-ci-xxxxxx" + name = "smart_cover_template" + smart_cover { + format = "jpg" + width = "1280" + height = "960" + count = "10" + delete_duplicates = "true" + } +} +``` + +Import + +ci media_smart_cover_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_smart_cover_template.media_smart_cover_template terraform-ci-xxxxxx#t1ede83acc305e423799d638044d859fb7 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_snapshot_template.md b/tencentcloud/ci/resource_tc_ci_media_snapshot_template.md new file mode 100644 index 0000000000..4a8e5c9622 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_snapshot_template.md @@ -0,0 +1,29 @@ +Provides a resource to create a ci media_snapshot_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_snapshot_template" "media_snapshot_template" { + bucket = "terraform-ci-xxxxxx" + name = "snapshot_template_test" + snapshot { + count = "10" + snapshot_out_mode = "SnapshotAndSprite" + sprite_snapshot_config { + color = "White" + columns = "10" + lines = "10" + margin = "10" + padding = "10" + } + } +} +``` + +Import + +ci media_snapshot_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_snapshot_template.media_snapshot_template terraform-ci-xxxxxx#t18210645f96564eaf80e86b1f58c20152 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_speech_recognition_template.md b/tencentcloud/ci/resource_tc_ci_media_speech_recognition_template.md new file mode 100644 index 0000000000..b9a7070042 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_speech_recognition_template.md @@ -0,0 +1,30 @@ +Provides a resource to create a ci media_speech_recognition_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_speech_recognition_template" "media_speech_recognition_template" { + bucket = "terraform-ci-1308919341" + name = "speech_recognition_template" + speech_recognition { + engine_model_type = "16k_zh" + channel_num = "1" + res_text_format = "1" + filter_dirty = "0" + filter_modal = "1" + convert_num_mode = "0" + speaker_diarization = "1" + speaker_number = "0" + filter_punc = "0" + output_file_type = "txt" + } +} +``` + +Import + +ci media_speech_recognition_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_speech_recognition_template.media_speech_recognition_template terraform-ci-xxxxxx#t1d794430f2f1f4350b11e905ce2c6167e +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_super_resolution_template.md b/tencentcloud/ci/resource_tc_ci_media_super_resolution_template.md new file mode 100644 index 0000000000..f10e6b5499 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_super_resolution_template.md @@ -0,0 +1,21 @@ +Provides a resource to create a ci media_super_resolution_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_super_resolution_template" "media_super_resolution_template" { + bucket = "terraform-ci-1308919341" + name = "super_resolution_template" + resolution = "sdtohd" + enable_scale_up = "true" + version = "Enhance" +} +``` + +Import + +ci media_super_resolution_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_super_resolution_template.media_super_resolution_template terraform-ci-xxxxxx#t1d707eb2be3294e22b47123894f85cb8f +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_transcode_pro_template.md b/tencentcloud/ci/resource_tc_ci_media_transcode_pro_template.md new file mode 100644 index 0000000000..147df6ec7e --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_transcode_pro_template.md @@ -0,0 +1,57 @@ +Provides a resource to create a ci media_transcode_pro_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_transcode_pro_template" "media_transcode_pro_template" { + bucket = "terraform-ci-xxxxxx" + name = "transcode_pro_template" + container { + format = "mxf" + # clip_config { + # duration = "" + # } + + } + video { + codec = "xavc" + profile = "XAVC-HD_422_10bit" + width = "1920" + height = "1080" + interlaced = "true" + fps = "30000/1001" + bitrate = "50000" + # rotate = "" + + } + time_interval { + start = "" + duration = "" + + } + audio { + codec = "pcm_s24le" + remove = "true" + + } + trans_config { + adj_dar_method = "scale" + is_check_reso = "false" + reso_adj_method = "1" + is_check_video_bitrate = "false" + video_bitrate_adj_method = "0" + is_check_audio_bitrate = "false" + audio_bitrate_adj_method = "0" + delete_metadata = "false" + is_hdr2_sdr = "false" + } +} +``` + +Import + +ci media_transcode_pro_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_transcode_pro_template.media_transcode_pro_template terraform-ci-xxxxxx#t13ed9af009da0414e9c7c63456ec8f4d2 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_transcode_template.md b/tencentcloud/ci/resource_tc_ci_media_transcode_template.md new file mode 100644 index 0000000000..bb621d8af9 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_transcode_template.md @@ -0,0 +1,79 @@ +Provides a resource to create a ci media_transcode_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_transcode_template" "media_transcode_template" { + bucket = "terraform-ci-1308919341" + name = "transcode_template" + container { + format = "mp4" + # clip_config { + # duration = "" + # } + } + video { + codec = "H.264" + width = "1280" + # height = "" + fps = "30" + remove = "false" + profile = "high" + bitrate = "1000" + # crf = "" + # gop = "" + preset = "medium" + # bufsize = "" + # maxrate = "" + # pixfmt = "" + long_short_mode = "false" + # rotate = "" + } + time_interval { + start = "0" + duration = "60" + } + audio { + codec = "aac" + samplerate = "44100" + bitrate = "128" + channels = "4" + remove = "false" + keep_two_tracks = "false" + switch_track = "false" + sample_format = "" + } + trans_config { + adj_dar_method = "scale" + is_check_reso = "false" + reso_adj_method = "1" + is_check_video_bitrate = "false" + video_bitrate_adj_method = "0" + is_check_audio_bitrate = "false" + audio_bitrate_adj_method = "0" + delete_metadata = "false" + is_hdr2_sdr = "false" + } + audio_mix { + audio_source = "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3" + mix_mode = "Once" + replace = "true" + effect_config { + enable_start_fadein = "true" + start_fadein_time = "3" + enable_end_fadeout = "false" + end_fadeout_time = "0" + enable_bgm_fade = "true" + bgm_fade_time = "1.7" + } + } +} +``` + +Import + +ci media_transcode_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_transcode_template.media_transcode_template media_transcode_template_id +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_tts_template.md b/tencentcloud/ci/resource_tc_ci_media_tts_template.md new file mode 100644 index 0000000000..16688ccdb4 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_tts_template.md @@ -0,0 +1,23 @@ +Provides a resource to create a ci media_tts_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_tts_template" "media_tts_template" { + bucket = "terraform-ci-xxxxxx" + name = "tts_template" + mode = "Asyc" + codec = "pcm" + voice_type = "ruxue" + volume = "0" + speed = "100" +} +``` + +Import + +ci media_tts_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_tts_template.media_tts_template terraform-ci-xxxxxx#t1ed421df8bd2140b6b73474f70f99b0f8 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_video_montage_template.md b/tencentcloud/ci/resource_tc_ci_media_video_montage_template.md new file mode 100644 index 0000000000..684fdc50da --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_video_montage_template.md @@ -0,0 +1,54 @@ +Provides a resource to create a ci media_video_montage_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_video_montage_template" "media_video_montage_template" { + bucket = "terraform-ci-xxxxx" + name = "video_montage_template" + duration = "10.5" + audio { + codec = "aac" + samplerate = "44100" + bitrate = "128" + channels = "4" + remove = "false" + + } + video { + codec = "H.264" + width = "1280" + height = "" + bitrate = "1000" + fps = "25" + crf = "" + remove = "" + } + container { + format = "mp4" + + } + audio_mix { + audio_source = "https://terraform-ci-xxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3" + mix_mode = "Once" + replace = "true" + # effect_config { + # enable_start_fadein = "" + # start_fadein_time = "" + # enable_end_fadeout = "" + # end_fadeout_time = "" + # enable_bgm_fade = "" + # bgm_fade_time = "" + # } + + } +} +``` + +Import + +ci media_video_montage_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_video_montage_template.media_video_montage_template terraform-ci-xxxxxx#t193e5ecc1b8154e57a8376b4405ad9c63 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_video_process_template.md b/tencentcloud/ci/resource_tc_ci_media_video_process_template.md new file mode 100644 index 0000000000..519164a430 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_video_process_template.md @@ -0,0 +1,31 @@ +Provides a resource to create a ci media_video_process_template + +Example Usage + +```hcl + +resource "tencentcloud_ci_media_video_process_template" "media_video_process_template" { + bucket = "terraform-ci-xxxxxx" + name = "video_process_template" + color_enhance { + enable = "true" + contrast = "" + correction = "" + saturation = "" + + } + ms_sharpen { + enable = "false" + sharpen_level = "" + + } +} +``` + +Import + +ci media_video_process_template can be imported using the bucket#templateId, e.g. + +``` +terraform import tencentcloud_ci_media_video_process_template.media_video_process_template terraform-ci-xxxxxx#t1d5694d87639a4593a9fd7e9025d26f52 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_voice_separate_template.md b/tencentcloud/ci/resource_tc_ci_media_voice_separate_template.md new file mode 100644 index 0000000000..e8e976fae9 --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_voice_separate_template.md @@ -0,0 +1,25 @@ +Provides a resource to create a ci media_voice_separate_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_voice_separate_template" "media_voice_separate_template" { + bucket = "terraform-ci-xxxxx" + name = "voice_separate_template" + audio_mode = "IsAudio" + audio_config { + codec = "aac" + samplerate = "44100" + bitrate = "128" + channels = "4" + } +} +``` + +Import + +ci media_voice_separate_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_ci_media_voice_separate_template.media_voice_separate_template terraform-ci-xxxxxx#t1c95566664530460d9bc2b6265feb7c32 +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_media_watermark_template.md b/tencentcloud/ci/resource_tc_ci_media_watermark_template.md new file mode 100644 index 0000000000..8116371fab --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_media_watermark_template.md @@ -0,0 +1,42 @@ +Provides a resource to create a ci media_watermark_template + +Example Usage + +```hcl +resource "tencentcloud_ci_media_watermark_template" "media_watermark_template" { + bucket = "terraform-ci-1308919341" + name = "watermark_template" + watermark { + type = "Text" + pos = "TopRight" + loc_mode = "Absolute" + dx = "128" + dy = "128" + start_time = "0" + end_time = "100.5" + # image { + # url = "" + # mode = "" + # width = "" + # height = "" + # transparency = "" + # background = "" + # } + text { + font_size = "30" + font_type = "simfang.ttf" + font_color = "0xF0F8F0" + transparency = "30" + text = "watermark-content" + } + } +} +``` + +Import + +ci media_watermark_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_ci_media_watermark_template.media_watermark_template media_watermark_template_id +``` \ No newline at end of file diff --git a/tencentcloud/ci/resource_tc_ci_original_image_protection.md b/tencentcloud/ci/resource_tc_ci_original_image_protection.md new file mode 100644 index 0000000000..df0ca5d6ef --- /dev/null +++ b/tencentcloud/ci/resource_tc_ci_original_image_protection.md @@ -0,0 +1,20 @@ +Manage original image protection functionality + +Example Usage + +```hcl + +resource "tencentcloud_ci_original_image_protection" "foo" { + bucket = "examplebucket-1250000000" + status = "on" +} + +``` + +Import + +Resource original image protection can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_ci_original_image_protection.example examplebucket-1250000000 +``` \ No newline at end of file diff --git a/tencentcloud/ciam/resource_tc_ciam_user_group.md b/tencentcloud/ciam/resource_tc_ciam_user_group.md new file mode 100644 index 0000000000..351413d68f --- /dev/null +++ b/tencentcloud/ciam/resource_tc_ciam_user_group.md @@ -0,0 +1,25 @@ +Provides a resource to create a ciam user group + +Example Usage + +```hcl +resource "tencentcloud_ciam_user_store" "user_store" { + user_pool_name = "tf_user_store" + user_pool_desc = "for terraform test" + user_pool_logo = "https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png" +} + +resource "tencentcloud_ciam_user_group" "user_group" { + display_name = "tf_user_group" + user_store_id = tencentcloud_ciam_user_store.user_store.id + description = "for terrafrom test" +} +``` + +Import + +ciam user_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_ciam_user_group.user_group userStoreId#userGroupId +``` \ No newline at end of file diff --git a/tencentcloud/ciam/resource_tc_ciam_user_store.md b/tencentcloud/ciam/resource_tc_ciam_user_store.md new file mode 100644 index 0000000000..6bb4655cc5 --- /dev/null +++ b/tencentcloud/ciam/resource_tc_ciam_user_store.md @@ -0,0 +1,19 @@ +Provides a resource to create a ciam user store + +Example Usage + +```hcl +resource "tencentcloud_ciam_user_store" "user_store" { + user_pool_name = "tf_user_store" + user_pool_desc = "for terraform test 123" + user_pool_logo = "https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png" +} +``` + +Import + +ciam user_store can be imported using the id, e.g. + +``` +terraform import tencentcloud_ciam_user_store.user_store userStoreId +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_acls.md b/tencentcloud/ckafka/data_source_tc_ckafka_acls.md new file mode 100644 index 0000000000..bfc060dac5 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_acls.md @@ -0,0 +1,12 @@ +Use this data source to query detailed acl information of Ckafka + +Example Usage + +```hcl +data "tencentcloud_ckafka_acls" "foo" { + instance_id = "ckafka-f9ife4zz" + resource_type = "TOPIC" + resource_name = "topic-tf-test" + host = "2" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_connect_resource.md b/tencentcloud/ckafka/data_source_tc_ckafka_connect_resource.md new file mode 100644 index 0000000000..ae38cd4933 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_connect_resource.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ckafka connect_resource + +Example Usage + +```hcl +data "tencentcloud_ckafka_connect_resource" "connect_resource" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_datahub_group_offsets.md b/tencentcloud/ckafka/data_source_tc_ckafka_datahub_group_offsets.md new file mode 100644 index 0000000000..4a03dbfa52 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_datahub_group_offsets.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ckafka datahub_group_offsets + +Example Usage + +```hcl +data "tencentcloud_ckafka_datahub_group_offsets" "datahub_group_offsets" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_datahub_task.md b/tencentcloud/ckafka/data_source_tc_ckafka_datahub_task.md new file mode 100644 index 0000000000..c5d50dc6a7 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_datahub_task.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ckafka datahub_task + +Example Usage + +```hcl +data "tencentcloud_ckafka_datahub_task" "datahub_task" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_datahub_topic.md b/tencentcloud/ckafka/data_source_tc_ckafka_datahub_topic.md new file mode 100644 index 0000000000..ef2ceb0592 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_datahub_topic.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ckafka datahub_topic + +Example Usage + +```hcl +data "tencentcloud_ckafka_datahub_topic" "datahub_topic" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_group.md b/tencentcloud/ckafka/data_source_tc_ckafka_group.md new file mode 100644 index 0000000000..82c4515eaa --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_group.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ckafka group + +Example Usage + +```hcl +data "tencentcloud_ckafka_group" "group" { + instance_id = "ckafka-xxxxxxx" + search_word = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_group_info.md b/tencentcloud/ckafka/data_source_tc_ckafka_group_info.md new file mode 100644 index 0000000000..b9fbbc58b9 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_group_info.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ckafka group_info + +Example Usage + +```hcl +data "tencentcloud_ckafka_group_info" "group_info" { + instance_id = "ckafka-xxxxxx" + group_list = ["xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_group_offsets.md b/tencentcloud/ckafka/data_source_tc_ckafka_group_offsets.md new file mode 100644 index 0000000000..20e27adc3e --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_group_offsets.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ckafka group_offsets + +Example Usage + +```hcl +data "tencentcloud_ckafka_group_offsets" "group_offsets" { + instance_id = "ckafka-xxxxxx" + group = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_instances.md b/tencentcloud/ckafka/data_source_tc_ckafka_instances.md new file mode 100644 index 0000000000..12ffc5de44 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_instances.md @@ -0,0 +1,9 @@ +Use this data source to query detailed instance information of Ckafka + +Example Usage + +```hcl +data "tencentcloud_ckafka_instances" "foo" { + instance_ids=["ckafka-vv7wpvae"] +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_region.md b/tencentcloud/ckafka/data_source_tc_ckafka_region.md new file mode 100644 index 0000000000..9ea933850c --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_region.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ckafka region + +Example Usage + +```hcl +data "tencentcloud_ckafka_region" "region" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_task_status.md b/tencentcloud/ckafka/data_source_tc_ckafka_task_status.md new file mode 100644 index 0000000000..acbd639ff0 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_task_status.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ckafka task_status + +Example Usage + +```hcl +data "tencentcloud_ckafka_task_status" "task_status" { + flow_id = 123456 +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_topic_flow_ranking.md b/tencentcloud/ckafka/data_source_tc_ckafka_topic_flow_ranking.md new file mode 100644 index 0000000000..1d9ceaf73d --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_topic_flow_ranking.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of ckafka topic_flow_ranking + +Example Usage + +```hcl +data "tencentcloud_ckafka_topic_flow_ranking" "topic_flow_ranking" { + instance_id = "ckafka-xxxxxx" + ranking_type = "PRO" + begin_date = "2023-05-29T00:00:00+08:00" + end_date = "2021-05-29T23:59:59+08:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_topic_produce_connection.md b/tencentcloud/ckafka/data_source_tc_ckafka_topic_produce_connection.md new file mode 100644 index 0000000000..aec5eb6ad5 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_topic_produce_connection.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ckafka topic_produce_connection + +Example Usage + +```hcl +data "tencentcloud_ckafka_topic_produce_connection" "topic_produce_connection" { + instance_id = "ckafka-xxxxxx" + topic_name = "topic-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_topic_subscribe_group.md b/tencentcloud/ckafka/data_source_tc_ckafka_topic_subscribe_group.md new file mode 100644 index 0000000000..9ca1f53c86 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_topic_subscribe_group.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ckafka topic_subscribe_group + +Example Usage + +```hcl +data "tencentcloud_ckafka_topic_subscribe_group" "topic_subscribe_group" { + instance_id = "ckafka-xxxxxx" + topic_name = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_topic_sync_replica.md b/tencentcloud/ckafka/data_source_tc_ckafka_topic_sync_replica.md new file mode 100644 index 0000000000..bd772defb2 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_topic_sync_replica.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ckafka topic_sync_replica + +Example Usage + +```hcl +data "tencentcloud_ckafka_topic_sync_replica" "topic_sync_replica" { + instance_id = "ckafka-xxxxxx" + topic_name = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_topics.md b/tencentcloud/ckafka/data_source_tc_ckafka_topics.md new file mode 100644 index 0000000000..bf2061e6f9 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_topics.md @@ -0,0 +1,21 @@ +Use this data source to query detailed information of ckafka topic. + +Example Usage + +```hcl +resource "tencentcloud_ckafka_topic" "foo" { + instance_id = "ckafka-f9ife4zz" + topic_name = "example" + note = "topic note" + replica_num = 2 + partition_num = 1 + enable_white_list = true + ip_white_list = ["ip1","ip2"] + clean_up_policy = "delete" + sync_replica_min_num = 1 + unclean_leader_election_enable = false + segment = 3600000 + retention = 60000 + max_message_bytes = 1024 +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_users.md b/tencentcloud/ckafka/data_source_tc_ckafka_users.md new file mode 100644 index 0000000000..2aa7569435 --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_users.md @@ -0,0 +1,10 @@ +Use this data source to query detailed user information of Ckafka + +Example Usage + +```hcl +data "tencentcloud_ckafka_users" "foo" { + instance_id = "ckafka-f9ife4zz" + account_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/data_source_tc_ckafka_zone.md b/tencentcloud/ckafka/data_source_tc_ckafka_zone.md new file mode 100644 index 0000000000..647516211f --- /dev/null +++ b/tencentcloud/ckafka/data_source_tc_ckafka_zone.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ckafka zone + +Example Usage + +```hcl +data "tencentcloud_ckafka_zone" "ckafka_zone" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_acl.md b/tencentcloud/ckafka/resource_tc_ckafka_acl.md new file mode 100644 index 0000000000..78ea951375 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_acl.md @@ -0,0 +1,25 @@ +Provides a resource to create a Ckafka Acl. + +Example Usage + +Ckafka Acl + +```hcl +resource "tencentcloud_ckafka_acl" "foo" { + instance_id = "ckafka-f9ife4zz" + resource_type = "TOPIC" + resource_name = "topic-tf-test" + operation_type = "WRITE" + permission_type = "ALLOW" + host = "*" + principal = tencentcloud_ckafka_user.foo.account_name +} +``` + +Import + +Ckafka acl can be imported using the instance_id#permission_type#principal#host#operation_type#resource_type#resource_name, e.g. + +``` +$ terraform import tencentcloud_ckafka_acl.foo ckafka-f9ife4zz#ALLOW#test#*#WRITE#TOPIC#topic-tf-test +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_acl_rule.md b/tencentcloud/ckafka/resource_tc_ckafka_acl_rule.md new file mode 100644 index 0000000000..7e5df64730 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_acl_rule.md @@ -0,0 +1,29 @@ +Provides a resource to create a ckafka acl_rule + +Example Usage + +```hcl +resource "tencentcloud_ckafka_acl_rule" "acl_rule" { + instance_id = "ckafka-xxx" + resource_type = "Topic" + pattern_type = "PREFIXED" + rule_name = "RuleName" + rule_list { + operation = "All" + permission_type = "Deny" + host = "*" + principal = "User:*" + + } + pattern = "prefix" + is_applied = 1 +} +``` + +Import + +ckafka acl_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_ckafka_acl_rule.acl_rule acl_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_connect_resource.md b/tencentcloud/ckafka/resource_tc_ckafka_connect_resource.md new file mode 100644 index 0000000000..285527c00e --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_connect_resource.md @@ -0,0 +1,30 @@ +Provides a resource to create a ckafka connect_resource + +Example Usage + +```hcl +resource "tencentcloud_ckafka_connect_resource" "connect_resource" { + resource_name = "terraform-test" + type = "MYSQL" + description = "for terraform test" + + mysql_connect_param { + port = 3306 + user_name = "root" + password = "xxxxxxxxx" + resource = "cdb-fitq5t9h" + service_vip = "172.16.80.59" + uniq_vpc_id = "vpc-4owdpnwr" + self_built = false + } +} + +``` + +Import + +ckafka connect_resource can be imported using the id, e.g. + +``` +terraform import tencentcloud_ckafka_connect_resource.connect_resource connect_resource_id +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_consumer_group.md b/tencentcloud/ckafka/resource_tc_ckafka_consumer_group.md new file mode 100644 index 0000000000..6503b5b4cc --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_consumer_group.md @@ -0,0 +1,19 @@ +Provides a resource to create a ckafka consumer_group + +Example Usage + +```hcl +resource "tencentcloud_ckafka_consumer_group" "consumer_group" { + instance_id = "InstanceId" + group_name = "GroupName" + topic_name_list = ["xxxxxx"] +} +``` + +Import + +ckafka consumer_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_ckafka_consumer_group.consumer_group consumer_group_id +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_consumer_group_modify_offset.md b/tencentcloud/ckafka/resource_tc_ckafka_consumer_group_modify_offset.md new file mode 100644 index 0000000000..cc0739f35e --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_consumer_group_modify_offset.md @@ -0,0 +1,13 @@ +Provides a resource to create a ckafka consumer_group_modify_offset + +Example Usage + +```hcl +resource "tencentcloud_ckafka_consumer_group_modify_offset" "consumer_group_modify_offset" { + instance_id = "ckafka-xxxxxx" + group = "xxxxxx" + offset = 0 + strategy = 2 + topics = ["xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_datahub_task.md b/tencentcloud/ckafka/resource_tc_ckafka_datahub_task.md new file mode 100644 index 0000000000..cd0dd2ee80 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_datahub_task.md @@ -0,0 +1,39 @@ +Provides a resource to create a ckafka datahub_task + +Example Usage + +```hcl +resource "tencentcloud_ckafka_datahub_task" "datahub_task" { + task_name = "test-task123321" + task_type = "SOURCE" + source_resource { + type = "POSTGRESQL" + postgre_sql_param { + database = "postgres" + table = "*" + resource = "resource-y9nxnw46" + plugin_name = "decoderbufs" + snapshot_mode = "never" + is_table_regular = false + key_columns = "" + record_with_schema = false + } + } + target_resource { + type = "TOPIC" + topic_param { + compression_type = "none" + resource = "1308726196-keep-topic" + use_auto_create_topic = false + } + } +} +``` + +Import + +ckafka datahub_task can be imported using the id, e.g. + +``` +terraform import tencentcloud_ckafka_datahub_task.datahub_task datahub_task_id +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_datahub_topic.md b/tencentcloud/ckafka/resource_tc_ckafka_datahub_topic.md new file mode 100644 index 0000000000..db43ea4bb8 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_datahub_topic.md @@ -0,0 +1,25 @@ +Provides a resource to create a ckafka datahub_topic + +Example Usage + +```hcl +data "tencentcloud_user_info" "user" {} + +resource "tencentcloud_ckafka_datahub_topic" "datahub_topic" { + name = format("%s-tf", data.tencentcloud_user_info.user.app_id) + partition_num = 20 + retention_ms = 60000 + note = "for test" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +ckafka datahub_topic can be imported using the id, e.g. + +``` +terraform import tencentcloud_ckafka_datahub_topic.datahub_topic datahub_topic_name +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_instance.md b/tencentcloud/ckafka/resource_tc_ckafka_instance.md new file mode 100644 index 0000000000..7f7988ce4e --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_instance.md @@ -0,0 +1,128 @@ +Use this resource to create ckafka instance. + +Example Usage + +Basic Instance +```hcl +variable "vpc_id" { + default = "vpc-68vi2d3h" +} + +variable "subnet_id" { + default = "subnet-ob6clqwk" +} + +data "tencentcloud_availability_zones_by_product" "gz" { + name = "ap-guangzhou-3" + product = "ckafka" +} + +resource "tencentcloud_ckafka_instance" "kafka_instance_prepaid" { + instance_name = "ckafka-instance-prepaid" + zone_id = data.tencentcloud_availability_zones_by_product.gz.zones.0.id + period = 1 + vpc_id = var.vpc_id + subnet_id = var.subnet_id + msg_retention_time = 1300 + renew_flag = 0 + kafka_version = "2.4.1" + disk_size = 200 + disk_type = "CLOUD_BASIC" + band_width = 20 + partition = 400 + + specifications_type = "standard" + instance_type = 2 + + config { + auto_create_topic_enable = true + default_num_partitions = 3 + default_replication_factor = 3 + } + + dynamic_retention_config { + enable = 1 + } +} + +resource "tencentcloud_ckafka_instance" "kafka_instance_postpaid" { + instance_name = "ckafka-instance-postpaid" + zone_id = data.tencentcloud_availability_zones_by_product.gz.zones.0.id + vpc_id = var.vpc_id + subnet_id = var.subnet_id + msg_retention_time = 1300 + kafka_version = "1.1.1" + disk_size = 200 + band_width = 20 + disk_type = "CLOUD_BASIC" + partition = 400 + charge_type = "POSTPAID_BY_HOUR" + + config { + auto_create_topic_enable = true + default_num_partitions = 3 + default_replication_factor = 3 + } + + dynamic_retention_config { + enable = 1 + } +} +``` + +Multi zone Instance +```hcl +variable "vpc_id" { + default = "vpc-68vi2d3h" +} + +variable "subnet_id" { + default = "subnet-ob6clqwk" +} + +data "tencentcloud_availability_zones_by_product" "gz3" { + name = "ap-guangzhou-3" + product = "ckafka" +} + +data "tencentcloud_availability_zones_by_product" "gz6" { + name = "ap-guangzhou-6" + product = "ckafka" +} + +resource "tencentcloud_ckafka_instance" "kafka_instance" { + instance_name = "ckafka-instance-maz-tf-test" + zone_id = data.tencentcloud_availability_zones_by_product.gz3.zones.0.id + multi_zone_flag = true + zone_ids = [ + data.tencentcloud_availability_zones_by_product.gz3.zones.0.id, + data.tencentcloud_availability_zones_by_product.gz6.zones.0.id + ] + period = 1 + vpc_id = var.vpc_id + subnet_id = var.subnet_id + msg_retention_time = 1300 + renew_flag = 0 + kafka_version = "1.1.1" + disk_size = 500 + disk_type = "CLOUD_BASIC" + + config { + auto_create_topic_enable = true + default_num_partitions = 3 + default_replication_factor = 3 + } + + dynamic_retention_config { + enable = 1 + } +} +``` + +Import + +ckafka instance can be imported using the instance_id, e.g. + +``` +$ terraform import tencentcloud_ckafka_instance.foo ckafka-f9ife4zz +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_renew_instance.md b/tencentcloud/ckafka/resource_tc_ckafka_renew_instance.md new file mode 100644 index 0000000000..2b4c333a69 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_renew_instance.md @@ -0,0 +1,10 @@ +Provides a resource to create a ckafka renew_instance + +Example Usage + +```hcl +resource "tencentcloud_ckafka_renew_instance" "renew_ckafka_instance" { + instance_id = "InstanceId" + time_span = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_route.md b/tencentcloud/ckafka/resource_tc_ckafka_route.md new file mode 100644 index 0000000000..0658ba5dd5 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_route.md @@ -0,0 +1,14 @@ +Provides a resource to create a ckafka route + +Example Usage + +```hcl +resource "tencentcloud_ckafka_route" "route" { + instance_id = "ckafka-xxxxxx" + vip_type = 3 + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxxx" + access_type = 0 + public_network = 3 +} +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_topic.md b/tencentcloud/ckafka/resource_tc_ckafka_topic.md new file mode 100644 index 0000000000..c764a46583 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_topic.md @@ -0,0 +1,29 @@ +Use this resource to create ckafka topic. + +Example Usage + +```hcl +resource "tencentcloud_ckafka_topic" "foo" { + instance_id = "ckafka-f9ife4zz" + topic_name = "example" + note = "topic note" + replica_num = 2 + partition_num = 1 + enable_white_list = true + ip_white_list = ["ip1","ip2"] + clean_up_policy = "delete" + sync_replica_min_num = 1 + unclean_leader_election_enable = false + segment = 3600000 + retention = 60000 + max_message_bytes = 0 +} +``` + +Import + +ckafka topic can be imported using the instance_id#topic_name, e.g. + +``` +$ terraform import tencentcloud_ckafka_topic.foo ckafka-f9ife4zz#example +``` \ No newline at end of file diff --git a/tencentcloud/ckafka/resource_tc_ckafka_user.md b/tencentcloud/ckafka/resource_tc_ckafka_user.md new file mode 100644 index 0000000000..0db7b7ce06 --- /dev/null +++ b/tencentcloud/ckafka/resource_tc_ckafka_user.md @@ -0,0 +1,21 @@ +Provides a resource to create a Ckafka user. + +Example Usage + +Ckafka User + +```hcl +resource "tencentcloud_ckafka_user" "foo" { + instance_id = "ckafka-f9ife4zz" + account_name = "tf-test" + password = "test1234" +} +``` + +Import + +Ckafka user can be imported using the instance_id#account_name, e.g. + +``` +$ terraform import tencentcloud_ckafka_user.foo ckafka-f9ife4zz#tf-test +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_attachments.md b/tencentcloud/clb/data_source_tc_clb_attachments.md new file mode 100644 index 0000000000..ea04fd7ea7 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_attachments.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of CLB attachments + +Example Usage + +```hcl +data "tencentcloud_clb_attachments" "clblab" { + listener_id = "lbl-hh141sn9" + clb_id = "lb-k2zjp9lv" + rule_id = "loc-4xxr2cy7" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_cluster_resources.md b/tencentcloud/clb/data_source_tc_clb_cluster_resources.md new file mode 100644 index 0000000000..d1b1b50fd3 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_cluster_resources.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of clb cluster_resources + +Example Usage + +```hcl +data "tencentcloud_clb_cluster_resources" "cluster_resources" { + filters { + name = "idle" + values = ["True"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_cross_targets.md b/tencentcloud/clb/data_source_tc_clb_cross_targets.md new file mode 100644 index 0000000000..aceae60354 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_cross_targets.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of clb cross_targets + +Example Usage + +```hcl +data "tencentcloud_clb_cross_targets" "cross_targets" { + filters { + name = "vpc-id" + values = ["vpc-4owdpnwr"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_exclusive_clusters.md b/tencentcloud/clb/data_source_tc_clb_exclusive_clusters.md new file mode 100644 index 0000000000..254e72f99a --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_exclusive_clusters.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of clb exclusive_clusters + +Example Usage + +```hcl +data "tencentcloud_clb_exclusive_clusters" "exclusive_clusters" { + filters { + name = "zone" + values = ["ap-guangzhou-1"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_idle_instances.md b/tencentcloud/clb/data_source_tc_clb_idle_instances.md new file mode 100644 index 0000000000..3b69540864 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_idle_instances.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clb idle_loadbalancers + +Example Usage + +```hcl +data "tencentcloud_clb_idle_instances" "idle_instance" { + load_balancer_region = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_instance_by_cert_id.md b/tencentcloud/clb/data_source_tc_clb_instance_by_cert_id.md new file mode 100644 index 0000000000..61a699f45f --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_instance_by_cert_id.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clb instance_by_cert_id + +Example Usage + +```hcl +data "tencentcloud_clb_instance_by_cert_id" "instance_by_cert_id" { + cert_ids = ["3a6B5y8v"] +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_instance_detail.md b/tencentcloud/clb/data_source_tc_clb_instance_detail.md new file mode 100644 index 0000000000..917a53c495 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_instance_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clb instance_detail + +Example Usage + +```hcl +data "tencentcloud_clb_instance_detail" "instance_detail" { + target_type = "NODE" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_instance_traffic.md b/tencentcloud/clb/data_source_tc_clb_instance_traffic.md new file mode 100644 index 0000000000..040d3b4feb --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_instance_traffic.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clb instance_traffic + +Example Usage + +```hcl +data "tencentcloud_clb_instance_traffic" "instance_traffic" { + load_balancer_region = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_instances.md b/tencentcloud/clb/data_source_tc_clb_instances.md new file mode 100644 index 0000000000..946e4df431 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_instances.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of CLB + +Example Usage + +```hcl +data "tencentcloud_clb_instances" "foo" { + clb_id = "lb-k2zjp9lv" + network_type = "OPEN" + clb_name = "myclb" + project_id = 0 + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_listener_rules.md b/tencentcloud/clb/data_source_tc_clb_listener_rules.md new file mode 100644 index 0000000000..5a273f804c --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_listener_rules.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of CLB listener rule + +Example Usage + +```hcl +data "tencentcloud_clb_listener_rules" "foo" { + clb_id = "lb-k2zjp9lv" + listener_id = "lbl-mwr6vbtv" + rule_id = "loc-inem40hz" + domain = "abc.com" + url = "/" + scheduler = "WRR" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_listeners.md b/tencentcloud/clb/data_source_tc_clb_listeners.md new file mode 100644 index 0000000000..dd55d627fb --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_listeners.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of CLB listener + +Example Usage + +```hcl +data "tencentcloud_clb_listeners" "foo" { + clb_id = "lb-k2zjp9lv" + listener_id = "lbl-mwr6vbtv" + protocol = "TCP" + port = 80 +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_listeners_by_targets.md b/tencentcloud/clb/data_source_tc_clb_listeners_by_targets.md new file mode 100644 index 0000000000..5bf35491a6 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_listeners_by_targets.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of clb listeners_by_targets + +Example Usage + +```hcl +data "tencentcloud_clb_listeners_by_targets" "listeners_by_targets" { + backends { + vpc_id = "vpc-4owdpnwr" + private_ip = "106.52.160.211" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_redirections.md b/tencentcloud/clb/data_source_tc_clb_redirections.md new file mode 100644 index 0000000000..4011093a93 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_redirections.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of CLB redirections + +Example Usage + +```hcl +data "tencentcloud_clb_redirections" "foo" { + clb_id = "lb-p7olt9e5" + source_listener_id = "lbl-jc1dx6ju" + target_listener_id = "lbl-asj1hzuo" + source_rule_id = "loc-ft8fmngv" + target_rule_id = "loc-4xxr2cy7" + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_resources.md b/tencentcloud/clb/data_source_tc_clb_resources.md new file mode 100644 index 0000000000..1dc5ea8a16 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_resources.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of clb resources + +Example Usage + +```hcl +data "tencentcloud_clb_resources" "resources" { + filters { + name = "isp" + values = ["BGP"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_target_group_list.md b/tencentcloud/clb/data_source_tc_clb_target_group_list.md new file mode 100644 index 0000000000..5507c754c0 --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_target_group_list.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of clb target_group_list + +Example Usage + +```hcl +data "tencentcloud_clb_target_group_list" "target_group_list" { + filters { + name = "TargetGroupName" + values = ["keep-tgg"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_target_groups.md b/tencentcloud/clb/data_source_tc_clb_target_groups.md new file mode 100644 index 0000000000..fd4f2d32de --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_target_groups.md @@ -0,0 +1,42 @@ +Use this data source to query target group information. + +Example Usage + +```hcl +resource "tencentcloud_clb_instance" "clb_basic" { + network_type = "OPEN" + clb_name = "tf-clb-rule-basic" +} + +resource "tencentcloud_clb_listener" "listener_basic" { + clb_id = tencentcloud_clb_instance.clb_basic.id + port = 1 + protocol = "HTTP" + listener_name = "listener_basic" +} + +resource "tencentcloud_clb_listener_rule" "rule_basic" { + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_id = tencentcloud_clb_listener.listener_basic.listener_id + domain = "abc.com" + url = "/" + session_expire_time = 30 + scheduler = "WRR" + target_type = "TARGETGROUP" +} + +resource "tencentcloud_clb_target_group" "test"{ + target_group_name = "test-target-keep-1" +} + +resource "tencentcloud_clb_target_group_attachment" "group" { + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_id = tencentcloud_clb_listener.listener_basic.listener_id + rule_id = tencentcloud_clb_listener_rule.rule_basic.rule_id + targrt_group_id = tencentcloud_clb_target_group.test.id +} + +data "tencentcloud_clb_target_groups" "target_group_info_id" { + target_group_id = tencentcloud_clb_target_group.test.id +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/data_source_tc_clb_target_health.md b/tencentcloud/clb/data_source_tc_clb_target_health.md new file mode 100644 index 0000000000..b42c212a4e --- /dev/null +++ b/tencentcloud/clb/data_source_tc_clb_target_health.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of clb target_health + +Example Usage + +```hcl +data "tencentcloud_clb_target_health" "target_health" { + load_balancer_ids = ["lb-5dnrkgry"] +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_alb_server_attachment.md b/tencentcloud/clb/resource_tc_alb_server_attachment.md new file mode 100644 index 0000000000..78481d8e98 --- /dev/null +++ b/tencentcloud/clb/resource_tc_alb_server_attachment.md @@ -0,0 +1,28 @@ +Provides an tencentcloud application load balancer servers attachment as a resource, to attach and detach instances from load balancer. + +~> **NOTE:** It has been deprecated and replaced by `tencentcloud_clb_attachment`. + +~> **NOTE:** Currently only support existing `loadbalancer_id` `listener_id` `location_id` and Application layer 7 load balancer + +Example Usage + +```hcl +resource "tencentcloud_alb_server_attachment" "service1" { + loadbalancer_id = "lb-qk1dqox5" + listener_id = "lbl-ghoke4tl" + location_id = "loc-i858qv1l" + + backends = [ + { + instance_id = "ins-4j30i5pe" + port = 80 + weight = 50 + }, + { + instance_id = "ins-4j30i5pe" + port = 8080 + weight = 50 + }, + ] +} +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_attachment.md b/tencentcloud/clb/resource_tc_clb_attachment.md new file mode 100644 index 0000000000..1de35f8bfc --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_attachment.md @@ -0,0 +1,25 @@ +Provides a resource to create a CLB attachment. + +Example Usage + +```hcl +resource "tencentcloud_clb_attachment" "foo" { + clb_id = "lb-k2zjp9lv" + listener_id = "lbl-hh141sn9" + rule_id = "loc-4xxr2cy7" + + targets { + instance_id = "ins-1flbqyp8" + port = 80 + weight = 10 + } +} +``` + +Import + +CLB attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_attachment.foo loc-4xxr2cy7#lbl-hh141sn9#lb-7a0t6zqb +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_customized_config.md b/tencentcloud/clb/resource_tc_clb_customized_config.md new file mode 100644 index 0000000000..c271c00f3c --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_customized_config.md @@ -0,0 +1,21 @@ +Provides a resource to create a CLB customized config. + +Example Usage + +```hcl +resource "tencentcloud_clb_customized_config" "foo" { + config_content = "client_max_body_size 224M;\r\nclient_body_timeout 60s;" + config_name = "helloWorld" + load_balancer_ids = [ + "${tencentcloud_clb_instance.internal_clb.id}", + "${tencentcloud_clb_instance.internal_clb2.id}", + ] +} +``` +Import + +CLB customized config can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_customized_config.foo pz-diowqstq +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_function_targets_attachment.md b/tencentcloud/clb/resource_tc_clb_function_targets_attachment.md new file mode 100644 index 0000000000..f42f6782a0 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_function_targets_attachment.md @@ -0,0 +1,31 @@ +Provides a resource to create a clb function_targets_attachment + +Example Usage + +```hcl +resource "tencentcloud_clb_function_targets_attachment" "function_targets" { + domain = "xxx.com" + listener_id = "lbl-nonkgvc2" + load_balancer_id = "lb-5dnrkgry" + url = "/" + + function_targets { + weight = 10 + + function { + function_name = "keep-tf-test-1675954233" + function_namespace = "default" + function_qualifier = "$LATEST" + function_qualifier_type = "VERSION" + } + } +} +``` + +Import + +clb function_targets_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_clb_function_targets_attachment.function_targets loadBalancerId#listenerId#locationId or loadBalancerId#listenerId#domain#rule +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_instance.md b/tencentcloud/clb/resource_tc_clb_instance.md new file mode 100644 index 0000000000..c56da3b8a9 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_instance.md @@ -0,0 +1,224 @@ +Provides a resource to create a CLB instance. + +Example Usage + +INTERNAL CLB + +```hcl +resource "tencentcloud_clb_instance" "internal_clb" { + network_type = "INTERNAL" + clb_name = "myclb" + project_id = 0 + vpc_id = "vpc-7007ll7q" + subnet_id = "subnet-12rastkr" + + tags = { + test = "tf" + } +} +``` + +LCU-supported CLB + +```hcl +resource "tencentcloud_clb_instance" "internal_clb" { + network_type = "INTERNAL" + clb_name = "myclb" + project_id = 0 + sla_type = "clb.c3.medium" + vpc_id = "vpc-2hfyray3" + subnet_id = "subnet-o3a5nt20" + + tags = { + test = "tf" + } +} +``` + +OPEN CLB + +```hcl +resource "tencentcloud_clb_instance" "open_clb" { + network_type = "OPEN" + clb_name = "myclb" + project_id = 0 + vpc_id = "vpc-da7ffa61" + security_groups = ["sg-o0ek7r93"] + target_region_info_region = "ap-guangzhou" + target_region_info_vpc_id = "vpc-da7ffa61" + + tags = { + test = "tf" + } +} +``` + +OPNE CLB with VipIsp + +```hcl +resource "tencentcloud_vpc_bandwidth_package" "example" { + network_type = "SINGLEISP_CMCC" + charge_type = "ENHANCED95_POSTPAID_BY_MONTH" + bandwidth_package_name = "tf-example" + internet_max_bandwidth = 300 + egress = "center_egress1" + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_clb_instance" "open_clb" { + network_type = "OPEN" + clb_name = "my-open-clb" + project_id = 0 + vpc_id = "vpc-4owdpnwr" + vip_isp = "CMCC" + internet_charge_type = "BANDWIDTH_PACKAGE" + bandwidth_package_id = tencentcloud_vpc_bandwidth_package.example.id + + tags = { + test = "open" + } +} +``` + +Dynamic Vip Instance + +```hcl +resource "tencentcloud_security_group" "foo" { + name = "clb-instance-open-sg" +} + +resource "tencentcloud_vpc" "foo" { + name = "clb-instance-open-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_clb_instance" "clb_open" { + network_type = "OPEN" + clb_name = "clb-instance-open" + project_id = 0 + vpc_id = tencentcloud_vpc.foo.id + target_region_info_region = "ap-guangzhou" + target_region_info_vpc_id = tencentcloud_vpc.foo.id + security_groups = [tencentcloud_security_group.foo.id] + + dynamic_vip = true + + tags = { + test = "tf" + } +} + +output "domain" { + value = tencentcloud_clb_instance.clb_open.domain +} +``` + +Default enable + +```hcl +resource "tencentcloud_subnet" "subnet" { + availability_zone = "ap-guangzhou-1" + name = "sdk-feature-test" + vpc_id = tencentcloud_vpc.foo.id + cidr_block = "10.0.20.0/28" + is_multicast = false +} + +resource "tencentcloud_security_group" "sglab" { + name = "sg_o0ek7r93" + description = "favourite sg" + project_id = 0 +} + +resource "tencentcloud_vpc" "foo" { + name = "for-my-open-clb" + cidr_block = "10.0.0.0/16" + + tags = { + "test" = "mytest" + } +} + +resource "tencentcloud_clb_instance" "open_clb" { + network_type = "OPEN" + clb_name = "my-open-clb" + project_id = 0 + vpc_id = tencentcloud_vpc.foo.id + load_balancer_pass_to_target = true + + security_groups = [tencentcloud_security_group.sglab.id] + target_region_info_region = "ap-guangzhou" + target_region_info_vpc_id = tencentcloud_vpc.foo.id + + tags = { + test = "open" + } +} +``` + +CREATE multiple instance + +```hcl +resource "tencentcloud_clb_instance" "open_clb1" { + network_type = "OPEN" + clb_name = "hello" + master_zone_id = "ap-guangzhou-3" +} +``` + +CREATE instance with log +```hcl +resource "tencentcloud_vpc" "vpc_test" { + name = "clb-test" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_route_table" "rtb_test" { + name = "clb-test" + vpc_id = "${tencentcloud_vpc.vpc_test.id}" +} + +resource "tencentcloud_subnet" "subnet_test" { + name = "clb-test" + cidr_block = "10.0.1.0/24" + availability_zone = "ap-guangzhou-3" + vpc_id = "${tencentcloud_vpc.vpc_test.id}" + route_table_id = "${tencentcloud_route_table.rtb_test.id}" +} + +resource "tencentcloud_clb_log_set" "set" { + period = 7 +} + +resource "tencentcloud_clb_log_topic" "topic" { + log_set_id = "${tencentcloud_clb_log_set.set.id}" + topic_name = "clb-topic" +} + +resource "tencentcloud_clb_instance" "internal_clb" { + network_type = "INTERNAL" + clb_name = "myclb" + project_id = 0 + vpc_id = "${tencentcloud_vpc.vpc_test.id}" + subnet_id = "${tencentcloud_subnet.subnet_test.id}" + load_balancer_pass_to_target = true + log_set_id = "${tencentcloud_clb_log_set.set.id}" + log_topic_id = "${tencentcloud_clb_log_topic.topic.id}" + + tags = { + test = "tf" + } +} + +``` + +Import + +CLB instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_instance.foo lb-7a0t6zqb +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_instance_mix_ip_target_config.md b/tencentcloud/clb/resource_tc_clb_instance_mix_ip_target_config.md new file mode 100644 index 0000000000..e9372a5351 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_instance_mix_ip_target_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a clb instance_mix_ip_target_config + +Example Usage + +```hcl +resource "tencentcloud_clb_instance_mix_ip_target_config" "instance_mix_ip_target_config" { + load_balancer_id = "lb-5dnrkgry" + mix_ip_target = false +} +``` + +Import + +clb instance_mix_ip_target_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_clb_instance_mix_ip_target_config.instance_mix_ip_target_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_instance_sla_config.md b/tencentcloud/clb/resource_tc_clb_instance_sla_config.md new file mode 100644 index 0000000000..08fcae360f --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_instance_sla_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a clb instance_sla_config + +Example Usage + +```hcl +resource "tencentcloud_clb_instance_sla_config" "instance_sla_config" { + load_balancer_id = "lb-5dnrkgry" + sla_type = "SLA" +} +``` + +Import + +clb instance_sla_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_clb_instance_sla_config.instance_sla_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_listener.md b/tencentcloud/clb/resource_tc_clb_listener.md new file mode 100644 index 0000000000..b609db3a5c --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_listener.md @@ -0,0 +1,165 @@ +Provides a resource to create a CLB listener. + +Example Usage + +HTTP Listener + +```hcl +resource "tencentcloud_clb_listener" "HTTP_listener" { + clb_id = "lb-0lh5au7v" + listener_name = "test_listener" + port = 80 + protocol = "HTTP" +} +``` + +TCP/UDP Listener + +```hcl +resource "tencentcloud_clb_listener" "TCP_listener" { + clb_id = "lb-0lh5au7v" + listener_name = "test_listener" + port = 80 + protocol = "TCP" + health_check_switch = true + health_check_time_out = 2 + health_check_interval_time = 5 + health_check_health_num = 3 + health_check_unhealth_num = 3 + session_expire_time = 30 + scheduler = "WRR" + health_check_port = 200 + health_check_type = "HTTP" + health_check_http_code = 2 + health_check_http_version = "HTTP/1.0" + health_check_http_method = "GET" +} +``` + +TCP/UDP Listener with tcp health check +```hcl +resource "tencentcloud_clb_listener" "listener_tcp" { + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_name = "listener_tcp" + port = 44 + protocol = "TCP" + health_check_switch = true + health_check_time_out = 30 + health_check_interval_time = 100 + health_check_health_num = 2 + health_check_unhealth_num = 2 + session_expire_time = 30 + scheduler = "WRR" + health_check_type = "TCP" + health_check_port = 200 +} +``` + +TCP/UDP Listener with http health check +```hcl +resource "tencentcloud_clb_listener" "listener_tcp" { + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_name = "listener_tcp" + port = 44 + protocol = "TCP" + health_check_switch = true + health_check_time_out = 30 + health_check_interval_time = 100 + health_check_health_num = 2 + health_check_unhealth_num = 2 + session_expire_time = 30 + scheduler = "WRR" + health_check_type = "HTTP" + health_check_http_domain = "www.tencent.com" + health_check_http_code = 16 + health_check_http_version = "HTTP/1.1" + health_check_http_method = "HEAD" + health_check_http_path = "/" +} +``` + +TCP/UDP Listener with customer health check +```hcl +resource "tencentcloud_clb_listener" "listener_tcp"{ + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_name = "listener_tcp" + port = 44 + protocol = "TCP" + health_check_switch = true + health_check_time_out = 30 + health_check_interval_time = 100 + health_check_health_num = 2 + health_check_unhealth_num = 2 + session_expire_time = 30 + scheduler = "WRR" + health_check_type = "CUSTOM" + health_check_context_type = "HEX" + health_check_send_context = "0123456789ABCDEF" + health_check_recv_context = "ABCD" + target_type = "TARGETGROUP" +} +``` + +HTTPS Listener + +```hcl +resource "tencentcloud_clb_listener" "HTTPS_listener" { + clb_id = "lb-0lh5au7v" + listener_name = "test_listener" + port = "80" + protocol = "HTTPS" + certificate_ssl_mode = "MUTUAL" + certificate_id = "VjANRdz8" + certificate_ca_id = "VfqO4zkB" + sni_switch = true +} +``` + +TCP SSL Listener + +```hcl +resource "tencentcloud_clb_listener" "TCPSSL_listener" { + clb_id = "lb-0lh5au7v" + listener_name = "test_listener" + port = "80" + protocol = "TCP_SSL" + certificate_ssl_mode = "MUTUAL" + certificate_id = "VjANRdz8" + certificate_ca_id = "VfqO4zkB" + health_check_switch = true + health_check_time_out = 2 + health_check_interval_time = 5 + health_check_health_num = 3 + health_check_unhealth_num = 3 + scheduler = "WRR" + target_type = "TARGETGROUP" +} +``` + +Port Range Listener + +```hcl +resource "tencentcloud_clb_instance" "clb_basic" { + network_type = "OPEN" + clb_name = "tf-listener-test" +} + +resource "tencentcloud_clb_listener" "listener_basic" { + clb_id = tencentcloud_clb_instance.clb_basic.id + port = 1 + end_port = 6 + protocol = "TCP" + listener_name = "listener_basic" + session_expire_time = 30 + scheduler = "WRR" + target_type = "NODE" +} +``` + +Import + +CLB listener can be imported using the id (version >= 1.47.0), e.g. + +``` +$ terraform import tencentcloud_clb_listener.foo lb-7a0t6zqb#lbl-hh141sn9 +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_listener_rule.md b/tencentcloud/clb/resource_tc_clb_listener_rule.md new file mode 100644 index 0000000000..a9886d9a6e --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_listener_rule.md @@ -0,0 +1,34 @@ +Provides a resource to create a CLB listener rule. + +-> **NOTE:** This resource only be applied to the HTTP or HTTPS listeners. + +Example Usage + +```hcl +resource "tencentcloud_clb_listener_rule" "foo" { + listener_id = "lbl-hh141sn9" + clb_id = "lb-k2zjp9lv" + domain = "foo.net" + url = "/bar" + health_check_switch = true + health_check_interval_time = 5 + health_check_health_num = 3 + health_check_unhealth_num = 3 + health_check_http_code = 2 + health_check_http_path = "Default Path" + health_check_http_domain = "Default Domain" + health_check_http_method = "GET" + certificate_ssl_mode = "MUTUAL" + certificate_id = "VjANRdz8" + certificate_ca_id = "VfqO4zkB" + session_expire_time = 30 + scheduler = "WRR" +} +``` +Import + +CLB listener rule can be imported using the id (version >= 1.47.0), e.g. + +``` +$ terraform import tencentcloud_clb_listener_rule.foo lb-7a0t6zqb#lbl-hh141sn9#loc-agg236ys +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_log_set.md b/tencentcloud/clb/resource_tc_clb_log_set.md new file mode 100644 index 0000000000..765010d14c --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_log_set.md @@ -0,0 +1,17 @@ +Provides a resource to create an exclusive CLB Logset. + +Example Usage + +```hcl +resource "tencentcloud_clb_log_set" "foo" { + period = 7 +} +``` + +Import + +CLB log set can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_logset.foo 4eb9e3a8-9c42-4b32-9ddf-e215e9c92764 +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_log_topic.md b/tencentcloud/clb/resource_tc_clb_log_topic.md new file mode 100644 index 0000000000..09035ea5d4 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_log_topic.md @@ -0,0 +1,17 @@ +Provides a resource to create a CLB instance topic. + +Example Usage + +```hcl +resource "tencentcloud_clb_log_topic" "topic" { + log_set_id = "${tencentcloud_clb_log_set.set.id}" + topic_name = "clb-topic" +} +``` + +Import + +CLB log topic can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_log_topic.topic lb-7a0t6zqb \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_redirection.md b/tencentcloud/clb/resource_tc_clb_redirection.md new file mode 100644 index 0000000000..92713a83f4 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_redirection.md @@ -0,0 +1,34 @@ +Provides a resource to create a CLB redirection. + +Example Usage + +Manual Rewrite + +```hcl +resource "tencentcloud_clb_redirection" "foo" { + clb_id = "lb-p7olt9e5" + source_listener_id = "lbl-jc1dx6ju" + target_listener_id = "lbl-asj1hzuo" + source_rule_id = "loc-ft8fmngv" + target_rule_id = "loc-4xxr2cy7" +} +``` + +Auto Rewrite + +```hcl +resource "tencentcloud_clb_redirection" "foo" { + clb_id = "lb-p7olt9e5" + target_listener_id = "lbl-asj1hzuo" + target_rule_id = "loc-4xxr2cy7" + is_auto_rewrite = true +} +``` + +Import + +CLB redirection can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_redirection.foo loc-ft8fmngv#loc-4xxr2cy7#lbl-jc1dx6ju#lbl-asj1hzuo#lb-p7olt9e5 +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_replace_cert_for_lbs.md b/tencentcloud/clb/resource_tc_clb_replace_cert_for_lbs.md new file mode 100644 index 0000000000..c1c45c144b --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_replace_cert_for_lbs.md @@ -0,0 +1,56 @@ +Provides a resource to create a clb replace_cert_for_lbs + +Example Usage + +Replace Server Cert By Cert ID +```hcl +resource "tencentcloud_clb_replace_cert_for_lbs" "replace_cert_for_lbs" { + old_certificate_id = "zjUMifFK" + certificate { + cert_id = "6vcK02GC" + } +} +``` + +Replace Server Cert By Cert Content +```hcl +data "tencentcloud_ssl_certificates" "foo" { + name = "keep-ssl-ca" +} + +resource "tencentcloud_clb_replace_cert_for_lbs" "replace_cert_for_lbs" { + old_certificate_id = data.tencentcloud_ssl_certificates.foo.certificates.0.id + certificate { + cert_name = "tf-test-cert" + cert_content = <<-EOT +-----BEGIN CERTIFICATE----- +xxxxxxxxxxxxxxxxxxxxxxxxxxx +-----END CERTIFICATE----- +EOT + cert_key = <<-EOT +-----BEGIN RSA PRIVATE KEY----- +xxxxxxxxxxxxxxxxxxxxxxxxxxxx +-----END RSA PRIVATE KEY----- +EOT + } +} +``` + +Replace Client Cert By Cert Content +```hcl +resource "tencentcloud_clb_replace_cert_for_lbs" "replace_cert_for_lbs" { + old_certificate_id = "zjUMifFK" + certificate { + cert_ca_name = "tf-test-cert" + cert_ca_content = <<-EOT +-----BEGIN CERTIFICATE----- +xxxxxxxxContentxxxxxxxxxxxxxx +-----END CERTIFICATE----- +EOT + } +} +``` + +``` +terraform import tencentcloud_clb_replace_cert_for_lbs.replace_cert_for_lbs replace_cert_for_lbs_id +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_security_group_attachment.md b/tencentcloud/clb/resource_tc_clb_security_group_attachment.md new file mode 100644 index 0000000000..bdda4c61b9 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_security_group_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a clb security_group_attachment + +Example Usage + +```hcl +resource "tencentcloud_clb_security_group_attachment" "security_group_attachment" { + security_group = "sg-ijato2x1" + load_balancer_ids = ["lb-5dnrkgry"] +} +``` + +Import + +clb security_group_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_clb_security_group_attachment.security_group_attachment security_group_id#clb_id +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_snat_ip.md b/tencentcloud/clb/resource_tc_clb_snat_ip.md new file mode 100644 index 0000000000..8308e36f48 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_snat_ip.md @@ -0,0 +1,33 @@ +Provide a resource to create a SnatIp of CLB instance. + +~> **NOTE:** Target CLB instance must enable `snat_pro` before creating snat ips. +~> **NOTE:** Dynamic allocate IP doesn't support for now. + +Example Usage + +```hcl +resource "tencentcloud_clb_instance" "snat_test" { + network_type = "OPEN" + clb_name = "tf-clb-snat-test" +} + +resource "tencentcloud_clb_snat_ip" "foo" { + clb_id = tencentcloud_clb_instance.snat_test.id + ips { + subnet_id = "subnet-12345678" + ip = "172.16.0.1" + } + ips { + subnet_id = "subnet-12345678" + ip = "172.16.0.2" + } +} + +``` + +Import + +ClbSnatIp instance can be imported by clb instance id, e.g. +``` +$ terraform import tencentcloud_clb_snat_ip.test clb_id +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_target_group.md b/tencentcloud/clb/resource_tc_clb_target_group.md new file mode 100644 index 0000000000..4b73493049 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_target_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a CLB target group. + +Example Usage + +```hcl +resource "tencentcloud_clb_target_group" "test"{ + target_group_name = "test" + port = 33 +} +``` + +Import + +CLB target group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_target_group.test lbtg-3k3io0i0 +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_target_group_attachment.md b/tencentcloud/clb/resource_tc_clb_target_group_attachment.md new file mode 100644 index 0000000000..17a6ea8b6b --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_target_group_attachment.md @@ -0,0 +1,46 @@ +Provides a resource to create a CLB target group attachment is bound to the load balancing listener or forwarding rule. + +Example Usage + +```hcl +resource "tencentcloud_clb_instance" "clb_basic" { + network_type = "OPEN" + clb_name = "tf-clb-rule-basic" +} + +resource "tencentcloud_clb_listener" "listener_basic" { + clb_id = tencentcloud_clb_instance.clb_basic.id + port = 1 + protocol = "HTTP" + listener_name = "listener_basic" +} + +resource "tencentcloud_clb_listener_rule" "rule_basic" { + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_id = tencentcloud_clb_listener.listener_basic.listener_id + domain = "abc.com" + url = "/" + session_expire_time = 30 + scheduler = "WRR" + target_type = "TARGETGROUP" +} + +resource "tencentcloud_clb_target_group" "test"{ + target_group_name = "test-target-keep-1" +} + +resource "tencentcloud_clb_target_group_attachment" "group" { + clb_id = tencentcloud_clb_instance.clb_basic.id + listener_id = tencentcloud_clb_listener.listener_basic.listener_id + rule_id = tencentcloud_clb_listener_rule.rule_basic.rule_id + target_group_id = tencentcloud_clb_target_group.test.id +} +``` + +Import + +CLB target group attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_target_group_attachment.group lbtg-odareyb2#lbl-bicjmx3i#lb-cv0iz74c#loc-ac6uk7b6 +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_clb_target_group_instance_attachment.md b/tencentcloud/clb/resource_tc_clb_target_group_instance_attachment.md new file mode 100644 index 0000000000..78c83bf502 --- /dev/null +++ b/tencentcloud/clb/resource_tc_clb_target_group_instance_attachment.md @@ -0,0 +1,84 @@ +Provides a resource to create a CLB target group instance attachment. + +Example Usage + +```hcl +data "tencentcloud_images" "my_favorite_image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "centos" +} + +data "tencentcloud_instance_types" "my_favorite_instance_types" { + filter { + name = "instance-family" + values = ["S3"] + } + + cpu_core_count = 1 + memory_size = 1 +} + +data "tencentcloud_availability_zones" "default" { +} + +resource "tencentcloud_vpc" "app" { + cidr_block = "10.0.0.0/16" + name = "awesome_app_vpc" +} + +resource "tencentcloud_subnet" "app" { + vpc_id = tencentcloud_vpc.app.id + availability_zone = data.tencentcloud_availability_zones.default.zones.0.name + name = "awesome_app_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_instance" "my_awesome_app" { + instance_name = "awesome_app" + availability_zone = data.tencentcloud_availability_zones.default.zones.0.name + image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id + instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.app.id + subnet_id = tencentcloud_subnet.app.id + internet_max_bandwidth_out = 20 + + data_disks { + data_disk_type = "CLOUD_PREMIUM" + data_disk_size = 50 + encrypt = false + } + + tags = { + tagKey = "tagValue" + } +} + +data "tencentcloud_instances" "foo" { + instance_id = tencentcloud_instance.my_awesome_app.id +} + +resource "tencentcloud_clb_target_group" "test"{ + target_group_name = "test" + vpc_id = tencentcloud_vpc.app.id +} + +resource "tencentcloud_clb_target_group_instance_attachment" "test"{ + target_group_id = tencentcloud_clb_target_group.test.id + bind_ip = data.tencentcloud_instances.foo.instance_list[0].private_ip + port = 222 + weight = 3 +} + +``` + +Import + +CLB target group instance attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_clb_target_group_instance_attachment.test lbtg-3k3io0i0#172.16.48.18#222 +``` \ No newline at end of file diff --git a/tencentcloud/clb/resource_tc_lb.md b/tencentcloud/clb/resource_tc_lb.md new file mode 100644 index 0000000000..cd6cfdc820 --- /dev/null +++ b/tencentcloud/clb/resource_tc_lb.md @@ -0,0 +1,14 @@ +Provides a Load Balancer resource. + +~> **NOTE:** It has been deprecated and replaced by `tencentcloud_clb_instance`. + +Example Usage + +```hcl +resource "tencentcloud_lb" "classic" { + type = "OPEN" + forward = "APPLICATION" + name = "tf-test-classic" + project_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/cls/data_source_tc_cls_machine_group_configs.md b/tencentcloud/cls/data_source_tc_cls_machine_group_configs.md new file mode 100644 index 0000000000..c8b01fd88f --- /dev/null +++ b/tencentcloud/cls/data_source_tc_cls_machine_group_configs.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of cls machine_group_configs + +Example Usage + +```hcl +resource "tencentcloud_cls_machine_group" "group" { + group_name = "tf-describe-mg-config-test" + service_logging = true + auto_update = true + update_end_time = "19:05:00" + update_start_time = "17:05:00" + + machine_group_type { + type = "ip" + values = [ + "192.168.1.1", + "192.168.1.2", + ] + } +} + +data "tencentcloud_cls_machine_group_configs" "machine_group_configs" { + group_id = tencentcloud_cls_machine_group.group.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cls/data_source_tc_cls_machines.md b/tencentcloud/cls/data_source_tc_cls_machines.md new file mode 100644 index 0000000000..059b2fcf5c --- /dev/null +++ b/tencentcloud/cls/data_source_tc_cls_machines.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of cls machines + +Example Usage + +```hcl +resource "tencentcloud_cls_machine_group" "group" { + group_name = "tf-describe-mg-test" + service_logging = true + auto_update = true + update_end_time = "19:05:00" + update_start_time = "17:05:00" + + machine_group_type { + type = "ip" + values = [ + "192.168.1.1", + "192.168.1.2", + ] + } +} + +data "tencentcloud_cls_machines" "machines" { + group_id = tencentcloud_cls_machine_group.group.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cls/data_source_tc_cls_shipper_tasks.md b/tencentcloud/cls/data_source_tc_cls_shipper_tasks.md new file mode 100644 index 0000000000..72f240ca1b --- /dev/null +++ b/tencentcloud/cls/data_source_tc_cls_shipper_tasks.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of cls shipper_tasks + +Example Usage + +```hcl +data "tencentcloud_cls_shipper_tasks" "shipper_tasks" { + shipper_id = "dbde3c9b-ea16-4032-bc2a-d8fa65567a8e" + start_time = 160749910700 + end_time = 160749910800 +} +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_alarm.md b/tencentcloud/cls/resource_tc_cls_alarm.md new file mode 100644 index 0000000000..cc955f0de7 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_alarm.md @@ -0,0 +1,53 @@ +Provides a resource to create a cls alarm + +Example Usage + +```hcl +resource "tencentcloud_cls_alarm" "alarm" { + name = "terraform-alarm-test" + alarm_notice_ids = [ + "notice-0850756b-245d-4bc7-bb27-2a58fffc780b", + ] + alarm_period = 15 + condition = "test" + message_template = "{{.Label}}" + status = true + tags = { + "createdBy" = "terraform" + } + trigger_count = 1 + + alarm_targets { + end_time_offset = 0 + logset_id = "33aaf0ae-6163-411b-a415-9f27450f68db" + number = 1 + query = "status:>500 | select count(*) as errorCounts" + start_time_offset = -15 + topic_id = "88735a07-bea4-4985-8763-e9deb6da4fad" + } + + analysis { + content = "__FILENAME__" + name = "terraform" + type = "field" + + config_info { + key = "QueryIndex" + value = "1" + } + } + + monitor_time { + time = 1 + type = "Period" + } +} +``` + +Import + +cls alarm can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_alarm.alarm alarm_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_alarm_notice.md b/tencentcloud/cls/resource_tc_cls_alarm_notice.md new file mode 100644 index 0000000000..5877d82e92 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_alarm_notice.md @@ -0,0 +1,35 @@ +Provides a resource to create a cls alarm_notice + +Example Usage + +```hcl +resource "tencentcloud_cls_alarm_notice" "alarm_notice" { + name = "terraform-alarm-notice-test" + tags = { + "createdBy" = "terraform" + } + type = "All" + + notice_receivers { + index = 0 + receiver_channels = [ + "Sms", + ] + receiver_ids = [ + 13478043, + 15972111, + ] + receiver_type = "Uin" + start_time = "00:00:00" + end_time = "23:59:59" + } +} +``` + +Import + +cls alarm_notice can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_alarm_notice.alarm_notice alarm_notice_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_ckafka_consumer.md b/tencentcloud/cls/resource_tc_cls_ckafka_consumer.md new file mode 100644 index 0000000000..d799b97eb3 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_ckafka_consumer.md @@ -0,0 +1,41 @@ +Provides a resource to create a cls ckafka_consumer + +Example Usage + +```hcl +resource "tencentcloud_cls_ckafka_consumer" "ckafka_consumer" { + compression = 1 + need_content = true + topic_id = "7e34a3a7-635e-4da8-9005-88106c1fde69" + + ckafka { + instance_id = "ckafka-qzoeaqx8" + instance_name = "ckafka-instance" + topic_id = "topic-c6tm4kpm" + topic_name = "name" + vip = "172.16.112.23" + vport = "9092" + } + + content { + enable_tag = true + meta_fields = [ + "__FILENAME__", + "__HOSTNAME__", + "__PKGID__", + "__SOURCE__", + "__TIMESTAMP__", + ] + tag_json_not_tiled = true + timestamp_accuracy = 2 + } +} +``` + +Import + +cls ckafka_consumer can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_ckafka_consumer.ckafka_consumer topic_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_config.md b/tencentcloud/cls/resource_tc_cls_config.md new file mode 100644 index 0000000000..3772839a7e --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_config.md @@ -0,0 +1,42 @@ +Provides a resource to create a cls config + +Example Usage + +```hcl +resource "tencentcloud_cls_config" "config" { + name = "config_hello" + output = "4d07fba0-b93e-4e0b-9a7f-d58542560bbb" + path = "/var/log/kubernetes" + log_type = "json_log" + extract_rule { + filter_key_regex { + key = "key1" + regex = "value1" + } + filter_key_regex { + key = "key2" + regex = "value2" + } + un_match_up_load_switch = true + un_match_log_key = "config" + backtracking = -1 + } + exclude_paths { + type = "Path" + value = "/data" + } + exclude_paths { + type = "File" + value = "/file" + } +# user_define_rule = "" +} +``` + +Import + +cls config can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_config.config config_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_config_attachment.md b/tencentcloud/cls/resource_tc_cls_config_attachment.md new file mode 100644 index 0000000000..28ff0c9dce --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_config_attachment.md @@ -0,0 +1,19 @@ +Provides a resource to create a cls config attachment + +Example Usage + +```hcl +resource "tencentcloud_cls_config_attachment" "attach" { + config_id = tencentcloud_cls_config.config.id + group_id = "27752a9b-9918-440a-8ee7-9c84a14a47ed" +} + +Import + +cls config_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_config_attachment.attach config_id#group_id +``` + +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_config_extra.md b/tencentcloud/cls/resource_tc_cls_config_extra.md new file mode 100644 index 0000000000..dc622275f1 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_config_extra.md @@ -0,0 +1,73 @@ +Provides a resource to create a cls config extra + +Example Usage + +```hcl +resource "tencentcloud_cls_logset" "logset" { + logset_name = "tf-config-extra-test" + tags = { + "test" = "test" + } +} + +resource "tencentcloud_cls_topic" "topic" { + auto_split = true + logset_id = tencentcloud_cls_logset.logset.id + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test" + } + topic_name = "tf-config-extra-test" +} + +resource "tencentcloud_cls_machine_group" "group" { + group_name = "tf-config-extra-test" + service_logging = true + auto_update = true + update_end_time = "19:05:00" + update_start_time = "17:05:00" + + machine_group_type { + type = "ip" + values = [ + "192.168.1.1", + "192.168.1.2", + ] + } +} + +resource "tencentcloud_cls_config_extra" "extra" { + name = "helloworld-test" + topic_id = tencentcloud_cls_topic.topic.id + type = "container_file" + log_type = "json_log" + config_flag = "label_k8s" + logset_id = tencentcloud_cls_logset.logset.id + logset_name = tencentcloud_cls_logset.logset.logset_name + topic_name = tencentcloud_cls_topic.topic.topic_name + container_file { + container = "nginx" + file_pattern = "log" + log_path = "/nginx" + namespace = "default" + workload { + container = "nginx" + kind = "deployment" + name = "nginx" + namespace = "default" + } + } + group_id = tencentcloud_cls_machine_group.group.id +} +``` + +Import + +cls config_extra can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_config_extra.config_extra config_extra_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_cos_recharge.md b/tencentcloud/cls/resource_tc_cls_cos_recharge.md new file mode 100644 index 0000000000..8e9f346e65 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_cos_recharge.md @@ -0,0 +1,39 @@ +Provides a resource to create a cls cos_recharge + +~> **NOTE:** This resource can not be deleted if you run `terraform destroy`. + +Example Usage + +```hcl +resource "tencentcloud_cls_cos_recharge" "cos_recharge" { + bucket = "cos-lock-1308919341" + bucket_region = "ap-guangzhou" + log_type = "minimalist_log" + logset_id = "dd426d1a-95bc-4bca-b8c2-baa169261812" + name = "cos_recharge_for_test" + prefix = "test" + topic_id = "7e34a3a7-635e-4da8-9005-88106c1fde69" + + extract_rule_info { + backtracking = 0 + is_gbk = 0 + json_standard = 0 + keys = [] + metadata_type = 0 + un_match_up_load_switch = false + + filter_key_regex { + key = "__CONTENT__" + regex = "dasd" + } + } +} +``` + +Import + +cls cos_recharge can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_cos_recharge.cos_recharge topic_id#cos_recharge_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_cos_shipper.md b/tencentcloud/cls/resource_tc_cls_cos_shipper.md new file mode 100644 index 0000000000..7ba288b95b --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_cos_shipper.md @@ -0,0 +1,40 @@ +Provides a resource to create a cls cos shipper. + +Example Usage + +```hcl +resource "tencentcloud_cls_cos_shipper" "shipper" { + bucket = "preset-scf-bucket-1308919341" + interval = 300 + max_size = 200 + partition = "/%Y/%m/%d/%H/" + prefix = "ap-guangzhou-fffsasad-1649734752" + shipper_name = "ap-guangzhou-fffsasad-1649734752" + topic_id = "4d07fba0-b93e-4e0b-9a7f-d58542560bbb" + + compress { + format = "lzop" + } + + content { + format = "json" + + json { + enable_tag = true + meta_fields = [ + "__FILENAME__", + "__SOURCE__", + "__TIMESTAMP__", + ] + } + } +} +``` + +Import + +cls cos shipper can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cls_cos_shipper.shipper 5d1b7b2a-c163-4c48-bb01-9ee00584d761 +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_data_transform.md b/tencentcloud/cls/resource_tc_cls_data_transform.md new file mode 100644 index 0000000000..d47a1b83b6 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_data_transform.md @@ -0,0 +1,63 @@ +Provides a resource to create a cls data_transform + +Example Usage + +```hcl +resource "tencentcloud_cls_logset" "logset_src" { + logset_name = "tf-example-src" + tags = { + "createdBy" = "terraform" + } +} +resource "tencentcloud_cls_topic" "topic_src" { + topic_name = "tf-example_src" + logset_id = tencentcloud_cls_logset.logset_src.id + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} +resource "tencentcloud_cls_logset" "logset_dst" { + logset_name = "tf-example-dst" + tags = { + "createdBy" = "terraform" + } +} +resource "tencentcloud_cls_topic" "topic_dst" { + topic_name = "tf-example-dst" + logset_id = tencentcloud_cls_logset.logset_dst.id + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} +resource "tencentcloud_cls_data_transform" "data_transform" { + func_type = 1 + src_topic_id = tencentcloud_cls_topic.topic_src.id + name = "iac-test-src" + etl_content = "ext_sep(\"content\", \"f1, f2, f3\", sep=\",\", quote=\"\", restrict=False, mode=\"overwrite\")fields_drop(\"content\")" + task_type = 3 + enable_flag = 1 + dst_resources { + topic_id = tencentcloud_cls_topic.topic_dst.id + alias = "iac-test-dst" + + } +} +``` + +Import + +cls data_transform can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_data_transform.data_transform data_transform_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_export.md b/tencentcloud/cls/resource_tc_cls_export.md new file mode 100644 index 0000000000..6368f2e0c1 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_export.md @@ -0,0 +1,24 @@ +Provides a resource to create a cls export + +Example Usage + +```hcl +resource "tencentcloud_cls_export" "export" { + topic_id = "7e34a3a7-635e-4da8-9005-88106c1fde69" + log_count = 2 + query = "select count(*) as count" + from = 1607499107000 + to = 1607499108000 + order = "desc" + format = "json" +} + +``` + +Import + +cls export can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_export.export topic_id#export_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_index.md b/tencentcloud/cls/resource_tc_cls_index.md new file mode 100644 index 0000000000..b4e260f0b6 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_index.md @@ -0,0 +1,64 @@ +Provides a resource to create a cls index. + +Example Usage + +```hcl +resource "tencentcloud_cls_index" "index" { + topic_id = "0937e56f-4008-49d2-ad2d-69c52a9f11cc" + + rule { + full_text { + case_sensitive = true + tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" + contain_z_h = true + } + + key_value { + case_sensitive = true + key_values { + key = "hello" + value { + contain_z_h = true + sql_flag = true + tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" + type = "text" + } + } + + key_values { + key = "world" + value { + contain_z_h = true + sql_flag = true + tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" + type = "text" + } + } + } + + tag { + case_sensitive = true + key_values { + key = "terraform" + value { + contain_z_h = true + sql_flag = true + tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" + type = "text" + } + } + } + } + status = true + include_internal_fields = true + metadata_flag = 1 +} +``` + +Import + +cls cos index can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cls_index.index 0937e56f-4008-49d2-ad2d-69c52a9f11cc +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_kafka_recharge.md b/tencentcloud/cls/resource_tc_cls_kafka_recharge.md new file mode 100644 index 0000000000..b87d7c2127 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_kafka_recharge.md @@ -0,0 +1,48 @@ +Provides a resource to create a cls kafka_recharge + +Example Usage + +```hcl +resource "tencentcloud_cls_logset" "logset" { + logset_name = "tf-example-logset" + tags = { + "createdBy" = "terraform" + } +} +resource "tencentcloud_cls_topic" "topic" { + topic_name = "tf-example-topic" + logset_id = tencentcloud_cls_logset.logset.id + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} + +resource "tencentcloud_cls_kafka_recharge" "kafka_recharge" { + topic_id = tencentcloud_cls_topic.topic.id + name = "tf-example-recharge" + kafka_type = 0 + offset = -2 + is_encryption_addr =true + user_kafka_topics = "recharge" + kafka_instance = "ckafka-qzoeaqx8" + log_recharge_rule { + recharge_type = "json_log" + encoding_format = 0 + default_time_switch = true + } +} + +``` + +Import + +cls kafka_recharge can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_kafka_recharge.kafka_recharge kafka_recharge_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_logset.md b/tencentcloud/cls/resource_tc_cls_logset.md new file mode 100644 index 0000000000..e5afdae64e --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_logset.md @@ -0,0 +1,19 @@ +Provides a resource to create a cls logset + +Example Usage + +```hcl +resource "tencentcloud_cls_logset" "logset" { + logset_name = "demo" + tags = { + "createdBy" = "terraform" + } +} + +``` +Import + +cls logset can be imported using the id, e.g. +``` +$ terraform import tencentcloud_cls_logset.logset logset_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_machine_group.md b/tencentcloud/cls/resource_tc_cls_machine_group.md new file mode 100644 index 0000000000..aee55b4a15 --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_machine_group.md @@ -0,0 +1,31 @@ +Provides a resource to create a cls machine group. + +Example Usage + +```hcl +resource "tencentcloud_cls_machine_group" "group" { + group_name = "group" + service_logging = true + tags = { + "test" = "test1" + } + update_end_time = "19:05:40" + update_start_time = "17:05:40" + + machine_group_type { + type = "ip" + values = [ + "192.168.1.1", + "192.168.1.2", + ] + } +} +``` + +Import + +cls machine group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cls_machine_group.group caf168e7-32cd-4ac6-bf89-1950a760e09c +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_scheduled_sql.md b/tencentcloud/cls/resource_tc_cls_scheduled_sql.md new file mode 100644 index 0000000000..77e48b5b1b --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_scheduled_sql.md @@ -0,0 +1,53 @@ +Provides a resource to create a cls scheduled_sql + +Example Usage + +```hcl +resource "tencentcloud_cls_logset" "logset" { + logset_name = "tf-example-logset" + tags = { + "createdBy" = "terraform" + } +} +resource "tencentcloud_cls_topic" "topic" { + topic_name = "tf-example-topic" + logset_id = tencentcloud_cls_logset.logset.id + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} +resource "tencentcloud_cls_scheduled_sql" "scheduled_sql" { + src_topic_id = tencentcloud_cls_topic.topic.id + name = "tf-example-task" + enable_flag = 1 + dst_resource { + topic_id = tencentcloud_cls_topic.topic.id + region = "ap-guangzhou" + biz_type = 0 + metric_name = "test" + + } + scheduled_sql_content = "xxx" + process_start_time = 1690515360000 + process_type = 1 + process_period = 10 + process_time_window = "@m-15m,@m" + process_delay = 5 + src_topic_region = "ap-guangzhou" + process_end_time = 1690515360000 + syntax_rule = 0 +} +``` + +Import + +cls scheduled_sql can be imported using the id, e.g. + +``` +terraform import tencentcloud_cls_scheduled_sql.scheduled_sql scheduled_sql_id +``` \ No newline at end of file diff --git a/tencentcloud/cls/resource_tc_cls_topic.md b/tencentcloud/cls/resource_tc_cls_topic.md new file mode 100644 index 0000000000..23670d4c2e --- /dev/null +++ b/tencentcloud/cls/resource_tc_cls_topic.md @@ -0,0 +1,26 @@ +Provides a resource to create a cls topic. + +Example Usage + +```hcl +resource "tencentcloud_cls_topic" "topic" { + topic_name = "topic" + logset_id = "5cd3a17e-fb0b-418c-afd7-77b365397426" + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} +``` + +Import + +cls topic can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cls_topic.topic 2f5764c1-c833-44c5-84c7-950979b2a278 +``` \ No newline at end of file diff --git a/tencentcloud/common/data_source_tc_availability_regions.md b/tencentcloud/common/data_source_tc_availability_regions.md new file mode 100644 index 0000000000..c60c01c8ee --- /dev/null +++ b/tencentcloud/common/data_source_tc_availability_regions.md @@ -0,0 +1,9 @@ +Use this data source to get the available regions. By default only `AVAILABLE` regions will be returned, but `UNAVAILABLE` regions can also be fetched when `include_unavailable` is specified. + +Example Usage + +```hcl +data "tencentcloud_availability_regions" "my_favourite_region" { + name = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/common/data_source_tc_availability_zones.md b/tencentcloud/common/data_source_tc_availability_zones.md new file mode 100644 index 0000000000..d0a6db43b7 --- /dev/null +++ b/tencentcloud/common/data_source_tc_availability_zones.md @@ -0,0 +1,11 @@ +Use this data source to get the available zones in current region. By default only `AVAILABLE` zones will be returned, but `UNAVAILABLE` zones can also be fetched when `include_unavailable` is specified. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_availability_zones_by_product. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "my_favourite_zone" { + name = "ap-guangzhou-3" +} +``` \ No newline at end of file diff --git a/tencentcloud/common/data_source_tc_availability_zones_by_product.md b/tencentcloud/common/data_source_tc_availability_zones_by_product.md new file mode 100644 index 0000000000..3b056c4afb --- /dev/null +++ b/tencentcloud/common/data_source_tc_availability_zones_by_product.md @@ -0,0 +1,9 @@ +Use this data source to get the available zones in current region. Must set product param to fetch the product infomations(e.g. => cvm, vpc). By default only `AVAILABLE` zones will be returned, but `UNAVAILABLE` zones can also be fetched when `include_unavailable` is specified. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "all" { + product="cvm" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/data_source_tc_cos_batchs.md b/tencentcloud/cos/data_source_tc_cos_batchs.md new file mode 100644 index 0000000000..b70a6f7f3a --- /dev/null +++ b/tencentcloud/cos/data_source_tc_cos_batchs.md @@ -0,0 +1,10 @@ +Use this data source to query the COS batch. + +Example Usage + +```hcl +data "tencentcloud_cos_batchs" "cos_batchs" { + uin = "xxxxxx" + appid = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/data_source_tc_cos_bucket_inventorys.md b/tencentcloud/cos/data_source_tc_cos_bucket_inventorys.md new file mode 100644 index 0000000000..96b16bddf9 --- /dev/null +++ b/tencentcloud/cos/data_source_tc_cos_bucket_inventorys.md @@ -0,0 +1,9 @@ +Use this data source to query the COS bucket inventorys. + +Example Usage + +```hcl +data "tencentcloud_cos_bucket_inventorys" "cos_bucket_inventorys" { + bucket = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/data_source_tc_cos_bucket_multipart_uploads.md b/tencentcloud/cos/data_source_tc_cos_bucket_multipart_uploads.md new file mode 100644 index 0000000000..54458901b0 --- /dev/null +++ b/tencentcloud/cos/data_source_tc_cos_bucket_multipart_uploads.md @@ -0,0 +1,9 @@ +Use this data source to query the COS bucket multipart uploads. + +Example Usage + +```hcl +data "tencentcloud_cos_bucket_multipart_uploads" "cos_bucket_multipart_uploads" { + bucket = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/data_source_tc_cos_bucket_object.md b/tencentcloud/cos/data_source_tc_cos_bucket_object.md new file mode 100644 index 0000000000..5710cd5427 --- /dev/null +++ b/tencentcloud/cos/data_source_tc_cos_bucket_object.md @@ -0,0 +1,11 @@ +Use this data source to query the metadata of an object stored inside a bucket. + +Example Usage + +```hcl +data "tencentcloud_cos_bucket_object" "mycos" { + bucket = "mycos-test-1258798060" + key = "hello-world.py" + result_output_file = "TFresults" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/data_source_tc_cos_buckets.md b/tencentcloud/cos/data_source_tc_cos_buckets.md new file mode 100644 index 0000000000..cfbdbde21b --- /dev/null +++ b/tencentcloud/cos/data_source_tc_cos_buckets.md @@ -0,0 +1,10 @@ +Use this data source to query the COS buckets of the current Tencent Cloud user. + +Example Usage + +```hcl +data "tencentcloud_cos_buckets" "cos_buckets" { + bucket_prefix = "tf-bucket-" + result_output_file = "mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_batch.md b/tencentcloud/cos/resource_tc_cos_batch.md new file mode 100644 index 0000000000..5b0fe77528 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_batch.md @@ -0,0 +1,48 @@ +Provides a resource to create a cos bucket batch. + +Example Usage + +```hcl +resource "tencentcloud_cos_batch" "cos_batch" { + uin = "100022975249" + appid = "1308919341" + confirmation_required = true + description = "cos_batch" + priority = 1 + status = "Cancelled" + role_arn = "qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole" + manifest { + location { + etag = "64357de8fd75a3abae2200135a2c9627" + object_arn = "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json" + } + spec { + format = "COSInventoryReport_CSV_V1" + } + } + operation { + cos_put_object_copy { + access_control_directive = "Copy" + metadata_directive = "Copy" + prefix_replace = false + storage_class = "STANDARD" + tagging_directive = "Copy" + target_resource = "qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341" + } + } + report { + bucket = "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341" + enabled = "true" + format = "Report_CSV_V1" + report_scope = "AllTasks" + } +} +``` + +Import + +cos bucket batch can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cos_batch.cos_batch ${uin}#${appid}#{job_id} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket.md b/tencentcloud/cos/resource_tc_cos_bucket.md new file mode 100644 index 0000000000..45e3277190 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket.md @@ -0,0 +1,226 @@ +Provides a COS resource to create a COS bucket and set its attributes. + +Example Usage + +Private Bucket + +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id +} + +resource "tencentcloud_cos_bucket" "private_sbucket" { + bucket = "private-bucket-${local.app_id}" + acl = "private" +} +``` + +Creation of multiple available zone bucket + +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id +} + +resource "tencentcloud_cos_bucket" "multi_zone_bucket" { + bucket = "multi-zone-bucket-${local.app_id}" + acl = "private" + multi_az = true + versioning_enable = true + force_clean = true +} +``` + +Using verbose acl + +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id +} + +resource "tencentcloud_cos_bucket" "bucket_with_acl" { + bucket = "bucketwith-acl-${local.app_id}" + # NOTE: Specify the acl_body by the priority sequence of permission and user type with the following sequence: `CanonicalUser with READ`, `CanonicalUser with WRITE`, `CanonicalUser with FULL_CONTROL`, `CanonicalUser with WRITE_ACP`, `CanonicalUser with READ_ACP`, then specify the `Group` of permissions same as `CanonicalUser`. + acl_body = < + + qcs::cam::uin/100022975249:uin/100022975249 + qcs::cam::uin/100022975249:uin/100022975249 + + + + + http://cam.qcloud.com/groups/global/AllUsers + + READ + + + + qcs::cam::uin/100022975249:uin/100022975249 + qcs::cam::uin/100022975249:uin/100022975249 + + FULL_CONTROL + + + + qcs::cam::uin/100022975249:uin/100022975249 + qcs::cam::uin/100022975249:uin/100022975249 + + WRITE_ACP + + + + http://cam.qcloud.com/groups/global/AllUsers + + READ_ACP + + + + http://cam.qcloud.com/groups/global/AllUsers + + WRITE_ACP + + + + qcs::cam::uin/100022975249:uin/100022975249 + qcs::cam::uin/100022975249:uin/100022975249 + + READ + + + + qcs::cam::uin/100022975249:uin/100022975249 + qcs::cam::uin/100022975249:uin/100022975249 + + WRITE + + + + http://cam.qcloud.com/groups/global/AllUsers + + FULL_CONTROL + + + +EOF +} +``` + +Static Website + +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id +} + +resource "tencentcloud_cos_bucket" "bucket_with_static_website" { + bucket = "bucket-with-static-website-${local.app_id}" + + website { + index_document = "index.html" + error_document = "error.html" + } +} + +output "endpoint_test" { + value = tencentcloud_cos_bucket.bucket_with_static_website.website.0.endpoint +} +``` + +Using CORS + +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id +} + +resource "tencentcloud_cos_bucket" "bucket_with_cors" { + bucket = "bucket-with-cors-${local.app_id}" + acl = "public-read-write" + + cors_rules { + allowed_origins = ["http://*.abc.com"] + allowed_methods = ["PUT", "POST"] + allowed_headers = ["*"] + max_age_seconds = 300 + expose_headers = ["Etag"] + } +} +``` + +Using object lifecycle + +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id +} + +resource "tencentcloud_cos_bucket" "bucket_with_lifecycle" { + bucket = "bucket-with-lifecycle-${local.app_id}" + acl = "public-read-write" + + lifecycle_rules { + filter_prefix = "path1/" + + transition { + days = 30 + storage_class = "STANDARD_IA" + } + + expiration { + days = 90 + } + } +} +``` + +Using replication +```hcl +data "tencentcloud_user_info" "info" {} + +locals { + app_id = data.tencentcloud_user_info.info.app_id + uin = data.tencentcloud_user_info.info.uin + owner_uin = data.tencentcloud_user_info.info.owner_uin + region = "ap-guangzhou" +} + +resource "tencentcloud_cos_bucket" "bucket_replicate" { + bucket = "bucket-replicate-${local.app_id}" + acl = "private" + versioning_enable = true +} + +resource "tencentcloud_cos_bucket" "bucket_with_replication" { + bucket = "bucket-with-replication-${local.app_id}" + acl = "private" + versioning_enable = true + replica_role = "qcs::cam::uin/${local.owner_uin}:uin/${local.uin}" + replica_rules { + id = "test-rep1" + status = "Enabled" + prefix = "dist" + destination_bucket = "qcs::cos:${local.region}::${tencentcloud_cos_bucket.bucket_replicate.bucket}" + } +} +``` + +Import + +COS bucket can be imported, e.g. + +``` +$ terraform import tencentcloud_cos_bucket.bucket bucket-name +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_domain_certificate_attachment.md b/tencentcloud/cos/resource_tc_cos_bucket_domain_certificate_attachment.md new file mode 100644 index 0000000000..6e8c97669e --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_domain_certificate_attachment.md @@ -0,0 +1,21 @@ +Provides a resource to attach/detach the corresponding certificate for the domain name in specified cos bucket. + +Example Usage + +```hcl + +resource "tencentcloud_cos_bucket_domain_certificate_attachment" "foo" { + bucket = "" + domain_certificate { + domain = "domain_name" + certificate { + cert_type = "CustomCert" + custom_cert { + cert = "===CERTIFICATE===" + private_key = "===PRIVATE_KEY===" + } + } + } +} + +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_generate_inventory_immediately_operation.md b/tencentcloud/cos/resource_tc_cos_bucket_generate_inventory_immediately_operation.md new file mode 100644 index 0000000000..6eae0ffc48 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_generate_inventory_immediately_operation.md @@ -0,0 +1,10 @@ +Provides a resource to generate a cos bucket inventory immediately + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket_generate_inventory_immediately_operation" "generate_inventory_immediately" { + inventory_id = "test" + bucket = "keep-test-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_inventory.md b/tencentcloud/cos/resource_tc_cos_bucket_inventory.md new file mode 100644 index 0000000000..4b46ad1118 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_inventory.md @@ -0,0 +1,38 @@ +Provides a resource to create a cos bucket_inventory + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket_inventory" "bucket_inventory" { + name = "test123" + bucket = "keep-test-xxxxxx" + is_enabled = "true" + included_object_versions = "Current" + optional_fields { + fields = ["Size", "ETag"] + } + filter { + period { + start_time = "1687276800" + } + } + schedule { + frequency = "Weekly" + } + destination { + bucket = "qcs::cos:ap-guangzhou::keep-test-xxxxxx" + account_id = "" + format = "CSV" + prefix = "cos_bucket_inventory" + + } +} +``` + +Import + +cos bucket_inventory can be imported using the id, e.g. + +``` +terraform import tencentcloud_cos_bucket_inventory.bucket_inventory bucket_inventory_id +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_object.md b/tencentcloud/cos/resource_tc_cos_bucket_object.md new file mode 100644 index 0000000000..05a6fc077d --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_object.md @@ -0,0 +1,28 @@ +Provides a COS object resource to put an object(content or file) to the bucket. + +Example Usage + +Uploading a file to a bucket + +```hcl +resource "tencentcloud_cos_bucket_object" "myobject" { + bucket = "mycos-1258798060" + key = "new_object_key" + source = "path/to/file" +} +``` + +Uploading a content to a bucket + +```hcl +resource "tencentcloud_cos_bucket" "mycos" { + bucket = "mycos-1258798060" + acl = "public-read" +} + +resource "tencentcloud_cos_bucket_object" "myobject" { + bucket = tencentcloud_cos_bucket.mycos.bucket + key = "new_object_key" + content = "the content that you want to upload." +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_policy.md b/tencentcloud/cos/resource_tc_cos_bucket_policy.md new file mode 100644 index 0000000000..7fc9c6f47d --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_policy.md @@ -0,0 +1,40 @@ +Provides a COS resource to create a COS bucket policy and set its attributes. + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket_policy" "cos_policy" { + bucket = "mycos-1258798060" + + policy = <:uin/" + ] + }, + "Action": [ + "name/cos:DeleteBucket", + "name/cos:PutBucketACL" + ], + "Effect": "allow", + "Resource": [ + "qcs::cos::uid/:/*" + ] + } + ] +} +EOF +} +``` + +Import + +COS bucket policy can be imported, e.g. + +``` +$ terraform import tencentcloud_cos_bucket_policy.bucket bucket-name +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_referer.md b/tencentcloud/cos/resource_tc_cos_bucket_referer.md new file mode 100644 index 0000000000..0f774ae8a7 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_referer.md @@ -0,0 +1,21 @@ +Provides a resource to create a cos bucket_referer + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket_referer" "bucket_referer" { + bucket = "mycos-1258798060" + status = "Enabled" + referer_type = "Black-List" + domain_list = ["127.0.0.1", "terraform.com"] + empty_refer_configuration = "Allow" +} +``` + +Import + +cos bucket_referer can be imported using the id, e.g. + +``` +terraform import tencentcloud_cos_bucket_referer.bucket_referer bucket_id +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_bucket_version.md b/tencentcloud/cos/resource_tc_cos_bucket_version.md new file mode 100644 index 0000000000..b0fb0576b3 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_bucket_version.md @@ -0,0 +1,18 @@ +Provides a resource to create a cos bucket_version + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket_version" "bucket_version" { + bucket = "mycos-1258798060" + status = "Enabled" +} +``` + +Import + +cos bucket_version can be imported using the id, e.g. + +``` +terraform import tencentcloud_cos_bucket_version.bucket_version bucket_id +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_object_abort_multipart_upload_operation.md b/tencentcloud/cos/resource_tc_cos_object_abort_multipart_upload_operation.md new file mode 100644 index 0000000000..e75ccf8336 --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_object_abort_multipart_upload_operation.md @@ -0,0 +1,11 @@ +Provides a resource to abort multipart upload + +Example Usage + +```hcl +resource "tencentcloud_cos_object_abort_multipart_upload_operation" "abort_multipart_upload" { + bucket = "keep-test-xxxxxx" + key = "object" + upload_id = "xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_object_copy_operation.md b/tencentcloud/cos/resource_tc_cos_object_copy_operation.md new file mode 100644 index 0000000000..2b502e48ac --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_object_copy_operation.md @@ -0,0 +1,11 @@ +Provides a resource to copy object + +Example Usage + +```hcl +resource "tencentcloud_cos_object_copy_operation" "object_copy" { + bucket = "keep-copy-xxxxxxx" + key = "copy-acl.txt" + source_url = "keep-test-xxxxxx.cos.ap-guangzhou.myqcloud.com/acl.txt" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_object_download_operation.md b/tencentcloud/cos/resource_tc_cos_object_download_operation.md new file mode 100644 index 0000000000..307ec9d9eb --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_object_download_operation.md @@ -0,0 +1,11 @@ +Provides a resource to download object + +Example Usage + +```hcl +resource "tencentcloud_cos_object_download_operation" "object_download" { + bucket = "xxxxxxx" + key = "test.txt" + download_path = "/tmp/test.txt" +} +``` \ No newline at end of file diff --git a/tencentcloud/cos/resource_tc_cos_object_restore_operation.md b/tencentcloud/cos/resource_tc_cos_object_restore_operation.md new file mode 100644 index 0000000000..68dbbc980a --- /dev/null +++ b/tencentcloud/cos/resource_tc_cos_object_restore_operation.md @@ -0,0 +1,12 @@ +Provides a resource to restore object + +Example Usage + +```hcl +resource "tencentcloud_cos_object_restore_operation" "object_restore" { + bucket = "keep-test-1308919341" + key = "test-restore.txt" + tier = "Expedited" + days = 2 +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_backup.md b/tencentcloud/crs/data_source_tc_redis_backup.md new file mode 100644 index 0000000000..a185b9ef4d --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_backup.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of redis backup + +Example Usage + +```hcl +data "tencentcloud_redis_backup" "backup" { + instance_id = "crs-c1nl9rpv" + begin_time = "2023-04-07 03:57:30" + end_time = "2023-04-07 03:57:56" + status = [2] + instance_name = "Keep-terraform" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_backup_download_info.md b/tencentcloud/crs/data_source_tc_redis_backup_download_info.md new file mode 100644 index 0000000000..35c8f07005 --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_backup_download_info.md @@ -0,0 +1,18 @@ +Use this data source to query detailed information of redis backup_download_info + +Example Usage + +```hcl +data "tencentcloud_redis_backup_download_info" "backup_download_info" { + instance_id = "crs-iw7d9wdd" + backup_id = "641186639-8362913-1516672770" + # limit_type = "NoLimit" + # vpc_comparison_symbol = "In" + # ip_comparison_symbol = "In" + # limit_vpc { + # region = "ap-guangzhou" + # vpc_list = [""] + # } + # limit_ip = [""] +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_instance_node_info.md b/tencentcloud/crs/data_source_tc_redis_instance_node_info.md new file mode 100644 index 0000000000..74438e1bcf --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_instance_node_info.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of redis instance_node_info + +Example Usage + +```hcl +data "tencentcloud_redis_instance_node_info" "instance_node_info" { + instance_id = "crs-c1nl9rpv" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_instance_shards.md b/tencentcloud/crs/data_source_tc_redis_instance_shards.md new file mode 100644 index 0000000000..3c7f243846 --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_instance_shards.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of redis instance_shards + +Example Usage + +```hcl +data "tencentcloud_redis_instance_shards" "instance_shards" { + instance_id = "crs-c1nl9rpv" + filter_slave = false +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_instance_task_list.md b/tencentcloud/crs/data_source_tc_redis_instance_task_list.md new file mode 100644 index 0000000000..72231681d9 --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_instance_task_list.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of redis instance_task_list + +Example Usage + +```hcl +data "tencentcloud_redis_instance_task_list" "instance_task_list" { + instance_id = "crs-c1nl9rpv" + instance_name = "" + project_ids = [""] + task_types = [""] + begin_time = "2021-12-30 00:00:00" + end_time = "2021-12-30 00:00:00" + task_status = [""] + result = [""] + operate_uin = [""] +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_instance_zone_info.md b/tencentcloud/crs/data_source_tc_redis_instance_zone_info.md new file mode 100644 index 0000000000..1def666fcc --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_instance_zone_info.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of redis instance_zone_info + +Example Usage + +```hcl +data "tencentcloud_redis_instance_zone_info" "instance_zone_info" { + instance_id = "crs-c1nl9rpv" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_instances.md b/tencentcloud/crs/data_source_tc_redis_instances.md new file mode 100644 index 0000000000..e93814304b --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_instances.md @@ -0,0 +1,13 @@ +Use this data source to query the detail information of redis instance. + +Example Usage + +```hcl +data "tencentcloud_redis_instances" "redislab" { + zone = "ap-hongkong-1" + search_key = "myredis" + project_id = 0 + limit = 20 + result_output_file = "/tmp/redis_instances" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_param_records.md b/tencentcloud/crs/data_source_tc_redis_param_records.md new file mode 100644 index 0000000000..a695abaa03 --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_param_records.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of redis param records + +Example Usage + +```hcl + +data "tencentcloud_redis_param_records" "param_records" { + instance_id = "crs-c1nl9rpv" +} + +``` \ No newline at end of file diff --git a/tencentcloud/crs/data_source_tc_redis_zone_config.md b/tencentcloud/crs/data_source_tc_redis_zone_config.md new file mode 100644 index 0000000000..dde4d35f8e --- /dev/null +++ b/tencentcloud/crs/data_source_tc_redis_zone_config.md @@ -0,0 +1,10 @@ +Use this data source to query which instance types of Redis are available in a specific region. + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "redislab" { + region = "ap-hongkong" + result_output_file = "/temp/mytestpath" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_account.md b/tencentcloud/crs/resource_tc_redis_account.md new file mode 100644 index 0000000000..617f489784 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_account.md @@ -0,0 +1,95 @@ +Provides a resource to create a redis account + +Example Usage + +Create an account with read and write permissions + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_redis_account" "account" { + instance_id = tencentcloud_redis_instance.foo.id + account_name = "account_test" + account_password = "test1234" + remark = "master" + readonly_policy = ["master"] + privilege = "rw" +} +``` + +Create an account with read-only permissions + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_redis_account" "account" { + instance_id = tencentcloud_redis_instance.foo.id + account_name = "account_test" + account_password = "test1234" + remark = "master" + readonly_policy = ["master"] + privilege = "r" +} +``` + +Import + +redis account can be imported using the id, e.g. + +``` +terraform import tencentcloud_redis_account.account crs-xxxxxx#account_test +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_backup_config.md b/tencentcloud/crs/resource_tc_redis_backup_config.md new file mode 100644 index 0000000000..fa1232b2c7 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_backup_config.md @@ -0,0 +1,50 @@ +Use this resource to create a backup config of redis. + +Example Usage + +Set configuration for automatic backups + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_redis_backup_config" "foo" { + redis_id = tencentcloud_redis_instance.foo.id + backup_time = "04:00-05:00" + backup_period = ["Monday"] +} +``` + +Import + +Redis backup config can be imported, e.g. + +``` +$ terraform import tencentcloud_redis_backup_config.foo redis-id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_backup_download_restriction.md b/tencentcloud/crs/resource_tc_redis_backup_download_restriction.md new file mode 100644 index 0000000000..123f647372 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_backup_download_restriction.md @@ -0,0 +1,26 @@ +Provides a resource to create a redis backup_download_restriction + +Example Usage + +Modify the network information and address of the current region backup file download + +```hcl +resource "tencentcloud_redis_backup_download_restriction" "foo" { + limit_type = "Customize" + vpc_comparison_symbol = "In" + ip_comparison_symbol = "In" + limit_vpc { + region = "ap-guangzhou" + vpc_list = [var.vpc_id] + } + limit_ip = ["10.1.1.12", "10.1.1.13"] +} +``` + +Import + +redis backup_download_restriction can be imported using the region, e.g. + +``` +terraform import tencentcloud_redis_backup_download_restriction.foo ap-guangzhou +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_backup_operation.md b/tencentcloud/crs/resource_tc_redis_backup_operation.md new file mode 100644 index 0000000000..50a89e6468 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_backup_operation.md @@ -0,0 +1,15 @@ +Provides a resource to create a redis backup_operation + +Example Usage + +Manually back up the Redis instance, and the backup data is kept for 7 days + +```hcl +data "tencentcloud_mysql_instance" "foo" {} + +resource "tencentcloud_redis_backup_operation" "backup_operation" { + instance_id = data.tencentcloud_mysql_instance.foo.instance_list[0].mysql_id + remark = "manually back" + storage_days = 7 +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_clear_instance_operation.md b/tencentcloud/crs/resource_tc_redis_clear_instance_operation.md new file mode 100644 index 0000000000..3225b5fe26 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_clear_instance_operation.md @@ -0,0 +1,45 @@ +Provides a resource to create a redis clear_instance_operation + +Example Usage + +Clear the instance data of the Redis instance + +```hcl +variable "password" { + default = "test12345789" +} + +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id + password = var.password + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_redis_clear_instance_operation" "clear_instance_operation" { + instance_id = tencentcloud_redis_instance.foo.id + password = var.password +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_connection_config.md b/tencentcloud/crs/resource_tc_redis_connection_config.md new file mode 100644 index 0000000000..18a4a672a6 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_connection_config.md @@ -0,0 +1,51 @@ +Provides a resource to create a redis connection_config + +Example Usage + +Modify the maximum number of connections and maximum network throughput of an instance + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_redis_connection_config" "connection_config" { + instance_id = "crs-fhm9fnv1" + client_limit = "20000" + add_bandwidth = "30" +} + +``` + +Import + +Redis connectionConfig can be imported, e.g. + +``` +$ terraform import tencentcloud_redis_connection_config.connection_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_instance.md b/tencentcloud/crs/resource_tc_redis_instance.md new file mode 100644 index 0000000000..ea25b732f4 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_instance.md @@ -0,0 +1,232 @@ +Provides a resource to create a Redis instance and set its attributes. + +~> **NOTE:** The argument vpc_id and subnet_id is now required because Basic Network Instance is no longer supported. + +~> **NOTE:** Both adding and removing replications in one change is supported but not recommend. + +Example Usage + +Create a base version of redis + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} +``` + +Using multi replica zone set + +```hcl +variable "redis_replicas_num" { + default = 3 +} + +variable "redis_type_id" { + default = 7 +} + +data "tencentcloud_availability_zones_by_product" "az" { + product = "redis" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_availability_zones_by_product.az.zones[0].name + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "red1" { + availability_zone = data.tencentcloud_availability_zones_by_product.az.zones[0].name + type_id = var.redis_type_id + charge_type = "POSTPAID" + mem_size = 1024 + name = "test-redis" + port = 6379 + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + password = "a12121312334" + security_groups = [tencentcloud_security_group.foo.id] + redis_replicas_num = var.redis_replicas_num + redis_shard_num = 1 + replica_zone_ids = [ + for i in range(var.redis_replicas_num) + : data.tencentcloud_availability_zones_by_product.az.zones[i % length(data.tencentcloud_availability_zones_by_product.az.zones)].id + ] +} +``` + +Buy a month of prepaid instances + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] + charge_type = "PREPAID" + prepaid_period = 1 +} +``` + +Create a multi-AZ instance + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 + region = "ap-guangzhou" +} + +variable "replica_zone_ids" { + default = [100004,100006] +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = 2 + replica_zone_ids = var.replica_zone_ids + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} +``` + +Import + +Redis instance can be imported, e.g. + +``` +$ terraform import tencentcloud_redis_instance.redislab redis-id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_maintenance_window.md b/tencentcloud/crs/resource_tc_redis_maintenance_window.md new file mode 100644 index 0000000000..5eed04b0dd --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_maintenance_window.md @@ -0,0 +1,48 @@ +Provides a resource to create a redis maintenance_window + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_redis_maintenance_window" "foo" { + instance_id = tencentcloud_redis_instance.foo.id + start_time = "17:00" + end_time = "19:00" +} +``` + +Import + +redis maintenance_window can be imported using the id, e.g. + +``` +terraform import tencentcloud_redis_maintenance_window.foo instance_id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_param_template.md b/tencentcloud/crs/resource_tc_redis_param_template.md new file mode 100644 index 0000000000..115b21792a --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_param_template.md @@ -0,0 +1,42 @@ +Provides a resource to create a redis parameter template + +Example Usage + +```hcl +resource "tencentcloud_redis_param_template" "param_template" { + name = "example-template" + description = "This is an example redis param template." + product_type = 6 + params_override { + key = "timeout" + value = "7200" + } +} +``` + +Copy from another template + +```hcl +resource "tencentcloud_redis_param_template" "foo" { + name = "tf-template" + description = "This is an example redis param template." + product_type = 6 + params_override { + key = "timeout" + value = "7200" + } +} + +resource "tencentcloud_redis_param_template" "param_template" { + name = "tf-template-copied" + description = "This is an copied redis param template from tf-template." + template_id = tencentcloud_redis_param_template.foo.id +} +``` + +Import + +redis param_template can be imported using the id, e.g. +``` +$ terraform import tencentcloud_redis_param_template.param_template param_template_id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_read_only.md b/tencentcloud/crs/resource_tc_redis_read_only.md new file mode 100644 index 0000000000..897c643dfb --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_read_only.md @@ -0,0 +1,70 @@ +Provides a resource to create a redis read_only + +Example Usage + +Set instance input mode + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_read_only" "read_only" { + instance_id = tencentcloud_redis_instance.foo.id + input_mode = "0" +} +``` + +Import + +redis read_only can be imported using the instanceId, e.g. + +``` +terraform import tencentcloud_redis_read_only.read_only crs-c1nl9rpv +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_renew_instance_operation.md b/tencentcloud/crs/resource_tc_redis_renew_instance_operation.md new file mode 100644 index 0000000000..0f79f5c6c9 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_renew_instance_operation.md @@ -0,0 +1,62 @@ +Provides a resource to create a redis renew_instance_operation + +Example Usage + +Renew Subscription Instances + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +data "tencentcloud_vpc" "vpc" { + name = "Default-VPC" +} + +data "tencentcloud_vpc_subnets" "subnet" { + vpc_id = data.tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = data.tencentcloud_vpc.vpc.id + subnet_id = data.tencentcloud_vpc_subnets.subnet.instance_list[0].subnet_id + security_groups = [tencentcloud_security_group.foo.id] + charge_type = "PREPAID" + prepaid_period = 1 +} + +resource "tencentcloud_redis_renew_instance_operation" "foo" { + instance_id = tencentcloud_redis_instance.foo.id + period = 1 + modify_pay_mode = "prepaid" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_replica_readonly.md b/tencentcloud/crs/resource_tc_redis_replica_readonly.md new file mode 100644 index 0000000000..dc0f96eef2 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_replica_readonly.md @@ -0,0 +1,61 @@ +Provides a resource to create a redis replica_readonly + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_replica_readonly" "replica_readonly" { + instance_id = tencentcloud_redis_instance.foo.id + readonly_policy = ["master"] + operate = "enable" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_replicate_attachment.md b/tencentcloud/crs/resource_tc_redis_replicate_attachment.md new file mode 100644 index 0000000000..8f6b517fd9 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_replicate_attachment.md @@ -0,0 +1,84 @@ +Provides a resource to create a redis replicate_attachment + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 + region = "ap-guangzhou" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_instance" "instance" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] + name = "terrform_test_instance" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_replicate_attachment" "replicate_attachment" { + group_id = "crs-rpl-orfiwmn5" + master_instance_id = tencentcloud_redis_instance.foo.id + instance_ids = [tencentcloud_redis_instance.instance.id] +} +``` + +Import + +redis replicate_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_redis_replicate_attachment.replicate_attachment replicate_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_security_group_attachment.md b/tencentcloud/crs/resource_tc_redis_security_group_attachment.md new file mode 100644 index 0000000000..af1d0c1a70 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_security_group_attachment.md @@ -0,0 +1,84 @@ +Provides a resource to create a redis security_group_attachment + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 + region = "ap-guangzhou" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_instance" "instance" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] + name = "terrform_test_instance" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_replicate_attachment" "replicate_attachment" { + group_id = "crs-rpl-orfiwmn5" + master_instance_id = tencentcloud_redis_instance.foo.id + instance_ids = [tencentcloud_redis_instance.instance.id] +} +``` + +Import + +redis security_group_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_redis_security_group_attachment.security_group_attachment instance_id#security_group_id +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_ssl.md b/tencentcloud/crs/resource_tc_redis_ssl.md new file mode 100644 index 0000000000..d79cae1b70 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_ssl.md @@ -0,0 +1,69 @@ +Provides a resource to create a redis ssl + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 + region = "ap-guangzhou" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +resource "tencentcloud_redis_ssl" "ssl" { + instance_id = tencentcloud_redis_instance.foo.id + ssl_config = "disabled" +} +``` + +Import + +redis ssl can be imported using the instanceId, e.g. + +``` +terraform import tencentcloud_redis_ssl.ssl crs-c1nl9rpv +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_startup_instance_operation.md b/tencentcloud/crs/resource_tc_redis_startup_instance_operation.md new file mode 100644 index 0000000000..252d4dad67 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_startup_instance_operation.md @@ -0,0 +1,11 @@ +Provides a resource to create a redis startup_instance_operation + +Example Usage + +Recover the redis instance that has been isolated + +```hcl +resource "tencentcloud_redis_startup_instance_operation" "foo" { + instance_id = "crs-c1nl9rpv" +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_switch_master.md b/tencentcloud/crs/resource_tc_redis_switch_master.md new file mode 100644 index 0000000000..a60509d298 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_switch_master.md @@ -0,0 +1,70 @@ +Provides a resource to create a redis switch_master + +Example Usage + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 7 + region = "ap-guangzhou" +} + +variable "replica_zone_ids" { + default = [100004,100006] +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_redis_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + name = "tf_redis_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_security_group" "foo" { + name = "tf-redis-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "DROP#0.0.0.0/0#80-90#TCP", + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} + +resource "tencentcloud_redis_instance" "foo" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id + password = "test12345789" + mem_size = 8192 + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] + redis_replicas_num = 2 + replica_zone_ids = var.replica_zone_ids + name = "terrform_test" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.foo.id] +} + +data "tencentcloud_redis_instance_zone_info" "foo" { + instance_id = tencentcloud_redis_instance.foo.id +} + +resource "tencentcloud_redis_switch_master" "switch_master" { + instance_id = tencentcloud_redis_instance.foo.id + group_id = data.tencentcloud_redis_instance_zone_info.foo.replica_groups[1].group_id +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_upgrade_cache_version_operation.md b/tencentcloud/crs/resource_tc_redis_upgrade_cache_version_operation.md new file mode 100644 index 0000000000..a4c246bc0c --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_upgrade_cache_version_operation.md @@ -0,0 +1,12 @@ +Provides a resource to create a redis upgrade_cache_version_operation + +Example Usage + +```hcl +resource "tencentcloud_redis_upgrade_cache_version_operation" "upgrade_cache_version_operation" { + instance_id = "crs-c1nl9rpv" + current_redis_version = "5.0.0" + upgrade_redis_version = "5.0.0" + instance_type_upgrade_now = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_upgrade_multi_zone_operation.md b/tencentcloud/crs/resource_tc_redis_upgrade_multi_zone_operation.md new file mode 100644 index 0000000000..c56403ac97 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_upgrade_multi_zone_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a redis upgrade_multi_zone_operation + +Example Usage + +```hcl +resource "tencentcloud_redis_upgrade_multi_zone_operation" "upgrade_multi_zone_operation" { + instance_id = "crs-c1nl9rpv" + upgrade_proxy_and_redis_server = true +} +``` \ No newline at end of file diff --git a/tencentcloud/crs/resource_tc_redis_upgrade_proxy_version_operation.md b/tencentcloud/crs/resource_tc_redis_upgrade_proxy_version_operation.md new file mode 100644 index 0000000000..1208a84057 --- /dev/null +++ b/tencentcloud/crs/resource_tc_redis_upgrade_proxy_version_operation.md @@ -0,0 +1,12 @@ +Provides a resource to create a redis upgrade_proxy_version_operation + +Example Usage + +```hcl +resource "tencentcloud_redis_upgrade_proxy_version_operation" "upgrade_proxy_version_operation" { + instance_id = "crs-c1nl9rpv" + current_proxy_version = "5.0.0" + upgrade_proxy_version = "5.0.0" + instance_type_upgrade_now = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_backup_stream.md b/tencentcloud/css/data_source_tc_css_backup_stream.md new file mode 100644 index 0000000000..92f7ed3474 --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_backup_stream.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of css backup_stream + +Example Usage + +```hcl +data "tencentcloud_css_backup_stream" "backup_stream" { + stream_name = "live" +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_domains.md b/tencentcloud/css/data_source_tc_css_domains.md new file mode 100644 index 0000000000..913b3fa4b6 --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_domains.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of css domains + +Example Usage + +```hcl +data "tencentcloud_css_domains" "domains" { + domain_type = 0 + play_type = 1 + is_delay_live = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_monitor_report.md b/tencentcloud/css/data_source_tc_css_monitor_report.md new file mode 100644 index 0000000000..f173b5ca9a --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_monitor_report.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of css monitor_report + +Example Usage + +```hcl +data "tencentcloud_css_monitor_report" "monitor_report" { + monitor_id = "0e8a12b5-df2a-4a1b-aa98-97d5610aa142" +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_pad_templates.md b/tencentcloud/css/data_source_tc_css_pad_templates.md new file mode 100644 index 0000000000..212e4b3776 --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_pad_templates.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of css pad_templates + +Example Usage + +```hcl +data "tencentcloud_css_pad_templates" "pad_templates" { +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_pull_stream_task_status.md b/tencentcloud/css/data_source_tc_css_pull_stream_task_status.md new file mode 100644 index 0000000000..a1efbfe800 --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_pull_stream_task_status.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of css pull_stream_task_status + +Example Usage + +```hcl +data "tencentcloud_css_pull_stream_task_status" "pull_stream_task_status" { + task_id = "63229997" +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_stream_monitor_list.md b/tencentcloud/css/data_source_tc_css_stream_monitor_list.md new file mode 100644 index 0000000000..18c7ebee1e --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_stream_monitor_list.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of css stream_monitor_list + +Example Usage + +```hcl +data "tencentcloud_css_stream_monitor_list" "stream_monitor_list" { +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_time_shift_record_detail.md b/tencentcloud/css/data_source_tc_css_time_shift_record_detail.md new file mode 100644 index 0000000000..a8580acb93 --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_time_shift_record_detail.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of css time_shift_record_detail + +Example Usage + +```hcl +data "tencentcloud_css_time_shift_record_detail" "time_shift_record_detail" { + domain = "177154.push.tlivecloud.com" + app_name = "qqq" + stream_name = "live" + start_time = 1698768000 + end_time = 1698820641 + domain_group = "tf-test" + trans_code_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_time_shift_stream_list.md b/tencentcloud/css/data_source_tc_css_time_shift_stream_list.md new file mode 100644 index 0000000000..cb7fd17f7a --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_time_shift_stream_list.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of css time_shift_stream_list + +Example Usage + +```hcl +data "tencentcloud_css_time_shift_stream_list" "time_shift_stream_list" { + start_time = 1698768000 + end_time = 1698820641 + stream_name = "live" + domain = "177154.push.tlivecloud.com" + domain_group = "tf-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_watermarks.md b/tencentcloud/css/data_source_tc_css_watermarks.md new file mode 100644 index 0000000000..ea2d7a6350 --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_watermarks.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of css watermarks + +Example Usage + +```hcl +data "tencentcloud_css_watermarks" "watermarks" { +} +``` \ No newline at end of file diff --git a/tencentcloud/css/data_source_tc_css_xp2p_detail_info_list.md b/tencentcloud/css/data_source_tc_css_xp2p_detail_info_list.md new file mode 100644 index 0000000000..f3b27da84f --- /dev/null +++ b/tencentcloud/css/data_source_tc_css_xp2p_detail_info_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of css xp2p_detail_info_list + +Example Usage + +```hcl +data "tencentcloud_css_xp2p_detail_info_list" "xp2p_detail_info_list" { + query_time = "2023-11-01T14:55:01+08:00" + type = ["live"] +} +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_authenticate_domain_owner_operation.md b/tencentcloud/css/resource_tc_css_authenticate_domain_owner_operation.md new file mode 100644 index 0000000000..83eb1b8193 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_authenticate_domain_owner_operation.md @@ -0,0 +1,18 @@ +Provides a resource to verify the domain ownership by specified way when DomainNeedVerifyOwner failed in domain creation. + +Example Usage +dnsCheck way: +```hcl +resource "tencentcloud_css_authenticate_domain_owner_operation" "dnsCheck" { + domain_name = "your_domain_name" + verify_type = "dnsCheck" +} +``` + +fileCheck way: +```hcl +resource "tencentcloud_css_authenticate_domain_owner_operation" "fileCheck" { + domain_name = "your_domain_name" + verify_type = "fileCheck" +} +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_backup_stream.md b/tencentcloud/css/resource_tc_css_backup_stream.md new file mode 100644 index 0000000000..e81ee450b4 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_backup_stream.md @@ -0,0 +1,22 @@ +Provides a resource to create a css backup_stream + +~> **NOTE:** This resource is only valid when the push stream. When the push stream ends, it will be deleted. + +Example Usage + +```hcl +resource "tencentcloud_css_backup_stream" "backup_stream" { + push_domain_name = "177154.push.tlivecloud.com" + app_name = "live" + stream_name = "1308919341_test" + upstream_sequence = "2209501773993286139" +} +``` + +Import + +css backup_stream can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_backup_stream.backup_stream pushDomainName#appName#streamName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_callback_rule_attachment.md b/tencentcloud/css/resource_tc_css_callback_rule_attachment.md new file mode 100644 index 0000000000..4ae6c9f89e --- /dev/null +++ b/tencentcloud/css/resource_tc_css_callback_rule_attachment.md @@ -0,0 +1,19 @@ +Provides a resource to create a css callback_rule + +Example Usage + +```hcl +resource "tencentcloud_css_callback_rule_attachment" "callback_rule" { + domain_name = "177154.push.tlivecloud.com" + template_id = 434039 + app_name = "live" +} +``` + +Import + +css callback_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_callback_rule_attachment.callback_rule templateId#domainName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_callback_template.md b/tencentcloud/css/resource_tc_css_callback_template.md new file mode 100644 index 0000000000..d87bba5c4f --- /dev/null +++ b/tencentcloud/css/resource_tc_css_callback_template.md @@ -0,0 +1,25 @@ +Provides a resource to create a css callback_template + +Example Usage + +```hcl +resource "tencentcloud_css_callback_template" "callback_template" { + template_name = "tf-test" + description = "this is demo" + stream_begin_notify_url = "http://www.yourdomain.com/api/notify?action=streamBegin" + stream_end_notify_url = "http://www.yourdomain.com/api/notify?action=streamEnd" + record_notify_url = "http://www.yourdomain.com/api/notify?action=record" + snapshot_notify_url = "http://www.yourdomain.com/api/notify?action=snapshot" + porn_censorship_notify_url = "http://www.yourdomain.com/api/notify?action=porn" + callback_key = "adasda131312" + push_exception_notify_url = "http://www.yourdomain.com/api/notify?action=pushException" +} +``` + +Import + +css callback_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_callback_template.callback_template templateId +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_domain.md b/tencentcloud/css/resource_tc_css_domain.md new file mode 100644 index 0000000000..94f498472e --- /dev/null +++ b/tencentcloud/css/resource_tc_css_domain.md @@ -0,0 +1,22 @@ +Provides a resource to create a css domain + +Example Usage + +```hcl +resource "tencentcloud_css_domain" "domain" { + domain_name = "iac-tf.cloud" + domain_type = 0 + play_type = 1 + is_delay_live = 0 + is_mini_program_live = 0 + verify_owner_type = "dbCheck" +} +``` + +Import + +css domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_domain.domain domain_name +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_domain_referer.md b/tencentcloud/css/resource_tc_css_domain_referer.md new file mode 100644 index 0000000000..3818f196ac --- /dev/null +++ b/tencentcloud/css/resource_tc_css_domain_referer.md @@ -0,0 +1,21 @@ +Provides a resource to create a css domain_referer + +Example Usage + +```hcl +resource "tencentcloud_css_domain_referer" "domain_referer" { + allow_empty = 1 + domain_name = "test122.jingxhu.top" + enable = 0 + rules = "example.com" + type = 1 +} +``` + +Import + +css domain_referer can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_domain_referer.domain_referer domainName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_enable_optimal_switching.md b/tencentcloud/css/resource_tc_css_enable_optimal_switching.md new file mode 100644 index 0000000000..737b5219b9 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_enable_optimal_switching.md @@ -0,0 +1,21 @@ +Provides a resource to create a css enable_optimal_switching + +~> **NOTE:** This resource is only valid when the push stream. When the push stream ends, it will be deleted. + +Example Usage + +```hcl +resource "tencentcloud_css_enable_optimal_switching" "enable_optimal_switching" { + stream_name = "1308919341_test" + enable_switch = 1 + host_group_name = "test-group" +} +``` + +Import + +css domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_enable_optimal_switching.enable_optimal_switching streamName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_live_transcode_rule_attachment.md b/tencentcloud/css/resource_tc_css_live_transcode_rule_attachment.md new file mode 100644 index 0000000000..babc38a8ee --- /dev/null +++ b/tencentcloud/css/resource_tc_css_live_transcode_rule_attachment.md @@ -0,0 +1,41 @@ +Provides a resource to create a css live_transcode_rule_attachment + +Example Usage + +```hcl +resource "tencentcloud_css_pull_stream_task" "task" { + source_type = "%s" + source_urls = ["%s"] + domain_name = "%s" + app_name = "%s" + stream_name = "%s" + start_time = "%s" + end_time = "%s" + operator = "%s" + comment = "This is a demo." +} + +resource "tencentcloud_css_live_transcode_template" "temp" { + template_name = "xxx" + acodec = "aac" + video_bitrate = 100 + vcodec = "origin" + description = "This_is_a_tf_test_temp." + need_video = 1 + need_audio = 1 +} + +resource "tencentcloud_css_live_transcode_rule_attachment" "live_transcode_rule_attachment" { + domain_name = tencentcloud_css_pull_stream_task.task.domain_name + app_name = tencentcloud_css_pull_stream_task.task.app_name + stream_name = tencentcloud_css_pull_stream_task.task.stream_name + template_id = tencentcloud_css_live_transcode_template.temp.id +} + +``` +Import + +css live_transcode_rule_attachment can be imported using the id, e.g. +``` +$ terraform import tencentcloud_css_live_transcode_rule_attachment.live_transcode_rule_attachment liveTranscodeRuleAttachment_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_live_transcode_template.md b/tencentcloud/css/resource_tc_css_live_transcode_template.md new file mode 100644 index 0000000000..2d628d3009 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_live_transcode_template.md @@ -0,0 +1,37 @@ +Provides a resource to create a css live_transcode_template + +Example Usage + +```hcl +resource "tencentcloud_css_live_transcode_template" "live_transcode_template" { + template_name = "template_name" + acodec = "aac" + audio_bitrate = 128 + video_bitrate = 100 + vcodec = "origin" + description = "This_is_a_tf_test_temp." + need_video = 1 + width = 0 + need_audio = 1 + height = 0 + fps = 0 + gop = 2 + rotate = 0 + profile = "baseline" + bitrate_to_orig = 0 + height_to_orig = 0 + fps_to_orig = 0 + ai_trans_code = 0 + adapt_bitrate_percent = 0 + short_edge_as_height = 0 + drm_type = "fairplay" + drm_tracks = "SD" +} + +``` +Import + +css live_transcode_template can be imported using the id, e.g. +``` +$ terraform import tencentcloud_css_live_transcode_template.live_transcode_template liveTranscodeTemplate_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_pad_rule_attachment.md b/tencentcloud/css/resource_tc_css_pad_rule_attachment.md new file mode 100644 index 0000000000..612fbbb112 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_pad_rule_attachment.md @@ -0,0 +1,20 @@ +Provides a resource to create a css pad_rule_attachment + +Example Usage + +```hcl +resource "tencentcloud_css_pad_rule_attachment" "pad_rule_attachment" { + domain_name = "177154.push.tlivecloud.com" + template_id = 17067 + app_name = "qqq" + stream_name = "ppp" +} +``` + +Import + +css pad_rule_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_pad_rule_attachment.pad_rule_attachment templateId#domainName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_pad_template.md b/tencentcloud/css/resource_tc_css_pad_template.md new file mode 100644 index 0000000000..cbf802f7ea --- /dev/null +++ b/tencentcloud/css/resource_tc_css_pad_template.md @@ -0,0 +1,22 @@ +Provides a resource to create a css pad_template + +Example Usage + +```hcl +resource "tencentcloud_css_pad_template" "pad_template" { + description = "pad template" + max_duration = 120000 + template_name = "tf-pad" + type = 1 + url = "https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg" + wait_duration = 2000 +} +``` + +Import + +css pad_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_pad_template.pad_template templateId +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_play_auth_key_config.md b/tencentcloud/css/resource_tc_css_play_auth_key_config.md new file mode 100644 index 0000000000..0f53af8691 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_play_auth_key_config.md @@ -0,0 +1,21 @@ +Provides a resource to create a css play_auth_key_config + +Example Usage + +```hcl +resource "tencentcloud_css_play_auth_key_config" "play_auth_key_config" { + domain_name = "your_play_domain_name" + enable = 1 + auth_key = "testauthkey" + auth_delta = 3600 + auth_back_key = "testbackkey" +} +``` + +Import + +css play_auth_key_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_play_auth_key_config.play_auth_key_config play_auth_key_config_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_play_domain_cert_attachment.md b/tencentcloud/css/resource_tc_css_play_domain_cert_attachment.md new file mode 100644 index 0000000000..5cb8e85ece --- /dev/null +++ b/tencentcloud/css/resource_tc_css_play_domain_cert_attachment.md @@ -0,0 +1,25 @@ +Provides a resource to create a css play_domain_cert_attachment. This resource is used for binding the play domain and specified certification together. + +Example Usage + +```hcl +data "tencentcloud_ssl_certificates" "foo" { + name = "your_ssl_cert" +} + +resource "tencentcloud_css_play_domain_cert_attachment" "play_domain_cert_attachment" { + cloud_cert_id = data.tencentcloud_ssl_certificates.foo.certificates.0.id + domain_info { + domain_name = "your_domain_name" + status = 1 + } +} +``` + +Import + +css play_domain_cert_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_play_domain_cert_attachment.play_domain_cert_attachment domainName#cloudCertId +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_pull_stream_task.md b/tencentcloud/css/resource_tc_css_pull_stream_task.md new file mode 100644 index 0000000000..196c2068a6 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_pull_stream_task.md @@ -0,0 +1,24 @@ +Provides a resource to create a css pull_stream_task + +Example Usage + +```hcl +resource "tencentcloud_css_pull_stream_task" "pull_stream_task" { + source_type = "source_type" + source_urls = ["source_urls"] + domain_name = "domain_name" + app_name = "app_name" + stream_name = "stream_name" + start_time = "2022-11-16T22:09:28Z" + end_time = "2022-11-16T22:09:28Z" + operator = "admin" + comment = "comment." + } + +``` +Import + +css pull_stream_task can be imported using the id, e.g. +``` +$ terraform import tencentcloud_css_pull_stream_task.pull_stream_task pullStreamTask_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_pull_stream_task_restart.md b/tencentcloud/css/resource_tc_css_pull_stream_task_restart.md new file mode 100644 index 0000000000..8ab786249b --- /dev/null +++ b/tencentcloud/css/resource_tc_css_pull_stream_task_restart.md @@ -0,0 +1,10 @@ +Provides a resource to create a css restart_push_task + +Example Usage + +```hcl +resource "tencentcloud_css_pull_stream_task_restart" "restart_push_task" { + task_id = "3573" + operator = "tf-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_push_auth_key_config.md b/tencentcloud/css/resource_tc_css_push_auth_key_config.md new file mode 100644 index 0000000000..6e628d7307 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_push_auth_key_config.md @@ -0,0 +1,21 @@ +Provides a resource to create a css push_auth_key_config + +Example Usage + +```hcl +resource "tencentcloud_css_push_auth_key_config" "push_auth_key_config" { + domain_name = "your_push_domain_name" + enable = 1 + master_auth_key = "testmasterkey" + backup_auth_key = "testbackkey" + auth_delta = 1800 +} +``` + +Import + +css push_auth_key_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_push_auth_key_config.push_auth_key_config push_auth_key_config_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_record_rule_attachment.md b/tencentcloud/css/resource_tc_css_record_rule_attachment.md new file mode 100644 index 0000000000..aeeeabb686 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_record_rule_attachment.md @@ -0,0 +1,20 @@ +Provides a resource to create a css record_rule + +Example Usage + +```hcl +resource "tencentcloud_css_record_rule_attachment" "record_rule" { + domain_name = "177154.push.tlivecloud.com" + template_id = 1262818 + app_name = "qqq" + stream_name = "ppp" +} +``` + +Import + +css record_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_record_rule_attachment.record_rule templateId#domainName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_snapshot_rule_attachment.md b/tencentcloud/css/resource_tc_css_snapshot_rule_attachment.md new file mode 100644 index 0000000000..d313eddcab --- /dev/null +++ b/tencentcloud/css/resource_tc_css_snapshot_rule_attachment.md @@ -0,0 +1,20 @@ +Provides a resource to create a css snapshot_rule + +Example Usage + +```hcl +resource "tencentcloud_css_snapshot_rule_attachment" "snapshot_rule" { + domain_name = "177154.push.tlivecloud.com" + template_id = 12838073 + app_name = "qqq" + stream_name = "ppp" +} +``` + +Import + +css snapshot_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_snapshot_rule_attachment.snapshot_rule templateId#domainName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_snapshot_template.md b/tencentcloud/css/resource_tc_css_snapshot_template.md new file mode 100644 index 0000000000..c42e4bcd5c --- /dev/null +++ b/tencentcloud/css/resource_tc_css_snapshot_template.md @@ -0,0 +1,25 @@ +Provides a resource to create a css snapshot_template + +Example Usage + +```hcl +resource "tencentcloud_css_snapshot_template" "snapshot_template" { + cos_app_id = 1308919341 + cos_bucket = "keep-bucket" + cos_region = "ap-guangzhou" + description = "snapshot template" + height = 0 + porn_flag = 0 + snapshot_interval = 2 + template_name = "tf-snapshot-template" + width = 0 +} +``` + +Import + +css snapshot_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_snapshot_template.snapshot_template templateId +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_start_stream_monitor.md b/tencentcloud/css/resource_tc_css_start_stream_monitor.md new file mode 100644 index 0000000000..195c0dd78a --- /dev/null +++ b/tencentcloud/css/resource_tc_css_start_stream_monitor.md @@ -0,0 +1,18 @@ +Provides a resource to create a css start_stream_monitor + +Example Usage + +```hcl +resource "tencentcloud_css_start_stream_monitor" "start_stream_monitor" { + monitor_id = "3d5738dd-1ca2-4601-a6e9-004c5ec75c0b" + audible_input_index_list = [1] +} +``` + +Import + +css start_stream_monitor can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_start_stream_monitor.start_stream_monitor start_stream_monitor_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_stream_monitor.md b/tencentcloud/css/resource_tc_css_stream_monitor.md new file mode 100644 index 0000000000..33f342ba39 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_stream_monitor.md @@ -0,0 +1,47 @@ +Provides a resource to create a css stream_monitor + +Example Usage + +```hcl +resource "tencentcloud_css_stream_monitor" "stream_monitor" { + ai_asr_input_index_list = [ + 1, + ] + ai_format_diagnose = 1 + ai_ocr_input_index_list = [ + 1, + ] + allow_monitor_report = 1 + asr_language = 1 + check_stream_broken = 1 + check_stream_low_frame_rate = 1 + monitor_name = "test" + ocr_language = 1 + + input_list { + input_app = "live" + input_domain = "177154.push.tlivecloud.com" + input_stream_name = "ppp" + } + + notify_policy { + callback_url = "http://example.com/test" + notify_policy_type = 1 + } + + output_info { + output_domain = "test122.jingxhu.top" + output_stream_height = 1080 + output_stream_name = "afc7847d-1fe1-43bc-b1e4-20d86303c393" + output_stream_width = 1920 + } +} +``` + +Import + +css stream_monitor can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_stream_monitor.stream_monitor stream_monitor_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_timeshift_rule_attachment.md b/tencentcloud/css/resource_tc_css_timeshift_rule_attachment.md new file mode 100644 index 0000000000..1c970febe9 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_timeshift_rule_attachment.md @@ -0,0 +1,20 @@ +Provides a resource to create a css timeshift_rule_attachment + +Example Usage + +```hcl +resource "tencentcloud_css_timeshift_rule_attachment" "timeshift_rule_attachment" { + domain_name = "177154.push.tlivecloud.com" + template_id = 252586 + app_name = "qqq" + stream_name = "ppp" +} +``` + +Import + +css timeshift_rule_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_timeshift_rule_attachment.timeshift_rule_attachment templateId#domainName +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_timeshift_template.md b/tencentcloud/css/resource_tc_css_timeshift_template.md new file mode 100644 index 0000000000..147ec7b3a7 --- /dev/null +++ b/tencentcloud/css/resource_tc_css_timeshift_template.md @@ -0,0 +1,23 @@ +Provides a resource to create a css timeshift_template + +Example Usage + +```hcl +resource "tencentcloud_css_timeshift_template" "timeshift_template" { + area = "Mainland" + description = "timeshift template" + duration = 604800 + item_duration = 5 + remove_watermark = true + template_name = "tf-test" + transcode_template_ids = [] +} +``` + +Import + +css timeshift_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_timeshift_template.timeshift_template templateId +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_watermark.md b/tencentcloud/css/resource_tc_css_watermark.md new file mode 100644 index 0000000000..81fdca426d --- /dev/null +++ b/tencentcloud/css/resource_tc_css_watermark.md @@ -0,0 +1,21 @@ +Provides a resource to create a css watermark + +Example Usage + +```hcl +resource "tencentcloud_css_watermark" "watermark" { + picture_url = "picture_url" + watermark_name = "watermark_name" + x_position = 0 + y_position = 0 + width = 0 + height = 0 +} + +``` +Import + +css watermark can be imported using the id, e.g. +``` +$ terraform import tencentcloud_css_watermark.watermark watermark_id +``` \ No newline at end of file diff --git a/tencentcloud/css/resource_tc_css_watermark_rule_attachment.md b/tencentcloud/css/resource_tc_css_watermark_rule_attachment.md new file mode 100644 index 0000000000..39a738bc3e --- /dev/null +++ b/tencentcloud/css/resource_tc_css_watermark_rule_attachment.md @@ -0,0 +1,43 @@ +Provides a resource to create a css watermark_rule + +Example Usage + +Binding watermark rule with a css stream + +```hcl +resource "tencentcloud_css_pull_stream_task" "example" { + stream_name = "tf_example_stream_name" + source_type = "PullLivePushLive" + source_urls = ["rtmp://xxx.com/live/stream"] + domain_name = "test.domain.com" + app_name = "live" + start_time = "2023-09-27T10:28:21Z" + end_time = "2023-09-27T17:28:21Z" + operator = "tf_admin" + comment = "This is a e2e test case." +} + +resource "tencentcloud_css_watermark" "example" { + picture_url = "picture_url" + watermark_name = "watermark_name" + x_position = 0 + y_position = 0 + width = 0 + height = 0 +} + +resource "tencentcloud_css_watermark_rule_attachment" "watermark_rule_attachment" { + domain_name = tencentcloud_css_pull_stream_task.example.domain_name + app_name = tencentcloud_css_pull_stream_task.example.app_name + stream_name = tencentcloud_css_pull_stream_task.example.stream_name + template_id = tencentcloud_css_watermark.example.id +} +``` + +Import + +css watermark_rule_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_css_watermark_rule_attachment.watermark_rule domain_name#app_name#stream_name#template_id +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_chc_denied_actions.md b/tencentcloud/cvm/data_source_tc_cvm_chc_denied_actions.md new file mode 100644 index 0000000000..7527fe5201 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_chc_denied_actions.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cvm chc_denied_actions + +Example Usage + +```hcl +data "tencentcloud_cvm_chc_denied_actions" "chc_denied_actions" { + chc_ids = ["chc-xxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_chc_hosts.md b/tencentcloud/cvm/data_source_tc_cvm_chc_hosts.md new file mode 100644 index 0000000000..c968f89011 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_chc_hosts.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of cvm chc_hosts + +Example Usage + +```hcl +data "tencentcloud_cvm_chc_hosts" "chc_hosts" { + chc_ids = ["chc-xxxxxx"] + filters { + name = "zone" + values = ["ap-guangzhou-7"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_disaster_recover_group_quota.md b/tencentcloud/cvm/data_source_tc_cvm_disaster_recover_group_quota.md new file mode 100644 index 0000000000..cf12a1d808 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_disaster_recover_group_quota.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of cvm disaster_recover_group_quota + +Example Usage + +```hcl +data "tencentcloud_cvm_disaster_recover_group_quota" "disaster_recover_group_quota" { +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_image_quota.md b/tencentcloud/cvm/data_source_tc_cvm_image_quota.md new file mode 100644 index 0000000000..9ef2fe3fa6 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_image_quota.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of cvm image_quota + +Example Usage + +```hcl +data "tencentcloud_cvm_image_quota" "image_quota" { +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_image_share_permission.md b/tencentcloud/cvm/data_source_tc_cvm_image_share_permission.md new file mode 100644 index 0000000000..3003db2685 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_image_share_permission.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cvm image_share_permission + +Example Usage + +```hcl +data "tencentcloud_cvm_image_share_permission" "image_share_permission" { + image_id = "img-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_import_image_os.md b/tencentcloud/cvm/data_source_tc_cvm_import_image_os.md new file mode 100644 index 0000000000..09e371ba00 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_import_image_os.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of cvm import_image_os + +Example Usage + +```hcl +data "tencentcloud_cvm_import_image_os" "import_image_os" { +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_instance_vnc_url.md b/tencentcloud/cvm/data_source_tc_cvm_instance_vnc_url.md new file mode 100644 index 0000000000..6a9f776a78 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_instance_vnc_url.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cvm instance_vnc_url + +Example Usage + +```hcl +data "tencentcloud_cvm_instance_vnc_url" "instance_vnc_url" { + instance_id = "ins-xxxxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_cvm_instances_modification.md b/tencentcloud/cvm/data_source_tc_cvm_instances_modification.md new file mode 100644 index 0000000000..0e3a536fc3 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_cvm_instances_modification.md @@ -0,0 +1,9 @@ +Use this data source to query cvm instances modification. + +Example Usage + +```hcl +data "tencentcloud_cvm_instances_modification" "foo" { + instance_ids = ["ins-xxxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_eip.md b/tencentcloud/cvm/data_source_tc_eip.md new file mode 100644 index 0000000000..49e0ee32da --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_eip.md @@ -0,0 +1,16 @@ +Provides an available EIP for the user. + +The EIP data source fetch proper EIP from user's EIP pool. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_eips. + +Example Usage + +```hcl +data "tencentcloud_eip" "my_eip" { + filter { + name = "address-status" + values = ["UNBIND"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_eip_address_quota.md b/tencentcloud/cvm/data_source_tc_eip_address_quota.md new file mode 100644 index 0000000000..aac04e412d --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_eip_address_quota.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of vpc address_quota + +Example Usage + +```hcl +data "tencentcloud_eip_address_quota" "address_quota" {} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_eip_network_account_type.md b/tencentcloud/cvm/data_source_tc_eip_network_account_type.md new file mode 100644 index 0000000000..dceddf5e5d --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_eip_network_account_type.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of eip network_account_type + +Example Usage + +```hcl +data "tencentcloud_eip_network_account_type" "network_account_type" {} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_eips.md b/tencentcloud/cvm/data_source_tc_eips.md new file mode 100644 index 0000000000..845c170780 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_eips.md @@ -0,0 +1,9 @@ +Use this data source to query eip instances. + +Example Usage + +```hcl +data "tencentcloud_eips" "foo" { + eip_id = "eip-ry9h95hg" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_image.md b/tencentcloud/cvm/data_source_tc_image.md new file mode 100644 index 0000000000..83763edad6 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_image.md @@ -0,0 +1,18 @@ +Provides an available image for the user. + +The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + +~> **NOTE:** This data source will be deprecated, please use `tencentcloud_images` instead. + +Example Usage + +```hcl +data "tencentcloud_image" "my_favorate_image" { + os_name = "centos" + + filter { + name = "image-type" + values = ["PUBLIC_IMAGE"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_images.md b/tencentcloud/cvm/data_source_tc_images.md new file mode 100644 index 0000000000..73ab9ea4f7 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_images.md @@ -0,0 +1,10 @@ +Use this data source to query images. + +Example Usage + +```hcl +data "tencentcloud_images" "foo" { + image_type = ["PUBLIC_IMAGE"] + os_name = "centos 7.5" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_instance_types.md b/tencentcloud/cvm/data_source_tc_instance_types.md new file mode 100644 index 0000000000..969268d88c --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_instance_types.md @@ -0,0 +1,25 @@ +Use this data source to query instances type. + +Example Usage + +```hcl +data "tencentcloud_instance_types" "foo" { + availability_zone = "ap-guangzhou-2" + cpu_core_count = 2 + memory_size = 4 +} + +data tencentcloud_instance_types "t1c1g" { + cpu_core_count = 1 + memory_size = 1 + exclude_sold_out=true + filter { + name = "instance-charge-type" + values = ["POSTPAID_BY_HOUR"] + } + filter { + name = "zone" + values = ["ap-shanghai-2"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_instances.md b/tencentcloud/cvm/data_source_tc_instances.md new file mode 100644 index 0000000000..1003aa58e2 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_instances.md @@ -0,0 +1,9 @@ +Use this data source to query cvm instances. + +Example Usage + +```hcl +data "tencentcloud_instances" "foo" { + instance_id = "ins-da412f5a" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_instances_set.md b/tencentcloud/cvm/data_source_tc_instances_set.md new file mode 100644 index 0000000000..53bdf4ee7a --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_instances_set.md @@ -0,0 +1,9 @@ +Use this data source to query cvm instances in parallel. + +Example Usage + +```hcl +data "tencentcloud_instances_set" "foo" { + vpc_id = "vpc-4owdpnwr" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_key_pairs.md b/tencentcloud/cvm/data_source_tc_key_pairs.md new file mode 100644 index 0000000000..8d80d310e0 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_key_pairs.md @@ -0,0 +1,13 @@ +Use this data source to query key pairs. + +Example Usage + +```hcl +data "tencentcloud_key_pairs" "foo" { + key_id = "skey-ie97i3ml" +} + +data "tencentcloud_key_pairs" "name" { + key_name = "^test$" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_placement_groups.md b/tencentcloud/cvm/data_source_tc_placement_groups.md new file mode 100644 index 0000000000..1200193fb0 --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_placement_groups.md @@ -0,0 +1,10 @@ +Use this data source to query placement groups. + +Example Usage + +```hcl +data "tencentcloud_placement_groups" "foo" { + placement_group_id = "ps-21q9ibvr" + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_reserved_instance_configs.md b/tencentcloud/cvm/data_source_tc_reserved_instance_configs.md new file mode 100644 index 0000000000..839bb97fff --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_reserved_instance_configs.md @@ -0,0 +1,9 @@ +Use this data source to query reserved instances configuration. + +Example Usage + +```hcl +data "tencentcloud_reserved_instance_configs" "config" { + availability_zone = "na-siliconvalley-1" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/data_source_tc_reserved_instances.md b/tencentcloud/cvm/data_source_tc_reserved_instances.md new file mode 100644 index 0000000000..23e54191aa --- /dev/null +++ b/tencentcloud/cvm/data_source_tc_reserved_instances.md @@ -0,0 +1,10 @@ +Use this data source to query reserved instances. + +Example Usage + +```hcl +data "tencentcloud_reserved_instances" "instances" { + availability_zone = "na-siliconvalley-1" + instance_type = "S2.MEDIUM8" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_chc_config.md b/tencentcloud/cvm/resource_tc_cvm_chc_config.md new file mode 100644 index 0000000000..7015734d3c --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_chc_config.md @@ -0,0 +1,32 @@ +Provides a resource to create a cvm chc_config + +Example Usage + +```hcl +resource "tencentcloud_cvm_chc_config" "chc_config" { + chc_id = "chc-xxxxxx" + instance_name = "xxxxxx" + bmc_user = "admin" + password = "xxxxxx" + bmc_virtual_private_cloud { + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxxx" + + } + bmc_security_group_ids = ["sg-xxxxxx"] + + deploy_virtual_private_cloud { + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxxx" + } + deploy_security_group_ids = ["sg-xxxxxx"] +} +``` + +Import + +cvm chc_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_cvm_chc_config.chc_config chc_config_id +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_export_images.md b/tencentcloud/cvm/resource_tc_cvm_export_images.md new file mode 100644 index 0000000000..e485974c83 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_export_images.md @@ -0,0 +1,11 @@ +Provides a resource to create a cvm export_images + +Example Usage + +```hcl +resource "tencentcloud_cvm_export_images" "export_images" { + bucket_name = "xxxxxx" + image_id = "img-xxxxxx" + file_name_prefix = "test-" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_hpc_cluster.md b/tencentcloud/cvm/resource_tc_cvm_hpc_cluster.md new file mode 100644 index 0000000000..c787ce540e --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_hpc_cluster.md @@ -0,0 +1,19 @@ +Provides a resource to create a cvm hpc_cluster + +Example Usage + +```hcl +resource "tencentcloud_cvm_hpc_cluster" "hpc_cluster" { + zone = "ap-beijing-6" + name = "terraform-test" + remark = "create for test" +} +``` + +Import + +cvm hpc_cluster can be imported using the id, e.g. + +``` +terraform import tencentcloud_cvm_hpc_cluster.hpc_cluster hpc_cluster_id +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_image_share_permission.md b/tencentcloud/cvm/resource_tc_cvm_image_share_permission.md new file mode 100644 index 0000000000..1d0dd0c061 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_image_share_permission.md @@ -0,0 +1,18 @@ +Provides a resource to create a cvm image_share_permission + +Example Usage + +```hcl +resource "tencentcloud_cvm_image_share_permission" "image_share_permission" { + image_id = "img-xxxxxx" + account_ids = ["xxxxxx"] +} +``` + +Import + +cvm image_share_permission can be imported using the id, e.g. + +``` +terraform import tencentcloud_cvm_image_share_permission.image_share_permission image_share_permission_id +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_launch_template.md b/tencentcloud/cvm/resource_tc_cvm_launch_template.md new file mode 100644 index 0000000000..53bf8e1b47 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_launch_template.md @@ -0,0 +1,19 @@ +Provides a resource to create a cvm launch template + +Example Usage + +```hcl +data "tencentcloud_images" "my_favorite_image" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +resource "tencentcloud_cvm_launch_template" "demo" { + launch_template_name = "test" + placement { + zone = "ap-guangzhou-6" + project_id = 0 + } + image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_launch_template_default_version.md b/tencentcloud/cvm/resource_tc_cvm_launch_template_default_version.md new file mode 100644 index 0000000000..fd64314072 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_launch_template_default_version.md @@ -0,0 +1,18 @@ +Provides a resource to create a cvm launch_template_default_version + +Example Usage + +```hcl +resource "tencentcloud_cvm_launch_template_default_version" "launch_template_default_version" { + launch_template_id = "lt-34vaef8fe" + default_version = 2 +} +``` + +Import + +cvm launch_template_default_version can be imported using the id, e.g. + +``` +terraform import tencentcloud_cvm_launch_template_default_version.launch_template_default_version launch_template_id +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_launch_template_version.md b/tencentcloud/cvm/resource_tc_cvm_launch_template_version.md new file mode 100644 index 0000000000..b3c454b4ac --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_launch_template_version.md @@ -0,0 +1,26 @@ +Provides a resource to create a cvm launch_template_version + +Example Usage + +```hcl +resource "tencentcloud_cvm_launch_template_version" "foo" { + placement { + zone = "ap-guangzhou-6" + project_id = 0 + + } + launch_template_id = "lt-r9ajalbi" + launch_template_version_description = "version description" + disable_api_termination = false + instance_type = "S5.MEDIUM4" + image_id = "img-9qrfy1xt" +} +``` + +Import + +cvm launch_template_version can be imported using the id, e.g. + +``` +terraform import tencentcloud_cvm_launch_template_version.launch_template_version ${launch_template_id}#${launch_template_version} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_reboot_instance.md b/tencentcloud/cvm/resource_tc_cvm_reboot_instance.md new file mode 100644 index 0000000000..a70f594e1e --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_reboot_instance.md @@ -0,0 +1,10 @@ +Provides a resource to create a cvm reboot_instance + +Example Usage + +```hcl +resource "tencentcloud_cvm_reboot_instance" "reboot_instance" { + instance_id = "ins-f9jr4bd2" + stop_type = "SOFT_FIRST" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_renew_instance.md b/tencentcloud/cvm/resource_tc_cvm_renew_instance.md new file mode 100644 index 0000000000..8ad1c612ac --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_renew_instance.md @@ -0,0 +1,14 @@ +Provides a resource to create a cvm renew_instance + +Example Usage + +```hcl +resource "tencentcloud_cvm_renew_instance" "renew_instance" { + instance_ids = + instance_charge_prepaid { + period = 1 + renew_flag = "NOTIFY_AND_AUTO_RENEW" + } + renew_portable_data_disk = true +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_security_group_attachment.md b/tencentcloud/cvm/resource_tc_cvm_security_group_attachment.md new file mode 100644 index 0000000000..98a6943239 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_security_group_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a cvm security_group_attachment + +Example Usage + +```hcl +resource "tencentcloud_cvm_security_group_attachment" "security_group_attachment" { + security_group_id = "sg-xxxxxxx" + instance_id = "ins-xxxxxxxx" +} +``` + +Import + +cvm security_group_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cvm_security_group_attachment.security_group_attachment ${instance_id}#${security_group_id} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_cvm_sync_image.md b/tencentcloud/cvm/resource_tc_cvm_sync_image.md new file mode 100644 index 0000000000..f438d7980c --- /dev/null +++ b/tencentcloud/cvm/resource_tc_cvm_sync_image.md @@ -0,0 +1,10 @@ +Provides a resource to create a cvm sync_image + +Example Usage + +```hcl +resource "tencentcloud_cvm_sync_image" "sync_image" { + image_id = "img-xxxxxx" + destination_regions =["ap-guangzhou", "ap-shanghai"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_eip.md b/tencentcloud/cvm/resource_tc_eip.md new file mode 100644 index 0000000000..4371c12407 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_eip.md @@ -0,0 +1,48 @@ +Provides an EIP resource. + +Example Usage + +Paid by the bandwidth package +```hcl +resource "tencentcloud_eip" "foo" { + name = "awesome_gateway_ip" + bandwidth_package_id = "bwp-jtvzuky6" + internet_charge_type = "BANDWIDTH_PACKAGE" + type = "EIP" +} +``` + +AntiDDos Eip +``` +resource "tencentcloud_eip" "foo" { + name = "awesome_gateway_ip" + bandwidth_package_id = "bwp-4ocyia9s" + internet_charge_type = "BANDWIDTH_PACKAGE" + type = "AntiDDoSEIP" + anti_ddos_package_id = "xxxxxxxx" + + tags = { + "test" = "test" + } +} +``` + +Eip With Network Egress +``` +resource "tencentcloud_eip" "foo" { + name = "egress_eip" + egress = "center_egress2" + internet_charge_type = "BANDWIDTH_PACKAGE" + internet_service_provider = "CMCC" + internet_max_bandwidth_out = 1 + type = "EIP" +} +``` + +Import + +EIP can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_eip.foo eip-nyvf60va +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_eip_address_transform.md b/tencentcloud/cvm/resource_tc_eip_address_transform.md new file mode 100644 index 0000000000..d5112ac5c2 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_eip_address_transform.md @@ -0,0 +1,17 @@ +Provides a resource to create a eip address_transform + +Example Usage + +```hcl +resource "tencentcloud_eip_address_transform" "address_transform" { + instance_id = "" +} +``` + +Import + +eip address_transform can be imported using the id, e.g. + +``` +terraform import tencentcloud_eip_address_transform.address_transform address_transform_id +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_eip_association.md b/tencentcloud/cvm/resource_tc_eip_association.md new file mode 100644 index 0000000000..c3b5348223 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_eip_association.md @@ -0,0 +1,114 @@ +Provides an eip resource associated with other resource like CVM, ENI and CLB. + +~> **NOTE:** Please DO NOT define `allocate_public_ip` in `tencentcloud_instance` resource when using `tencentcloud_eip_association`. + +Example Usage + +Bind elastic public IP By Instance ID + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "example-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "example-vpc" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eip" "eip" { + name = "example-eip" + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + type = "EIP" +} + +resource "tencentcloud_instance" "example" { + instance_name = "example-cvm" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + disable_security_service = true + disable_monitor_service = true + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_eip_association" "example" { + eip_id = tencentcloud_eip.eip.id + instance_id = tencentcloud_instance.example.id +} +``` + +Bind elastic public IP By elastic network card + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "example-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "example-vpc" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eni" "eni" { + name = "example-eni" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + description = "eni desc" + ipv4_count = 1 +} + +resource "tencentcloud_eip" "eip" { + name = "example-eip" + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + type = "EIP" +} + +resource "tencentcloud_eip_association" "example" { + eip_id = tencentcloud_eip.eip.id + network_interface_id = tencentcloud_eni.eni.id + private_ip = tencentcloud_eni.eni.ipv4_info[0].ip +} +``` + +Import + +Eip association can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_eip_association.bar eip-41s6jwy4::ins-34jwj3 +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_eip_normal_address_return.md b/tencentcloud/cvm/resource_tc_eip_normal_address_return.md new file mode 100644 index 0000000000..7dfc2e585f --- /dev/null +++ b/tencentcloud/cvm/resource_tc_eip_normal_address_return.md @@ -0,0 +1,9 @@ +Provides a resource to create a vpc normal_address_return + +Example Usage + +```hcl +resource "tencentcloud_eip_normal_address_return" "normal_address_return" { + address_ips = +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_eip_public_address_adjust.md b/tencentcloud/cvm/resource_tc_eip_public_address_adjust.md new file mode 100644 index 0000000000..b52b94b25f --- /dev/null +++ b/tencentcloud/cvm/resource_tc_eip_public_address_adjust.md @@ -0,0 +1,10 @@ +Provides a resource to create a eip public_address_adjust + +Example Usage + +```hcl +resource "tencentcloud_eip_public_address_adjust" "public_address_adjust" { + instance_id = "ins-cr2rfq78" + address_id = "eip-erft45fu" +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_image.md b/tencentcloud/cvm/resource_tc_image.md new file mode 100644 index 0000000000..ed84e3070b --- /dev/null +++ b/tencentcloud/cvm/resource_tc_image.md @@ -0,0 +1,20 @@ +Provide a resource to manage image. + +Example Usage + +```hcl +resource "tencentcloud_image" "image_snap" { + image_name = "image-snapshot-keep" + snapshot_ids = ["snap-nbp3xy1d", "snap-nvzu3dmh"] + force_poweroff = true + image_description = "create image with snapshot" +} +``` + +Import + +image instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_image.image_snap img-gf7jspk6 +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_instance.md b/tencentcloud/cvm/resource_tc_instance.md new file mode 100644 index 0000000000..afc7999308 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_instance.md @@ -0,0 +1,101 @@ +Provides a CVM instance resource. + +~> **NOTE:** You can launch an CVM instance for a VPC network via specifying parameter `vpc_id`. One instance can only belong to one VPC. + +~> **NOTE:** At present, 'PREPAID' instance cannot be deleted directly and must wait it to be outdated and released automatically. + +Example Usage + +```hcl +data "tencentcloud_images" "my_favorite_image" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +data "tencentcloud_instance_types" "my_favorite_instance_types" { + filter { + name = "instance-family" + values = ["S1", "S2", "S3", "S4", "S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +data "tencentcloud_availability_zones" "my_favorite_zones" { +} + +// Create VPC resource +resource "tencentcloud_vpc" "app" { + cidr_block = "10.0.0.0/16" + name = "awesome_app_vpc" +} + +resource "tencentcloud_subnet" "app" { + vpc_id = tencentcloud_vpc.app.id + availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name + name = "awesome_app_subnet" + cidr_block = "10.0.1.0/24" +} + +// Create a POSTPAID_BY_HOUR CVM instance +resource "tencentcloud_instance" "cvm_postpaid" { + instance_name = "cvm_postpaid" + availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name + image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id + instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.app.id + subnet_id = tencentcloud_subnet.app.id + + data_disks { + data_disk_type = "CLOUD_PREMIUM" + data_disk_size = 50 + encrypt = false + } + + tags = { + tagKey = "tagValue" + } +} + +// Create a PREPAID CVM instance +resource "tencentcloud_instance" "cvm_prepaid" { + timeouts { + create = "30m" + } + instance_name = "cvm_prepaid" + availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name + image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id + instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.app.id + subnet_id = tencentcloud_subnet.app.id + instance_charge_type = "PREPAID" + instance_charge_type_prepaid_period = 1 + instance_charge_type_prepaid_renew_flag = "NOTIFY_AND_MANUAL_RENEW" + data_disks { + data_disk_type = "CLOUD_PREMIUM" + data_disk_size = 50 + encrypt = false + } + force_delete = true + tags = { + tagKey = "tagValue" + } +} +``` + +Import + +CVM instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_instance.foo ins-2qol3a80 +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_instance_set.md b/tencentcloud/cvm/resource_tc_instance_set.md new file mode 100644 index 0000000000..332fc7bbfc --- /dev/null +++ b/tencentcloud/cvm/resource_tc_instance_set.md @@ -0,0 +1,63 @@ +Provides a CVM instance set resource. + +~> **NOTE:** You can launch an CVM instance for a VPC network via specifying parameter `vpc_id`. One instance can only belong to one VPC. + +~> **NOTE:** This resource is designed to cater for the scenario of creating CVM in large batches. + +~> **NOTE:** After run command `terraform apply`, must wait all cvms is ready, then run command `terraform plan`, either it will cause state change. + +Example Usage + +```hcl +data "tencentcloud_images" "my_favorite_image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "Tencent Linux release 3.2 (Final)" +} + +data "tencentcloud_instance_types" "my_favorite_instance_types" { + filter { + name = "instance-family" + values = ["S3"] + } + + cpu_core_count = 1 + memory_size = 1 +} + +data "tencentcloud_availability_zones" "my_favorite_zones" { +} + +// Create VPC resource +resource "tencentcloud_vpc" "app" { + cidr_block = "10.0.0.0/16" + name = "awesome_app_vpc" +} + +resource "tencentcloud_subnet" "app" { + vpc_id = tencentcloud_vpc.app.id + availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name + name = "awesome_app_subnet" + cidr_block = "10.0.1.0/24" +} + +// Create 10 CVM instances to host awesome_app +resource "tencentcloud_instance_set" "my_awesome_app" { + timeouts { + create = "5m" + read = "20s" + delete = "1h" + } + + instance_count = 10 + instance_name = "awesome_app" + availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name + image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id + instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.app.id + subnet_id = tencentcloud_subnet.app.id +} +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_key_pair.md b/tencentcloud/cvm/resource_tc_key_pair.md new file mode 100644 index 0000000000..055653545b --- /dev/null +++ b/tencentcloud/cvm/resource_tc_key_pair.md @@ -0,0 +1,22 @@ +Provides a key pair resource. + +Example Usage + +```hcl +resource "tencentcloud_key_pair" "foo" { + key_name = "terraform_test" +} + +resource "tencentcloud_key_pair" "foo1" { + key_name = "terraform_test" + public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDjd8fTnp7Dcuj4mLaQxf9Zs/ORgUL9fQxRCNKkPgP1paTy1I513maMX126i36Lxxl3+FUB52oVbo/FgwlIfX8hyCnv8MCxqnuSDozf1CD0/wRYHcTWAtgHQHBPCC2nJtod6cVC3kB18KeV4U7zsxmwFeBIxojMOOmcOBuh7+trRw==" +} +``` + +Import + +Key pair can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_key_pair.foo skey-17634f05 +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_placement_group.md b/tencentcloud/cvm/resource_tc_placement_group.md new file mode 100644 index 0000000000..cfc4f0c6c9 --- /dev/null +++ b/tencentcloud/cvm/resource_tc_placement_group.md @@ -0,0 +1,18 @@ +Provide a resource to create a placement group. + +Example Usage + +```hcl +resource "tencentcloud_placement_group" "foo" { + name = "test" + type = "HOST" +} +``` + +Import + +Placement group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_placement_group.foo ps-ilan8vjf +``` \ No newline at end of file diff --git a/tencentcloud/cvm/resource_tc_reserved_instance.md b/tencentcloud/cvm/resource_tc_reserved_instance.md new file mode 100644 index 0000000000..99884ccfef --- /dev/null +++ b/tencentcloud/cvm/resource_tc_reserved_instance.md @@ -0,0 +1,20 @@ +Provides a reserved instance resource. + +~> **NOTE:** Reserved instance cannot be deleted and updated. The reserved instance still exist which can be extracted by reserved_instances data source when reserved instance is destroied. + +Example Usage + +```hcl +resource "tencentcloud_reserved_instance" "ri" { + config_id = "469043dd-28b9-4d89-b557-74f6a8326259" + instance_count = 2 +} +``` + +Import + +Reserved instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_reserved_instance.foo 6cc16e7c-47d7-4fae-9b44-ce5c0f59a920 +``` \ No newline at end of file diff --git a/tencentcloud/cwp/data_source_tc_cwp_machines_simple.md b/tencentcloud/cwp/data_source_tc_cwp_machines_simple.md new file mode 100644 index 0000000000..a05ce7132a --- /dev/null +++ b/tencentcloud/cwp/data_source_tc_cwp_machines_simple.md @@ -0,0 +1,58 @@ +Use this data source to query detailed information of cwp machines_simple + +Example Usage + +```hcl +data "tencentcloud_cwp_machines_simple" "example" { + machine_type = "CVM" + machine_region = "ap-guangzhou" + project_ids = [1210293, 1157652] +} +``` + +Query by Keyword filter + +```hcl +data "tencentcloud_cwp_machines_simple" "example" { + machine_type = "CVM" + machine_region = "ap-guangzhou" + project_ids = [0] + + filters { + name = "Keywords" + values = ["tf_example"] + exact_match = true + } +} +``` + +Query by Version filter + +```hcl +data "tencentcloud_cwp_machines_simple" "example" { + machine_type = "CVM" + machine_region = "ap-guangzhou" + project_ids = [0] + + filters { + name = "Version" + values = ["BASIC_VERSION"] + exact_match = true + } +} +``` + +Query by TagId filter + +```hcl +data "tencentcloud_cwp_machines_simple" "example" { + machine_type = "ALL" + machine_region = "all-regions" + + filters { + name = "TagId" + values = ["13771"] + exact_match = true + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cwp/resource_tc_cwp_license_bind_attachment.md b/tencentcloud/cwp/resource_tc_cwp_license_bind_attachment.md new file mode 100644 index 0000000000..7d20e07dbb --- /dev/null +++ b/tencentcloud/cwp/resource_tc_cwp_license_bind_attachment.md @@ -0,0 +1,43 @@ +Provides a resource to create a cwp license_bind_attachment + +Example Usage + +```hcl +data "tencentcloud_cwp_machines_simple" "example" { + machine_type = "CVM" + machine_region = "ap-guangzhou" + project_ids = [1210293] + + filters { + name = "Version" + values = ["BASIC_VERSION"] + exact_match = true + } +} + +resource "tencentcloud_cwp_license_order" "example" { + alias = "tf_example" + license_type = 0 + license_num = 1 + region_id = 1 + project_id = 0 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_cwp_license_bind_attachment" "example" { + resource_id = tencentcloud_cwp_license_order.example.resource_id + license_id = tencentcloud_cwp_license_order.example.license_id + license_type = 0 + quuid = data.tencentcloud_cwp_machines_simple.example.machines[0].quuid +} +``` + +Import + +cwp license_bind_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cwp_license_bind_attachment.example cwplic-ab3edffa#44#2c7e5cce-1cec-4456-8d18-018f160dd987#0 +``` \ No newline at end of file diff --git a/tencentcloud/cwp/resource_tc_cwp_license_order.md b/tencentcloud/cwp/resource_tc_cwp_license_order.md new file mode 100644 index 0000000000..051600273d --- /dev/null +++ b/tencentcloud/cwp/resource_tc_cwp_license_order.md @@ -0,0 +1,24 @@ +Provides a resource to create a cwp license_order + +Example Usage + +```hcl +resource "tencentcloud_cwp_license_order" "example" { + alias = "tf_example" + license_type = 0 + license_num = 1 + region_id = 1 + project_id = 0 + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +cwp license_order can be imported using the id, e.g. + +``` +terraform import tencentcloud_cwp_license_order.example cwplic-130715d2#1 +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_account_all_grant_privileges.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_account_all_grant_privileges.md new file mode 100644 index 0000000000..f4a1f1aa52 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_account_all_grant_privileges.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of cynosdb account_all_grant_privileges + +Example Usage + +```hcl +data "tencentcloud_cynosdb_account_all_grant_privileges" "account_all_grant_privileges" { + cluster_id = "cynosdbmysql-bws8h88b" + account { + account_name = "keep_dts" + host = "%" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_accounts.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_accounts.md new file mode 100644 index 0000000000..44e9525f9b --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_accounts.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb accounts + +Example Usage + +```hcl +data "tencentcloud_cynosdb_accounts" "accounts" { + cluster_id = "cynosdbmysql-bws8h88b" + account_names = ["root"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_audit_logs.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_audit_logs.md new file mode 100644 index 0000000000..d5e35d1e52 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_audit_logs.md @@ -0,0 +1,20 @@ +Use this data source to query detailed information of cynosdb audit_logs + +Example Usage + +```hcl +data "tencentcloud_cynosdb_audit_logs" "audit_logs" { + instance_id = "cynosdbmysql-ins-afqx1hy0" + start_time = "2023-06-18 10:00:00" + end_time = "2023-06-18 10:00:02" + order = "DESC" + order_by = "timestamp" + filter { + host = ["30.50.207.176"] + user = ["keep_dts"] + policy_name = ["default_audit"] + sql_type = "SELECT" + sql = "SELECT @@max_allowed_packet" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_binlog_download_url.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_binlog_download_url.md new file mode 100644 index 0000000000..29ee7d2d54 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_binlog_download_url.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb binlog_download_url + +Example Usage + +```hcl +data "tencentcloud_cynosdb_binlog_download_url" "binlog_download_url" { + cluster_id = "cynosdbmysql-bws8h88b" + binlog_id = 6202249 +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster.md new file mode 100644 index 0000000000..8388886ed8 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of cynosdb cluster + +Example Usage + +```hcl +data "tencentcloud_cynosdb_cluster" "cluster" { + cluster_id = "cynosdbmysql-bws8h88b" + database = "users" + table = "tb_user_name" + table_type = "all" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_detail_databases.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_detail_databases.md new file mode 100644 index 0000000000..fcc467b53e --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_detail_databases.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb cluster_detail_databases + +Example Usage + +```hcl +data "tencentcloud_cynosdb_cluster_detail_databases" "cluster_detail_databases" { + cluster_id = "cynosdbmysql-bws8h88b" + db_name = "users" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_instance_groups.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_instance_groups.md new file mode 100644 index 0000000000..3753162837 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_instance_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cynosdb cluster_instance_groups + +Example Usage + +```hcl +data "tencentcloud_cynosdb_cluster_instance_groups" "cluster_instance_groups" { + cluster_id = xxxxxx; +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_param_logs.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_param_logs.md new file mode 100644 index 0000000000..75bbcfa7b4 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_param_logs.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of cynosdb cluster_param_logs + +Example Usage + +```hcl +data "tencentcloud_cynosdb_cluster_param_logs" "cluster_param_logs" { + cluster_id = "cynosdbmysql-bws8h88b" + instance_ids = ["cynosdbmysql-ins-afqx1hy0"] + order_by = "CreateTime" + order_by_type = "DESC" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_params.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_params.md new file mode 100644 index 0000000000..b78dcdbba8 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_params.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb cluster_params + +Example Usage + +```hcl +data "tencentcloud_cynosdb_cluster_params" "cluster_params" { + cluster_id = "cynosdbmysql-bws8h88b" + param_name = "innodb_checksum_algorithm" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_clusters.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_clusters.md new file mode 100644 index 0000000000..4db7839f97 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_clusters.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of Cynosdb clusters. + +Example Usage + +```hcl +data "tencentcloud_cynosdb_clusters" "foo" { + cluster_id = "cynosdbmysql-dzj5l8gz" + project_id = 0 + db_type = "MYSQL" + cluster_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_error_logs.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_error_logs.md new file mode 100644 index 0000000000..0c4644ca20 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_error_logs.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of cynosdb describe_instance_error_logs + +Example Usage + +```hcl +data "tencentcloud_cynosdb_describe_instance_error_logs" "describe_instance_error_logs" { + instance_id = "cynosdbmysql-ins-afqx1hy0" + start_time = "2023-06-01 15:04:05" + end_time = "2023-06-19 15:04:05" + order_by = "Timestamp" + order_by_type = "DESC" + log_levels = ["note", "warning"] + key_words = ["Aborted"] +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_slow_queries.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_slow_queries.md new file mode 100644 index 0000000000..c51415e10c --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_slow_queries.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of cynosdb describe_instance_slow_queries + +Example Usage + +```hcl +data "tencentcloud_cynosdb_describe_instance_slow_queries" "describe_instance_slow_queries" { + cluster_id = "cynosdbmysql-bws8h88b" + start_time = "2023-06-01 12:00:00" + end_time = "2023-06-19 14:00:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_instance_slow_queries.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_instance_slow_queries.md new file mode 100644 index 0000000000..ed080b0cb2 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_instance_slow_queries.md @@ -0,0 +1,52 @@ +Use this data source to query detailed information of cynosdb instance_slow_queries + +Example Usage + +Query slow queries of instance +```hcl +variable "cynosdb_cluster_id" { + default = "default_cynosdb_cluster" +} + +data "tencentcloud_cynosdb_instance_slow_queries" "instance_slow_queries" { + instance_id = var.cynosdb_cluster_id + start_time = "2023-06-20 23:19:03" + end_time = "2023-06-30 23:19:03" + username = "keep_dts" + host = "%%" + database = "tf_ci_test" + order_by = "QueryTime" + order_by_type = "desc" +} +``` + +Query slow queries by time range +```hcl +variable "cynosdb_cluster_id" { + default = "default_cynosdb_cluster" +} + +data "tencentcloud_cynosdb_instance_slow_queries" "instance_slow_queries" { + instance_id = var.cynosdb_cluster_id + start_time = "2023-06-20 23:19:03" + end_time = "2023-06-30 23:19:03" + order_by = "QueryTime" + order_by_type = "desc" +} +``` + +Query slow queries by user and db name +```hcl +variable "cynosdb_cluster_id" { + default = "default_cynosdb_cluster" +} + +data "tencentcloud_cynosdb_instance_slow_queries" "instance_slow_queries" { + instance_id = var.cynosdb_cluster_id + username = "keep_dts" + host = "%%" + database = "tf_ci_test" + order_by = "QueryTime" + order_by_type = "desc" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_instances.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_instances.md new file mode 100644 index 0000000000..ee9db98443 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_instances.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of Cynosdb instances. + +Example Usage + +```hcl +data "tencentcloud_cynosdb_instances" "foo" { + instance_id = "cynosdbmysql-ins-0wln9u6w" + project_id = 0 + db_type = "MYSQL" + instance_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_param_templates.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_param_templates.md new file mode 100644 index 0000000000..f54acc328c --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_param_templates.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of cynosdb param_templates + +Example Usage + +```hcl +data "tencentcloud_cynosdb_param_templates" "param_templates" { +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_project_security_groups.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_project_security_groups.md new file mode 100644 index 0000000000..264cf16c32 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_project_security_groups.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb project_security_groups + +Example Usage + +```hcl +data "tencentcloud_cynosdb_project_security_groups" "project_security_groups" { + project_id = 1250480 + search_key = "自定义模版" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_node.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_node.md new file mode 100644 index 0000000000..a867152d1a --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_node.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of cynosdb proxy_node + +Example Usage + +```hcl +data "tencentcloud_cynosdb_proxy_node" "proxy_node" { + order_by = "CREATETIME" + order_by_type = "DESC" + filters { + names = "ClusterId" + values = "cynosdbmysql-cgd2gpwr" + exact_match = false + name = "ClusterId" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_version.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_version.md new file mode 100644 index 0000000000..e9ec6cc528 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_version.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb proxy_version + +Example Usage + +```hcl +data "tencentcloud_cynosdb_proxy_version" "proxy_version" { + cluster_id = "cynosdbmysql-bws8h88b" + proxy_group_id = "cynosdbmysql-proxy-l6zf9t30" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_list.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_list.md new file mode 100644 index 0000000000..c8858736ea --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_list.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of cynosdb resource_package_list + +Example Usage + +```hcl +data "tencentcloud_cynosdb_resource_package_list" "resource_package_list" { + package_id = ["package-hy4d2ppl"] + package_name = ["keep-package-disk"] + package_type = ["DISK"] + package_region = ["china"] + status = ["using"] + order_by = ["startTime"] + order_direction = "DESC" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_sale_specs.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_sale_specs.md new file mode 100644 index 0000000000..841a5d65e0 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_sale_specs.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of cynosdb resource_package_sale_specs + +Example Usage + +```hcl +data "tencentcloud_cynosdb_resource_package_sale_specs" "resource_package_sale_specs" { + instance_type = "cynosdb-serverless" + package_region = "china" + package_type = "CCU" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_rollback_time_range.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_rollback_time_range.md new file mode 100644 index 0000000000..5784dfd9a4 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_rollback_time_range.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of cynosdb rollback_time_range + +Example Usage + +```hcl +data "tencentcloud_cynosdb_rollback_time_range" "rollback_time_range" { + cluster_id = "cynosdbmysql-bws8h88b" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_zone.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_zone.md new file mode 100644 index 0000000000..155e891b52 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_zone.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of cynosdb zone + +Example Usage + +```hcl +data "tencentcloud_cynosdb_zone" "zone" { + include_virtual_zones = true + show_permission = true +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/data_source_tc_cynosdb_zone_config.md b/tencentcloud/cynosdb/data_source_tc_cynosdb_zone_config.md new file mode 100644 index 0000000000..56b47bdba9 --- /dev/null +++ b/tencentcloud/cynosdb/data_source_tc_cynosdb_zone_config.md @@ -0,0 +1,8 @@ +Use this data source to query which instance types of Redis are available in a specific region. + +Example Usage + +```hcl +data "tencentcloud_cynosdb_zone_config" "foo" { +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_account.md b/tencentcloud/cynosdb/resource_tc_cynosdb_account.md new file mode 100644 index 0000000000..2b48b17f40 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_account.md @@ -0,0 +1,22 @@ +Provides a resource to create a cynosdb account + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_account" "account" { + cluster_id = "cynosdbmysql-bws8h88b" + account_name = "terraform_test" + account_password = "Password@1234" + host = "%" + description = "terraform test" + max_user_connections = 2 +} +``` + +Import + +cynosdb account can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_account.account account_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_account_privileges.md b/tencentcloud/cynosdb/resource_tc_cynosdb_account_privileges.md new file mode 100644 index 0000000000..a07aed03dc --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_account_privileges.md @@ -0,0 +1,46 @@ +Provides a resource to create a cynosdb account_privileges + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_account_privileges" "account_privileges" { + cluster_id = "cynosdbmysql-bws8h88b" + account_name = "test" + host = "%" + global_privileges = [ + "CREATE", + "DROP", + "ALTER", + "CREATE TEMPORARY TABLES", + "CREATE VIEW" + ] + database_privileges { + db = "users" + privileges = [ + "DROP", + "REFERENCES", + "INDEX", + "CREATE VIEW", + "INSERT", + "EVENT" + ] + } + table_privileges { + db = "users" + table_name = "tb_user_name" + privileges = [ + "ALTER", + "REFERENCES", + "SHOW VIEW" + ] + } +} +``` + +Import + +cynosdb account_privileges can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_account_privileges.account_privileges account_privileges_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_audit_log_file.md b/tencentcloud/cynosdb/resource_tc_cynosdb_audit_log_file.md new file mode 100644 index 0000000000..10d7caaff7 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_audit_log_file.md @@ -0,0 +1,11 @@ +Provides a resource to create a cynosdb audit_log_file + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_audit_log_file" "audit_log_file" { + instance_id = "cynosdbmysql-ins-afqx1hy0" + start_time = "2022-07-12 10:29:20" + end_time = "2022-08-12 10:29:20" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_binlog_save_days.md b/tencentcloud/cynosdb/resource_tc_cynosdb_binlog_save_days.md new file mode 100644 index 0000000000..3d521c1813 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_binlog_save_days.md @@ -0,0 +1,18 @@ +Provides a resource to create a cynosdb binlog_save_days + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_binlog_save_days" "binlog_save_days" { + cluster_id = "cynosdbmysql-123" + binlog_save_days = 7 +} +``` + +Import + +cynosdb binlog_save_days can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_binlog_save_days.binlog_save_days binlog_save_days_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_cluster.md b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster.md new file mode 100644 index 0000000000..6cbc72f863 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster.md @@ -0,0 +1,58 @@ +Provide a resource to create a CynosDB cluster. + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_cluster" "foo" { + available_zone = "ap-guangzhou-4" + vpc_id = "vpc-h70b6b49" + subnet_id = "subnet-q6fhy1mi" + db_type = "MYSQL" + db_version = "5.7" + storage_limit = 1000 + cluster_name = "tf-cynosdb" + password = "cynos@123" + instance_maintain_duration = 7200 + instance_maintain_start_time = 10800 + instance_maintain_weekdays = [ + "Fri", + "Mon", + "Sat", + "Sun", + "Thu", + "Wed", + "Tue", + ] + + instance_cpu_core = 1 + instance_memory_size = 2 + + param_item { + name = "character_set_server" + current_value = "utf8mb4" + } + + prarm_template_id = "12345" + + tags = { + test = "test" + } + + force_delete = false + + rw_group_sg = [ + "sg-ibyjkl6r", + ] + ro_group_sg = [ + "sg-ibyjkl6r", + ] +} +``` + +Import + +CynosDB cluster can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cynosdb_cluster.foo cynosdbmysql-dzj5l8gz +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_databases.md b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_databases.md new file mode 100644 index 0000000000..996824d948 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_databases.md @@ -0,0 +1,26 @@ +Provides a resource to create a cynosdb cluster_databases + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_cluster_databases" "cluster_databases" { + cluster_id = "cynosdbmysql-bws8h88b" + db_name = "terraform-test" + character_set = "utf8" + collate_rule = "utf8_general_ci" + user_host_privileges { + db_user_name = "root" + db_host = "%" + db_privilege = "READ_ONLY" + } + description = "terraform test" +} +``` + +Import + +cynosdb cluster_databases can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_cluster_databases.cluster_databases cluster_databases_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_password_complexity.md b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_password_complexity.md new file mode 100644 index 0000000000..b4b2374f37 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_password_complexity.md @@ -0,0 +1,28 @@ +Provides a resource to create a cynosdb cluster_password_complexity + +Example Usage + +```hcl + +resource "tencentcloud_cynosdb_cluster_password_complexity" "cluster_password_complexity" { + cluster_id = "cynosdbmysql-cgd2gpwr" + validate_password_length = 8 + validate_password_mixed_case_count = 1 + validate_password_special_char_count = 1 + validate_password_number_count = 1 + validate_password_policy = "STRONG" + validate_password_dictionary = [ + "cccc", + "xxxx", + ] +} + +``` + +Import + +cynosdb cluster_password_complexity can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_cluster_password_complexity.cluster_password_complexity cluster_password_complexity_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_resource_packages_attachment.md b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_resource_packages_attachment.md new file mode 100644 index 0000000000..b9112c24d4 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_resource_packages_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a cynosdb cluster_resource_packages_attachment + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_cluster_resource_packages_attachment" "cluster_resource_packages_attachment" { + cluster_id = "cynosdbmysql-q1d8151n" + package_ids = ["package-hy4d2ppl"] +} +``` + +Import + +cynosdb cluster_resource_packages_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_cluster_resource_packages_attachment.cluster_resource_packages_attachment cluster_resource_packages_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_slave_zone.md b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_slave_zone.md new file mode 100644 index 0000000000..3f39c76307 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_cluster_slave_zone.md @@ -0,0 +1,113 @@ +Provides a resource to create a cynosdb cluster slave zone. + +Example Usage + +Set a new slave zone for a cynosdb cluster. +```hcl +locals { + vpc_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.subnet_id + sg_id = data.tencentcloud_security_groups.internal.security_groups.0.security_group_id + sg_id2 = data.tencentcloud_security_groups.exclusive.security_groups.0.security_group_id +} + +variable "fixed_tags" { + default = { + fixed_resource: "do_not_remove" + } +} + +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +variable "new_availability_zone" { + default = "ap-guangzhou-6" +} + +variable "my_param_template" { + default = "15765" +} + +data "tencentcloud_security_groups" "internal" { + name = "default" + tags = var.fixed_tags +} + +data "tencentcloud_security_groups" "exclusive" { + name = "test_preset_sg" +} + +data "tencentcloud_vpc_subnets" "gz3" { + availability_zone = var.default_az + is_default = true +} + +resource "tencentcloud_cynosdb_cluster" "instance" { + available_zone = var.availability_zone + vpc_id = local.vpc_id + subnet_id = local.subnet_id + db_type = "MYSQL" + db_version = "5.7" + storage_limit = 1000 + cluster_name = "tf_test_cynosdb_cluster_slave_zone" + password = "cynos@123" + instance_maintain_duration = 3600 + instance_maintain_start_time = 10800 + instance_maintain_weekdays = [ + "Fri", + "Mon", + "Sat", + "Sun", + "Thu", + "Wed", + "Tue", + ] + + instance_cpu_core = 1 + instance_memory_size = 2 + param_items { + name = "character_set_server" + current_value = "utf8" + } + param_items { + name = "time_zone" + current_value = "+09:00" + } + + force_delete = true + + rw_group_sg = [ + local.sg_id + ] + ro_group_sg = [ + local.sg_id + ] + prarm_template_id = var.my_param_template +} + +resource "tencentcloud_cynosdb_cluster_slave_zone" "cluster_slave_zone" { + cluster_id = tencentcloud_cynosdb_cluster.instance.id + slave_zone = var.new_availability_zone +} +``` + +Update the slave zone with specified value. +``` +resource "tencentcloud_cynosdb_cluster_slave_zone" "cluster_slave_zone" { + cluster_id = tencentcloud_cynosdb_cluster.instance.id + slave_zone = var.availability_zone + + timeouts { + create = "500s" + } +} +``` + +Import + +cynosdb cluster_slave_zone can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_cluster_slave_zone.cluster_slave_zone cluster_id#slave_zone +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_error_logs.md b/tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_error_logs.md new file mode 100644 index 0000000000..a1ad15b8b2 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_error_logs.md @@ -0,0 +1,16 @@ +Provides a resource to create a cynosdb export_instance_error_logs + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_export_instance_error_logs" "export_instance_error_logs" { + instance_id = "cynosdbmysql-ins-afqx1hy0" + start_time = "2022-01-01 12:00:00" + end_time = "2022-01-01 14:00:00" + log_levels = ["note"] + key_words = ["content"] + file_type = "csv" + order_by = "Timestamp" + order_by_type = "ASC" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_slow_queries.md b/tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_slow_queries.md new file mode 100644 index 0000000000..17eb38b035 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_slow_queries.md @@ -0,0 +1,15 @@ +Provides a resource to create a cynosdb export_instance_slow_queries + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_export_instance_slow_queries" "export_instance_slow_queries" { + instance_id = "cynosdbmysql-ins-123" + start_time = "2022-01-01 12:00:00" + end_time = "2022-01-01 14:00:00" + username = "root" + host = "10.10.10.10" + database = "db1" + file_type = "csv" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_instance_param.md b/tencentcloud/cynosdb/resource_tc_cynosdb_instance_param.md new file mode 100644 index 0000000000..563ac1820f --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_instance_param.md @@ -0,0 +1,16 @@ +Provides a resource to create a cynosdb instance_param + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_instance_param" "instance_param" { + cluster_id = "cynosdbmysql-bws8h88b" + instance_id = "cynosdbmysql-ins-rikr6z4o" + is_in_maintain_period = "no" + + instance_param_list { + current_value = "0" + param_name = "init_connect" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_isolate_instance.md b/tencentcloud/cynosdb/resource_tc_cynosdb_isolate_instance.md new file mode 100644 index 0000000000..89698ce5b2 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_isolate_instance.md @@ -0,0 +1,14 @@ +Provides a resource to create a cynosdb isolate_instance + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_account" "account" { + cluster_id = "cynosdbmysql-bws8h88b" + account_name = "terraform_test" + account_password = "Password@1234" + host = "%" + description = "testx" + max_user_connections = 2 +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_param_template.md b/tencentcloud/cynosdb/resource_tc_cynosdb_param_template.md new file mode 100644 index 0000000000..24af0c492c --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_param_template.md @@ -0,0 +1,17 @@ +Provides a resource to create a cynosdb param_template + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_param_template" "param_template" { + db_mode = "SERVERLESS" + engine_version = "5.7" + template_description = "terraform-template" + template_name = "terraform-template" + + param_list { + current_value = "-1" + param_name = "optimizer_trace_offset" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_proxy.md b/tencentcloud/cynosdb/resource_tc_cynosdb_proxy.md new file mode 100644 index 0000000000..f527eac7a9 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_proxy.md @@ -0,0 +1,22 @@ +Provides a resource to create a cynosdb proxy + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_proxy" "proxy" { + cluster_id = "cynosdbmysql-bws8h88b" + cpu = 2 + mem = 4000 + unique_vpc_id = "vpc-k1t8ickr" + unique_subnet_id = "subnet-jdi5xn22" + connection_pool_type = "SessionConnectionPool" + open_connection_pool = "yes" + connection_pool_time_out = 30 + security_group_ids = ["sg-baxfiao5"] + description = "desc sample" + proxy_zones { + proxy_node_zone = "ap-guangzhou-7" + proxy_node_count = 2 + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_proxy_end_point.md b/tencentcloud/cynosdb/resource_tc_cynosdb_proxy_end_point.md new file mode 100644 index 0000000000..f8ab15048e --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_proxy_end_point.md @@ -0,0 +1,135 @@ +Provides a resource to create a cynosdb proxy_end_point + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + instance_weights { + instance_id = "cynosdbmysql-ins-afqx1hy0" + weight = 1 + } +} +``` + +Set `vip` and `vport` + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + vip = "172.16.112.108" + vport = "3306" + instance_weights { + instance_id = "cynosdbmysql-ins-afqx1hy0" + weight = 1 + } +} +``` + +Open connection pool + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + vip = "172.16.112.108" + vport = "3306" + connection_pool_type = "SessionConnectionPool" + open_connection_pool = "yes" + connection_pool_time_out = 30 + instance_weights { + instance_id = "cynosdbmysql-ins-afqx1hy0" + weight = 1 + } +} +``` + +Close connection pool + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + vip = "172.16.112.108" + vport = "3306" + open_connection_pool = "no" + instance_weights { + instance_id = "cynosdbmysql-ins-afqx1hy0" + weight = 1 + } +} +``` + +if `rw_type` is `READWRITE` + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + vip = "172.16.112.108" + vport = "3306" + open_connection_pool = "no" + fail_over = "yes" + consistency_type = "global" + rw_type = "READWRITE" + consistency_time_out = 30 + instance_weights { + instance_id = "cynosdbmysql-ins-afqx1hy0" + weight = 1 + } +} +``` + +if `rw_type` is `READONLY` + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + vip = "172.16.112.108" + vport = "3306" + open_connection_pool = "no" + rw_type = "READONLY" + instance_weights { + instance_id = "cynosdbmysql-ins-rikr6z4o" + weight = 1 + } +} +``` + +Comprehensive parameter examples + +```hcl +resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { + cluster_id = "cynosdbmysql-bws8h88b" + unique_vpc_id = "vpc-4owdpnwr" + unique_subnet_id = "subnet-dwj7ipnc" + vip = "172.16.112.118" + vport = "3306" + connection_pool_type = "SessionConnectionPool" + open_connection_pool = "yes" + connection_pool_time_out = 30 + security_group_ids = ["sg-7kpsbxdb"] + description = "desc value" + weight_mode = "system" + auto_add_ro = "yes" + fail_over = "yes" + consistency_type = "global" + rw_type = "READWRITE" + consistency_time_out = 30 + trans_split = true + access_mode = "nearby" + instance_weights { + instance_id = "cynosdbmysql-ins-afqx1hy0" + weight = 1 + } +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_read_only_instance_exclusive_access.md b/tencentcloud/cynosdb/resource_tc_cynosdb_read_only_instance_exclusive_access.md new file mode 100644 index 0000000000..2cf5cd40ca --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_read_only_instance_exclusive_access.md @@ -0,0 +1,35 @@ +Provides a resource to create a cynosdb read_only_instance_exclusive_access + +Example Usage + +```hcl +variable "cynosdb_cluster_id" { + default = "default_cynosdb_cluster" +} +variable "cynosdb_cluster_instance_id" { + default = "default_cluster_instance" +} + +variable "cynosdb_cluster_security_group_id" { + default = "default_security_group_id" +} + +data "tencentcloud_vpc_subnets" "gz3" { + availability_zone = var.default_az + is_default = true +} + +locals { + vpc_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.subnet_id +} + +resource "tencentcloud_cynosdb_read_only_instance_exclusive_access" "read_only_instance_exclusive_access" { + cluster_id = var.cynosdb_cluster_id + instance_id = var.cynosdb_cluster_instance_id + vpc_id = local.vpc_id + subnet_id = local.subnet_id + port = 1234 + security_group_ids = [var.cynosdb_cluster_security_group_id] +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_readonly_instance.md b/tencentcloud/cynosdb/resource_tc_cynosdb_readonly_instance.md new file mode 100644 index 0000000000..1d5874d7b4 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_readonly_instance.md @@ -0,0 +1,33 @@ +Provide a resource to create a CynosDB readonly instance. + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_readonly_instance" "foo" { + cluster_id = cynosdbmysql-dzj5l8gz + instance_name = "tf-cynosdb-readonly-instance" + force_delete = true + instance_cpu_core = 2 + instance_memory_size = 4 + + instance_maintain_duration = 7200 + instance_maintain_start_time = 21600 + instance_maintain_weekdays = [ + "Fri", + "Mon", + "Sat", + "Sun", + "Thu", + "Wed", + "Tue", + ] +} +``` + +Import + +CynosDB readonly instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_cynosdb_readonly_instance.foo cynosdbmysql-ins-dhwynib6 +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_reload_proxy_node.md b/tencentcloud/cynosdb/resource_tc_cynosdb_reload_proxy_node.md new file mode 100644 index 0000000000..0ee6426ac3 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_reload_proxy_node.md @@ -0,0 +1,18 @@ +Provides a resource to create a cynosdb reload_proxy_node + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_reload_proxy_node" "reload_proxy_node" { + cluster_id = "cynosdbmysql-cgd2gpwr" + proxy_group_id = "cynosdbmysql-proxy-8lqtl8pk" +} +``` + +Import + +cynosdb reload_proxy_node can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_reload_proxy_node.reload_proxy_node reload_proxy_node_id +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_restart_instance.md b/tencentcloud/cynosdb/resource_tc_cynosdb_restart_instance.md new file mode 100644 index 0000000000..d75f7cad92 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_restart_instance.md @@ -0,0 +1,9 @@ +Provides a resource to create a cynosdb restart_instance + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_restart_instance" "restart_instance" { + instance_id = "cynosdbmysql-ins-afqx1hy0" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_roll_back_cluster.md b/tencentcloud/cynosdb/resource_tc_cynosdb_roll_back_cluster.md new file mode 100644 index 0000000000..7e1e7c7553 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_roll_back_cluster.md @@ -0,0 +1,26 @@ +Provides a resource to create a cynosdb roll_back_cluster + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_roll_back_cluster" "roll_back_cluster" { + cluster_id = "cynosdbmysql-bws8h88b" + rollback_strategy = "snapRollback" + rollback_id = 732725 + # expect_time = "2022-01-20 00:00:00" + expect_time_thresh = 0 + rollback_databases { + old_database = "users" + new_database = "users_bak_1" + } + rollback_tables { + database = "tf_ci_test" + tables { + old_table = "test" + new_table = "test_bak_111" + } + + } + rollback_mode = "full" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_security_group.md b/tencentcloud/cynosdb/resource_tc_cynosdb_security_group.md new file mode 100644 index 0000000000..4746dbcd23 --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_security_group.md @@ -0,0 +1,19 @@ +Provides a resource to create a cynosdb security_group + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_security_group" "test" { + cluster_id = "cynosdbmysql-bws8h88b" + security_group_ids = ["sg-baxfiao5"] + instance_group_type = "RO" +} +``` + +Import + +cynosdb security_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_security_group.security_group ${cluster_id}#${instance_group_type} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_upgrade_proxy_version.md b/tencentcloud/cynosdb/resource_tc_cynosdb_upgrade_proxy_version.md new file mode 100644 index 0000000000..da8914f5dc --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_upgrade_proxy_version.md @@ -0,0 +1,10 @@ +Provides a resource to create a cynosdb upgrade_proxy_version + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_upgrade_proxy_version" "upgrade_proxy_version" { + cluster_id = "cynosdbmysql-bws8h88b" + dst_proxy_version = "1.3.7" +} +``` \ No newline at end of file diff --git a/tencentcloud/cynosdb/resource_tc_cynosdb_wan.md b/tencentcloud/cynosdb/resource_tc_cynosdb_wan.md new file mode 100644 index 0000000000..50263335ae --- /dev/null +++ b/tencentcloud/cynosdb/resource_tc_cynosdb_wan.md @@ -0,0 +1,18 @@ +Provides a resource to create a cynosdb wan + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_wan" "wan" { + cluster_id = "cynosdbmysql-bws8h88b" + instance_grp_id = "cynosdbmysql-grp-lxav0p9z" +} +``` + +Import + +cynosdb wan can be imported using the id, e.g. + +``` +terraform import tencentcloud_cynosdb_wan.wan cynosdbmysql-bws8h88b#cynosdbmysql-grp-lxav0p9z +``` \ No newline at end of file diff --git a/tencentcloud/data_source_tc_address_template_groups.go b/tencentcloud/data_source_tc_address_template_groups.go index 9b98987b53..36b12f3777 100644 --- a/tencentcloud/data_source_tc_address_template_groups.go +++ b/tencentcloud/data_source_tc_address_template_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of address template groups. - -Example Usage - -```hcl -data "tencentcloud_address_template_groups" "name" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_address_templates.go b/tencentcloud/data_source_tc_address_templates.go index 4df7728b33..848ef7b6b2 100644 --- a/tencentcloud/data_source_tc_address_templates.go +++ b/tencentcloud/data_source_tc_address_templates.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of address templates. - -Example Usage - -```hcl -data "tencentcloud_address_templates" "name" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_basic_device_status.go b/tencentcloud/data_source_tc_antiddos_basic_device_status.go index 619cc1aa10..9a253f2405 100644 --- a/tencentcloud/data_source_tc_antiddos_basic_device_status.go +++ b/tencentcloud/data_source_tc_antiddos_basic_device_status.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of antiddos basic_device_status - -Example Usage - -```hcl -data "tencentcloud_antiddos_basic_device_status" "basic_device_status" { - ip_list = [ - "127.0.0.1" - ] - filter_region = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_bgp_biz_trend.go b/tencentcloud/data_source_tc_antiddos_bgp_biz_trend.go index d8bce79693..81612f1dbe 100644 --- a/tencentcloud/data_source_tc_antiddos_bgp_biz_trend.go +++ b/tencentcloud/data_source_tc_antiddos_bgp_biz_trend.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of antiddos bgp_biz_trend - -Example Usage - -```hcl -data "tencentcloud_antiddos_bgp_biz_trend" "bgp_biz_trend" { - business = "bgp-multip" - start_time = "2023-11-22 09:25:00" - end_time = "2023-11-22 10:25:00" - metric_name = "intraffic" - instance_id = "bgp-00000ry7" - flag = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_list_listener.go b/tencentcloud/data_source_tc_antiddos_list_listener.go index 25f86185f8..61cb5c1482 100644 --- a/tencentcloud/data_source_tc_antiddos_list_listener.go +++ b/tencentcloud/data_source_tc_antiddos_list_listener.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of antiddos list_listener - -Example Usage - -```hcl -data "tencentcloud_antiddos_list_listener" "list_listener" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_overview_attack_trend.go b/tencentcloud/data_source_tc_antiddos_overview_attack_trend.go index d5431cfd8e..2c3ff990b2 100644 --- a/tencentcloud/data_source_tc_antiddos_overview_attack_trend.go +++ b/tencentcloud/data_source_tc_antiddos_overview_attack_trend.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of antiddos overview_attack_trend - -Example Usage - -```hcl -data "tencentcloud_antiddos_overview_attack_trend" "overview_attack_trend" { - type = "ddos" - dimension = "attackcount" - period = 86400 - start_time = "2023-11-21 10:28:31" - end_time = "2023-11-22 10:28:31" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_overview_cc_trend.go b/tencentcloud/data_source_tc_antiddos_overview_cc_trend.go index 278aeb6a67..fe2fbc7d97 100644 --- a/tencentcloud/data_source_tc_antiddos_overview_cc_trend.go +++ b/tencentcloud/data_source_tc_antiddos_overview_cc_trend.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of antiddos overview_cc_trend - -Example Usage - -```hcl -data "tencentcloud_antiddos_overview_cc_trend" "overview_cc_trend" { - period = 300 - start_time = "2023-11-20 00:00:00" - end_time = "2023-11-21 00:00:00" - metric_name = "inqps" - business = "bgpip" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_overview_ddos_event_list.go b/tencentcloud/data_source_tc_antiddos_overview_ddos_event_list.go index f2f5ad5f4b..1d20dc86f7 100644 --- a/tencentcloud/data_source_tc_antiddos_overview_ddos_event_list.go +++ b/tencentcloud/data_source_tc_antiddos_overview_ddos_event_list.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of antiddos overview_ddos_event_list - -Example Usage - -```hcl -data "tencentcloud_antiddos_overview_ddos_event_list" "overview_ddos_event_list" { - start_time = "2023-11-20 00:00:00" - end_time = "2023-11-21 00:00:00" - attack_status = "end" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_overview_ddos_trend.go b/tencentcloud/data_source_tc_antiddos_overview_ddos_trend.go index 6a0aabf3f6..657f59a22a 100644 --- a/tencentcloud/data_source_tc_antiddos_overview_ddos_trend.go +++ b/tencentcloud/data_source_tc_antiddos_overview_ddos_trend.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of antiddos overview ddos trend - -Example Usage - -```hcl -data "tencentcloud_antiddos_overview_ddos_trend" "overview_ddos_trend" { - period = 300 - start_time = "2023-11-20 14:16:23" - end_time = "2023-11-21 14:16:23" - metric_name = "bps" - business = "bgpip" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_overview_index.go b/tencentcloud/data_source_tc_antiddos_overview_index.go index bcbc88eef0..6ec55d5725 100644 --- a/tencentcloud/data_source_tc_antiddos_overview_index.go +++ b/tencentcloud/data_source_tc_antiddos_overview_index.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of antiddos overview index - -Example Usage - -```hcl -data "tencentcloud_antiddos_overview_index" "overview_index" { - start_time = "2023-11-20 12:32:12" - end_time = "2023-11-21 12:32:12" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_antiddos_pending_risk_info.go b/tencentcloud/data_source_tc_antiddos_pending_risk_info.go index 465a746fa1..9c52a944bd 100644 --- a/tencentcloud/data_source_tc_antiddos_pending_risk_info.go +++ b/tencentcloud/data_source_tc_antiddos_pending_risk_info.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of antiddos pending risk info - -Example Usage - -```hcl -data "tencentcloud_antiddos_pending_risk_info" "pending_risk_info" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_app_api.go b/tencentcloud/data_source_tc_api_gateway_api_app_api.go index 88eb6e470c..2789cfe327 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_app_api.go +++ b/tencentcloud/data_source_tc_api_gateway_api_app_api.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of apiGateway api_app_api - -Example Usage - -```hcl -data "tencentcloud_api_gateway_api_app_api" "example" { - service_id = "service-nxz6yync" - api_id = "api-0cvmf4x4" - api_region = "ap-guangzhou" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_app_service.go b/tencentcloud/data_source_tc_api_gateway_api_app_service.go index 5f9290b30a..2a3a28d80d 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_app_service.go +++ b/tencentcloud/data_source_tc_api_gateway_api_app_service.go @@ -1,57 +1,3 @@ -/* -Use this data source to query detailed information of apigateway api_app_services - -Example Usage - -```hcl -data "tencentcloud_api_gateway_api_app_service" "example" { - service_id = tencentcloud_api_gateway_api.example.service_id - api_region = "ap-guangzhou" -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf_example" - protocol = "http&https" - service_desc = "desc." - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "example" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "tf_example" - api_desc = "my hello api update" - auth_type = "APP" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "POST" - request_parameters { - name = "email" - position = "QUERY" - type = "string" - desc = "desc." - default_value = "test@qq.com" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 10 - service_config_url = "http://www.tencent.com" - service_config_path = "/user" - service_config_method = "POST" - response_type = "XML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 500 - msg = "system error" - desc = "system error code" - converted_code = 5000 - need_convert = true - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_apps.go b/tencentcloud/data_source_tc_api_gateway_api_apps.go index a900338da4..cbe5efd832 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_apps.go +++ b/tencentcloud/data_source_tc_api_gateway_api_apps.go @@ -1,15 +1,3 @@ -/* -Use this data source to query list information of api_gateway api_app - -Example Usage - -```hcl -data "tencentcloud_api_gateway_api_apps" "test" { - api_app_id = ["app-rj8t6zx3"] - api_app_name = ["app_test"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_docs.go b/tencentcloud/data_source_tc_api_gateway_api_docs.go index a9055ff24f..2080136284 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_docs.go +++ b/tencentcloud/data_source_tc_api_gateway_api_docs.go @@ -1,11 +1,3 @@ -/* -Use this data source to query list information of api_gateway api_doc -Example Usage -```hcl -data "tencentcloud_api_gateway_api_docs" "my_api_doc" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_keys.go b/tencentcloud/data_source_tc_api_gateway_api_keys.go index ba0baf06f3..04061c46c3 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_keys.go +++ b/tencentcloud/data_source_tc_api_gateway_api_keys.go @@ -1,23 +1,3 @@ -/* -Use this data source to query API gateway access keys. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_api_key" "test" { - secret_name = "my_api_key" - status = "on" -} - -data "tencentcloud_api_gateway_api_keys" "name" { - secret_name = tencentcloud_api_gateway_api_key.test.secret_name -} - -data "tencentcloud_api_gateway_api_keys" "id" { - api_key_id = tencentcloud_api_gateway_api_key.test.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_plugins.go b/tencentcloud/data_source_tc_api_gateway_api_plugins.go index 7df9b11b0f..40e8c34875 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_plugins.go +++ b/tencentcloud/data_source_tc_api_gateway_api_plugins.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of apiGateway api_plugins - -Example Usage - -```hcl -data "tencentcloud_api_gateway_api_plugins" "example" { - api_id = "api-0cvmf4x4" - service_id = "service-nxz6yync" - environment_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_api_usage_plans.go b/tencentcloud/data_source_tc_api_gateway_api_usage_plans.go index ba6029f70e..5707cda28b 100644 --- a/tencentcloud/data_source_tc_api_gateway_api_usage_plans.go +++ b/tencentcloud/data_source_tc_api_gateway_api_usage_plans.go @@ -1,71 +1,3 @@ -/* -Use this data source to query detailed information of apigateway api_usage_plan - -Example Usage - -```hcl -data "tencentcloud_api_gateway_api_usage_plans" "example" { - service_id = tencentcloud_api_gateway_usage_plan_attachment.example.service_id -} - -resource "tencentcloud_api_gateway_usage_plan" "example" { - usage_plan_name = "tf_example" - usage_plan_desc = "desc." - max_request_num = 100 - max_request_num_pre_sec = 10 -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf_example" - protocol = "http&https" - service_desc = "desc." - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "example" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "tf_example" - api_desc = "my hello api update" - auth_type = "SECRET" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "POST" - request_parameters { - name = "email" - position = "QUERY" - type = "string" - desc = "desc." - default_value = "test@qq.com" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 10 - service_config_url = "http://www.tencent.com" - service_config_path = "/user" - service_config_method = "POST" - response_type = "XML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 500 - msg = "system error" - desc = "system error code" - converted_code = 5000 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_usage_plan_attachment" "example" { - usage_plan_id = tencentcloud_api_gateway_usage_plan.example.id - service_id = tencentcloud_api_gateway_service.example.id - environment = "release" - bind_type = "API" - api_id = tencentcloud_api_gateway_api.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_apis.go b/tencentcloud/data_source_tc_api_gateway_apis.go index 9d588fc397..ebfafd20f4 100644 --- a/tencentcloud/data_source_tc_api_gateway_apis.go +++ b/tencentcloud/data_source_tc_api_gateway_apis.go @@ -1,47 +1,3 @@ -/* -Use this data source to query API gateway APIs. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "ck" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "api" { - service_id = tencentcloud_api_gateway_service.service.id - api_name = "hello" - api_desc = "my hello api" - auth_type = "NONE" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "GET" - service_config_type = "HTTP" - service_config_timeout = 15 - service_config_url = "http://www.qq.com" - service_config_path = "/user" - service_config_method = "GET" - response_type = "HTML" - response_success_example = "success" - response_fail_example = "fail" -} - -data "tencentcloud_api_gateway_apis" "id" { - service_id = tencentcloud_api_gateway_service.service.id - api_id = tencentcloud_api_gateway_api.api.id -} - -data "tencentcloud_api_gateway_apis" "name" { - service_id = tencentcloud_api_gateway_service.service.id - api_name = tencentcloud_api_gateway_api.api.api_name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_bind_api_apps_status.go b/tencentcloud/data_source_tc_api_gateway_bind_api_apps_status.go index 84bf10096c..746ab8189f 100644 --- a/tencentcloud/data_source_tc_api_gateway_bind_api_apps_status.go +++ b/tencentcloud/data_source_tc_api_gateway_bind_api_apps_status.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of apiGateway bind_api_apps_status - -Example Usage - -```hcl -data "tencentcloud_api_gateway_bind_api_apps_status" "example" { - service_id = "service-nxz6yync" - api_ids = ["api-0cvmf4x4", "api-jvqlzolk"] - filters { - name = "ApiAppId" - values = ["app-krljp4wn"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_customer_domains.go b/tencentcloud/data_source_tc_api_gateway_customer_domains.go index bfb14b3e9d..955a541350 100644 --- a/tencentcloud/data_source_tc_api_gateway_customer_domains.go +++ b/tencentcloud/data_source_tc_api_gateway_customer_domains.go @@ -1,24 +1,3 @@ -/* -Use this data source to query API gateway domain list. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_custom_domain" "foo" { - service_id = "service-ohxqslqe" - sub_domain = "tic-test.dnsv1.com" - protocol = "http" - net_type = "OUTER" - is_default_mapping = "false" - default_domain = "service-ohxqslqe-1259649581.gz.apigw.tencentcs.com" - path_mappings = ["/good#test","/root#release"] -} - -data "tencentcloud_api_gateway_customer_domains" "id" { - service_id = tencentcloud_api_gateway_custom_domain.foo.service_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_ip_strategies.go b/tencentcloud/data_source_tc_api_gateway_ip_strategies.go index 36b0f01e0e..32314958c3 100644 --- a/tencentcloud/data_source_tc_api_gateway_ip_strategies.go +++ b/tencentcloud/data_source_tc_api_gateway_ip_strategies.go @@ -1,34 +1,3 @@ -/* -Use this data source to query API gateway IP strategy. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "ck" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_ip_strategy" "test"{ - service_id = tencentcloud_api_gateway_service.service.id - strategy_name = "tf_test" - strategy_type = "BLACK" - strategy_data = "9.9.9.9" -} - -data "tencentcloud_api_gateway_ip_strategies" "id" { - service_id = tencentcloud_api_gateway_ip_strategy.test.service_id -} - -data "tencentcloud_api_gateway_ip_strategies" "name" { - service_id = tencentcloud_api_gateway_ip_strategy.test.service_id - strategy_name = tencentcloud_api_gateway_ip_strategy.test.strategy_name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_plugins.go b/tencentcloud/data_source_tc_api_gateway_plugins.go index ec8baca1be..0bf4e4d62f 100644 --- a/tencentcloud/data_source_tc_api_gateway_plugins.go +++ b/tencentcloud/data_source_tc_api_gateway_plugins.go @@ -1,81 +1,3 @@ -/* -Use this data source to query detailed information of apigateway plugin - -Example Usage - -```hcl -data "tencentcloud_api_gateway_plugins" "example" { - service_id = tencentcloud_api_gateway_service_release.example.service_id - plugin_id = tencentcloud_api_gateway_plugin.example.id - environment_name = "release" -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf_example" - protocol = "http&https" - service_desc = "desc." - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" - tags = { - testKey = "testValue" - } - release_limit = 500 - pre_limit = 500 - test_limit = 500 -} - -resource "tencentcloud_api_gateway_api" "example" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "hello" - api_desc = "my hello api" - auth_type = "NONE" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "GET" - - request_parameters { - name = "name" - position = "QUERY" - type = "string" - desc = "who are you?" - default_value = "tom" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 15 - service_config_url = "http://www.qq.com" - service_config_path = "/user" - service_config_method = "GET" - response_type = "HTML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 500 - msg = "system error" - desc = "system error code" - converted_code = 5000 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_service_release" "example" { - service_id = tencentcloud_api_gateway_api.example.service_id - environment_name = "release" - release_desc = "desc." -} - -resource "tencentcloud_api_gateway_plugin" "example" { - plugin_name = "tf-example" - plugin_type = "IPControl" - plugin_data = jsonencode({ - "type" : "white_list", - "blocks" : "1.1.1.1", - }) - description = "desc." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_service_environment_list.go b/tencentcloud/data_source_tc_api_gateway_service_environment_list.go index ed4e482bae..6d4cbcfd3d 100644 --- a/tencentcloud/data_source_tc_api_gateway_service_environment_list.go +++ b/tencentcloud/data_source_tc_api_gateway_service_environment_list.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of apiGateway service_environment_list - -Example Usage - -```hcl -data "tencentcloud_api_gateway_service_environment_list" "example" { - service_id = "service-nxz6yync" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_service_release_versions.go b/tencentcloud/data_source_tc_api_gateway_service_release_versions.go index 57c94e740d..aa9947b2f7 100644 --- a/tencentcloud/data_source_tc_api_gateway_service_release_versions.go +++ b/tencentcloud/data_source_tc_api_gateway_service_release_versions.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of apiGateway service_release_versions - -Example Usage - -```hcl -data "tencentcloud_api_gateway_service_release_versions" "example" { - service_id = "service-nxz6yync" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_services.go b/tencentcloud/data_source_tc_api_gateway_services.go index 8e1e2d9f81..ce5392bac7 100644 --- a/tencentcloud/data_source_tc_api_gateway_services.go +++ b/tencentcloud/data_source_tc_api_gateway_services.go @@ -1,26 +1,3 @@ -/* -Use this data source to query API gateway services. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "niceservice" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -data "tencentcloud_api_gateway_services" "name" { - service_name = tencentcloud_api_gateway_service.service.service_name -} - -data "tencentcloud_api_gateway_services" "id" { - service_id = tencentcloud_api_gateway_service.service.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_throttling_apis.go b/tencentcloud/data_source_tc_api_gateway_throttling_apis.go index e33290ea7c..f2d4731c63 100644 --- a/tencentcloud/data_source_tc_api_gateway_throttling_apis.go +++ b/tencentcloud/data_source_tc_api_gateway_throttling_apis.go @@ -1,65 +1,3 @@ -/* -Use this data source to query API gateway throttling APIs. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "niceservice" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "api" { - service_id = tencentcloud_api_gateway_service.service.id - api_name = "tf_example" - api_desc = "my hello api update" - auth_type = "SECRET" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "POST" - request_parameters { - name = "email" - position = "QUERY" - type = "string" - desc = "your email please?" - default_value = "tom@qq.com" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 10 - service_config_url = "http://www.tencent.com" - service_config_path = "/user" - service_config_method = "POST" - response_type = "XML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 10 - msg = "system error" - desc = "system error code" - converted_code = -10 - need_convert = true - } - - release_limit = 100 - pre_limit = 100 - test_limit = 100 -} - -data "tencentcloud_api_gateway_throttling_apis" "id" { - service_id = tencentcloud_api_gateway_api.service_id -} - -data "tencentcloud_api_gateway_throttling_apis" "foo" { - service_id = tencentcloud_api_gateway_api.service.service_id - environment_names = ["release", "test"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_throttling_services.go b/tencentcloud/data_source_tc_api_gateway_throttling_services.go index 6167d0d034..7858e7ce85 100644 --- a/tencentcloud/data_source_tc_api_gateway_throttling_services.go +++ b/tencentcloud/data_source_tc_api_gateway_throttling_services.go @@ -1,25 +1,3 @@ -/* -Use this data source to query API gateway throttling services. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "niceservice" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" - release_limit = 100 - pre_limit = 100 - test_limit = 100 -} - -data "tencentcloud_api_gateway_throttling_services" "id" { - service_id = tencentcloud_api_gateway_service.service.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_upstreams.go b/tencentcloud/data_source_tc_api_gateway_upstreams.go index fefa410c1a..963f2cf1dd 100644 --- a/tencentcloud/data_source_tc_api_gateway_upstreams.go +++ b/tencentcloud/data_source_tc_api_gateway_upstreams.go @@ -1,27 +1,3 @@ -/* -Use this data source to query detailed information of apigateway upstream - -Example Usage - -```hcl -data "tencentcloud_api_gateway_upstreams" "example" { - upstream_id = "upstream-4n5bfklc" -} -``` - -Filtered Queries - -```hcl -data "tencentcloud_api_gateway_upstreams" "example" { - upstream_id = "upstream-4n5bfklc" - - filters { - name = "ServiceId" - values = "service-hvg0uueg" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_usage_plan_environments.go b/tencentcloud/data_source_tc_api_gateway_usage_plan_environments.go index c6edd45c4a..7eeb07516f 100644 --- a/tencentcloud/data_source_tc_api_gateway_usage_plan_environments.go +++ b/tencentcloud/data_source_tc_api_gateway_usage_plan_environments.go @@ -1,37 +1,3 @@ -/* -Used to query the environment list bound by the plan. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_usage_plan" "plan" { - usage_plan_name = "my_plan" - usage_plan_desc = "nice plan" - max_request_num = 100 - max_request_num_pre_sec = 10 -} - -resource "tencentcloud_api_gateway_service" "service" { - service_name = "niceservice" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_usage_plan_attachment" "attach_service" { - usage_plan_id = tencentcloud_api_gateway_usage_plan.plan.id - service_id = tencentcloud_api_gateway_service.service.id - environment = "test" - bind_type = "SERVICE" -} - -data "tencentcloud_api_gateway_usage_plan_environments" "environment_test" { - usage_plan_id = tencentcloud_api_gateway_usage_plan_attachment.attach_service.usage_plan_id - bind_type = "SERVICE" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_api_gateway_usage_plans.go b/tencentcloud/data_source_tc_api_gateway_usage_plans.go index 940b327b6e..b29b78e164 100644 --- a/tencentcloud/data_source_tc_api_gateway_usage_plans.go +++ b/tencentcloud/data_source_tc_api_gateway_usage_plans.go @@ -1,25 +1,3 @@ -/* -Use this data source to query API gateway usage plans. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_usage_plan" "plan" { - usage_plan_name = "my_plan" - usage_plan_desc = "nice plan" - max_request_num = 100 - max_request_num_pre_sec = 10 -} - -data "tencentcloud_api_gateway_usage_plans" "name" { - usage_plan_name = tencentcloud_api_gateway_usage_plan.plan.usage_plan_name -} - -data "tencentcloud_api_gateway_usage_plans" "id" { - usage_plan_id = tencentcloud_api_gateway_usage_plan.plan.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_advices.go b/tencentcloud/data_source_tc_as_advices.go index 74cba209c9..43fb9bb245 100644 --- a/tencentcloud/data_source_tc_as_advices.go +++ b/tencentcloud/data_source_tc_as_advices.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of as advices - -Example Usage - -```hcl -data "tencentcloud_as_advices" "advices" { - auto_scaling_group_ids = ["asc-lo0b94oy"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_instances.go b/tencentcloud/data_source_tc_as_instances.go index ef25137362..a63a4a9cdf 100644 --- a/tencentcloud/data_source_tc_as_instances.go +++ b/tencentcloud/data_source_tc_as_instances.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of as instances - -Example Usage - -```hcl -resource "tencentcloud_as_scaling_group" "scaling_group" { - scaling_group_name = "tf-as-group-ds-ins-basic" - configuration_id = "your_launch_configuration_id" - max_size = 1 - min_size = 1 - vpc_id = "your_vpc_id" - subnet_ids = ["your_subnet_id"] - - tags = { - "test" = "test" - } -} - -data "tencentcloud_as_instances" "instances" { - filters { - name = "auto-scaling-group-id" - values = [tencentcloud_as_scaling_group.scaling_group.id] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_last_activity.go b/tencentcloud/data_source_tc_as_last_activity.go index e7d16c6231..00c6a0aad2 100644 --- a/tencentcloud/data_source_tc_as_last_activity.go +++ b/tencentcloud/data_source_tc_as_last_activity.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of as last_activity - -Example Usage - -```hcl -data "tencentcloud_as_last_activity" "last_activity" { - auto_scaling_group_ids = ["asc-lo0b94oy"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_limits.go b/tencentcloud/data_source_tc_as_limits.go index 49d30c2273..1da7414b92 100644 --- a/tencentcloud/data_source_tc_as_limits.go +++ b/tencentcloud/data_source_tc_as_limits.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of as limits - -Example Usage - -```hcl -data "tencentcloud_as_limits" "limits" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_scaling_configs.go b/tencentcloud/data_source_tc_as_scaling_configs.go index 5de1f88d5e..3ac0a920f4 100644 --- a/tencentcloud/data_source_tc_as_scaling_configs.go +++ b/tencentcloud/data_source_tc_as_scaling_configs.go @@ -1,15 +1,3 @@ -/* -Use this data source to query scaling configuration information. - -Example Usage - -```hcl -data "tencentcloud_as_scaling_configs" "as_configs" { - configuration_id = "asc-oqio4yyj" - result_output_file = "my_test_path" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_scaling_groups.go b/tencentcloud/data_source_tc_as_scaling_groups.go index 177474a695..1e9eaa562f 100644 --- a/tencentcloud/data_source_tc_as_scaling_groups.go +++ b/tencentcloud/data_source_tc_as_scaling_groups.go @@ -1,16 +1,3 @@ -/* -Use this data source to query the detail information of an existing autoscaling group. - -Example Usage - -```hcl -data "tencentcloud_as_scaling_groups" "as_scaling_groups" { - scaling_group_name = "myasgroup" - configuration_id = "asc-oqio4yyj" - result_output_file = "my_test_path" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_as_scaling_policies.go b/tencentcloud/data_source_tc_as_scaling_policies.go index 8121a686ff..d22863f658 100644 --- a/tencentcloud/data_source_tc_as_scaling_policies.go +++ b/tencentcloud/data_source_tc_as_scaling_policies.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of scaling policy. - -Example Usage - -```hcl -data "tencentcloud_as_scaling_policies" "as_scaling_policies" { - scaling_policy_id = "asg-mvyghxu7" - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_audit_cos_regions.go b/tencentcloud/data_source_tc_audit_cos_regions.go index 2373925e87..c24b24960d 100644 --- a/tencentcloud/data_source_tc_audit_cos_regions.go +++ b/tencentcloud/data_source_tc_audit_cos_regions.go @@ -1,12 +1,3 @@ -/* -Use this data source to query the cos region list supported by the audit. - -Example Usage -```hcl -data "tencentcloud_audit_cos_regions" "foo" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_audit_key_alias.go b/tencentcloud/data_source_tc_audit_key_alias.go index d49420a404..88f85619db 100644 --- a/tencentcloud/data_source_tc_audit_key_alias.go +++ b/tencentcloud/data_source_tc_audit_key_alias.go @@ -1,13 +1,3 @@ -/* -Use this data source to query the key alias list specified with region supported by the audit. - -Example Usage -```hcl -data "tencentcloud_audit_key_alias" "all" { - region = "ap-hongkong" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_audits.go b/tencentcloud/data_source_tc_audits.go index 84dde9757c..6a3538c02b 100644 --- a/tencentcloud/data_source_tc_audits.go +++ b/tencentcloud/data_source_tc_audits.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of audits. - -Example Usage - -```hcl -data "tencentcloud_audits" "audits" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_availability_regions.go b/tencentcloud/data_source_tc_availability_regions.go index 387fba4a17..ff0240daa6 100644 --- a/tencentcloud/data_source_tc_availability_regions.go +++ b/tencentcloud/data_source_tc_availability_regions.go @@ -1,14 +1,3 @@ -/* -Use this data source to get the available regions. By default only `AVAILABLE` regions will be returned, but `UNAVAILABLE` regions can also be fetched when `include_unavailable` is specified. - -Example Usage - -```hcl -data "tencentcloud_availability_regions" "my_favourite_region" { - name = "ap-guangzhou" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_availability_zones.go b/tencentcloud/data_source_tc_availability_zones.go index 538242ca19..49cdb5f819 100644 --- a/tencentcloud/data_source_tc_availability_zones.go +++ b/tencentcloud/data_source_tc_availability_zones.go @@ -1,16 +1,3 @@ -/* -Use this data source to get the available zones in current region. By default only `AVAILABLE` zones will be returned, but `UNAVAILABLE` zones can also be fetched when `include_unavailable` is specified. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_availability_zones_by_product. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "my_favourite_zone" { - name = "ap-guangzhou-3" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_availability_zones_by_product.go b/tencentcloud/data_source_tc_availability_zones_by_product.go index 93d8830197..35351a9826 100644 --- a/tencentcloud/data_source_tc_availability_zones_by_product.go +++ b/tencentcloud/data_source_tc_availability_zones_by_product.go @@ -1,14 +1,3 @@ -/* -Use this data source to get the available zones in current region. Must set product param to fetch the product infomations(e.g. => cvm, vpc). By default only `AVAILABLE` zones will be returned, but `UNAVAILABLE` zones can also be fetched when `include_unavailable` is specified. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "all" { - product="cvm" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_bi_project.go b/tencentcloud/data_source_tc_bi_project.go index 4a351a67dc..c20f5d7b85 100644 --- a/tencentcloud/data_source_tc_bi_project.go +++ b/tencentcloud/data_source_tc_bi_project.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of bi project - -Example Usage - -```hcl -data "tencentcloud_bi_project" "project" { - page_no = 1 - keyword = "abc" - all_page = true - module_collection = "sys_common_user" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_bi_user_project.go b/tencentcloud/data_source_tc_bi_user_project.go index 55c32fa410..b975aab8bc 100644 --- a/tencentcloud/data_source_tc_bi_user_project.go +++ b/tencentcloud/data_source_tc_bi_user_project.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of bi user_project - -Example Usage - -```hcl -data "tencentcloud_bi_user_project" "user_project" { - project_id = 123 - all_page = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_account_summary.go b/tencentcloud/data_source_tc_cam_account_summary.go index 64dd3d8427..95a3efa2d7 100644 --- a/tencentcloud/data_source_tc_cam_account_summary.go +++ b/tencentcloud/data_source_tc_cam_account_summary.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of cam account_summary - -Example Usage - -```hcl -data "tencentcloud_cam_account_summary" "account_summary" { - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_group_memberships.go b/tencentcloud/data_source_tc_cam_group_memberships.go index 44945f705b..5a8ede267e 100644 --- a/tencentcloud/data_source_tc_cam_group_memberships.go +++ b/tencentcloud/data_source_tc_cam_group_memberships.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of CAM group memberships - -Example Usage - -```hcl -data "tencentcloud_cam_group_memberships" "foo" { - group_id = tencentcloud_cam_group.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_group_policy_attachments.go b/tencentcloud/data_source_tc_cam_group_policy_attachments.go index abe08d998d..af8e08b8f3 100644 --- a/tencentcloud/data_source_tc_cam_group_policy_attachments.go +++ b/tencentcloud/data_source_tc_cam_group_policy_attachments.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of CAM group policy attachments - -Example Usage - -```hcl -# query by group_id -data "tencentcloud_cam_group_policy_attachments" "foo" { - group_id = tencentcloud_cam_group.foo.id -} - -# query by group_id and policy_id -data "tencentcloud_cam_group_policy_attachments" "bar" { - group_id = tencentcloud_cam_group.foo.id - policy_id = tencentcloud_cam_policy.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_group_user_account.go b/tencentcloud/data_source_tc_cam_group_user_account.go index e80ace7698..174c8335f5 100644 --- a/tencentcloud/data_source_tc_cam_group_user_account.go +++ b/tencentcloud/data_source_tc_cam_group_user_account.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cam group_user_account - -Example Usage - -```hcl -data "tencentcloud_cam_group_user_account" "group_user_account" { - sub_uin = 100033690181 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_groups.go b/tencentcloud/data_source_tc_cam_groups.go index 74b2f993a5..4de036de44 100644 --- a/tencentcloud/data_source_tc_cam_groups.go +++ b/tencentcloud/data_source_tc_cam_groups.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of CAM groups - -Example Usage - -```hcl -# query by group_id -data "tencentcloud_cam_groups" "foo" { - group_id = tencentcloud_cam_group.foo.id -} - -# query by name -data "tencentcloud_cam_groups" "bar" { - name = "cam-group-test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_list_entities_for_policy.go b/tencentcloud/data_source_tc_cam_list_entities_for_policy.go index e761411b53..68b03e824f 100644 --- a/tencentcloud/data_source_tc_cam_list_entities_for_policy.go +++ b/tencentcloud/data_source_tc_cam_list_entities_for_policy.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cam list_entities_for_policy - -Example Usage - -```hcl -data "tencentcloud_cam_list_entities_for_policy" "list_entities_for_policy" { - policy_id = 1 - entity_filter = "All" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_oidc_config.go b/tencentcloud/data_source_tc_cam_oidc_config.go index 7cae3177a1..19e6b9387b 100644 --- a/tencentcloud/data_source_tc_cam_oidc_config.go +++ b/tencentcloud/data_source_tc_cam_oidc_config.go @@ -1,23 +1,3 @@ -/* -Use this data source to query detailed information of cam oidc_config - -Example Usage - -```hcl -data "tencentcloud_cam_oidc_config" "oidc_config" { - name = "cls-kzilgv5m" -} - -output "identity_key" { - value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key -} - -output "identity_url" { - value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_policies.go b/tencentcloud/data_source_tc_cam_policies.go index 878664f1f9..1c205cdbb0 100644 --- a/tencentcloud/data_source_tc_cam_policies.go +++ b/tencentcloud/data_source_tc_cam_policies.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of CAM policies - -Example Usage - -```hcl -# query by policy_id -data "tencentcloud_cam_policies" "foo" { - policy_id = tencentcloud_cam_policy.foo.id -} - -# query by policy_id and name -data "tencentcloud_cam_policies" "bar" { - policy_id = tencentcloud_cam_policy.foo.id - name = "tf-auto-test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_policy_granting_service_access.go b/tencentcloud/data_source_tc_cam_policy_granting_service_access.go index 7c73fd066e..255a46f470 100644 --- a/tencentcloud/data_source_tc_cam_policy_granting_service_access.go +++ b/tencentcloud/data_source_tc_cam_policy_granting_service_access.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cam policy_granting_service_access - -Example Usage - -```hcl -data "tencentcloud_cam_policy_granting_service_access" "policy_granting_service_access" { - role_id = 4611686018436805021 - service_type = "cam" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_role_policy_attachments.go b/tencentcloud/data_source_tc_cam_role_policy_attachments.go index 060be8c08e..1829192188 100644 --- a/tencentcloud/data_source_tc_cam_role_policy_attachments.go +++ b/tencentcloud/data_source_tc_cam_role_policy_attachments.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of CAM role policy attachments - -Example Usage - -```hcl -# query by role_id -data "tencentcloud_cam_role_policy_attachments" "foo" { - role_id = tencentcloud_cam_role.foo.id -} - -# query by role_id and policy_id -data "tencentcloud_cam_role_policy_attachments" "bar" { - role_id = tencentcloud_cam_role.foo.id - policy_id = tencentcloud_cam_policy.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_roles.go b/tencentcloud/data_source_tc_cam_roles.go index 979d98f1b9..76c9fc5e1d 100644 --- a/tencentcloud/data_source_tc_cam_roles.go +++ b/tencentcloud/data_source_tc_cam_roles.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of CAM roles - -Example Usage - -```hcl -# query by role_id -data "tencentcloud_cam_roles" "foo" { - role_id = tencentcloud_cam_role.foo.id -} - -# query by name -data "tencentcloud_cam_roles" "bar" { - name = "cam-role-test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_saml_providers.go b/tencentcloud/data_source_tc_cam_saml_providers.go index bc8a6603c6..d281dfa22d 100644 --- a/tencentcloud/data_source_tc_cam_saml_providers.go +++ b/tencentcloud/data_source_tc_cam_saml_providers.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of CAM SAML providers - -Example Usage - -```hcl -data "tencentcloud_cam_saml_providers" "foo" { - name = "cam-test-provider" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_secret_last_used_time.go b/tencentcloud/data_source_tc_cam_secret_last_used_time.go index 9f2e5eb545..aaeb0dda1e 100644 --- a/tencentcloud/data_source_tc_cam_secret_last_used_time.go +++ b/tencentcloud/data_source_tc_cam_secret_last_used_time.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cam secret_last_used_time - -Example Usage - -```hcl -data "tencentcloud_cam_secret_last_used_time" "secret_last_used_time" { - secret_id_list = ["xxxx"] - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_user_policy_attachments.go b/tencentcloud/data_source_tc_cam_user_policy_attachments.go index 7e0c96a96c..7cebf0dc83 100644 --- a/tencentcloud/data_source_tc_cam_user_policy_attachments.go +++ b/tencentcloud/data_source_tc_cam_user_policy_attachments.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of CAM user policy attachments - -Example Usage - -```hcl -# query by user_id -data "tencentcloud_cam_user_policy_attachments" "foo" { - user_id = tencentcloud_cam_user.foo.id -} - -# query by user_id and policy_id -data "tencentcloud_cam_user_policy_attachments" "bar" { - user_id = tencentcloud_cam_user.foo.id - policy_id = tencentcloud_cam_policy.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cam_users.go b/tencentcloud/data_source_tc_cam_users.go index ffe93cac14..cdd17d9ac0 100644 --- a/tencentcloud/data_source_tc_cam_users.go +++ b/tencentcloud/data_source_tc_cam_users.go @@ -1,25 +1,3 @@ -/* -Use this data source to query detailed information of CAM users - -Example Usage - -```hcl -# query by name -data "tencentcloud_cam_users" "foo" { - name = "cam-user-test" -} - -# query by email -data "tencentcloud_cam_users" "bar" { - email = "hello@test.com" -} - -# query by phone -data "tencentcloud_cam_users" "far" { - phone_num = "12345678910" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cat_metric_data.go b/tencentcloud/data_source_tc_cat_metric_data.go index 498416e41d..79d163f676 100644 --- a/tencentcloud/data_source_tc_cat_metric_data.go +++ b/tencentcloud/data_source_tc_cat_metric_data.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of cat metric_data -Example Usage -```hcl -data "tencentcloud_cat_metric_data" "metric_data" { - analyze_task_type = "AnalyzeTaskType_Network" - metric_type = "gauge" - field = "avg(\"ping_time\")" - filters = [ - "\"host\" = 'www.qq.com'", - "time >= now()-1h", - ] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cat_node.go b/tencentcloud/data_source_tc_cat_node.go index bff9e7d957..b97587e8b9 100644 --- a/tencentcloud/data_source_tc_cat_node.go +++ b/tencentcloud/data_source_tc_cat_node.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of cat node - -Example Usage - -```hcl -data "tencentcloud_cat_node" "node"{ - node_type = 1 - location = 2 - is_ipv6 = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cat_probe_data.go b/tencentcloud/data_source_tc_cat_probe_data.go index 7cb5a9d998..6165a3fc86 100644 --- a/tencentcloud/data_source_tc_cat_probe_data.go +++ b/tencentcloud/data_source_tc_cat_probe_data.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of cat probe data - -Example Usage - -```hcl -data "tencentcloud_cat_probe_data" "probe_data" { - begin_time = 1667923200000 - end_time = 1667996208428 - task_type = "AnalyzeTaskType_Network" - sort_field = "ProbeTime" - ascending = true - selected_fields = ["terraform"] - offset = 0 - limit = 20 - task_id = ["task-knare1mk"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cbs_snapshot_policies.go b/tencentcloud/data_source_tc_cbs_snapshot_policies.go index eaefe5a975..69594cf459 100644 --- a/tencentcloud/data_source_tc_cbs_snapshot_policies.go +++ b/tencentcloud/data_source_tc_cbs_snapshot_policies.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of CBS snapshot policies. - -Example Usage - -```hcl -data "tencentcloud_cbs_snapshot_policies" "policies" { - snapshot_policy_id = "snap-f3io7adt" - snapshot_policy_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cbs_snapshots.go b/tencentcloud/data_source_tc_cbs_snapshots.go index 22bfa95706..9be90e6a49 100644 --- a/tencentcloud/data_source_tc_cbs_snapshots.go +++ b/tencentcloud/data_source_tc_cbs_snapshots.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of CBS snapshots. - -Example Usage - -```hcl -data "tencentcloud_cbs_snapshots" "snapshots" { - snapshot_id = "snap-f3io7adt" - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cbs_storages.go b/tencentcloud/data_source_tc_cbs_storages.go index 8be1c8ee8a..00de37989b 100644 --- a/tencentcloud/data_source_tc_cbs_storages.go +++ b/tencentcloud/data_source_tc_cbs_storages.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of CBS storages. - -Example Usage - -```hcl -data "tencentcloud_cbs_storages" "storages" { - storage_id = "disk-kdt0sq6m" - result_output_file = "mytestpath" -} -``` - -The following snippet shows the new supported query params - -```hcl -data "tencentcloud_cbs_storages" "whats_new" { - charge_type = ["POSTPAID_BY_HOUR", "PREPAID"] - portable = true - storage_state = ["ATTACHED"] - instance_ips = ["10.0.0.2"] - instance_name = ["my-instance"] - tag_keys = ["foo"] - tag_values = ["bar", "baz"] -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cbs_storages_set.go b/tencentcloud/data_source_tc_cbs_storages_set.go index 8769b80fbd..50dff7c363 100644 --- a/tencentcloud/data_source_tc_cbs_storages_set.go +++ b/tencentcloud/data_source_tc_cbs_storages_set.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of CBS storages in parallel. - -Example Usage - -```hcl -data "tencentcloud_cbs_storages_set" "storages" { - availability_zone = "ap-guangzhou-3" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ccn_bandwidth_limits.go b/tencentcloud/data_source_tc_ccn_bandwidth_limits.go index 15c8beb3ee..90b75db3fe 100644 --- a/tencentcloud/data_source_tc_ccn_bandwidth_limits.go +++ b/tencentcloud/data_source_tc_ccn_bandwidth_limits.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of CCN bandwidth limits. - -Example Usage - -```hcl -variable "other_region1" { - default = "ap-shanghai" -} - -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -data "tencentcloud_ccn_bandwidth_limits" "limit" { - ccn_id = tencentcloud_ccn.main.id -} - -resource "tencentcloud_ccn_bandwidth_limit" "limit1" { - ccn_id = tencentcloud_ccn.main.id - region = var.other_region1 - bandwidth_limit = 500 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ccn_cross_border_compliance.go b/tencentcloud/data_source_tc_ccn_cross_border_compliance.go index 030047d0bb..6b3bc1e9cd 100644 --- a/tencentcloud/data_source_tc_ccn_cross_border_compliance.go +++ b/tencentcloud/data_source_tc_ccn_cross_border_compliance.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of ccn cross_border_compliance - -Example Usage - -```hcl -data "tencentcloud_ccn_cross_border_compliance" "cross_border_compliance" { - service_provider = "UNICOM" - compliance_id = 10002 - email = "test@tencent.com" - service_start_date = "2020-07-29" - service_end_date = "2021-07-29" - state = "APPROVED" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ccn_cross_border_flow_monitor.go b/tencentcloud/data_source_tc_ccn_cross_border_flow_monitor.go index fa2330884c..c5a023f7ac 100644 --- a/tencentcloud/data_source_tc_ccn_cross_border_flow_monitor.go +++ b/tencentcloud/data_source_tc_ccn_cross_border_flow_monitor.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of vpc cross_border_flow_monitor - -Example Usage - -```hcl -data "tencentcloud_ccn_cross_border_flow_monitor" "cross_border_flow_monitor" { - source_region = "ap-guangzhou" - destination_region = "ap-singapore" - ccn_id = "ccn-39lqkygf" - ccn_uin = "979137" - period = 60 - start_time = "2023-01-01 00:00:00" - end_time = "2023-01-01 01:00:00" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ccn_cross_border_region_bandwidth_limits.go b/tencentcloud/data_source_tc_ccn_cross_border_region_bandwidth_limits.go index a869f88910..7ca0dace0d 100644 --- a/tencentcloud/data_source_tc_ccn_cross_border_region_bandwidth_limits.go +++ b/tencentcloud/data_source_tc_ccn_cross_border_region_bandwidth_limits.go @@ -1,24 +1,3 @@ -/* -Use this data source to query detailed information of ccn_cross_border_region_bandwidth_limits - --> **NOTE:** This resource is dedicated to Unicom. - -Example Usage - -```hcl -data "tencentcloud_ccn_cross_border_region_bandwidth_limits" "ccn_region_bandwidth_limits" { - filters { - name = "source-region" - values = ["ap-guangzhou"] - } - - filters { - name = "destination-region" - values = ["ap-shanghai"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ccn_instances.go b/tencentcloud/data_source_tc_ccn_instances.go index baa2fe377a..a3f5e13f52 100644 --- a/tencentcloud/data_source_tc_ccn_instances.go +++ b/tencentcloud/data_source_tc_ccn_instances.go @@ -1,24 +1,3 @@ -/* -Use this data source to query detailed information of CCN instances. - -Example Usage - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -data "tencentcloud_ccn_instances" "id_instances" { - ccn_id = tencentcloud_ccn.main.id -} - -data "tencentcloud_ccn_instances" "name_instances" { - name = tencentcloud_ccn.main.name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ccn_tenant_instances.go b/tencentcloud/data_source_tc_ccn_tenant_instances.go index 40f4594d0c..988bce461b 100644 --- a/tencentcloud/data_source_tc_ccn_tenant_instances.go +++ b/tencentcloud/data_source_tc_ccn_tenant_instances.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of vpc tenant_ccn - -Example Usage - -```hcl -data "tencentcloud_ccn_tenant_instances" "tenant_ccn" { - ccn_ids = ["ccn-39lqkygf"] - is_security_lock = ["true"] -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cdh_instances.go b/tencentcloud/data_source_tc_cdh_instances.go index 251f235822..ed5c8af6be 100644 --- a/tencentcloud/data_source_tc_cdh_instances.go +++ b/tencentcloud/data_source_tc_cdh_instances.go @@ -1,18 +1,3 @@ -/* -Use this data source to query CDH instances. - -Example Usage - -```hcl -data "tencentcloud_cdh_instances" "list" { - availability_zone = "ap-guangzhou-3" - host_id = "host-d6s7i5q4" - host_name = "test" - host_state = "RUNNING" - project_id = 1154137 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cdn_domain_verifier.go b/tencentcloud/data_source_tc_cdn_domain_verifier.go index e9fbf45836..83496dfc29 100644 --- a/tencentcloud/data_source_tc_cdn_domain_verifier.go +++ b/tencentcloud/data_source_tc_cdn_domain_verifier.go @@ -1,23 +1,3 @@ -/* -Provides a resource to check or create a cdn Domain Verify Record - -~> **NOTE:** - -Example Usage - -```hcl -data "tencentcloud_cdn_domain_verifier" "vr" { - domain = "www.examplexxx123.com" - auto_verify = true # auto create record if not verified - freeze_record = true # once been freeze and verified, it will never be changed again -} - -locals { - recordValue = data.tencentcloud_cdn_domain_verifier.record - recordType = data.tencentcloud_cdn_domain_verifier.record_type -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cdn_domains.go b/tencentcloud/data_source_tc_cdn_domains.go index 490525ffd9..e9ffc8983d 100644 --- a/tencentcloud/data_source_tc_cdn_domains.go +++ b/tencentcloud/data_source_tc_cdn_domains.go @@ -1,18 +1,3 @@ -/* -Use this data source to query the detail information of CDN domain. - -Example Usage - -```hcl -data "tencentcloud_cdn_domains" "foo" { - domain = "xxxx.com" - service_type = "web" - full_url_cache = false - origin_pull_protocol = "follow" - https_switch = "on" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfs_access_groups.go b/tencentcloud/data_source_tc_cfs_access_groups.go index 7db7e01143..79995220ca 100644 --- a/tencentcloud/data_source_tc_cfs_access_groups.go +++ b/tencentcloud/data_source_tc_cfs_access_groups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query the detail information of CFS access group. - -Example Usage - -```hcl -data "tencentcloud_cfs_access_groups" "access_groups" { - access_group_id = "pgroup-7nx89k7l" - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfs_access_rules.go b/tencentcloud/data_source_tc_cfs_access_rules.go index 1b24b8e3e6..76e0a49f7e 100644 --- a/tencentcloud/data_source_tc_cfs_access_rules.go +++ b/tencentcloud/data_source_tc_cfs_access_rules.go @@ -1,15 +1,3 @@ -/* -Use this data source to query the detail information of CFS access rule. - -Example Usage - -```hcl -data "tencentcloud_cfs_access_rules" "access_rules" { - access_group_id = "pgroup-7nx89k7l" - access_rule_id = "rule-qcndbqzj" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfs_available_zone.go b/tencentcloud/data_source_tc_cfs_available_zone.go index d888649a67..59a7dc001f 100644 --- a/tencentcloud/data_source_tc_cfs_available_zone.go +++ b/tencentcloud/data_source_tc_cfs_available_zone.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of cfs available_zone - -Example Usage - -```hcl -data "tencentcloud_cfs_available_zone" "available_zone" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfs_file_system_clients.go b/tencentcloud/data_source_tc_cfs_file_system_clients.go index 065884e417..34fc5f5bd1 100644 --- a/tencentcloud/data_source_tc_cfs_file_system_clients.go +++ b/tencentcloud/data_source_tc_cfs_file_system_clients.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cfs file_system_clients - -Example Usage - -```hcl -data "tencentcloud_cfs_file_system_clients" "file_system_clients" { - file_system_id = "cfs-iobiaxtj" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfs_file_systems.go b/tencentcloud/data_source_tc_cfs_file_systems.go index 001c5e4d7c..588786f2e2 100644 --- a/tencentcloud/data_source_tc_cfs_file_systems.go +++ b/tencentcloud/data_source_tc_cfs_file_systems.go @@ -1,16 +1,3 @@ -/* -Use this data source to query the detail information of cloud file systems(CFS). - -Example Usage - -```hcl -data "tencentcloud_cfs_file_systems" "file_systems" { - file_system_id = "cfs-6hgquxmj" - name = "test" - availability_zone = "ap-guangzhou-3" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfs_mount_targets.go b/tencentcloud/data_source_tc_cfs_mount_targets.go index 06d8318be3..3828075aa1 100644 --- a/tencentcloud/data_source_tc_cfs_mount_targets.go +++ b/tencentcloud/data_source_tc_cfs_mount_targets.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cfs mount_targets - -Example Usage - -```hcl -data "tencentcloud_cfs_mount_targets" "mount_targets" { - file_system_id = "cfs-iobiaxtj" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfw_edge_fw_switches.go b/tencentcloud/data_source_tc_cfw_edge_fw_switches.go index 67eae83983..c2655a7966 100644 --- a/tencentcloud/data_source_tc_cfw_edge_fw_switches.go +++ b/tencentcloud/data_source_tc_cfw_edge_fw_switches.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of cfw edge_fw_switches - -Example Usage - -```hcl -data "tencentcloud_cfw_edge_fw_switches" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfw_nat_fw_switches.go b/tencentcloud/data_source_tc_cfw_nat_fw_switches.go index 67a6d55d87..c414d3d09e 100644 --- a/tencentcloud/data_source_tc_cfw_nat_fw_switches.go +++ b/tencentcloud/data_source_tc_cfw_nat_fw_switches.go @@ -1,25 +1,3 @@ -/* -Use this data source to query detailed information of cfw nat_fw_switches - -Example Usage - -Query Nat instance'switch by instance id - -```hcl -data "tencentcloud_cfw_nat_fw_switches" "example" { - nat_ins_id = "cfwnat-18d2ba18" -} -``` - -Or filter by switch status - -```hcl -data "tencentcloud_cfw_nat_fw_switches" "example" { - nat_ins_id = "cfwnat-18d2ba18" - status = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cfw_vpc_fw_switches.go b/tencentcloud/data_source_tc_cfw_vpc_fw_switches.go index 99cf38382b..52ad89f285 100644 --- a/tencentcloud/data_source_tc_cfw_vpc_fw_switches.go +++ b/tencentcloud/data_source_tc_cfw_vpc_fw_switches.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cfw vpc_fw_switches - -Example Usage - -```hcl -data "tencentcloud_cfw_vpc_fw_switches" "example" { - vpc_ins_id = "cfwg-c8c2de41" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_chdfs_access_groups.go b/tencentcloud/data_source_tc_chdfs_access_groups.go index 8e5a09b9fa..3533c4c33b 100644 --- a/tencentcloud/data_source_tc_chdfs_access_groups.go +++ b/tencentcloud/data_source_tc_chdfs_access_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of chdfs access_groups - -Example Usage - -```hcl -data "tencentcloud_chdfs_access_groups" "access_groups" { - vpc_id = "vpc-pewdpc0d" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_chdfs_file_systems.go b/tencentcloud/data_source_tc_chdfs_file_systems.go index c15d916e8c..8e5224c919 100644 --- a/tencentcloud/data_source_tc_chdfs_file_systems.go +++ b/tencentcloud/data_source_tc_chdfs_file_systems.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of chdfs file_systems - -Example Usage - -```hcl -data "tencentcloud_chdfs_file_systems" "file_systems" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_chdfs_mount_points.go b/tencentcloud/data_source_tc_chdfs_mount_points.go index 0c4ec76ff6..3fa2861e4c 100644 --- a/tencentcloud/data_source_tc_chdfs_mount_points.go +++ b/tencentcloud/data_source_tc_chdfs_mount_points.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of chdfs mount_points - -Example Usage - -```hcl -data "tencentcloud_chdfs_mount_points" "mount_points" { - file_system_id = "f14mpfy5lh4e" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_acls.go b/tencentcloud/data_source_tc_ckafka_acls.go index 35941e3ef9..ef99348b55 100644 --- a/tencentcloud/data_source_tc_ckafka_acls.go +++ b/tencentcloud/data_source_tc_ckafka_acls.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed acl information of Ckafka - -Example Usage - -```hcl -data "tencentcloud_ckafka_acls" "foo" { - instance_id = "ckafka-f9ife4zz" - resource_type = "TOPIC" - resource_name = "topic-tf-test" - host = "2" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_connect_resource.go b/tencentcloud/data_source_tc_ckafka_connect_resource.go index a645fcb0f6..7872e71b90 100644 --- a/tencentcloud/data_source_tc_ckafka_connect_resource.go +++ b/tencentcloud/data_source_tc_ckafka_connect_resource.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ckafka connect_resource - -Example Usage - -```hcl -data "tencentcloud_ckafka_connect_resource" "connect_resource" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_datahub_group_offsets.go b/tencentcloud/data_source_tc_ckafka_datahub_group_offsets.go index f4c60b7f20..6387c451e3 100644 --- a/tencentcloud/data_source_tc_ckafka_datahub_group_offsets.go +++ b/tencentcloud/data_source_tc_ckafka_datahub_group_offsets.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ckafka datahub_group_offsets - -Example Usage - -```hcl -data "tencentcloud_ckafka_datahub_group_offsets" "datahub_group_offsets" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_datahub_task.go b/tencentcloud/data_source_tc_ckafka_datahub_task.go index ae2a91fe65..cf9a32e9c3 100644 --- a/tencentcloud/data_source_tc_ckafka_datahub_task.go +++ b/tencentcloud/data_source_tc_ckafka_datahub_task.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ckafka datahub_task - -Example Usage - -```hcl -data "tencentcloud_ckafka_datahub_task" "datahub_task" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_datahub_topic.go b/tencentcloud/data_source_tc_ckafka_datahub_topic.go index e777fcab8b..1296cff77b 100644 --- a/tencentcloud/data_source_tc_ckafka_datahub_topic.go +++ b/tencentcloud/data_source_tc_ckafka_datahub_topic.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ckafka datahub_topic - -Example Usage - -```hcl -data "tencentcloud_ckafka_datahub_topic" "datahub_topic" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_group.go b/tencentcloud/data_source_tc_ckafka_group.go index ce229fe315..ab2ff96357 100644 --- a/tencentcloud/data_source_tc_ckafka_group.go +++ b/tencentcloud/data_source_tc_ckafka_group.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ckafka group - -Example Usage - -```hcl -data "tencentcloud_ckafka_group" "group" { - instance_id = "ckafka-xxxxxxx" - search_word = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_group_info.go b/tencentcloud/data_source_tc_ckafka_group_info.go index d6a2719717..17edfa817c 100644 --- a/tencentcloud/data_source_tc_ckafka_group_info.go +++ b/tencentcloud/data_source_tc_ckafka_group_info.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ckafka group_info - -Example Usage - -```hcl -data "tencentcloud_ckafka_group_info" "group_info" { - instance_id = "ckafka-xxxxxx" - group_list = ["xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_group_offsets.go b/tencentcloud/data_source_tc_ckafka_group_offsets.go index f7e6eb4ff0..0084b38aab 100644 --- a/tencentcloud/data_source_tc_ckafka_group_offsets.go +++ b/tencentcloud/data_source_tc_ckafka_group_offsets.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ckafka group_offsets - -Example Usage - -```hcl -data "tencentcloud_ckafka_group_offsets" "group_offsets" { - instance_id = "ckafka-xxxxxx" - group = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_instances.go b/tencentcloud/data_source_tc_ckafka_instances.go index 4bc9ef4aaa..5f72bf517a 100644 --- a/tencentcloud/data_source_tc_ckafka_instances.go +++ b/tencentcloud/data_source_tc_ckafka_instances.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed instance information of Ckafka - -Example Usage - -```hcl -data "tencentcloud_ckafka_instances" "foo" { - instance_ids=["ckafka-vv7wpvae"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_region.go b/tencentcloud/data_source_tc_ckafka_region.go index e9801275dc..3ab2b486f5 100644 --- a/tencentcloud/data_source_tc_ckafka_region.go +++ b/tencentcloud/data_source_tc_ckafka_region.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ckafka region - -Example Usage - -```hcl -data "tencentcloud_ckafka_region" "region" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_task_status.go b/tencentcloud/data_source_tc_ckafka_task_status.go index aaef8a1a32..bf3a1e13e9 100644 --- a/tencentcloud/data_source_tc_ckafka_task_status.go +++ b/tencentcloud/data_source_tc_ckafka_task_status.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ckafka task_status - -Example Usage - -```hcl -data "tencentcloud_ckafka_task_status" "task_status" { - flow_id = 123456 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_topic_flow_ranking.go b/tencentcloud/data_source_tc_ckafka_topic_flow_ranking.go index d7a2b6b6ea..c0248362f5 100644 --- a/tencentcloud/data_source_tc_ckafka_topic_flow_ranking.go +++ b/tencentcloud/data_source_tc_ckafka_topic_flow_ranking.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of ckafka topic_flow_ranking - -Example Usage - -```hcl -data "tencentcloud_ckafka_topic_flow_ranking" "topic_flow_ranking" { - instance_id = "ckafka-xxxxxx" - ranking_type = "PRO" - begin_date = "2023-05-29T00:00:00+08:00" - end_date = "2021-05-29T23:59:59+08:00" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_topic_produce_connection.go b/tencentcloud/data_source_tc_ckafka_topic_produce_connection.go index ca517c67a6..dc650b53d3 100644 --- a/tencentcloud/data_source_tc_ckafka_topic_produce_connection.go +++ b/tencentcloud/data_source_tc_ckafka_topic_produce_connection.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ckafka topic_produce_connection - -Example Usage - -```hcl -data "tencentcloud_ckafka_topic_produce_connection" "topic_produce_connection" { - instance_id = "ckafka-xxxxxx" - topic_name = "topic-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_topic_subscribe_group.go b/tencentcloud/data_source_tc_ckafka_topic_subscribe_group.go index e1f68b15e4..a846553025 100644 --- a/tencentcloud/data_source_tc_ckafka_topic_subscribe_group.go +++ b/tencentcloud/data_source_tc_ckafka_topic_subscribe_group.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ckafka topic_subscribe_group - -Example Usage - -```hcl -data "tencentcloud_ckafka_topic_subscribe_group" "topic_subscribe_group" { - instance_id = "ckafka-xxxxxx" - topic_name = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_topic_sync_replica.go b/tencentcloud/data_source_tc_ckafka_topic_sync_replica.go index 5b9df77df7..01e91b31b5 100644 --- a/tencentcloud/data_source_tc_ckafka_topic_sync_replica.go +++ b/tencentcloud/data_source_tc_ckafka_topic_sync_replica.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ckafka topic_sync_replica - -Example Usage - -```hcl -data "tencentcloud_ckafka_topic_sync_replica" "topic_sync_replica" { - instance_id = "ckafka-xxxxxx" - topic_name = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_topics.go b/tencentcloud/data_source_tc_ckafka_topics.go index b4a4b9e18a..0efa71efea 100644 --- a/tencentcloud/data_source_tc_ckafka_topics.go +++ b/tencentcloud/data_source_tc_ckafka_topics.go @@ -1,26 +1,3 @@ -/* -Use this data source to query detailed information of ckafka topic. - -Example Usage - -```hcl -resource "tencentcloud_ckafka_topic" "foo" { - instance_id = "ckafka-f9ife4zz" - topic_name = "example" - note = "topic note" - replica_num = 2 - partition_num = 1 - enable_white_list = true - ip_white_list = ["ip1","ip2"] - clean_up_policy = "delete" - sync_replica_min_num = 1 - unclean_leader_election_enable = false - segment = 3600000 - retention = 60000 - max_message_bytes = 1024 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_users.go b/tencentcloud/data_source_tc_ckafka_users.go index 6d0047b1c0..072dffb461 100644 --- a/tencentcloud/data_source_tc_ckafka_users.go +++ b/tencentcloud/data_source_tc_ckafka_users.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed user information of Ckafka - -Example Usage - -```hcl -data "tencentcloud_ckafka_users" "foo" { - instance_id = "ckafka-f9ife4zz" - account_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ckafka_zone.go b/tencentcloud/data_source_tc_ckafka_zone.go index 7c49b0bebe..34cac4010e 100644 --- a/tencentcloud/data_source_tc_ckafka_zone.go +++ b/tencentcloud/data_source_tc_ckafka_zone.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ckafka zone - -Example Usage - -```hcl -data "tencentcloud_ckafka_zone" "ckafka_zone" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_attachments.go b/tencentcloud/data_source_tc_clb_attachments.go index 76c9de4b56..e291db9aaa 100644 --- a/tencentcloud/data_source_tc_clb_attachments.go +++ b/tencentcloud/data_source_tc_clb_attachments.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of CLB attachments - -Example Usage - -```hcl -data "tencentcloud_clb_attachments" "clblab" { - listener_id = "lbl-hh141sn9" - clb_id = "lb-k2zjp9lv" - rule_id = "loc-4xxr2cy7" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_cluster_resources.go b/tencentcloud/data_source_tc_clb_cluster_resources.go index 5ce991ba36..07fb4760f2 100644 --- a/tencentcloud/data_source_tc_clb_cluster_resources.go +++ b/tencentcloud/data_source_tc_clb_cluster_resources.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of clb cluster_resources - -Example Usage - -```hcl -data "tencentcloud_clb_cluster_resources" "cluster_resources" { - filters { - name = "idle" - values = ["True"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_cross_targets.go b/tencentcloud/data_source_tc_clb_cross_targets.go index 8287fd8f8a..b6fd8fa655 100644 --- a/tencentcloud/data_source_tc_clb_cross_targets.go +++ b/tencentcloud/data_source_tc_clb_cross_targets.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of clb cross_targets - -Example Usage - -```hcl -data "tencentcloud_clb_cross_targets" "cross_targets" { - filters { - name = "vpc-id" - values = ["vpc-4owdpnwr"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_exclusive_clusters.go b/tencentcloud/data_source_tc_clb_exclusive_clusters.go index 0a558e7467..bc3ad785e1 100644 --- a/tencentcloud/data_source_tc_clb_exclusive_clusters.go +++ b/tencentcloud/data_source_tc_clb_exclusive_clusters.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of clb exclusive_clusters - -Example Usage - -```hcl -data "tencentcloud_clb_exclusive_clusters" "exclusive_clusters" { - filters { - name = "zone" - values = ["ap-guangzhou-1"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_idle_instances.go b/tencentcloud/data_source_tc_clb_idle_instances.go index f8cb0f6b62..fe7da765d4 100644 --- a/tencentcloud/data_source_tc_clb_idle_instances.go +++ b/tencentcloud/data_source_tc_clb_idle_instances.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clb idle_loadbalancers - -Example Usage - -```hcl -data "tencentcloud_clb_idle_instances" "idle_instance" { - load_balancer_region = "ap-guangzhou" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_instance_by_cert_id.go b/tencentcloud/data_source_tc_clb_instance_by_cert_id.go index 3a554c05f6..86979b56ab 100644 --- a/tencentcloud/data_source_tc_clb_instance_by_cert_id.go +++ b/tencentcloud/data_source_tc_clb_instance_by_cert_id.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clb instance_by_cert_id - -Example Usage - -```hcl -data "tencentcloud_clb_instance_by_cert_id" "instance_by_cert_id" { - cert_ids = ["3a6B5y8v"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_instance_detail.go b/tencentcloud/data_source_tc_clb_instance_detail.go index 994593cf32..244d8a10d3 100644 --- a/tencentcloud/data_source_tc_clb_instance_detail.go +++ b/tencentcloud/data_source_tc_clb_instance_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clb instance_detail - -Example Usage - -```hcl -data "tencentcloud_clb_instance_detail" "instance_detail" { - target_type = "NODE" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_instance_traffic.go b/tencentcloud/data_source_tc_clb_instance_traffic.go index 6a189dd1d5..07bc8a9ebf 100644 --- a/tencentcloud/data_source_tc_clb_instance_traffic.go +++ b/tencentcloud/data_source_tc_clb_instance_traffic.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clb instance_traffic - -Example Usage - -```hcl -data "tencentcloud_clb_instance_traffic" "instance_traffic" { - load_balancer_region = "ap-guangzhou" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_instances.go b/tencentcloud/data_source_tc_clb_instances.go index 5ba0d1134c..111d0a67a4 100644 --- a/tencentcloud/data_source_tc_clb_instances.go +++ b/tencentcloud/data_source_tc_clb_instances.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of CLB - -Example Usage - -```hcl -data "tencentcloud_clb_instances" "foo" { - clb_id = "lb-k2zjp9lv" - network_type = "OPEN" - clb_name = "myclb" - project_id = 0 - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_listener_rules.go b/tencentcloud/data_source_tc_clb_listener_rules.go index 35628a73be..449ef2cdaf 100644 --- a/tencentcloud/data_source_tc_clb_listener_rules.go +++ b/tencentcloud/data_source_tc_clb_listener_rules.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of CLB listener rule - -Example Usage - -```hcl -data "tencentcloud_clb_listener_rules" "foo" { - clb_id = "lb-k2zjp9lv" - listener_id = "lbl-mwr6vbtv" - rule_id = "loc-inem40hz" - domain = "abc.com" - url = "/" - scheduler = "WRR" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_listeners.go b/tencentcloud/data_source_tc_clb_listeners.go index 778a659601..d5daec3e14 100644 --- a/tencentcloud/data_source_tc_clb_listeners.go +++ b/tencentcloud/data_source_tc_clb_listeners.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of CLB listener - -Example Usage - -```hcl -data "tencentcloud_clb_listeners" "foo" { - clb_id = "lb-k2zjp9lv" - listener_id = "lbl-mwr6vbtv" - protocol = "TCP" - port = 80 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_listeners_by_targets.go b/tencentcloud/data_source_tc_clb_listeners_by_targets.go index cd8e65baea..4e22a76727 100644 --- a/tencentcloud/data_source_tc_clb_listeners_by_targets.go +++ b/tencentcloud/data_source_tc_clb_listeners_by_targets.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of clb listeners_by_targets - -Example Usage - -```hcl -data "tencentcloud_clb_listeners_by_targets" "listeners_by_targets" { - backends { - vpc_id = "vpc-4owdpnwr" - private_ip = "106.52.160.211" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_redirections.go b/tencentcloud/data_source_tc_clb_redirections.go index a2262ae585..bac8e9aa3e 100644 --- a/tencentcloud/data_source_tc_clb_redirections.go +++ b/tencentcloud/data_source_tc_clb_redirections.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of CLB redirections - -Example Usage - -```hcl -data "tencentcloud_clb_redirections" "foo" { - clb_id = "lb-p7olt9e5" - source_listener_id = "lbl-jc1dx6ju" - target_listener_id = "lbl-asj1hzuo" - source_rule_id = "loc-ft8fmngv" - target_rule_id = "loc-4xxr2cy7" - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_resources.go b/tencentcloud/data_source_tc_clb_resources.go index ab73d59bb5..4e06574cd4 100644 --- a/tencentcloud/data_source_tc_clb_resources.go +++ b/tencentcloud/data_source_tc_clb_resources.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of clb resources - -Example Usage - -```hcl -data "tencentcloud_clb_resources" "resources" { - filters { - name = "isp" - values = ["BGP"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_target_group_list.go b/tencentcloud/data_source_tc_clb_target_group_list.go index 0c1bc02cb1..98ae43e92d 100644 --- a/tencentcloud/data_source_tc_clb_target_group_list.go +++ b/tencentcloud/data_source_tc_clb_target_group_list.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of clb target_group_list - -Example Usage - -```hcl -data "tencentcloud_clb_target_group_list" "target_group_list" { - filters { - name = "TargetGroupName" - values = ["keep-tgg"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_target_groups.go b/tencentcloud/data_source_tc_clb_target_groups.go index 7f21a4451a..2a6da8724e 100644 --- a/tencentcloud/data_source_tc_clb_target_groups.go +++ b/tencentcloud/data_source_tc_clb_target_groups.go @@ -1,47 +1,3 @@ -/* -Use this data source to query target group information. - -Example Usage - -```hcl -resource "tencentcloud_clb_instance" "clb_basic" { - network_type = "OPEN" - clb_name = "tf-clb-rule-basic" -} - -resource "tencentcloud_clb_listener" "listener_basic" { - clb_id = tencentcloud_clb_instance.clb_basic.id - port = 1 - protocol = "HTTP" - listener_name = "listener_basic" -} - -resource "tencentcloud_clb_listener_rule" "rule_basic" { - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_id = tencentcloud_clb_listener.listener_basic.listener_id - domain = "abc.com" - url = "/" - session_expire_time = 30 - scheduler = "WRR" - target_type = "TARGETGROUP" -} - -resource "tencentcloud_clb_target_group" "test"{ - target_group_name = "test-target-keep-1" -} - -resource "tencentcloud_clb_target_group_attachment" "group" { - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_id = tencentcloud_clb_listener.listener_basic.listener_id - rule_id = tencentcloud_clb_listener_rule.rule_basic.rule_id - targrt_group_id = tencentcloud_clb_target_group.test.id -} - -data "tencentcloud_clb_target_groups" "target_group_info_id" { - target_group_id = tencentcloud_clb_target_group.test.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clb_target_health.go b/tencentcloud/data_source_tc_clb_target_health.go index 2f3b41ce48..5f424637f9 100644 --- a/tencentcloud/data_source_tc_clb_target_health.go +++ b/tencentcloud/data_source_tc_clb_target_health.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clb target_health - -Example Usage - -```hcl -data "tencentcloud_clb_target_health" "target_health" { - load_balancer_ids = ["lb-5dnrkgry"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clickhouse_backup_job_detail.go b/tencentcloud/data_source_tc_clickhouse_backup_job_detail.go index 77029819f2..5bc4ccb3a3 100644 --- a/tencentcloud/data_source_tc_clickhouse_backup_job_detail.go +++ b/tencentcloud/data_source_tc_clickhouse_backup_job_detail.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of clickhouse backup job detail - -Example Usage - -```hcl -data "tencentcloud_clickhouse_backup_job_detail" "backup_job_detail" { - instance_id = "cdwch-xxxxxx" - back_up_job_id = 1234 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clickhouse_backup_jobs.go b/tencentcloud/data_source_tc_clickhouse_backup_jobs.go index adf91d219f..8e09ff2eaa 100644 --- a/tencentcloud/data_source_tc_clickhouse_backup_jobs.go +++ b/tencentcloud/data_source_tc_clickhouse_backup_jobs.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clickhouse backup jobs - -Example Usage - -```hcl -data "tencentcloud_clickhouse_backup_jobs" "backup_jobs" { - instance_id = "cdwch-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_clickhouse_backup_tables.go b/tencentcloud/data_source_tc_clickhouse_backup_tables.go index 0e38cf14aa..050c7f62c1 100644 --- a/tencentcloud/data_source_tc_clickhouse_backup_tables.go +++ b/tencentcloud/data_source_tc_clickhouse_backup_tables.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of clickhouse backup tables - -Example Usage - -```hcl -data "tencentcloud_clickhouse_backup_tables" "backup_tables" { - instance_id = "cdwch-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cls_machine_group_configs.go b/tencentcloud/data_source_tc_cls_machine_group_configs.go index 9c2a000bb7..36b41d113a 100644 --- a/tencentcloud/data_source_tc_cls_machine_group_configs.go +++ b/tencentcloud/data_source_tc_cls_machine_group_configs.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of cls machine_group_configs - -Example Usage - -```hcl -resource "tencentcloud_cls_machine_group" "group" { - group_name = "tf-describe-mg-config-test" - service_logging = true - auto_update = true - update_end_time = "19:05:00" - update_start_time = "17:05:00" - - machine_group_type { - type = "ip" - values = [ - "192.168.1.1", - "192.168.1.2", - ] - } -} - -data "tencentcloud_cls_machine_group_configs" "machine_group_configs" { - group_id = tencentcloud_cls_machine_group.group.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cls_machines.go b/tencentcloud/data_source_tc_cls_machines.go index 8016c59329..e6df1e5526 100644 --- a/tencentcloud/data_source_tc_cls_machines.go +++ b/tencentcloud/data_source_tc_cls_machines.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of cls machines - -Example Usage - -```hcl -resource "tencentcloud_cls_machine_group" "group" { - group_name = "tf-describe-mg-test" - service_logging = true - auto_update = true - update_end_time = "19:05:00" - update_start_time = "17:05:00" - - machine_group_type { - type = "ip" - values = [ - "192.168.1.1", - "192.168.1.2", - ] - } -} - -data "tencentcloud_cls_machines" "machines" { - group_id = tencentcloud_cls_machine_group.group.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cls_shipper_tasks.go b/tencentcloud/data_source_tc_cls_shipper_tasks.go index d631454192..e6c4fe0ac7 100644 --- a/tencentcloud/data_source_tc_cls_shipper_tasks.go +++ b/tencentcloud/data_source_tc_cls_shipper_tasks.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of cls shipper_tasks - -Example Usage - -```hcl -data "tencentcloud_cls_shipper_tasks" "shipper_tasks" { - shipper_id = "dbde3c9b-ea16-4032-bc2a-d8fa65567a8e" - start_time = 160749910700 - end_time = 160749910800 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_container_cluster_instances.go b/tencentcloud/data_source_tc_container_cluster_instances.go index d215f88033..42f1bf82e9 100644 --- a/tencentcloud/data_source_tc_container_cluster_instances.go +++ b/tencentcloud/data_source_tc_container_cluster_instances.go @@ -1,18 +1,3 @@ -/* -Get all instances of the specific cluster. - -Use this data source to get all instances in a specific cluster. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_clusters. - -Example Usage - -```hcl -data "tencentcloud_container_cluster_instances" "foo_instance" { - cluster_id = "cls-abcdefg" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_container_clusters.go b/tencentcloud/data_source_tc_container_clusters.go index f781efe5e3..2ea1f7637f 100644 --- a/tencentcloud/data_source_tc_container_clusters.go +++ b/tencentcloud/data_source_tc_container_clusters.go @@ -1,17 +1,3 @@ -/* -Get container clusters in the current region. - -Use this data source to get container clusters in the current region. By default every clusters in current region will be returned. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_clusters. - -Example Usage - -```hcl -data "tencentcloud_container_clusters" "foo" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cos_batchs.go b/tencentcloud/data_source_tc_cos_batchs.go index c66fc287e3..1248155319 100644 --- a/tencentcloud/data_source_tc_cos_batchs.go +++ b/tencentcloud/data_source_tc_cos_batchs.go @@ -1,15 +1,3 @@ -/* -Use this data source to query the COS batch. - -Example Usage - -```hcl -data "tencentcloud_cos_batchs" "cos_batchs" { - uin = "xxxxxx" - appid = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cos_bucket_inventorys.go b/tencentcloud/data_source_tc_cos_bucket_inventorys.go index a50399baec..13449946f2 100644 --- a/tencentcloud/data_source_tc_cos_bucket_inventorys.go +++ b/tencentcloud/data_source_tc_cos_bucket_inventorys.go @@ -1,14 +1,3 @@ -/* -Use this data source to query the COS bucket inventorys. - -Example Usage - -```hcl -data "tencentcloud_cos_bucket_inventorys" "cos_bucket_inventorys" { - bucket = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cos_bucket_multipart_uploads.go b/tencentcloud/data_source_tc_cos_bucket_multipart_uploads.go index 857ef6b839..a5c258bf53 100644 --- a/tencentcloud/data_source_tc_cos_bucket_multipart_uploads.go +++ b/tencentcloud/data_source_tc_cos_bucket_multipart_uploads.go @@ -1,14 +1,3 @@ -/* -Use this data source to query the COS bucket multipart uploads. - -Example Usage - -```hcl -data "tencentcloud_cos_bucket_multipart_uploads" "cos_bucket_multipart_uploads" { - bucket = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cos_bucket_object.go b/tencentcloud/data_source_tc_cos_bucket_object.go index f8ea5538b1..6b74d5bf7b 100644 --- a/tencentcloud/data_source_tc_cos_bucket_object.go +++ b/tencentcloud/data_source_tc_cos_bucket_object.go @@ -1,16 +1,3 @@ -/* -Use this data source to query the metadata of an object stored inside a bucket. - -Example Usage - -```hcl -data "tencentcloud_cos_bucket_object" "mycos" { - bucket = "mycos-test-1258798060" - key = "hello-world.py" - result_output_file = "TFresults" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cos_buckets.go b/tencentcloud/data_source_tc_cos_buckets.go index a03d64a149..62e792bdbf 100644 --- a/tencentcloud/data_source_tc_cos_buckets.go +++ b/tencentcloud/data_source_tc_cos_buckets.go @@ -1,15 +1,3 @@ -/* -Use this data source to query the COS buckets of the current Tencent Cloud user. - -Example Usage - -```hcl -data "tencentcloud_cos_buckets" "cos_buckets" { - bucket_prefix = "tf-bucket-" - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_backup_stream.go b/tencentcloud/data_source_tc_css_backup_stream.go index a47f9b9efe..572edf9a79 100644 --- a/tencentcloud/data_source_tc_css_backup_stream.go +++ b/tencentcloud/data_source_tc_css_backup_stream.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of css backup_stream - -Example Usage - -```hcl -data "tencentcloud_css_backup_stream" "backup_stream" { - stream_name = "live" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_domains.go b/tencentcloud/data_source_tc_css_domains.go index 2699a286a7..5541eb16c8 100644 --- a/tencentcloud/data_source_tc_css_domains.go +++ b/tencentcloud/data_source_tc_css_domains.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of css domains - -Example Usage - -```hcl -data "tencentcloud_css_domains" "domains" { - domain_type = 0 - play_type = 1 - is_delay_live = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_monitor_report.go b/tencentcloud/data_source_tc_css_monitor_report.go index 2e128a026a..c9218e0370 100644 --- a/tencentcloud/data_source_tc_css_monitor_report.go +++ b/tencentcloud/data_source_tc_css_monitor_report.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of css monitor_report - -Example Usage - -```hcl -data "tencentcloud_css_monitor_report" "monitor_report" { - monitor_id = "0e8a12b5-df2a-4a1b-aa98-97d5610aa142" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_pad_templates.go b/tencentcloud/data_source_tc_css_pad_templates.go index 861ab3358a..17ee0867c8 100644 --- a/tencentcloud/data_source_tc_css_pad_templates.go +++ b/tencentcloud/data_source_tc_css_pad_templates.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of css pad_templates - -Example Usage - -```hcl -data "tencentcloud_css_pad_templates" "pad_templates" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_pull_stream_task_status.go b/tencentcloud/data_source_tc_css_pull_stream_task_status.go index 417b3a535a..aa4b2f734e 100644 --- a/tencentcloud/data_source_tc_css_pull_stream_task_status.go +++ b/tencentcloud/data_source_tc_css_pull_stream_task_status.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of css pull_stream_task_status - -Example Usage - -```hcl -data "tencentcloud_css_pull_stream_task_status" "pull_stream_task_status" { - task_id = "63229997" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_stream_monitor_list.go b/tencentcloud/data_source_tc_css_stream_monitor_list.go index 0953b94484..6c63c24a71 100644 --- a/tencentcloud/data_source_tc_css_stream_monitor_list.go +++ b/tencentcloud/data_source_tc_css_stream_monitor_list.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of css stream_monitor_list - -Example Usage - -```hcl -data "tencentcloud_css_stream_monitor_list" "stream_monitor_list" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_time_shift_record_detail.go b/tencentcloud/data_source_tc_css_time_shift_record_detail.go index 427d132d5a..371c6ef77b 100644 --- a/tencentcloud/data_source_tc_css_time_shift_record_detail.go +++ b/tencentcloud/data_source_tc_css_time_shift_record_detail.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of css time_shift_record_detail - -Example Usage - -```hcl -data "tencentcloud_css_time_shift_record_detail" "time_shift_record_detail" { - domain = "177154.push.tlivecloud.com" - app_name = "qqq" - stream_name = "live" - start_time = 1698768000 - end_time = 1698820641 - domain_group = "tf-test" - trans_code_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_time_shift_stream_list.go b/tencentcloud/data_source_tc_css_time_shift_stream_list.go index 51b8464261..72842f615a 100644 --- a/tencentcloud/data_source_tc_css_time_shift_stream_list.go +++ b/tencentcloud/data_source_tc_css_time_shift_stream_list.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of css time_shift_stream_list - -Example Usage - -```hcl -data "tencentcloud_css_time_shift_stream_list" "time_shift_stream_list" { - start_time = 1698768000 - end_time = 1698820641 - stream_name = "live" - domain = "177154.push.tlivecloud.com" - domain_group = "tf-test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_watermarks.go b/tencentcloud/data_source_tc_css_watermarks.go index 1e4802aa35..6454134b90 100644 --- a/tencentcloud/data_source_tc_css_watermarks.go +++ b/tencentcloud/data_source_tc_css_watermarks.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of css watermarks - -Example Usage - -```hcl -data "tencentcloud_css_watermarks" "watermarks" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_css_xp2p_detail_info_list.go b/tencentcloud/data_source_tc_css_xp2p_detail_info_list.go index a0526e5d49..86c5c63528 100644 --- a/tencentcloud/data_source_tc_css_xp2p_detail_info_list.go +++ b/tencentcloud/data_source_tc_css_xp2p_detail_info_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of css xp2p_detail_info_list - -Example Usage - -```hcl -data "tencentcloud_css_xp2p_detail_info_list" "xp2p_detail_info_list" { - query_time = "2023-11-01T14:55:01+08:00" - type = ["live"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_chc_denied_actions.go b/tencentcloud/data_source_tc_cvm_chc_denied_actions.go index 2543416f06..4353d04c76 100644 --- a/tencentcloud/data_source_tc_cvm_chc_denied_actions.go +++ b/tencentcloud/data_source_tc_cvm_chc_denied_actions.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cvm chc_denied_actions - -Example Usage - -```hcl -data "tencentcloud_cvm_chc_denied_actions" "chc_denied_actions" { - chc_ids = ["chc-xxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_chc_hosts.go b/tencentcloud/data_source_tc_cvm_chc_hosts.go index 33b5faf078..ee0fbd0228 100644 --- a/tencentcloud/data_source_tc_cvm_chc_hosts.go +++ b/tencentcloud/data_source_tc_cvm_chc_hosts.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of cvm chc_hosts - -Example Usage - -```hcl -data "tencentcloud_cvm_chc_hosts" "chc_hosts" { - chc_ids = ["chc-xxxxxx"] - filters { - name = "zone" - values = ["ap-guangzhou-7"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_disaster_recover_group_quota.go b/tencentcloud/data_source_tc_cvm_disaster_recover_group_quota.go index 1eda280a0e..5367720d57 100644 --- a/tencentcloud/data_source_tc_cvm_disaster_recover_group_quota.go +++ b/tencentcloud/data_source_tc_cvm_disaster_recover_group_quota.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of cvm disaster_recover_group_quota - -Example Usage - -```hcl -data "tencentcloud_cvm_disaster_recover_group_quota" "disaster_recover_group_quota" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_image_quota.go b/tencentcloud/data_source_tc_cvm_image_quota.go index e0e2f98d6c..548992af85 100644 --- a/tencentcloud/data_source_tc_cvm_image_quota.go +++ b/tencentcloud/data_source_tc_cvm_image_quota.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of cvm image_quota - -Example Usage - -```hcl -data "tencentcloud_cvm_image_quota" "image_quota" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_image_share_permission.go b/tencentcloud/data_source_tc_cvm_image_share_permission.go index 87a1670aa0..21e7b29dd0 100644 --- a/tencentcloud/data_source_tc_cvm_image_share_permission.go +++ b/tencentcloud/data_source_tc_cvm_image_share_permission.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cvm image_share_permission - -Example Usage - -```hcl -data "tencentcloud_cvm_image_share_permission" "image_share_permission" { - image_id = "img-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_import_image_os.go b/tencentcloud/data_source_tc_cvm_import_image_os.go index 3f49f65e97..90e27b8abc 100644 --- a/tencentcloud/data_source_tc_cvm_import_image_os.go +++ b/tencentcloud/data_source_tc_cvm_import_image_os.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of cvm import_image_os - -Example Usage - -```hcl -data "tencentcloud_cvm_import_image_os" "import_image_os" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_instance_vnc_url.go b/tencentcloud/data_source_tc_cvm_instance_vnc_url.go index 3871afe8e1..8cf1ca2d19 100644 --- a/tencentcloud/data_source_tc_cvm_instance_vnc_url.go +++ b/tencentcloud/data_source_tc_cvm_instance_vnc_url.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cvm instance_vnc_url - -Example Usage - -```hcl -data "tencentcloud_cvm_instance_vnc_url" "instance_vnc_url" { - instance_id = "ins-xxxxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cvm_instances_modification.go b/tencentcloud/data_source_tc_cvm_instances_modification.go index 548e10e1b8..6688323f4d 100644 --- a/tencentcloud/data_source_tc_cvm_instances_modification.go +++ b/tencentcloud/data_source_tc_cvm_instances_modification.go @@ -1,14 +1,3 @@ -/* -Use this data source to query cvm instances modification. - -Example Usage - -```hcl -data "tencentcloud_cvm_instances_modification" "foo" { - instance_ids = ["ins-xxxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cwp_machines_simple.go b/tencentcloud/data_source_tc_cwp_machines_simple.go index 782377bbe2..ba119305fc 100644 --- a/tencentcloud/data_source_tc_cwp_machines_simple.go +++ b/tencentcloud/data_source_tc_cwp_machines_simple.go @@ -1,63 +1,3 @@ -/* -Use this data source to query detailed information of cwp machines_simple - -Example Usage - -```hcl -data "tencentcloud_cwp_machines_simple" "example" { - machine_type = "CVM" - machine_region = "ap-guangzhou" - project_ids = [1210293, 1157652] -} -``` - -Query by Keyword filter - -```hcl -data "tencentcloud_cwp_machines_simple" "example" { - machine_type = "CVM" - machine_region = "ap-guangzhou" - project_ids = [0] - - filters { - name = "Keywords" - values = ["tf_example"] - exact_match = true - } -} -``` - -Query by Version filter - -```hcl -data "tencentcloud_cwp_machines_simple" "example" { - machine_type = "CVM" - machine_region = "ap-guangzhou" - project_ids = [0] - - filters { - name = "Version" - values = ["BASIC_VERSION"] - exact_match = true - } -} -``` - -Query by TagId filter - -```hcl -data "tencentcloud_cwp_machines_simple" "example" { - machine_type = "ALL" - machine_region = "all-regions" - - filters { - name = "TagId" - values = ["13771"] - exact_match = true - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_account_all_grant_privileges.go b/tencentcloud/data_source_tc_cynosdb_account_all_grant_privileges.go index c61191ef22..edd336c569 100644 --- a/tencentcloud/data_source_tc_cynosdb_account_all_grant_privileges.go +++ b/tencentcloud/data_source_tc_cynosdb_account_all_grant_privileges.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb account_all_grant_privileges - -Example Usage - -```hcl -data "tencentcloud_cynosdb_account_all_grant_privileges" "account_all_grant_privileges" { - cluster_id = "cynosdbmysql-bws8h88b" - account { - account_name = "keep_dts" - host = "%" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_accounts.go b/tencentcloud/data_source_tc_cynosdb_accounts.go index 685b8e62f0..d44403317d 100644 --- a/tencentcloud/data_source_tc_cynosdb_accounts.go +++ b/tencentcloud/data_source_tc_cynosdb_accounts.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb accounts - -Example Usage - -```hcl -data "tencentcloud_cynosdb_accounts" "accounts" { - cluster_id = "cynosdbmysql-bws8h88b" - account_names = ["root"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_audit_logs.go b/tencentcloud/data_source_tc_cynosdb_audit_logs.go index cb8e28e66b..64cd2c0812 100644 --- a/tencentcloud/data_source_tc_cynosdb_audit_logs.go +++ b/tencentcloud/data_source_tc_cynosdb_audit_logs.go @@ -1,25 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb audit_logs - -Example Usage - -```hcl -data "tencentcloud_cynosdb_audit_logs" "audit_logs" { - instance_id = "cynosdbmysql-ins-afqx1hy0" - start_time = "2023-06-18 10:00:00" - end_time = "2023-06-18 10:00:02" - order = "DESC" - order_by = "timestamp" - filter { - host = ["30.50.207.176"] - user = ["keep_dts"] - policy_name = ["default_audit"] - sql_type = "SELECT" - sql = "SELECT @@max_allowed_packet" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_binlog_download_url.go b/tencentcloud/data_source_tc_cynosdb_binlog_download_url.go index 895f97f1ce..a9cb980b60 100644 --- a/tencentcloud/data_source_tc_cynosdb_binlog_download_url.go +++ b/tencentcloud/data_source_tc_cynosdb_binlog_download_url.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb binlog_download_url - -Example Usage - -```hcl -data "tencentcloud_cynosdb_binlog_download_url" "binlog_download_url" { - cluster_id = "cynosdbmysql-bws8h88b" - binlog_id = 6202249 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_cluster.go b/tencentcloud/data_source_tc_cynosdb_cluster.go index e7323d3604..aaedf92f6d 100644 --- a/tencentcloud/data_source_tc_cynosdb_cluster.go +++ b/tencentcloud/data_source_tc_cynosdb_cluster.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb cluster - -Example Usage - -```hcl -data "tencentcloud_cynosdb_cluster" "cluster" { - cluster_id = "cynosdbmysql-bws8h88b" - database = "users" - table = "tb_user_name" - table_type = "all" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_cluster_detail_databases.go b/tencentcloud/data_source_tc_cynosdb_cluster_detail_databases.go index fde17ac105..110bfcf971 100644 --- a/tencentcloud/data_source_tc_cynosdb_cluster_detail_databases.go +++ b/tencentcloud/data_source_tc_cynosdb_cluster_detail_databases.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb cluster_detail_databases - -Example Usage - -```hcl -data "tencentcloud_cynosdb_cluster_detail_databases" "cluster_detail_databases" { - cluster_id = "cynosdbmysql-bws8h88b" - db_name = "users" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_cluster_instance_groups.go b/tencentcloud/data_source_tc_cynosdb_cluster_instance_groups.go index 85cdda1c78..ff91edbc4b 100644 --- a/tencentcloud/data_source_tc_cynosdb_cluster_instance_groups.go +++ b/tencentcloud/data_source_tc_cynosdb_cluster_instance_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb cluster_instance_groups - -Example Usage - -```hcl -data "tencentcloud_cynosdb_cluster_instance_groups" "cluster_instance_groups" { - cluster_id = xxxxxx; -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_cluster_param_logs.go b/tencentcloud/data_source_tc_cynosdb_cluster_param_logs.go index ea676eb612..19e5de484b 100644 --- a/tencentcloud/data_source_tc_cynosdb_cluster_param_logs.go +++ b/tencentcloud/data_source_tc_cynosdb_cluster_param_logs.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb cluster_param_logs - -Example Usage - -```hcl -data "tencentcloud_cynosdb_cluster_param_logs" "cluster_param_logs" { - cluster_id = "cynosdbmysql-bws8h88b" - instance_ids = ["cynosdbmysql-ins-afqx1hy0"] - order_by = "CreateTime" - order_by_type = "DESC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_cluster_params.go b/tencentcloud/data_source_tc_cynosdb_cluster_params.go index c2b2986167..03de083000 100644 --- a/tencentcloud/data_source_tc_cynosdb_cluster_params.go +++ b/tencentcloud/data_source_tc_cynosdb_cluster_params.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb cluster_params - -Example Usage - -```hcl -data "tencentcloud_cynosdb_cluster_params" "cluster_params" { - cluster_id = "cynosdbmysql-bws8h88b" - param_name = "innodb_checksum_algorithm" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_clusters.go b/tencentcloud/data_source_tc_cynosdb_clusters.go index 151118e8a2..bd9426af8e 100644 --- a/tencentcloud/data_source_tc_cynosdb_clusters.go +++ b/tencentcloud/data_source_tc_cynosdb_clusters.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of Cynosdb clusters. - -Example Usage - -```hcl -data "tencentcloud_cynosdb_clusters" "foo" { - cluster_id = "cynosdbmysql-dzj5l8gz" - project_id = 0 - db_type = "MYSQL" - cluster_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_describe_instance_error_logs.go b/tencentcloud/data_source_tc_cynosdb_describe_instance_error_logs.go index 1e8b3a51bd..1f6e9e4630 100644 --- a/tencentcloud/data_source_tc_cynosdb_describe_instance_error_logs.go +++ b/tencentcloud/data_source_tc_cynosdb_describe_instance_error_logs.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb describe_instance_error_logs - -Example Usage - -```hcl -data "tencentcloud_cynosdb_describe_instance_error_logs" "describe_instance_error_logs" { - instance_id = "cynosdbmysql-ins-afqx1hy0" - start_time = "2023-06-01 15:04:05" - end_time = "2023-06-19 15:04:05" - order_by = "Timestamp" - order_by_type = "DESC" - log_levels = ["note", "warning"] - key_words = ["Aborted"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_describe_instance_slow_queries.go b/tencentcloud/data_source_tc_cynosdb_describe_instance_slow_queries.go index fb3f39eec9..a7741d2044 100644 --- a/tencentcloud/data_source_tc_cynosdb_describe_instance_slow_queries.go +++ b/tencentcloud/data_source_tc_cynosdb_describe_instance_slow_queries.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb describe_instance_slow_queries - -Example Usage - -```hcl -data "tencentcloud_cynosdb_describe_instance_slow_queries" "describe_instance_slow_queries" { - cluster_id = "cynosdbmysql-bws8h88b" - start_time = "2023-06-01 12:00:00" - end_time = "2023-06-19 14:00:00" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_instance_slow_queries.go b/tencentcloud/data_source_tc_cynosdb_instance_slow_queries.go index fdee0cdd76..304f2b9e43 100644 --- a/tencentcloud/data_source_tc_cynosdb_instance_slow_queries.go +++ b/tencentcloud/data_source_tc_cynosdb_instance_slow_queries.go @@ -1,57 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb instance_slow_queries - -Example Usage - -Query slow queries of instance -```hcl -variable "cynosdb_cluster_id" { - default = "default_cynosdb_cluster" -} - -data "tencentcloud_cynosdb_instance_slow_queries" "instance_slow_queries" { - instance_id = var.cynosdb_cluster_id - start_time = "2023-06-20 23:19:03" - end_time = "2023-06-30 23:19:03" - username = "keep_dts" - host = "%%" - database = "tf_ci_test" - order_by = "QueryTime" - order_by_type = "desc" -} -``` - -Query slow queries by time range -```hcl -variable "cynosdb_cluster_id" { - default = "default_cynosdb_cluster" -} - -data "tencentcloud_cynosdb_instance_slow_queries" "instance_slow_queries" { - instance_id = var.cynosdb_cluster_id - start_time = "2023-06-20 23:19:03" - end_time = "2023-06-30 23:19:03" - order_by = "QueryTime" - order_by_type = "desc" -} -``` - -Query slow queries by user and db name -```hcl -variable "cynosdb_cluster_id" { - default = "default_cynosdb_cluster" -} - -data "tencentcloud_cynosdb_instance_slow_queries" "instance_slow_queries" { - instance_id = var.cynosdb_cluster_id - username = "keep_dts" - host = "%%" - database = "tf_ci_test" - order_by = "QueryTime" - order_by_type = "desc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_instances.go b/tencentcloud/data_source_tc_cynosdb_instances.go index 03702a3c92..3860f6f54a 100644 --- a/tencentcloud/data_source_tc_cynosdb_instances.go +++ b/tencentcloud/data_source_tc_cynosdb_instances.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of Cynosdb instances. - -Example Usage - -```hcl -data "tencentcloud_cynosdb_instances" "foo" { - instance_id = "cynosdbmysql-ins-0wln9u6w" - project_id = 0 - db_type = "MYSQL" - instance_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_param_templates.go b/tencentcloud/data_source_tc_cynosdb_param_templates.go index c6f29efdd5..dcc68708f5 100644 --- a/tencentcloud/data_source_tc_cynosdb_param_templates.go +++ b/tencentcloud/data_source_tc_cynosdb_param_templates.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb param_templates - -Example Usage - -```hcl -data "tencentcloud_cynosdb_param_templates" "param_templates" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_project_security_groups.go b/tencentcloud/data_source_tc_cynosdb_project_security_groups.go index c22dde1db0..7384c52035 100644 --- a/tencentcloud/data_source_tc_cynosdb_project_security_groups.go +++ b/tencentcloud/data_source_tc_cynosdb_project_security_groups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb project_security_groups - -Example Usage - -```hcl -data "tencentcloud_cynosdb_project_security_groups" "project_security_groups" { - project_id = 1250480 - search_key = "自定义模版" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_proxy_node.go b/tencentcloud/data_source_tc_cynosdb_proxy_node.go index b62c4c4787..952134d456 100644 --- a/tencentcloud/data_source_tc_cynosdb_proxy_node.go +++ b/tencentcloud/data_source_tc_cynosdb_proxy_node.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb proxy_node - -Example Usage - -```hcl -data "tencentcloud_cynosdb_proxy_node" "proxy_node" { - order_by = "CREATETIME" - order_by_type = "DESC" - filters { - names = "ClusterId" - values = "cynosdbmysql-cgd2gpwr" - exact_match = false - name = "ClusterId" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_proxy_version.go b/tencentcloud/data_source_tc_cynosdb_proxy_version.go index 50f69930ff..ec6a682791 100644 --- a/tencentcloud/data_source_tc_cynosdb_proxy_version.go +++ b/tencentcloud/data_source_tc_cynosdb_proxy_version.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb proxy_version - -Example Usage - -```hcl -data "tencentcloud_cynosdb_proxy_version" "proxy_version" { - cluster_id = "cynosdbmysql-bws8h88b" - proxy_group_id = "cynosdbmysql-proxy-l6zf9t30" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_resource_package_list.go b/tencentcloud/data_source_tc_cynosdb_resource_package_list.go index 28051d2199..62445323a2 100644 --- a/tencentcloud/data_source_tc_cynosdb_resource_package_list.go +++ b/tencentcloud/data_source_tc_cynosdb_resource_package_list.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb resource_package_list - -Example Usage - -```hcl -data "tencentcloud_cynosdb_resource_package_list" "resource_package_list" { - package_id = ["package-hy4d2ppl"] - package_name = ["keep-package-disk"] - package_type = ["DISK"] - package_region = ["china"] - status = ["using"] - order_by = ["startTime"] - order_direction = "DESC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_resource_package_sale_specs.go b/tencentcloud/data_source_tc_cynosdb_resource_package_sale_specs.go index 4d67060bc0..fd96d61ac3 100644 --- a/tencentcloud/data_source_tc_cynosdb_resource_package_sale_specs.go +++ b/tencentcloud/data_source_tc_cynosdb_resource_package_sale_specs.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb resource_package_sale_specs - -Example Usage - -```hcl -data "tencentcloud_cynosdb_resource_package_sale_specs" "resource_package_sale_specs" { - instance_type = "cynosdb-serverless" - package_region = "china" - package_type = "CCU" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_rollback_time_range.go b/tencentcloud/data_source_tc_cynosdb_rollback_time_range.go index f49d3c9a17..e6b5f5b50c 100644 --- a/tencentcloud/data_source_tc_cynosdb_rollback_time_range.go +++ b/tencentcloud/data_source_tc_cynosdb_rollback_time_range.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb rollback_time_range - -Example Usage - -```hcl -data "tencentcloud_cynosdb_rollback_time_range" "rollback_time_range" { - cluster_id = "cynosdbmysql-bws8h88b" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_zone.go b/tencentcloud/data_source_tc_cynosdb_zone.go index b6267627a2..784a1ad87d 100644 --- a/tencentcloud/data_source_tc_cynosdb_zone.go +++ b/tencentcloud/data_source_tc_cynosdb_zone.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of cynosdb zone - -Example Usage - -```hcl -data "tencentcloud_cynosdb_zone" "zone" { - include_virtual_zones = true - show_permission = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_cynosdb_zone_config.go b/tencentcloud/data_source_tc_cynosdb_zone_config.go index 3c5cd60b80..7a3942e699 100644 --- a/tencentcloud/data_source_tc_cynosdb_zone_config.go +++ b/tencentcloud/data_source_tc_cynosdb_zone_config.go @@ -1,13 +1,3 @@ -/* -Use this data source to query which instance types of Redis are available in a specific region. - -Example Usage - -```hcl -data "tencentcloud_cynosdb_zone_config" "foo" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_cc_http_policies.go b/tencentcloud/data_source_tc_dayu_cc_http_policies.go index 8bb7340cf8..009da32a61 100644 --- a/tencentcloud/data_source_tc_dayu_cc_http_policies.go +++ b/tencentcloud/data_source_tc_dayu_cc_http_policies.go @@ -1,21 +1,3 @@ -/* -Use this data source to query dayu CC http policies - -Example Usage - -```hcl -data "tencentcloud_dayu_cc_http_policies" "id_test" { - resource_type = tencentcloud_dayu_cc_http_policy.test_policy.resource_type - resource_id = tencentcloud_dayu_cc_http_policy.test_policy.resource_id - policy_id = tencentcloud_dayu_cc_http_policy.test_policy.policy_id -} -data "tencentcloud_dayu_cc_http_policies" "name_test" { - resource_type = tencentcloud_dayu_cc_http_policy.test_policy.resource_type - resource_id = tencentcloud_dayu_cc_http_policy.test_policy.resource_id - name = tencentcloud_dayu_cc_http_policy.test_policy.name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_cc_https_policies.go b/tencentcloud/data_source_tc_dayu_cc_https_policies.go index 7e71572298..bc9daa1789 100644 --- a/tencentcloud/data_source_tc_dayu_cc_https_policies.go +++ b/tencentcloud/data_source_tc_dayu_cc_https_policies.go @@ -1,21 +1,3 @@ -/* -Use this data source to query dayu CC https policies - -Example Usage - -```hcl -data "tencentcloud_dayu_cc_https_policies" "name_test" { - resource_type = tencentcloud_dayu_cc_https_policy.test_policy.resource_type - resource_id = tencentcloud_dayu_cc_https_policy.test_policy.resource_id - name = tencentcloud_dayu_cc_https_policy.test_policy.name -} -data "tencentcloud_dayu_cc_https_policies" "id_test" { - resource_type = tencentcloud_dayu_cc_https_policy.test_policy.resource_type - resource_id = tencentcloud_dayu_cc_https_policy.test_policy.resource_id - policy_id = tencentcloud_dayu_cc_https_policy.test_policy.policy_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_ddos_policies.go b/tencentcloud/data_source_tc_dayu_ddos_policies.go index 480bc0bca8..ed88057952 100644 --- a/tencentcloud/data_source_tc_dayu_ddos_policies.go +++ b/tencentcloud/data_source_tc_dayu_ddos_policies.go @@ -1,15 +1,3 @@ -/* -Use this data source to query dayu DDoS policies - -Example Usage - -```hcl -data "tencentcloud_dayu_ddos_policies" "id_test" { - resource_type = tencentcloud_dayu_ddos_policy.test_policy.resource_type - policy_id = tencentcloud_dayu_ddos_policy.test_policy.policy_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_ddos_policy_attachments.go b/tencentcloud/data_source_tc_dayu_ddos_policy_attachments.go index bc0644273b..dc462bd0a2 100644 --- a/tencentcloud/data_source_tc_dayu_ddos_policy_attachments.go +++ b/tencentcloud/data_source_tc_dayu_ddos_policy_attachments.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of dayu DDoS policy attachments - -Example Usage - -```hcl -data "tencentcloud_dayu_ddos_policy_attachments" "foo_type" { - resource_type = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type -} -data "tencentcloud_dayu_ddos_policy_attachments" "foo_resource" { - resource_id = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_id - resource_type = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type -} -data "tencentcloud_dayu_ddos_policy_attachments" "foo_policy" { - resource_type = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type - policy_id = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.policy_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_ddos_policy_cases.go b/tencentcloud/data_source_tc_dayu_ddos_policy_cases.go index a6433c21d0..32cff4dd32 100644 --- a/tencentcloud/data_source_tc_dayu_ddos_policy_cases.go +++ b/tencentcloud/data_source_tc_dayu_ddos_policy_cases.go @@ -1,15 +1,3 @@ -/* -Use this data source to query dayu DDoS policy cases - -Example Usage - -```hcl -data "tencentcloud_dayu_ddos_policy_cases" "id_test" { - resource_type = tencentcloud_dayu_ddos_policy_case.test_policy_case.resource_type - scene_id = tencentcloud_dayu_ddos_policy_case.test_policy_case.scene_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_eip.go b/tencentcloud/data_source_tc_dayu_eip.go index 7f2dc2c2f7..2929c722dd 100644 --- a/tencentcloud/data_source_tc_dayu_eip.go +++ b/tencentcloud/data_source_tc_dayu_eip.go @@ -1,14 +1,3 @@ -/* -Use this data source to query dayu eip rules - -Example Usage - -```hcl -data "tencentcloud_dayu_eip" "test" { - resource_id="bgpip-000004xg" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_l4_rules.go b/tencentcloud/data_source_tc_dayu_l4_rules.go index 4cbb5f9b7e..be90b77039 100644 --- a/tencentcloud/data_source_tc_dayu_l4_rules.go +++ b/tencentcloud/data_source_tc_dayu_l4_rules.go @@ -1,21 +1,3 @@ -/* -Use this data source to query dayu layer 4 rules - -Example Usage - -```hcl -data "tencentcloud_dayu_l4_rules" "name_test" { - resource_type = tencentcloud_dayu_l4_rule.test_rule.resource_type - resource_id = tencentcloud_dayu_l4_rule.test_rule.resource_id - name = tencentcloud_dayu_l4_rule.test_rule.name -} -data "tencentcloud_dayu_l4_rules" "id_test" { - resource_type = tencentcloud_dayu_l4_rule.test_rule.resource_type - resource_id = tencentcloud_dayu_l4_rule.test_rule.resource_id - rule_id = tencentcloud_dayu_l4_rule.test_rule.rule_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_l4_rules_v2.go b/tencentcloud/data_source_tc_dayu_l4_rules_v2.go index 2ae2de9b52..ab216681bf 100644 --- a/tencentcloud/data_source_tc_dayu_l4_rules_v2.go +++ b/tencentcloud/data_source_tc_dayu_l4_rules_v2.go @@ -1,14 +1,3 @@ -/* -Use this data source to query dayu new layer 4 rules - -Example Usage - -```hcl -data "tencentcloud_dayu_l4_rules_v2" "tencentcloud_dayu_l4_rules_v2" { - business = "bgpip" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_l7_rules.go b/tencentcloud/data_source_tc_dayu_l7_rules.go index 015745ec8a..34b405aae3 100644 --- a/tencentcloud/data_source_tc_dayu_l7_rules.go +++ b/tencentcloud/data_source_tc_dayu_l7_rules.go @@ -1,21 +1,3 @@ -/* -Use this data source to query dayu layer 7 rules - -Example Usage - -```hcl -data "tencentcloud_dayu_l7_rules" "domain_test" { - resource_type = tencentcloud_dayu_l7_rule.test_rule.resource_type - resource_id = tencentcloud_dayu_l7_rule.test_rule.resource_id - domain = tencentcloud_dayu_l7_rule.test_rule.domain -} -data "tencentcloud_dayu_l7_rules" "id_test" { - resource_type = tencentcloud_dayu_l7_rule.test_rule.resource_type - resource_id = tencentcloud_dayu_l7_rule.test_rule.resource_id - rule_id = tencentcloud_dayu_l7_rule.test_rule.rule_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dayu_l7_rules_v2.go b/tencentcloud/data_source_tc_dayu_l7_rules_v2.go index ce620a2900..8cf0226738 100644 --- a/tencentcloud/data_source_tc_dayu_l7_rules_v2.go +++ b/tencentcloud/data_source_tc_dayu_l7_rules_v2.go @@ -1,16 +1,3 @@ -/* -Use this data source to query new dayu layer 7 rules - -Example Usage - -```hcl -data "tencentcloud_dayu_l7_rules_v2" "test" { - business = "bgpip" - domain = "qq.com" - protocol = "https" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_db_space_status.go b/tencentcloud/data_source_tc_dbbrain_db_space_status.go index 32143003ba..5646dcd074 100644 --- a/tencentcloud/data_source_tc_dbbrain_db_space_status.go +++ b/tencentcloud/data_source_tc_dbbrain_db_space_status.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain db_space_status - -Example Usage - -```hcl -data "tencentcloud_dbbrain_db_space_status" "db_space_status" { - instance_id = "%s" - range_days = 7 - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_diag_db_instances.go b/tencentcloud/data_source_tc_dbbrain_diag_db_instances.go index a95aa43177..4576f15a3a 100644 --- a/tencentcloud/data_source_tc_dbbrain_diag_db_instances.go +++ b/tencentcloud/data_source_tc_dbbrain_diag_db_instances.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain diag_db_instances - -Example Usage - -```hcl -data "tencentcloud_dbbrain_diag_db_instances" "diag_db_instances" { - is_supported = true - product = "mysql" - instance_names = ["keep_preset_mysql"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_diag_event.go b/tencentcloud/data_source_tc_dbbrain_diag_event.go index 262ff3d288..a2607700a0 100644 --- a/tencentcloud/data_source_tc_dbbrain_diag_event.go +++ b/tencentcloud/data_source_tc_dbbrain_diag_event.go @@ -1,23 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain diag_event - -Example Usage - -```hcl -data "tencentcloud_dbbrain_diag_history" "diag_history" { - instance_id = "%s" - start_time = "%s" - end_time = "%s" - product = "mysql" -} - -data "tencentcloud_dbbrain_diag_event" "diag_event" { - instance_id = "%s" - event_id = data.tencentcloud_dbbrain_diag_history.diag_history.events.0.event_id - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_diag_events.go b/tencentcloud/data_source_tc_dbbrain_diag_events.go index de159f3c30..ddde640eec 100644 --- a/tencentcloud/data_source_tc_dbbrain_diag_events.go +++ b/tencentcloud/data_source_tc_dbbrain_diag_events.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain diag_events - -Example Usage - -```hcl -data "tencentcloud_dbbrain_diag_events" "diag_events" { - instance_ids = ["%s"] - start_time = "%s" - end_time = "%s" - severities = [1,4,5] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_diag_history.go b/tencentcloud/data_source_tc_dbbrain_diag_history.go index fc748c3811..39850fb836 100644 --- a/tencentcloud/data_source_tc_dbbrain_diag_history.go +++ b/tencentcloud/data_source_tc_dbbrain_diag_history.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain diag_history - -Example Usage - -```hcl -data "tencentcloud_dbbrain_diag_history" "diag_history" { - instance_id = "%s" - start_time = "%s" - end_time = "%s" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_health_scores.go b/tencentcloud/data_source_tc_dbbrain_health_scores.go index f077b5cc14..b9b877c902 100644 --- a/tencentcloud/data_source_tc_dbbrain_health_scores.go +++ b/tencentcloud/data_source_tc_dbbrain_health_scores.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain health_scores - -Example Usage - -```hcl -data "tencentcloud_dbbrain_health_scores" "health_scores" { - instance_id = "" - time = "" - product = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_mysql_process_list.go b/tencentcloud/data_source_tc_dbbrain_mysql_process_list.go index 32e5654490..f080a64ee7 100644 --- a/tencentcloud/data_source_tc_dbbrain_mysql_process_list.go +++ b/tencentcloud/data_source_tc_dbbrain_mysql_process_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain mysql_process_list - -Example Usage - -```hcl -data "tencentcloud_dbbrain_mysql_process_list" "mysql_process_list" { - instance_id = local.mysql_id - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_no_primary_key_tables.go b/tencentcloud/data_source_tc_dbbrain_no_primary_key_tables.go index f544980a79..a9f752271b 100644 --- a/tencentcloud/data_source_tc_dbbrain_no_primary_key_tables.go +++ b/tencentcloud/data_source_tc_dbbrain_no_primary_key_tables.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain no_primary_key_tables - -Example Usage - -```hcl -data "tencentcloud_dbbrain_no_primary_key_tables" "no_primary_key_tables" { - instance_id = "" - date = "" - product = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_redis_top_big_keys.go b/tencentcloud/data_source_tc_dbbrain_redis_top_big_keys.go index 8e6e94dda6..5515f3e2f0 100644 --- a/tencentcloud/data_source_tc_dbbrain_redis_top_big_keys.go +++ b/tencentcloud/data_source_tc_dbbrain_redis_top_big_keys.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain redis_top_big_keys - -Example Usage - -```hcl -data "tencentcloud_dbbrain_redis_top_big_keys" "redis_top_big_keys" { - instance_id = local.redis_id - date = "%s" - product = "redis" - sort_by = "Capacity" - key_type = "string" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_redis_top_key_prefix_list.go b/tencentcloud/data_source_tc_dbbrain_redis_top_key_prefix_list.go index 402b2c0325..b9da7a5024 100644 --- a/tencentcloud/data_source_tc_dbbrain_redis_top_key_prefix_list.go +++ b/tencentcloud/data_source_tc_dbbrain_redis_top_key_prefix_list.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain redis_top_key_prefix_list - -Example Usage - -```hcl -data "tencentcloud_dbbrain_redis_top_key_prefix_list" "redis_top_key_prefix_list" { - instance_id = local.redis_id - date = "%s" - product = "redis" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_security_audit_log_download_urls.go b/tencentcloud/data_source_tc_dbbrain_security_audit_log_download_urls.go index 57be750660..5a23169331 100644 --- a/tencentcloud/data_source_tc_dbbrain_security_audit_log_download_urls.go +++ b/tencentcloud/data_source_tc_dbbrain_security_audit_log_download_urls.go @@ -1,24 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain security_audit_log_download_urls - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_security_audit_log_export_task" "task" { - sec_audit_group_id = "%s" - start_time = "%s" - end_time = "%s" - product = "mysql" - danger_levels = [0,1,2] -} - -data "tencentcloud_dbbrain_security_audit_log_download_urls" "test" { - sec_audit_group_id = "%s" - async_request_id = tencentcloud_dbbrain_security_audit_log_export_task.task.async_request_id - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_security_audit_log_export_tasks.go b/tencentcloud/data_source_tc_dbbrain_security_audit_log_export_tasks.go index 1c1fe9a7a2..0c64b9b5ee 100644 --- a/tencentcloud/data_source_tc_dbbrain_security_audit_log_export_tasks.go +++ b/tencentcloud/data_source_tc_dbbrain_security_audit_log_export_tasks.go @@ -1,24 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain securityAuditLogExportTasks - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_security_audit_log_export_task" "task" { - sec_audit_group_id = "sec_audit_group_id" - start_time = "start_time" - end_time = "end_time" - product = "mysql" - danger_levels = [0,1,2] -} - -data "tencentcloud_dbbrain_security_audit_log_export_tasks" "tasks" { - sec_audit_group_id = "sec_audit_group_id" - product = "mysql" - async_request_ids = [tencentcloud_dbbrain_security_audit_log_export_task.task.async_request_id] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_slow_log_time_series_stats.go b/tencentcloud/data_source_tc_dbbrain_slow_log_time_series_stats.go index d7130c28f3..3789dc84a9 100644 --- a/tencentcloud/data_source_tc_dbbrain_slow_log_time_series_stats.go +++ b/tencentcloud/data_source_tc_dbbrain_slow_log_time_series_stats.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain slow_log_time_series_stats - -Example Usage - -```hcl -data "tencentcloud_dbbrain_slow_log_time_series_stats" "test" { - instance_id = "%s" - start_time = "%s" - end_time = "%s" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_slow_log_top_sqls.go b/tencentcloud/data_source_tc_dbbrain_slow_log_top_sqls.go index 1536c611d9..711a510764 100644 --- a/tencentcloud/data_source_tc_dbbrain_slow_log_top_sqls.go +++ b/tencentcloud/data_source_tc_dbbrain_slow_log_top_sqls.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain slow_log_top_sqls - -Example Usage - -```hcl -data "tencentcloud_dbbrain_slow_log_top_sqls" "test" { - instance_id = "%s" - start_time = "%s" - end_time = "%s" - sort_by = "QueryTimeMax" - order_by = "ASC" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_slow_log_user_host_stats.go b/tencentcloud/data_source_tc_dbbrain_slow_log_user_host_stats.go index c9cf0b7069..faa6b0ad60 100644 --- a/tencentcloud/data_source_tc_dbbrain_slow_log_user_host_stats.go +++ b/tencentcloud/data_source_tc_dbbrain_slow_log_user_host_stats.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain slow_log_user_host_stats - -Example Usage - -```hcl -data "tencentcloud_dbbrain_slow_log_user_host_stats" "test" { - instance_id = "%s" - start_time = "%s" - end_time = "%s" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_slow_log_user_sql_advice.go b/tencentcloud/data_source_tc_dbbrain_slow_log_user_sql_advice.go index 6cbe55cf7d..881006402e 100644 --- a/tencentcloud/data_source_tc_dbbrain_slow_log_user_sql_advice.go +++ b/tencentcloud/data_source_tc_dbbrain_slow_log_user_sql_advice.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain slow_log_user_sql_advice - -Example Usage - -```hcl -data "tencentcloud_dbbrain_slow_log_user_sql_advice" "test" { - instance_id = "%s" - sql_text = "%s" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_slow_logs.go b/tencentcloud/data_source_tc_dbbrain_slow_logs.go index f8f1c82a61..37575e42ab 100644 --- a/tencentcloud/data_source_tc_dbbrain_slow_logs.go +++ b/tencentcloud/data_source_tc_dbbrain_slow_logs.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain slow_logs - -Example Usage - -```hcl -data "tencentcloud_dbbrain_slow_logs" "slow_logs" { - product = "mysql" - instance_id = "%s" - md5 = "4961208426639258265" - start_time = "%s" - end_time = "%s" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_sql_filters.go b/tencentcloud/data_source_tc_dbbrain_sql_filters.go index cc8344b00c..a228e42efa 100644 --- a/tencentcloud/data_source_tc_dbbrain_sql_filters.go +++ b/tencentcloud/data_source_tc_dbbrain_sql_filters.go @@ -1,27 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain sqlFilters - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_sql_filter" "sql_filter" { - instance_id = "mysql_ins_id" - session_token { - user = "user" - password = "password" - } - sql_type = "SELECT" - filter_key = "test" - max_concurrency = 10 - duration = 3600 -} - -data "tencentcloud_dbbrain_sql_filters" "sql_filters" { - instance_id = "mysql_ins_id" - filter_ids = [tencentcloud_dbbrain_sql_filter.sql_filter.filter_id] - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_sql_templates.go b/tencentcloud/data_source_tc_dbbrain_sql_templates.go index 0f4cfaebee..7aab3a6800 100644 --- a/tencentcloud/data_source_tc_dbbrain_sql_templates.go +++ b/tencentcloud/data_source_tc_dbbrain_sql_templates.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain sql_templates - -Example Usage - -```hcl -data "tencentcloud_dbbrain_sql_templates" "sql_templates" { - instance_id = "" - schema = "" - sql_text = "" - product = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_top_space_schema_time_series.go b/tencentcloud/data_source_tc_dbbrain_top_space_schema_time_series.go index d771bddc3a..e7780cd6da 100644 --- a/tencentcloud/data_source_tc_dbbrain_top_space_schema_time_series.go +++ b/tencentcloud/data_source_tc_dbbrain_top_space_schema_time_series.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain top_space_schema_time_series - -Example Usage - -```hcl -data "tencentcloud_dbbrain_top_space_schema_time_series" "top_space_schema_time_series" { - instance_id = "%s" - sort_by = "DataLength" - start_date = "%s" - end_date = "%s" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_top_space_schemas.go b/tencentcloud/data_source_tc_dbbrain_top_space_schemas.go index be070efac1..e9079f035f 100644 --- a/tencentcloud/data_source_tc_dbbrain_top_space_schemas.go +++ b/tencentcloud/data_source_tc_dbbrain_top_space_schemas.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain top_space_schemas - -Example Usage - -```hcl -data "tencentcloud_dbbrain_top_space_schemas" "top_space_schemas" { - instance_id = "%s" - sort_by = "DataLength" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_top_space_table_time_series.go b/tencentcloud/data_source_tc_dbbrain_top_space_table_time_series.go index 5e9e66b568..876df1343c 100644 --- a/tencentcloud/data_source_tc_dbbrain_top_space_table_time_series.go +++ b/tencentcloud/data_source_tc_dbbrain_top_space_table_time_series.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain top_space_table_time_series - -Example Usage - -```hcl -data "tencentcloud_dbbrain_top_space_table_time_series" "top_space_table_time_series" { - instance_id = "%s" - sort_by = "DataLength" - start_date = "%s" - end_date = "%s" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dbbrain_top_space_tables.go b/tencentcloud/data_source_tc_dbbrain_top_space_tables.go index bf8eb18f73..67a9259436 100644 --- a/tencentcloud/data_source_tc_dbbrain_top_space_tables.go +++ b/tencentcloud/data_source_tc_dbbrain_top_space_tables.go @@ -1,26 +1,3 @@ -/* -Use this data source to query detailed information of dbbrain top_space_tables - -Example Usage - -Sort by PhysicalFileSize -```hcl -data "tencentcloud_dbbrain_top_space_tables" "top_space_tables" { - instance_id = "%s" - sort_by = "PhysicalFileSize" - product = "mysql" -} -``` - -Sort by TotalLength -```hcl -data "tencentcloud_dbbrain_top_space_tables" "top_space_tables" { - instance_id = "%s" - sort_by = "PhysicalFileSize" - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_access_points.go b/tencentcloud/data_source_tc_dc_access_points.go index 1845d1c504..34eb7cf388 100644 --- a/tencentcloud/data_source_tc_dc_access_points.go +++ b/tencentcloud/data_source_tc_dc_access_points.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dc access_points - -Example Usage - -```hcl -data "tencentcloud_dc_access_points" "access_points" { - region_id = "ap-guangzhou" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_gateway_ccn_routes.go b/tencentcloud/data_source_tc_dc_gateway_ccn_routes.go index 7086a0b3bf..0cd0b1064b 100644 --- a/tencentcloud/data_source_tc_dc_gateway_ccn_routes.go +++ b/tencentcloud/data_source_tc_dc_gateway_ccn_routes.go @@ -1,38 +1,3 @@ -/* -Use this data source to query detailed information of direct connect gateway route entries. - -Example Usage - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -resource "tencentcloud_dc_gateway" "ccn_main" { - name = "ci-cdg-ccn-test" - network_instance_id = tencentcloud_ccn.main.id - network_type = "CCN" - gateway_type = "NORMAL" -} - -resource "tencentcloud_dc_gateway_ccn_route" "route1" { - dcg_id = tencentcloud_dc_gateway.ccn_main.id - cidr_block = "10.1.1.0/32" -} - -resource "tencentcloud_dc_gateway_ccn_route" "route2" { - dcg_id = tencentcloud_dc_gateway.ccn_main.id - cidr_block = "192.1.1.0/32" -} - -#You need to sleep for a few seconds because there is a cache on the server -data "tencentcloud_dc_gateway_ccn_routes" "test" { - dcg_id = tencentcloud_dc_gateway.ccn_main.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_gateway_instances.go b/tencentcloud/data_source_tc_dc_gateway_instances.go index 99f3cafb5b..7db83fc84f 100644 --- a/tencentcloud/data_source_tc_dc_gateway_instances.go +++ b/tencentcloud/data_source_tc_dc_gateway_instances.go @@ -1,32 +1,3 @@ -/* -Use this data source to query detailed information of direct connect gateway instances. - -Example Usage - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -resource "tencentcloud_dc_gateway" "ccn_main" { - name = "ci-cdg-ccn-test" - network_instance_id = tencentcloud_ccn.main.id - network_type = "CCN" - gateway_type = "NORMAL" -} - -#You need to sleep for a few seconds because there is a cache on the server -data "tencentcloud_dc_gateway_instances" "name_select" { - name = tencentcloud_dc_gateway.ccn_main.name -} - -data "tencentcloud_dc_gateway_instances" "id_select" { - dcg_id = tencentcloud_dc_gateway.ccn_main.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_instances.go b/tencentcloud/data_source_tc_dc_instances.go index f51d725fd7..a5d39b02e0 100644 --- a/tencentcloud/data_source_tc_dc_instances.go +++ b/tencentcloud/data_source_tc_dc_instances.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of DC instances. - -Example Usage - -```hcl -data "tencentcloud_dc_instances" "name_select" { - name = "t" -} - -data "tencentcloud_dc_instances" "id" { - dcx_id = "dc-kax48sg7" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_internet_address_quota.go b/tencentcloud/data_source_tc_dc_internet_address_quota.go index d9b8f07fd0..ddb5e33f4e 100644 --- a/tencentcloud/data_source_tc_dc_internet_address_quota.go +++ b/tencentcloud/data_source_tc_dc_internet_address_quota.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of dc internet_address_quota - -Example Usage - -```hcl -data "tencentcloud_dc_internet_address_quota" "internet_address_quota" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_internet_address_statistics.go b/tencentcloud/data_source_tc_dc_internet_address_statistics.go index fdf3ba9221..a349fafacf 100644 --- a/tencentcloud/data_source_tc_dc_internet_address_statistics.go +++ b/tencentcloud/data_source_tc_dc_internet_address_statistics.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of dc internet_address_statistics - -Example Usage - -```hcl -data "tencentcloud_dc_internet_address_statistics" "internet_address_statistics" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dc_public_direct_connect_tunnel_routes.go b/tencentcloud/data_source_tc_dc_public_direct_connect_tunnel_routes.go index ea60d401c2..a68ea06c50 100644 --- a/tencentcloud/data_source_tc_dc_public_direct_connect_tunnel_routes.go +++ b/tencentcloud/data_source_tc_dc_public_direct_connect_tunnel_routes.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dc public_direct_connect_tunnel_routes - -Example Usage - -```hcl -data "tencentcloud_dc_public_direct_connect_tunnel_routes" "public_direct_connect_tunnel_routes" { - direct_connect_tunnel_id = "dcx-4z49tnws" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_accounts.go b/tencentcloud/data_source_tc_dcdb_accounts.go index 79540b6c0b..03c3ef3d9b 100644 --- a/tencentcloud/data_source_tc_dcdb_accounts.go +++ b/tencentcloud/data_source_tc_dcdb_accounts.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dcdb accounts. - -Example Usage - -```hcl -data "tencentcloud_dcdb_accounts" "foo" { - instance_id = tencentcloud_dcdb_account.foo.instance_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_database_objects.go b/tencentcloud/data_source_tc_dcdb_database_objects.go index c92a4a0383..27562d0a92 100644 --- a/tencentcloud/data_source_tc_dcdb_database_objects.go +++ b/tencentcloud/data_source_tc_dcdb_database_objects.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of dcdb database_objects - -Example Usage - -```hcl -data "tencentcloud_dcdb_database_objects" "database_objects" { - instance_id = "dcdbt-ow7t8lmc" - db_name = <nil> - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_database_tables.go b/tencentcloud/data_source_tc_dcdb_database_tables.go index 7a98e4882b..7562c72e14 100644 --- a/tencentcloud/data_source_tc_dcdb_database_tables.go +++ b/tencentcloud/data_source_tc_dcdb_database_tables.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of dcdb database_tables - -Example Usage - -```hcl -data "tencentcloud_dcdb_database_tables" "database_tables" { - instance_id = "dcdbt-ow7t8lmc" - db_name = <nil> - table = <nil> - table = <nil> - cols { - col = <nil> - type = <nil> - - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_databases.go b/tencentcloud/data_source_tc_dcdb_databases.go index b0b5272bff..15882e7bbb 100644 --- a/tencentcloud/data_source_tc_dcdb_databases.go +++ b/tencentcloud/data_source_tc_dcdb_databases.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dcdb databases - -Example Usage - -```hcl -data "tencentcloud_dcdb_databases" "databases" { - instance_id = "your_dcdb_instance_id" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_file_download_url.go b/tencentcloud/data_source_tc_dcdb_file_download_url.go index 4d47a81ee0..3ade6cfc57 100644 --- a/tencentcloud/data_source_tc_dcdb_file_download_url.go +++ b/tencentcloud/data_source_tc_dcdb_file_download_url.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dcdb file_download_url - -Example Usage - -```hcl -data "tencentcloud_dcdb_file_download_url" "file_download_url" { - instance_id = local.dcdb_id - shard_id = "shard-1b5r04az" - file_path = "/cos_backup/test.txt" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_instance_node_info.go b/tencentcloud/data_source_tc_dcdb_instance_node_info.go index 1c5267d2f9..82913a2f25 100644 --- a/tencentcloud/data_source_tc_dcdb_instance_node_info.go +++ b/tencentcloud/data_source_tc_dcdb_instance_node_info.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dcdb instance_node_info - -Example Usage - -```hcl -data "tencentcloud_dcdb_instance_node_info" "instance_node_info" { - instance_id = local.dcdb_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_instances.go b/tencentcloud/data_source_tc_dcdb_instances.go index fc2dced605..b808fb024d 100644 --- a/tencentcloud/data_source_tc_dcdb_instances.go +++ b/tencentcloud/data_source_tc_dcdb_instances.go @@ -1,34 +1,3 @@ -/* -Use this data source to query detailed information of dcdb instances - -Example Usage - -```hcl -data "tencentcloud_dcdb_instances" "instances1" { - instance_ids = "your_dcdb_instance1_id" - search_name = "instancename" - search_key = "search_key" - project_ids = [0] - excluster_type = 0 - is_filter_excluster = true - excluster_type = 0 - is_filter_vpc = true - vpc_id = "your_vpc_id" - subnet_id = "your_subnet_id" -} - -data "tencentcloud_dcdb_instances" "instances2" { - instance_ids = ["your_dcdb_instance2_id"] -} - -data "tencentcloud_dcdb_instances" "instances3" { - search_name = "instancename" - search_key = "instances3" - is_filter_excluster = false - excluster_type = 2 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_log_files.go b/tencentcloud/data_source_tc_dcdb_log_files.go index c678599e39..f57b0919da 100644 --- a/tencentcloud/data_source_tc_dcdb_log_files.go +++ b/tencentcloud/data_source_tc_dcdb_log_files.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dcdb log_files - -Example Usage - -```hcl -data "tencentcloud_dcdb_log_files" "log_files" { - instance_id = local.dcdb_id - shard_id = "shard-1b5r04az" - type = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_orders.go b/tencentcloud/data_source_tc_dcdb_orders.go index 5fe236cbfb..777241ca68 100644 --- a/tencentcloud/data_source_tc_dcdb_orders.go +++ b/tencentcloud/data_source_tc_dcdb_orders.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dcdb orders - -Example Usage - -```hcl -data "tencentcloud_dcdb_orders" "orders" { - deal_names = ["2023061224903413767xxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_parameters.go b/tencentcloud/data_source_tc_dcdb_parameters.go index 155244615d..6c48af3b17 100644 --- a/tencentcloud/data_source_tc_dcdb_parameters.go +++ b/tencentcloud/data_source_tc_dcdb_parameters.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dcdb parameters - -Example Usage - -```hcl -data "tencentcloud_dcdb_parameters" "parameters" { - instance_id = "your_instance_id" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_price.go b/tencentcloud/data_source_tc_dcdb_price.go index a03256f9a1..f0471934a2 100644 --- a/tencentcloud/data_source_tc_dcdb_price.go +++ b/tencentcloud/data_source_tc_dcdb_price.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of dcdb price - -Example Usage - -```hcl -data "tencentcloud_dcdb_price" "price" { - instance_count = 1 - zone = var.default_az - period = 1 - shard_node_count = 2 - shard_memory = 2 - shard_storage = 10 - shard_count = 2 - paymode = "postpaid" - amount_unit = "pent" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_project_security_groups.go b/tencentcloud/data_source_tc_dcdb_project_security_groups.go index cb36b38c1a..2fefecf555 100644 --- a/tencentcloud/data_source_tc_dcdb_project_security_groups.go +++ b/tencentcloud/data_source_tc_dcdb_project_security_groups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of dcdb project_security_groups - -Example Usage - -```hcl -data "tencentcloud_dcdb_project_security_groups" "project_security_groups" { - product = "dcdb" - project_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_projects.go b/tencentcloud/data_source_tc_dcdb_projects.go index 6e5c57d071..10ccffbfd0 100644 --- a/tencentcloud/data_source_tc_dcdb_projects.go +++ b/tencentcloud/data_source_tc_dcdb_projects.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of dcdb projects - -Example Usage - -```hcl -data "tencentcloud_dcdb_projects" "projects" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_renewal_price.go b/tencentcloud/data_source_tc_dcdb_renewal_price.go index e027acd4ff..dad36d6a7c 100644 --- a/tencentcloud/data_source_tc_dcdb_renewal_price.go +++ b/tencentcloud/data_source_tc_dcdb_renewal_price.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dcdb renewal_price - -Example Usage - -```hcl -data "tencentcloud_dcdb_renewal_price" "renewal_price" { - instance_id = local.dcdb_id - period = 1 - amount_unit = "pent" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_sale_info.go b/tencentcloud/data_source_tc_dcdb_sale_info.go index bfe83596dc..0e4792b633 100644 --- a/tencentcloud/data_source_tc_dcdb_sale_info.go +++ b/tencentcloud/data_source_tc_dcdb_sale_info.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of dcdb sale_info - -Example Usage - -```hcl -data "tencentcloud_dcdb_sale_info" "sale_info" { - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_security_groups.go b/tencentcloud/data_source_tc_dcdb_security_groups.go index c4f76fcc62..f53466bee7 100644 --- a/tencentcloud/data_source_tc_dcdb_security_groups.go +++ b/tencentcloud/data_source_tc_dcdb_security_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dcdb securityGroups - -Example Usage - -```hcl -data "tencentcloud_dcdb_security_groups" "securityGroups" { - instance_id = "your_instance_id" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_shard_spec.go b/tencentcloud/data_source_tc_dcdb_shard_spec.go index cb50a40d43..83e52c70fa 100644 --- a/tencentcloud/data_source_tc_dcdb_shard_spec.go +++ b/tencentcloud/data_source_tc_dcdb_shard_spec.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of dcdb shard_spec - -Example Usage - -```hcl -data "tencentcloud_dcdb_shard_spec" "shard_spec" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_shards.go b/tencentcloud/data_source_tc_dcdb_shards.go index 8ae9398e0b..fa0f2cb013 100644 --- a/tencentcloud/data_source_tc_dcdb_shards.go +++ b/tencentcloud/data_source_tc_dcdb_shards.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of dcdb shards - -Example Usage - -```hcl -data "tencentcloud_dcdb_shards" "shards" { - instance_id = "your_instance_id" - shard_instance_ids = ["shard1_id"] - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_slow_logs.go b/tencentcloud/data_source_tc_dcdb_slow_logs.go index f27002bac0..4c383e9986 100644 --- a/tencentcloud/data_source_tc_dcdb_slow_logs.go +++ b/tencentcloud/data_source_tc_dcdb_slow_logs.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of dcdb slow_logs - -Example Usage - -```hcl -data "tencentcloud_dcdb_slow_logs" "slow_logs" { - instance_id = local.dcdb_id - start_time = "%s" - end_time = "%s" - shard_id = "shard-1b5r04az" - db = "tf_test_db" - order_by = "query_time_sum" - order_by_type = "desc" - slave = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcdb_upgrade_price.go b/tencentcloud/data_source_tc_dcdb_upgrade_price.go index 60a6a79aea..c235c99567 100644 --- a/tencentcloud/data_source_tc_dcdb_upgrade_price.go +++ b/tencentcloud/data_source_tc_dcdb_upgrade_price.go @@ -1,47 +1,3 @@ -/* -Use this data source to query detailed information of dcdb upgrade_price - -Example Usage - -```hcl -data "tencentcloud_dcdb_upgrade_price" "add_upgrade_price" { - instance_id = local.dcdb_id - upgrade_type = "ADD" - add_shard_config { - shard_count = 2 - shard_memory = 2 - shard_storage = 100 - } - amount_unit = "pent" -} - -data "tencentcloud_dcdb_upgrade_price" "expand_upgrade_price" { - instance_id = local.dcdb_id - upgrade_type = "EXPAND" - - expand_shard_config { - shard_instance_ids = ["shard-1b5r04az"] - shard_memory = 2 - shard_storage = 40 - shard_node_count = 2 - } - amount_unit = "pent" -} - -data "tencentcloud_dcdb_upgrade_price" "split_upgrade_price" { - instance_id = local.dcdb_id - upgrade_type = "SPLIT" - - split_shard_config { - shard_instance_ids = ["shard-1b5r04az"] - split_rate = 50 - shard_memory = 2 - shard_storage = 100 - } - amount_unit = "pent" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dcx_instances.go b/tencentcloud/data_source_tc_dcx_instances.go index f64806a5dc..1e48f3ef0a 100644 --- a/tencentcloud/data_source_tc_dcx_instances.go +++ b/tencentcloud/data_source_tc_dcx_instances.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of dedicated tunnels instances. - -Example Usage - -```hcl -data "tencentcloud_dcx_instances" "name_select" { - name = "main" -} - -data "tencentcloud_dcx_instances" "id" { - dcx_id = "dcx-3ikuw30k" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_check_data_engine_config_pairs_validity.go b/tencentcloud/data_source_tc_dlc_check_data_engine_config_pairs_validity.go index 5c6b5e6cc7..947f32e18c 100644 --- a/tencentcloud/data_source_tc_dlc_check_data_engine_config_pairs_validity.go +++ b/tencentcloud/data_source_tc_dlc_check_data_engine_config_pairs_validity.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc check_data_engine_config_pairs_validity - -Example Usage - -```hcl -data "tencentcloud_dlc_check_data_engine_config_pairs_validity" "check_data_engine_config_pairs_validity" { - child_image_version_id = "d3ftghd4-9a7e-4f64-a3f4-f38507c69742" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_rollback.go b/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_rollback.go index 9b9298d965..4ba296f158 100644 --- a/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_rollback.go +++ b/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_rollback.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc check_data_engine_image_can_be_rollback - -Example Usage - -```hcl -data "tencentcloud_dlc_check_data_engine_image_can_be_rollback" "check_data_engine_image_can_be_rollback" { - data_engine_id = "DataEngine-public-1308919341" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.go b/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.go index e2a2a27b59..2d58be9b91 100644 --- a/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.go +++ b/tencentcloud/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc check_data_engine_image_can_be_upgrade - -Example Usage - -```hcl -data "tencentcloud_dlc_check_data_engine_image_can_be_upgrade" "check_data_engine_image_can_be_upgrade" { - data_engine_id = "DataEngine-cgkvbas6" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_data_engine.go b/tencentcloud/data_source_tc_dlc_describe_data_engine.go index 28f3c70f39..2861b9c089 100644 --- a/tencentcloud/data_source_tc_dlc_describe_data_engine.go +++ b/tencentcloud/data_source_tc_dlc_describe_data_engine.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_data_engine - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_data_engine" "describe_data_engine" { - data_engine_name = "testSpark" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_data_engine_image_versions.go b/tencentcloud/data_source_tc_dlc_describe_data_engine_image_versions.go index f63320f343..731161d7bb 100644 --- a/tencentcloud/data_source_tc_dlc_describe_data_engine_image_versions.go +++ b/tencentcloud/data_source_tc_dlc_describe_data_engine_image_versions.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_data_engine_image_versions - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_data_engine_image_versions" "describe_data_engine_image_versions" { - engine_type = "SparkBatch" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_data_engine_python_spark_images.go b/tencentcloud/data_source_tc_dlc_describe_data_engine_python_spark_images.go index 1c4178de72..b2483b8882 100644 --- a/tencentcloud/data_source_tc_dlc_describe_data_engine_python_spark_images.go +++ b/tencentcloud/data_source_tc_dlc_describe_data_engine_python_spark_images.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_data_engine_python_spark_images - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_data_engine_python_spark_images" "describe_data_engine_python_spark_images" { - child_image_version_id = "d3ftghd4-9a7e-4f64-a3f4-f38507c69742" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_engine_usage_info.go b/tencentcloud/data_source_tc_dlc_describe_engine_usage_info.go index ac6c966085..6d2264a3b4 100644 --- a/tencentcloud/data_source_tc_dlc_describe_engine_usage_info.go +++ b/tencentcloud/data_source_tc_dlc_describe_engine_usage_info.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_engine_usage_info - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_engine_usage_info" "describe_engine_usage_info" { - data_engine_id = "DataEngine-g5ds87d8" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_updatable_data_engines.go b/tencentcloud/data_source_tc_dlc_describe_updatable_data_engines.go index 0816144794..a7c2fc49c8 100644 --- a/tencentcloud/data_source_tc_dlc_describe_updatable_data_engines.go +++ b/tencentcloud/data_source_tc_dlc_describe_updatable_data_engines.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_updatable_data_engines - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_updatable_data_engines" "describe_updatable_data_engines" { - data_engine_config_command = "UpdateSparkSQLLakefsPath" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_user_info.go b/tencentcloud/data_source_tc_dlc_describe_user_info.go index 6e6af3bb09..369ebe99d7 100644 --- a/tencentcloud/data_source_tc_dlc_describe_user_info.go +++ b/tencentcloud/data_source_tc_dlc_describe_user_info.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_user_info - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_user_info" "describe_user_info" { - user_id = "100032772113" - type = "Group" - sort_by = "create-time" - sorting = "desc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_user_roles.go b/tencentcloud/data_source_tc_dlc_describe_user_roles.go index f1c02e2768..3223cce705 100644 --- a/tencentcloud/data_source_tc_dlc_describe_user_roles.go +++ b/tencentcloud/data_source_tc_dlc_describe_user_roles.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_user_roles - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_user_roles" "describe_user_roles" { - fuzzy = "1" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_user_type.go b/tencentcloud/data_source_tc_dlc_describe_user_type.go index bb69b339d9..68ba95f616 100644 --- a/tencentcloud/data_source_tc_dlc_describe_user_type.go +++ b/tencentcloud/data_source_tc_dlc_describe_user_type.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_user_type - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_user_type" "describe_user_type" { - user_id = "127382378" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dlc_describe_work_group_info.go b/tencentcloud/data_source_tc_dlc_describe_work_group_info.go index befdf1bbbf..b6582be56b 100644 --- a/tencentcloud/data_source_tc_dlc_describe_work_group_info.go +++ b/tencentcloud/data_source_tc_dlc_describe_work_group_info.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of dlc describe_work_group_info - -Example Usage - -```hcl -data "tencentcloud_dlc_describe_work_group_info" "describe_work_group_info" { - work_group_id = 23181 - type = "User" - sort_by = "create-time" - sorting = "desc" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnats.go b/tencentcloud/data_source_tc_dnats.go index eceb36a496..48d7d8b153 100644 --- a/tencentcloud/data_source_tc_dnats.go +++ b/tencentcloud/data_source_tc_dnats.go @@ -1,25 +1,3 @@ -/* -Use this data source to query detailed information of DNATs. - -Example Usage - -```hcl -# query by nat gateway id -data "tencentcloud_dnats" "foo" { - nat_id = "nat-xfaq1" -} - -# query by vpc id -data "tencentcloud_dnats" "foo" { - vpc_id = "vpc-xfqag" -} - -# query by elastic ip -data "tencentcloud_dnats" "foo" { - elastic_ip = "123.207.115.136" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_domain_analytics.go b/tencentcloud/data_source_tc_dnspod_domain_analytics.go index 0910fea43d..d3c8b7ec9b 100644 --- a/tencentcloud/data_source_tc_dnspod_domain_analytics.go +++ b/tencentcloud/data_source_tc_dnspod_domain_analytics.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of dnspod domain_analytics - -Example Usage - -```hcl - - data "tencentcloud_dnspod_domain_analytics" "domain_analytics" { - domain = "dnspod.cn" - start_date = "2023-10-07" - end_date = "2023-10-12" - dns_format = "HOUR" - # domain_id = 123 - } - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_domain_list.go b/tencentcloud/data_source_tc_dnspod_domain_list.go index 02acbb53a8..eebd064369 100644 --- a/tencentcloud/data_source_tc_dnspod_domain_list.go +++ b/tencentcloud/data_source_tc_dnspod_domain_list.go @@ -1,32 +1,3 @@ -/* -Use this data source to query detailed information of dnspod domain_list - -Example Usage - -```hcl - -data "tencentcloud_dnspod_domain_list" "domain_list" { - type = "ALL" - group_id = [1] - keyword = "" - sort_field = "UPDATED_ON" - sort_type = "DESC" - status = ["PAUSE"] - package = [""] - remark = "" - updated_at_begin = "2021-05-01 03:00:00" - updated_at_end = "2024-05-10 20:00:00" - record_count_begin = 0 - record_count_end = 100 - project_id = -1 - tags { - tag_key = "created_by" - tag_value = ["terraform"] - } -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_domain_log_list.go b/tencentcloud/data_source_tc_dnspod_domain_log_list.go index 8f4d942f6b..019e87a30f 100644 --- a/tencentcloud/data_source_tc_dnspod_domain_log_list.go +++ b/tencentcloud/data_source_tc_dnspod_domain_log_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of dnspod domain_log_list - -Example Usage - -```hcl -data "tencentcloud_dnspod_domain_log_list" "domain_log_list" { - domain = "iac-tf.cloud" - domain_id = 123 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_record_analytics.go b/tencentcloud/data_source_tc_dnspod_record_analytics.go index f8923322fe..de56c6e54c 100644 --- a/tencentcloud/data_source_tc_dnspod_record_analytics.go +++ b/tencentcloud/data_source_tc_dnspod_record_analytics.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of dnspod record_analytics - -Example Usage - -```hcl -data "tencentcloud_dnspod_record_analytics" "record_analytics" { - domain = "iac-tf.cloud" - start_date = "2023-09-07" - end_date = "2023-11-07" - subdomain = "www" - dns_format = "HOUR" - # domain_id = 123 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_record_line_list.go b/tencentcloud/data_source_tc_dnspod_record_line_list.go index 40f730d91f..f80df85678 100644 --- a/tencentcloud/data_source_tc_dnspod_record_line_list.go +++ b/tencentcloud/data_source_tc_dnspod_record_line_list.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of dnspod record_line_list - -Example Usage - -```hcl -data "tencentcloud_dnspod_record_line_list" "record_line_list" { - domain = "iac-tf.cloud" - domain_grade = "DP_FREE" - domain_id = 123 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_record_list.go b/tencentcloud/data_source_tc_dnspod_record_list.go index 5b3a75d9be..eaee6b4d4b 100644 --- a/tencentcloud/data_source_tc_dnspod_record_list.go +++ b/tencentcloud/data_source_tc_dnspod_record_list.go @@ -1,35 +1,3 @@ -/* -Use this data source to query detailed information of dnspod record_list - -Example Usage - -```hcl -data "tencentcloud_dnspod_record_list" "record_list" { - domain = "iac-tf.cloud" - # domain_id = 123 - # sub_domain = "www" - record_type = ["A", "NS", "CNAME", "NS", "AAAA"] - # record_line = [""] - group_id = [] - keyword = "" - sort_field = "UPDATED_ON" - sort_type = "DESC" - record_value = "bicycle.dnspod.net" - record_status = ["ENABLE"] - weight_begin = 0 - weight_end = 100 - mx_begin = 0 - mx_end = 10 - ttl_begin = 1 - ttl_end = 864000 - updated_at_begin = "2021-09-07" - updated_at_end = "2023-12-07" - remark = "" - is_exact_sub_domain = true - # project_id = -1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_record_type.go b/tencentcloud/data_source_tc_dnspod_record_type.go index 8dd8093746..97fa6f4f4c 100644 --- a/tencentcloud/data_source_tc_dnspod_record_type.go +++ b/tencentcloud/data_source_tc_dnspod_record_type.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dnspod record_type - -Example Usage - -```hcl -data "tencentcloud_dnspod_record_type" "record_type" { - domain_grade = "DP_FREE" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dnspod_records.go b/tencentcloud/data_source_tc_dnspod_records.go index da44f1fc72..56241dcf70 100644 --- a/tencentcloud/data_source_tc_dnspod_records.go +++ b/tencentcloud/data_source_tc_dnspod_records.go @@ -1,37 +1,3 @@ -/* -Use this data source to query dnspod record list. - -Example Usage - -```hcl -data "tencentcloud_dnspod_records" "record" { - domain = "example.com" - subdomain = "www" -} - -output "result" { - value = data.tencentcloud_dnspod_records.record.result -} -``` - -Use verbose filter - -```hcl -data "tencentcloud_dnspod_records" "record" { - domain = "example.com" - subdomain = "www" - limit = 100 - record_type = "TXT" - sort_field = "updated_on" - sort_type = "DESC" -} - -output "result" { - value = data.tencentcloud_dnspod_records.record.result -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_domains.go b/tencentcloud/data_source_tc_domains.go index 91a9497957..abd4e2359c 100644 --- a/tencentcloud/data_source_tc_domains.go +++ b/tencentcloud/data_source_tc_domains.go @@ -1,15 +1,3 @@ -/* -Provide a datasource to query Domains. - -Example Usage - -```hcl -data "tencentcloud_domains" "foo" { -} -``` - - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dts_compare_tasks.go b/tencentcloud/data_source_tc_dts_compare_tasks.go index e1f573d0fc..e0cfb96631 100644 --- a/tencentcloud/data_source_tc_dts_compare_tasks.go +++ b/tencentcloud/data_source_tc_dts_compare_tasks.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of dts compareTasks - -Example Usage - -```hcl -data "tencentcloud_dts_compare_tasks" "compareTasks" { - job_id = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dts_migrate_db_instances.go b/tencentcloud/data_source_tc_dts_migrate_db_instances.go index abb5c116cc..7ea42f3412 100644 --- a/tencentcloud/data_source_tc_dts_migrate_db_instances.go +++ b/tencentcloud/data_source_tc_dts_migrate_db_instances.go @@ -1,23 +1,3 @@ -/* -Use this data source to query detailed information of dts migrate_db_instances - -Example Usage - -```hcl -data "tencentcloud_dts_migrate_db_instances" "migrate_db_instances" { - database_type = "mysql" - migrate_role = "src" - instance_id = "cdb-ffulb2sg" - instance_name = "cdb_test" - limit = 10 - offset = 10 - account_mode = "self" - tmp_secret_id = "AKIDvBDyVmna9TadcS4YzfBZmkU5TbX12345" - tmp_secret_key = "ZswjGWWHm24qMeiX6QUJsELDpC12345" - tmp_token = "JOqqCPVuWdNZvlVDLxxx" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dts_migrate_jobs.go b/tencentcloud/data_source_tc_dts_migrate_jobs.go index 2eb73aef4c..b8c2865e71 100644 --- a/tencentcloud/data_source_tc_dts_migrate_jobs.go +++ b/tencentcloud/data_source_tc_dts_migrate_jobs.go @@ -1,46 +1,3 @@ -/* -Use this data source to query detailed information of dts migrateJobs - -Example Usage - -```hcl -resource "tencentcloud_dts_migrate_job" "migrate_job" { - src_database_type = "mysql" - dst_database_type = "cynosdbmysql" - src_region = "ap-guangzhou" - dst_region = "ap-guangzhou" - instance_class = "small" - job_name = "tf_test_migration_job" - tags { - tag_key = "aaa" - tag_value = "bbb" - } -} - -data "tencentcloud_dts_migrate_jobs" "all" {} - -data "tencentcloud_dts_migrate_jobs" "job" { - job_id = tencentcloud_dts_migrate_job.migrate_job.id - job_name = tencentcloud_dts_migrate_job.migrate_job.job_name - status = ["created"] -} - -data "tencentcloud_dts_migrate_jobs" "src_dest" { - - src_region = "ap-guangzhou" - src_database_type = ["mysql"] - dst_region = "ap-guangzhou" - dst_database_type = ["cynosdbmysql"] - - status = ["created"] - tag_filters { - tag_key = "aaa" - tag_value = "bbb" - } -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_dts_sync_jobs.go b/tencentcloud/data_source_tc_dts_sync_jobs.go index 2bd775bdd2..c25fb0f376 100644 --- a/tencentcloud/data_source_tc_dts_sync_jobs.go +++ b/tencentcloud/data_source_tc_dts_sync_jobs.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of dts syncJobs - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job" "job" { - job_name = "tf_dts_test" - pay_mode = "PostPay" - src_database_type = "mysql" - src_region = "ap-guangzhou" - dst_database_type = "cynosdbmysql" - dst_region = "ap-guangzhou" - tags { - tag_key = "aaa" - tag_value = "bbb" - } - auto_renew = 0 - instance_class = "micro" - } - -data "tencentcloud_dts_sync_jobs" "sync_jobs" { - job_id = tencentcloud_dts_sync_job.job.id - job_name = "tf_dts_test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eb_bus.go b/tencentcloud/data_source_tc_eb_bus.go index 8d17e6c963..2f47b47ac1 100644 --- a/tencentcloud/data_source_tc_eb_bus.go +++ b/tencentcloud/data_source_tc_eb_bus.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of eb bus - -Example Usage - -```hcl -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} -data "tencentcloud_eb_bus" "bus" { - order_by = "AddTime" - order = "DESC" - filters { - values = ["Custom"] - name = "Type" - } - - depends_on = [ tencentcloud_eb_event_bus.foo ] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eb_event_rules.go b/tencentcloud/data_source_tc_eb_event_rules.go index dd45b1d02b..7cece8f1b3 100644 --- a/tencentcloud/data_source_tc_eb_event_rules.go +++ b/tencentcloud/data_source_tc_eb_event_rules.go @@ -1,41 +1,3 @@ -/* -Use this data source to query detailed information of eb event_rules -Example Usage -```hcl -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus_rule" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} -resource "tencentcloud_eb_event_rule" "event_rule" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_name = "tf-event_rule" - description = "event rule desc" - enable = true - event_pattern = jsonencode( - { - source = "apigw.cloud.tencent" - type = [ - "connector:apigw", - ] - } - ) - tags = { - "createdBy" = "terraform" - } -} -data "tencentcloud_eb_event_rules" "event_rules" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - order_by = "AddTime" - order = "DESC" - depends_on = [tencentcloud_eb_event_rule.event_rule] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eb_plateform_event_template.go b/tencentcloud/data_source_tc_eb_plateform_event_template.go index 38d25dad7f..5d53713d18 100644 --- a/tencentcloud/data_source_tc_eb_plateform_event_template.go +++ b/tencentcloud/data_source_tc_eb_plateform_event_template.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of eb plateform_event_template - -Example Usage - -```hcl -data "tencentcloud_eb_plateform_event_template" "plateform_event_template" { - event_type = "eb_platform_test:TEST:ALL" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eb_platform_event_names.go b/tencentcloud/data_source_tc_eb_platform_event_names.go index 48677d35d2..65a02fb02d 100644 --- a/tencentcloud/data_source_tc_eb_platform_event_names.go +++ b/tencentcloud/data_source_tc_eb_platform_event_names.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of eb platform_event_names - -Example Usage - -```hcl -data "tencentcloud_eb_platform_event_names" "platform_event_names" { - product_type = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eb_platform_event_patterns.go b/tencentcloud/data_source_tc_eb_platform_event_patterns.go index 2108f84d28..e95a98167d 100644 --- a/tencentcloud/data_source_tc_eb_platform_event_patterns.go +++ b/tencentcloud/data_source_tc_eb_platform_event_patterns.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of eb platform_event_patterns - -Example Usage - -```hcl -data "tencentcloud_eb_platform_event_patterns" "platform_event_patterns" { - product_type = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eb_platform_products.go b/tencentcloud/data_source_tc_eb_platform_products.go index f02a0442f5..51ecefed12 100644 --- a/tencentcloud/data_source_tc_eb_platform_products.go +++ b/tencentcloud/data_source_tc_eb_platform_products.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of eb platform_products - -Example Usage - -```hcl -data "tencentcloud_eb_platform_products" "platform_products" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eip.go b/tencentcloud/data_source_tc_eip.go index 14214ad7a0..a18834f8c2 100644 --- a/tencentcloud/data_source_tc_eip.go +++ b/tencentcloud/data_source_tc_eip.go @@ -1,21 +1,3 @@ -/* -Provides an available EIP for the user. - -The EIP data source fetch proper EIP from user's EIP pool. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_eips. - -Example Usage - -```hcl -data "tencentcloud_eip" "my_eip" { - filter { - name = "address-status" - values = ["UNBIND"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eip_address_quota.go b/tencentcloud/data_source_tc_eip_address_quota.go index 695fb43c19..d6bd3704b4 100644 --- a/tencentcloud/data_source_tc_eip_address_quota.go +++ b/tencentcloud/data_source_tc_eip_address_quota.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of vpc address_quota - -Example Usage - -```hcl -data "tencentcloud_eip_address_quota" "address_quota" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eip_network_account_type.go b/tencentcloud/data_source_tc_eip_network_account_type.go index 90dbedbccc..f129d99068 100644 --- a/tencentcloud/data_source_tc_eip_network_account_type.go +++ b/tencentcloud/data_source_tc_eip_network_account_type.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of eip network_account_type - -Example Usage - -```hcl -data "tencentcloud_eip_network_account_type" "network_account_type" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_eips.go b/tencentcloud/data_source_tc_eips.go index 36aedf8bba..cc0b8e7d9e 100644 --- a/tencentcloud/data_source_tc_eips.go +++ b/tencentcloud/data_source_tc_eips.go @@ -1,14 +1,3 @@ -/* -Use this data source to query eip instances. - -Example Usage - -```hcl -data "tencentcloud_eips" "foo" { - eip_id = "eip-ry9h95hg" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_describe_index_list.go b/tencentcloud/data_source_tc_elasticsearch_describe_index_list.go index 22266f41f8..41fc6a3903 100644 --- a/tencentcloud/data_source_tc_elasticsearch_describe_index_list.go +++ b/tencentcloud/data_source_tc_elasticsearch_describe_index_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch index list - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_describe_index_list" "describe_index_list" { - index_type = "normal" - instance_id = "es-nni6pm4s" -} -``` -*/ package tencentcloud import ( @@ -18,6 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" elasticsearch "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" ) diff --git a/tencentcloud/data_source_tc_elasticsearch_diagnose.go b/tencentcloud/data_source_tc_elasticsearch_diagnose.go index c6f137df96..7876317214 100644 --- a/tencentcloud/data_source_tc_elasticsearch_diagnose.go +++ b/tencentcloud/data_source_tc_elasticsearch_diagnose.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch diagnose - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_diagnose" "diagnose" { - instance_id = "es-xxxxxx" - date = "20231030" - limit = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_instance_logs.go b/tencentcloud/data_source_tc_elasticsearch_instance_logs.go index 82aa113400..957f3de17a 100644 --- a/tencentcloud/data_source_tc_elasticsearch_instance_logs.go +++ b/tencentcloud/data_source_tc_elasticsearch_instance_logs.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of es elasticsearch_instance_logs - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_instance_logs" "elasticsearch_instance_logs" { - instance_id = "es-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_instance_operations.go b/tencentcloud/data_source_tc_elasticsearch_instance_operations.go index 39a2d5bf54..70987a4f78 100644 --- a/tencentcloud/data_source_tc_elasticsearch_instance_operations.go +++ b/tencentcloud/data_source_tc_elasticsearch_instance_operations.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch instance operations - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_instance_operations" "instance_operations" { - instance_id = "es-xxxxxx" - start_time = "2018-01-01 00:00:00" - end_time = "2023-10-31 10:12:45" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_instance_plugin_list.go b/tencentcloud/data_source_tc_elasticsearch_instance_plugin_list.go index e9d3f9d651..f8f8440c02 100644 --- a/tencentcloud/data_source_tc_elasticsearch_instance_plugin_list.go +++ b/tencentcloud/data_source_tc_elasticsearch_instance_plugin_list.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch instance plugin list - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_instance_plugin_list" "instance_plugin_list" { - instance_id = "es-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_instances.go b/tencentcloud/data_source_tc_elasticsearch_instances.go index 942f942b38..0ec3949f0b 100755 --- a/tencentcloud/data_source_tc_elasticsearch_instances.go +++ b/tencentcloud/data_source_tc_elasticsearch_instances.go @@ -1,14 +1,3 @@ -/* -Use this data source to query elasticsearch instances. - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_instances" "foo" { - instance_id = "es-17634f05" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_logstash_instance_logs.go b/tencentcloud/data_source_tc_elasticsearch_logstash_instance_logs.go index 9a261d0eb7..8297166a57 100644 --- a/tencentcloud/data_source_tc_elasticsearch_logstash_instance_logs.go +++ b/tencentcloud/data_source_tc_elasticsearch_logstash_instance_logs.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch logstash_instance_logs - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_logstash_instance_logs" "logstash_instance_logs" { - instance_id = "ls-xxxxxx" - log_type = 1 - start_time = "2023-10-31 10:30:00" - end_time = "2023-10-31 10:30:10" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_logstash_instance_operations.go b/tencentcloud/data_source_tc_elasticsearch_logstash_instance_operations.go index de73bb34a7..e8169061b6 100644 --- a/tencentcloud/data_source_tc_elasticsearch_logstash_instance_operations.go +++ b/tencentcloud/data_source_tc_elasticsearch_logstash_instance_operations.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch logstash_instance_operations - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_logstash_instance_operations" "logstash_instance_operations" { - instance_id = "ls-xxxxxx" - start_time = "2018-01-01 00:00:00" - end_time = "2023-10-31 10:12:45" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_elasticsearch_views.go b/tencentcloud/data_source_tc_elasticsearch_views.go index 35d7b1e87d..b37aaf182a 100644 --- a/tencentcloud/data_source_tc_elasticsearch_views.go +++ b/tencentcloud/data_source_tc_elasticsearch_views.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of elasticsearch views - -Example Usage - -```hcl -data "tencentcloud_elasticsearch_views" "views" { - instance_id = "es-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_emr.go b/tencentcloud/data_source_tc_emr.go index f7c7856cff..faabda774c 100644 --- a/tencentcloud/data_source_tc_emr.go +++ b/tencentcloud/data_source_tc_emr.go @@ -1,17 +1,3 @@ -/* -Provides an available EMR for the user. - -The EMR data source fetch proper EMR from user's EMR pool. - -Example Usage - -```hcl -data "tencentcloud_emr" "my_emr" { - display_strategy="clusterList" - instance_ids=["emr-rnzqrleq"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_emr_auto_scale_records.go b/tencentcloud/data_source_tc_emr_auto_scale_records.go index 30999aab4c..09d305bd77 100644 --- a/tencentcloud/data_source_tc_emr_auto_scale_records.go +++ b/tencentcloud/data_source_tc_emr_auto_scale_records.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of emr auto_scale_records - -Example Usage - -```hcl -data "tencentcloud_emr_auto_scale_records" "auto_scale_records" { - instance_id = "emr-bpum4pad" - filters { - key = "StartTime" - value = "2006-01-02 15:04:05" - } -} -``` -*/ package tencentcloud import ( @@ -21,6 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" emr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr/v20190103" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" ) diff --git a/tencentcloud/data_source_tc_emr_cvm_quota.go b/tencentcloud/data_source_tc_emr_cvm_quota.go index 2a36db6fe4..b8249cbddb 100644 --- a/tencentcloud/data_source_tc_emr_cvm_quota.go +++ b/tencentcloud/data_source_tc_emr_cvm_quota.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of emr cvm_quota - -Example Usage - -```hcl -data "tencentcloud_emr_cvm_quota" "cvm_quota" { - cluster_id = "emr-0ze36vnp" - zone_id = 100003 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_emr_nodes.go b/tencentcloud/data_source_tc_emr_nodes.go index e3147cc2cd..4a4aa27b41 100644 --- a/tencentcloud/data_source_tc_emr_nodes.go +++ b/tencentcloud/data_source_tc_emr_nodes.go @@ -1,17 +1,3 @@ -/* -Provides an available EMR for the user. - -The EMR data source obtain the hardware node information by using the emr cluster ID. - -Example Usage - -```hcl -data "tencentcloud_emr_nodes" "my_emr_nodes" { - node_flag="master" - instance_id="emr-rnzqrleq" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_enis.go b/tencentcloud/data_source_tc_enis.go index acf275a709..9bcdb536cf 100644 --- a/tencentcloud/data_source_tc_enis.go +++ b/tencentcloud/data_source_tc_enis.go @@ -1,14 +1,3 @@ -/* -Use this data source to query query ENIs. - -Example Usage - -```hcl -data "tencentcloud_enis" "name" { - name = "test eni" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_access_regions.go b/tencentcloud/data_source_tc_gaap_access_regions.go index 07dc9c0019..c3f81b16dd 100644 --- a/tencentcloud/data_source_tc_gaap_access_regions.go +++ b/tencentcloud/data_source_tc_gaap_access_regions.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of gaap access regions - -Example Usage - -```hcl -data "tencentcloud_gaap_access_regions" "access_regions" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go b/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go index 180d6f9141..837c515e76 100644 --- a/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go +++ b/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap access regions by dest region - -Example Usage - -```hcl -data "tencentcloud_gaap_access_regions_by_dest_region" "access_regions_by_dest_region" { - dest_region = "SouthChina" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_black_header.go b/tencentcloud/data_source_tc_gaap_black_header.go index d06f05e87d..4b87785669 100644 --- a/tencentcloud/data_source_tc_gaap_black_header.go +++ b/tencentcloud/data_source_tc_gaap_black_header.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of gaap black header - -Example Usage - -```hcl -data "tencentcloud_gaap_black_header" "black_header" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_certificates.go b/tencentcloud/data_source_tc_gaap_certificates.go index ac4ee2df9c..9b71908fd8 100644 --- a/tencentcloud/data_source_tc_gaap_certificates.go +++ b/tencentcloud/data_source_tc_gaap_certificates.go @@ -1,20 +1,3 @@ -/* -Use this data source to query GAAP certificate. - -Example Usage - -```hcl -resource "tencentcloud_gaap_certificate" "foo" { - type = "BASIC" - content = "test:tx2KGdo3zJg/." - name = "test_certificate" -} - -data "tencentcloud_gaap_certificates" "foo" { - id = tencentcloud_gaap_certificate.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_check_proxy_create.go b/tencentcloud/data_source_tc_gaap_check_proxy_create.go index 71b20bd9ea..ced5f5533c 100644 --- a/tencentcloud/data_source_tc_gaap_check_proxy_create.go +++ b/tencentcloud/data_source_tc_gaap_check_proxy_create.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of gaap check proxy create - -Example Usage - -```hcl -data "tencentcloud_gaap_check_proxy_create" "check_proxy_create" { - access_region = "Guangzhou" - real_server_region = "Beijing" - bandwidth = 10 - concurrent = 2 - ip_address_version = "IPv4" - network_type = "normal" - package_type = "Thunder" - http3_supported = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_country_area_mapping.go b/tencentcloud/data_source_tc_gaap_country_area_mapping.go index 53626dde62..d41443f00a 100644 --- a/tencentcloud/data_source_tc_gaap_country_area_mapping.go +++ b/tencentcloud/data_source_tc_gaap_country_area_mapping.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of gaap country area mapping - -Example Usage - -```hcl -data "tencentcloud_gaap_country_area_mapping" "country_area_mapping" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_custom_header.go b/tencentcloud/data_source_tc_gaap_custom_header.go index 74e285c473..069a5ed01d 100644 --- a/tencentcloud/data_source_tc_gaap_custom_header.go +++ b/tencentcloud/data_source_tc_gaap_custom_header.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap custom header - -Example Usage - -```hcl -data "tencentcloud_gaap_custom_header" "custom_header" { - rule_id = "rule-9sdhv655" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_dest_regions.go b/tencentcloud/data_source_tc_gaap_dest_regions.go index de77de8466..ede6a0252e 100644 --- a/tencentcloud/data_source_tc_gaap_dest_regions.go +++ b/tencentcloud/data_source_tc_gaap_dest_regions.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of gaap dest regions - -Example Usage - -```hcl -data "tencentcloud_gaap_dest_regions" "dest_regions" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_domain_error_page_infos.go b/tencentcloud/data_source_tc_gaap_domain_error_page_infos.go index d462fca611..83e3dbefc6 100644 --- a/tencentcloud/data_source_tc_gaap_domain_error_page_infos.go +++ b/tencentcloud/data_source_tc_gaap_domain_error_page_infos.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap domain error page infos - -Example Usage - -```hcl -data "tencentcloud_gaap_domain_error_page_infos" "domain_error_page_infos" { - error_page_ids = ["errorPage-xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_domain_error_pages.go b/tencentcloud/data_source_tc_gaap_domain_error_pages.go index e5ff1b887f..530bec407b 100644 --- a/tencentcloud/data_source_tc_gaap_domain_error_pages.go +++ b/tencentcloud/data_source_tc_gaap_domain_error_pages.go @@ -1,48 +1,3 @@ -/* -Use this data source to query custom GAAP HTTP domain error page info list. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource tencentcloud_gaap_layer7_listener "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = "%s" -} - -resource tencentcloud_gaap_http_domain "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = "www.qq.com" -} - -resource tencentcloud_gaap_domain_error_page "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = tencentcloud_gaap_http_domain.foo.domain - error_codes = [406, 504] - new_error_code = 502 - body = "bad request" - clear_headers = ["Content-Length", "X-TEST"] - - set_headers = { - "X-TEST" = "test" - } -} - -data tencentcloud_gaap_domain_error_pages "foo" { - listener_id = tencentcloud_gaap_domain_error_page.foo.listener_id - domain = tencentcloud_gaap_domain_error_page.foo.domain -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_group_and_statistics_proxy.go b/tencentcloud/data_source_tc_gaap_group_and_statistics_proxy.go index d61fb6e421..7915612e8f 100644 --- a/tencentcloud/data_source_tc_gaap_group_and_statistics_proxy.go +++ b/tencentcloud/data_source_tc_gaap_group_and_statistics_proxy.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap and statistics proxy - -Example Usage - -```hcl -data "tencentcloud_gaap_group_and_statistics_proxy" "group_and_statistics_proxy" { - project_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_http_domains.go b/tencentcloud/data_source_tc_gaap_http_domains.go index ee6e2a8993..189028a542 100644 --- a/tencentcloud/data_source_tc_gaap_http_domains.go +++ b/tencentcloud/data_source_tc_gaap_http_domains.go @@ -1,35 +1,3 @@ -/* -Use this data source to query forward domain of layer7 listeners. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_layer7_listener" "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} - -resource "tencentcloud_gaap_http_domain" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = "www.qq.com" -} - -data "tencentcloud_gaap_http_domains" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = tencentcloud_gaap_http_domain.foo.domain -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_http_rules.go b/tencentcloud/data_source_tc_gaap_http_rules.go index 3ec07fc36a..5f20becde6 100644 --- a/tencentcloud/data_source_tc_gaap_http_rules.go +++ b/tencentcloud/data_source_tc_gaap_http_rules.go @@ -1,49 +1,3 @@ -/* -Use this data source to query forward rule of layer7 listeners. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_layer7_listener" "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} - -resource "tencentcloud_gaap_realserver" "foo" { - ip = "1.1.1.1" - name = "ci-test-gaap-realserver" -} - -resource "tencentcloud_gaap_http_rule" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = "www.qq.com" - path = "/" - realserver_type = "IP" - health_check = true - - realservers { - id = tencentcloud_gaap_realserver.foo.id - ip = tencentcloud_gaap_realserver.foo.ip - port = 80 - } -} - -data "tencentcloud_gaap_http_rules" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = tencentcloud_gaap_http_rule.foo.domain -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_layer4_listeners.go b/tencentcloud/data_source_tc_gaap_layer4_listeners.go index d8961ac659..804ee8786b 100644 --- a/tencentcloud/data_source_tc_gaap_layer4_listeners.go +++ b/tencentcloud/data_source_tc_gaap_layer4_listeners.go @@ -1,46 +1,3 @@ -/* -Use this data source to query gaap layer4 listeners. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_realserver" "foo" { - ip = "1.1.1.1" - name = "ci-test-gaap-realserver" -} - -resource "tencentcloud_gaap_layer4_listener" "foo" { - protocol = "TCP" - name = "ci-test-gaap-4-listener" - port = 80 - realserver_type = "IP" - proxy_id = tencentcloud_gaap_proxy.foo.id - health_check = true - interval = 5 - connect_timeout = 2 - - realserver_bind_set { - id = tencentcloud_gaap_realserver.foo.id - ip = tencentcloud_gaap_realserver.foo.ip - port = 80 - } -} - -data "tencentcloud_gaap_layer4_listeners" "foo" { - protocol = "TCP" - proxy_id = tencentcloud_gaap_proxy.foo.id - listener_id = tencentcloud_gaap_layer4_listener.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_layer7_listeners.go b/tencentcloud/data_source_tc_gaap_layer7_listeners.go index 6b47b03cd9..4eeaa6a4f9 100644 --- a/tencentcloud/data_source_tc_gaap_layer7_listeners.go +++ b/tencentcloud/data_source_tc_gaap_layer7_listeners.go @@ -1,31 +1,3 @@ -/* -Use this data source to query gaap layer7 listeners. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_layer7_listener" "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} - -data "tencentcloud_gaap_layer7_listeners" "listenerId" { - protocol = "HTTP" - proxy_id = tencentcloud_gaap_proxy.foo.id - listener_id = tencentcloud_gaap_layer7_listener.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_listener_real_servers.go b/tencentcloud/data_source_tc_gaap_listener_real_servers.go index 913595e3ed..81c94ec3fd 100644 --- a/tencentcloud/data_source_tc_gaap_listener_real_servers.go +++ b/tencentcloud/data_source_tc_gaap_listener_real_servers.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap listener real servers - -Example Usage - -```hcl -data "tencentcloud_gaap_listener_real_servers" "listener_real_servers" { - listener_id = "listener-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_listener_statistics.go b/tencentcloud/data_source_tc_gaap_listener_statistics.go index dffd53670d..4d23af77eb 100644 --- a/tencentcloud/data_source_tc_gaap_listener_statistics.go +++ b/tencentcloud/data_source_tc_gaap_listener_statistics.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of gaap listener statistics - -Example Usage - -```hcl -data "tencentcloud_gaap_listener_statistics" "listener_statistics" { - listener_id = "listener-xxxxxx" - start_time = "2023-10-19 00:00:00" - end_time = "2023-10-19 23:59:59" - metric_names = ["InBandwidth", "OutBandwidth", "InPackets", "OutPackets", "Concurrent"] - granularity = 300 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxies.go b/tencentcloud/data_source_tc_gaap_proxies.go index ee33f9e25b..3c51d178d2 100644 --- a/tencentcloud/data_source_tc_gaap_proxies.go +++ b/tencentcloud/data_source_tc_gaap_proxies.go @@ -1,22 +1,3 @@ -/* -Use this data source to query gaap proxies. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -data "tencentcloud_gaap_proxies" "foo" { - ids = [tencentcloud_gaap_proxy.foo.id] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxies_status.go b/tencentcloud/data_source_tc_gaap_proxies_status.go index eab58665a5..a7d88bb02f 100644 --- a/tencentcloud/data_source_tc_gaap_proxies_status.go +++ b/tencentcloud/data_source_tc_gaap_proxies_status.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap proxies status - -Example Usage - -```hcl -data "tencentcloud_gaap_proxies_status" "proxies_status" { - proxy_ids = ["link-xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxy_and_statistics_listeners.go b/tencentcloud/data_source_tc_gaap_proxy_and_statistics_listeners.go index fa6ed807f2..a21aeec841 100644 --- a/tencentcloud/data_source_tc_gaap_proxy_and_statistics_listeners.go +++ b/tencentcloud/data_source_tc_gaap_proxy_and_statistics_listeners.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap proxy and statistics listeners - -Example Usage - -```hcl -data "tencentcloud_gaap_proxy_and_statistics_listeners" "proxy_and_statistics_listeners" { - project_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxy_detail.go b/tencentcloud/data_source_tc_gaap_proxy_detail.go index fb3eab0640..50ef00a62b 100644 --- a/tencentcloud/data_source_tc_gaap_proxy_detail.go +++ b/tencentcloud/data_source_tc_gaap_proxy_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap proxy detail - -Example Usage - -```hcl -data "tencentcloud_gaap_proxy_detail" "proxy_detail" { - proxy_id = "link-8lpyo88p" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go b/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go index 8a38736692..2bde2af29b 100644 --- a/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go +++ b/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of gaap proxy group statistics - -Example Usage - -```hcl -data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" { - group_id = "link-8lpyo88p" - start_time = "2023-10-09 00:00:00" - end_time = "2023-10-09 23:59:59" - metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"] - granularity = 300 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxy_groups.go b/tencentcloud/data_source_tc_gaap_proxy_groups.go index 47ce7232b7..3e683713f4 100644 --- a/tencentcloud/data_source_tc_gaap_proxy_groups.go +++ b/tencentcloud/data_source_tc_gaap_proxy_groups.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of gaap proxy groups - -Example Usage - -```hcl -data "tencentcloud_gaap_proxy_groups" "proxy_groups" { - project_id = 0 - filters { - name = "GroupId" - values = ["lg-5anbbou5"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_proxy_statistics.go b/tencentcloud/data_source_tc_gaap_proxy_statistics.go index ff2fb5b1b1..33bd7ed18e 100644 --- a/tencentcloud/data_source_tc_gaap_proxy_statistics.go +++ b/tencentcloud/data_source_tc_gaap_proxy_statistics.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of gaap proxy statistics - -Example Usage - -```hcl -data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" { - proxy_id = "link-8lpyo88p" - start_time = "2023-10-09 00:00:00" - end_time = "2023-10-09 23:59:59" - metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"] - granularity = 300 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_real_servers_status.go b/tencentcloud/data_source_tc_gaap_real_servers_status.go index 823919fe43..fc5d25f76c 100644 --- a/tencentcloud/data_source_tc_gaap_real_servers_status.go +++ b/tencentcloud/data_source_tc_gaap_real_servers_status.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap real servers status - -Example Usage - -```hcl -data "tencentcloud_gaap_real_servers_status" "real_servers_status" { - real_server_ids = ["rs-qcygnwpd"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_realservers.go b/tencentcloud/data_source_tc_gaap_realservers.go index 32713e4bd5..b24ce3ed27 100644 --- a/tencentcloud/data_source_tc_gaap_realservers.go +++ b/tencentcloud/data_source_tc_gaap_realservers.go @@ -1,19 +1,3 @@ -/* -Use this data source to query gaap realservers. - -Example Usage - -```hcl -resource "tencentcloud_gaap_realserver" "foo" { - ip = "1.1.1.1" - name = "ci-test-gaap-realserver" -} - -data "tencentcloud_gaap_realservers" "foo" { - ip = tencentcloud_gaap_realserver.foo.ip -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_region_and_price.go b/tencentcloud/data_source_tc_gaap_region_and_price.go index 42d906f8e1..da805a865c 100644 --- a/tencentcloud/data_source_tc_gaap_region_and_price.go +++ b/tencentcloud/data_source_tc_gaap_region_and_price.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of gaap region and price - -Example Usage - -```hcl -data "tencentcloud_gaap_region_and_price" "region_and_price" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_resources_by_tag.go b/tencentcloud/data_source_tc_gaap_resources_by_tag.go index 19f465440f..d0c80697ed 100644 --- a/tencentcloud/data_source_tc_gaap_resources_by_tag.go +++ b/tencentcloud/data_source_tc_gaap_resources_by_tag.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of gaap resources by tag - -Example Usage - -```hcl -data "tencentcloud_gaap_resources_by_tag" "resources_by_tag" { - tag_key = "tagKey" - tag_value = "tagValue" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_rule_real_servers.go b/tencentcloud/data_source_tc_gaap_rule_real_servers.go index d99cef90cb..8400817e28 100644 --- a/tencentcloud/data_source_tc_gaap_rule_real_servers.go +++ b/tencentcloud/data_source_tc_gaap_rule_real_servers.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of gaap rule real servers - -Example Usage - -```hcl -data "tencentcloud_gaap_rule_real_servers" "rule_real_servers" { - rule_id = "rule-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_security_policies.go b/tencentcloud/data_source_tc_gaap_security_policies.go index fa5b626b22..cdcb3b1604 100644 --- a/tencentcloud/data_source_tc_gaap_security_policies.go +++ b/tencentcloud/data_source_tc_gaap_security_policies.go @@ -1,27 +1,3 @@ -/* -Use this data source to query security policies of GAAP proxy. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_security_policy" "foo" { - proxy_id = tencentcloud_gaap_proxy.foo.id - action = "ACCEPT" -} - -data "tencentcloud_gaap_security_policies" "foo" { - id = tencentcloud_gaap_security_policy.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_gaap_security_rules.go b/tencentcloud/data_source_tc_gaap_security_rules.go index 85eb727a35..b98bcd1c60 100644 --- a/tencentcloud/data_source_tc_gaap_security_rules.go +++ b/tencentcloud/data_source_tc_gaap_security_rules.go @@ -1,37 +1,3 @@ -/* -Use this data source to query security policy rule. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_security_policy" "foo" { - proxy_id = tencentcloud_gaap_proxy.foo.id - action = "ACCEPT" -} - -resource "tencentcloud_gaap_security_rule" "foo" { - policy_id = tencentcloud_gaap_security_policy.foo.id - name = "ci-test-gaap-s-rule" - cidr_ip = "1.1.1.1" - action = "ACCEPT" - protocol = "TCP" - port = "80" -} - -data "tencentcloud_gaap_security_rules" "protocol" { - policy_id = tencentcloud_gaap_security_policy.foo.id - protocol = tencentcloud_gaap_security_rule.foo.protocol -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ha_vip_eip_attachments.go b/tencentcloud/data_source_tc_ha_vip_eip_attachments.go index cb0e322c19..2dcee51630 100644 --- a/tencentcloud/data_source_tc_ha_vip_eip_attachments.go +++ b/tencentcloud/data_source_tc_ha_vip_eip_attachments.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of HA VIP EIP attachments - -Example Usage - -```hcl -data "tencentcloud_ha_vip_eip_attachments" "foo" { - havip_id = "havip-kjqwe4ba" - address_ip = "1.1.1.1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ha_vips.go b/tencentcloud/data_source_tc_ha_vips.go index 24c936f2c3..6599f0f58d 100644 --- a/tencentcloud/data_source_tc_ha_vips.go +++ b/tencentcloud/data_source_tc_ha_vips.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of HA VIPs. - -Example Usage - -```hcl -data "tencentcloud_ha_vips" "havips" { - id = "havip-kjqwe4ba" - name = "test" - vpc_id = "vpc-gzea3dd7" - subnet_id = "subnet-4d4m4cd4" - address_ip = "10.0.4.16" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_image.go b/tencentcloud/data_source_tc_image.go index 2aacc9078e..42744ad2d4 100644 --- a/tencentcloud/data_source_tc_image.go +++ b/tencentcloud/data_source_tc_image.go @@ -1,23 +1,3 @@ -/* -Provides an available image for the user. - -The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. - -~> **NOTE:** This data source will be deprecated, please use `tencentcloud_images` instead. - -Example Usage - -```hcl -data "tencentcloud_image" "my_favorate_image" { - os_name = "centos" - - filter { - name = "image-type" - values = ["PUBLIC_IMAGE"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_images.go b/tencentcloud/data_source_tc_images.go index 285781d117..6c0f9a39d4 100644 --- a/tencentcloud/data_source_tc_images.go +++ b/tencentcloud/data_source_tc_images.go @@ -1,15 +1,3 @@ -/* -Use this data source to query images. - -Example Usage - -```hcl -data "tencentcloud_images" "foo" { - image_type = ["PUBLIC_IMAGE"] - os_name = "centos 7.5" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_instance_types.go b/tencentcloud/data_source_tc_instance_types.go index a3ffc1d4cf..a8082a4149 100644 --- a/tencentcloud/data_source_tc_instance_types.go +++ b/tencentcloud/data_source_tc_instance_types.go @@ -1,30 +1,3 @@ -/* -Use this data source to query instances type. - -Example Usage - -```hcl -data "tencentcloud_instance_types" "foo" { - availability_zone = "ap-guangzhou-2" - cpu_core_count = 2 - memory_size = 4 -} - -data tencentcloud_instance_types "t1c1g" { - cpu_core_count = 1 - memory_size = 1 - exclude_sold_out=true - filter { - name = "instance-charge-type" - values = ["POSTPAID_BY_HOUR"] - } - filter { - name = "zone" - values = ["ap-shanghai-2"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_instances.go b/tencentcloud/data_source_tc_instances.go index 2d9ea94381..83b7333e41 100644 --- a/tencentcloud/data_source_tc_instances.go +++ b/tencentcloud/data_source_tc_instances.go @@ -1,14 +1,3 @@ -/* -Use this data source to query cvm instances. - -Example Usage - -```hcl -data "tencentcloud_instances" "foo" { - instance_id = "ins-da412f5a" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_instances_set.go b/tencentcloud/data_source_tc_instances_set.go index a8accfcb25..4fb40a66be 100644 --- a/tencentcloud/data_source_tc_instances_set.go +++ b/tencentcloud/data_source_tc_instances_set.go @@ -1,14 +1,3 @@ -/* -Use this data source to query cvm instances in parallel. - -Example Usage - -```hcl -data "tencentcloud_instances_set" "foo" { - vpc_id = "vpc-4owdpnwr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_key_pairs.go b/tencentcloud/data_source_tc_key_pairs.go index 8b63193267..74976cf19c 100644 --- a/tencentcloud/data_source_tc_key_pairs.go +++ b/tencentcloud/data_source_tc_key_pairs.go @@ -1,18 +1,3 @@ -/* -Use this data source to query key pairs. - -Example Usage - -```hcl -data "tencentcloud_key_pairs" "foo" { - key_id = "skey-ie97i3ml" -} - -data "tencentcloud_key_pairs" "name" { - key_name = "^test$" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_describe_keys.go b/tencentcloud/data_source_tc_kms_describe_keys.go index 6437513c2e..0770b93fb9 100644 --- a/tencentcloud/data_source_tc_kms_describe_keys.go +++ b/tencentcloud/data_source_tc_kms_describe_keys.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of kms key_lists - -Example Usage - -```hcl -data "tencentcloud_kms_describe_keys" "example" { - key_ids = [ - "9ffacc8b-6461-11ee-a54e-525400dd8a7d", - "bffae4ed-6465-11ee-90b2-5254000ef00e" - ] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_get_parameters_for_import.go b/tencentcloud/data_source_tc_kms_get_parameters_for_import.go index 2d03e14230..ebfe49124e 100644 --- a/tencentcloud/data_source_tc_kms_get_parameters_for_import.go +++ b/tencentcloud/data_source_tc_kms_get_parameters_for_import.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of kms get_parameters_for_import - -Example Usage - -```hcl -data "tencentcloud_kms_get_parameters_for_import" "example" { - key_id = "786aea8c-4aec-11ee-b601-525400281a45" - wrapping_algorithm = "RSAES_OAEP_SHA_1" - wrapping_key_spec = "RSA_2048" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_keys.go b/tencentcloud/data_source_tc_kms_keys.go index 08d8dfd712..b329411489 100644 --- a/tencentcloud/data_source_tc_kms_keys.go +++ b/tencentcloud/data_source_tc_kms_keys.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of KMS key - -Example Usage - -```hcl -data "tencentcloud_kms_keys" "example" { - search_key_alias = "tf_example" - key_state = 0 - origin = "TENCENT_KMS" - key_usage = "ALL" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_list_algorithms.go b/tencentcloud/data_source_tc_kms_list_algorithms.go index 69e0087c07..ae50ce16df 100644 --- a/tencentcloud/data_source_tc_kms_list_algorithms.go +++ b/tencentcloud/data_source_tc_kms_list_algorithms.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of kms list_algorithms - -Example Usage - -```hcl -data "tencentcloud_kms_list_algorithms" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_list_keys.go b/tencentcloud/data_source_tc_kms_list_keys.go index af83d0750d..261aff20c1 100644 --- a/tencentcloud/data_source_tc_kms_list_keys.go +++ b/tencentcloud/data_source_tc_kms_list_keys.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of kms list_keys - -Example Usage - -```hcl -data "tencentcloud_kms_list_keys" "example" { - role = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_public_key.go b/tencentcloud/data_source_tc_kms_public_key.go index 4f93d194ce..ad155fa3b0 100644 --- a/tencentcloud/data_source_tc_kms_public_key.go +++ b/tencentcloud/data_source_tc_kms_public_key.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of kms public_key - -Example Usage - -```hcl -data "tencentcloud_kms_public_key" "example" { - key_id = tencentcloud_kms_key.example.id -} - -resource "tencentcloud_kms_key" "example" { - alias = "tf-example-kms-key" - description = "example of kms key" - key_usage = "ASYMMETRIC_DECRYPT_RSA_2048" - is_enabled = true - pending_delete_window_in_days = 7 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go b/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go index 2709d1e020..5c94b4a78d 100644 --- a/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go +++ b/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of kms white_box_decrypt_key - -Example Usage - -```hcl -data "tencentcloud_kms_white_box_decrypt_key" "example" { - key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go b/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go index 4d04e8caf7..0dceb28675 100644 --- a/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go +++ b/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of kms white_box_device_fingerprints - -Example Usage - -```hcl -data "tencentcloud_kms_white_box_device_fingerprints" "example" { - key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kms_white_box_key_details.go b/tencentcloud/data_source_tc_kms_white_box_key_details.go index cf143662c5..d382a0ce71 100644 --- a/tencentcloud/data_source_tc_kms_white_box_key_details.go +++ b/tencentcloud/data_source_tc_kms_white_box_key_details.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of kms white_box_key_details - -Example Usage - -```hcl -data "tencentcloud_kms_white_box_key_details" "example" { - key_status = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_available_cluster_versions.go b/tencentcloud/data_source_tc_kubernetes_available_cluster_versions.go index b706edfa2c..40baf000db 100644 --- a/tencentcloud/data_source_tc_kubernetes_available_cluster_versions.go +++ b/tencentcloud/data_source_tc_kubernetes_available_cluster_versions.go @@ -1,28 +1,3 @@ -/* -Use this data source to query detailed information of kubernetes available_cluster_versions - -Example Usage - -```hcl -data "tencentcloud_kubernetes_available_cluster_versions" "query_by_id" { - cluster_id = "xxx" -} - -output "versions_id"{ - description = "Query versions from id." - value = data.tencentcloud_kubernetes_available_cluster_versions.query_by_id.versions -} - -data "tencentcloud_kubernetes_available_cluster_versions" "query_by_ids" { - cluster_ids = ["xxx"] -} - -output "versions_ids"{ - description = "Query versions from ids." - value = data.tencentcloud_kubernetes_available_cluster_versions.query_by_ids.clusters -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_charts.go b/tencentcloud/data_source_tc_kubernetes_charts.go index 626814f91e..34d2f6e500 100644 --- a/tencentcloud/data_source_tc_kubernetes_charts.go +++ b/tencentcloud/data_source_tc_kubernetes_charts.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of kubernetes cluster addons. - -Example Usage - -```hcl -data "tencentcloud_kubernetes_charts" "name" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_cluster_authentication_options.go b/tencentcloud/data_source_tc_kubernetes_cluster_authentication_options.go index 964cf90939..60b1dbd515 100644 --- a/tencentcloud/data_source_tc_kubernetes_cluster_authentication_options.go +++ b/tencentcloud/data_source_tc_kubernetes_cluster_authentication_options.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of kubernetes cluster_authentication_options - -Example Usage - -```hcl -data "tencentcloud_kubernetes_cluster_authentication_options" "cluster_authentication_options" { - cluster_id = "cls-kzilgv5m" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_cluster_common_names.go b/tencentcloud/data_source_tc_kubernetes_cluster_common_names.go index 193758d74d..0837232944 100644 --- a/tencentcloud/data_source_tc_kubernetes_cluster_common_names.go +++ b/tencentcloud/data_source_tc_kubernetes_cluster_common_names.go @@ -1,17 +1,3 @@ -/* -Provide a datasource to query cluster CommonNames. - -Example Usage - -```hcl -data "tencentcloud_kubernetes_cluster_common_names" "foo" { - cluster_id = "cls-12345678" - subaccount_uins = ["1234567890", "0987654321"] -} -``` - - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_cluster_instances.go b/tencentcloud/data_source_tc_kubernetes_cluster_instances.go index 01e9907613..e3153c68bb 100644 --- a/tencentcloud/data_source_tc_kubernetes_cluster_instances.go +++ b/tencentcloud/data_source_tc_kubernetes_cluster_instances.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of kubernetes cluster_instances - -Example Usage - -```hcl -data "tencentcloud_kubernetes_cluster_instances" "cluster_instances" { - cluster_id = "cls-ely08ic4" - instance_ids = ["ins-kqmx8dm2"] - instance_role = "WORKER" - filters { - name = "nodepool-id" - values = ["np-p4e6whqu"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_cluster_levels.go b/tencentcloud/data_source_tc_kubernetes_cluster_levels.go index 76d3960dee..56c07e353c 100644 --- a/tencentcloud/data_source_tc_kubernetes_cluster_levels.go +++ b/tencentcloud/data_source_tc_kubernetes_cluster_levels.go @@ -1,18 +1,3 @@ -/* -Provide a datasource to query TKE cluster levels. - -Example Usage - -```hcl -data "tencentcloud_kubernetes_cluster_levels" "foo" {} - -output "level5" { - value = data.tencentcloud_kubernetes_cluster_levels.foo.list.0.alias -} -``` - - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_kubernetes_cluster_node_pools.go b/tencentcloud/data_source_tc_kubernetes_cluster_node_pools.go index 9f2ff9a2d5..ebf48b5500 100644 --- a/tencentcloud/data_source_tc_kubernetes_cluster_node_pools.go +++ b/tencentcloud/data_source_tc_kubernetes_cluster_node_pools.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of kubernetes cluster_node_pools - -Example Usage - -```hcl -data "tencentcloud_kubernetes_cluster_node_pools" "cluster_node_pools" { - cluster_id = "cls-kzilgv5m" - filters { - name = "NodePoolsName" - values = ["mynodepool_xxxx"] - } - filters { - name = "NodePoolsId" - values = ["np-ngjwhdv4"] - } -} -``` -*/ package tencentcloud import ( @@ -25,6 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" tke "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" ) diff --git a/tencentcloud/data_source_tc_kubernetes_clusters.go b/tencentcloud/data_source_tc_kubernetes_clusters.go index cf62094a81..ff096b761d 100644 --- a/tencentcloud/data_source_tc_kubernetes_clusters.go +++ b/tencentcloud/data_source_tc_kubernetes_clusters.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of kubernetes clusters. - -Example Usage - -```hcl -data "tencentcloud_kubernetes_clusters" "name" { - cluster_name = "terraform" -} - -data "tencentcloud_kubernetes_clusters" "id" { - cluster_id = "cls-godovr32" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_all_scene.go b/tencentcloud/data_source_tc_lighthouse_all_scene.go index e0ae512200..b95ef9928b 100644 --- a/tencentcloud/data_source_tc_lighthouse_all_scene.go +++ b/tencentcloud/data_source_tc_lighthouse_all_scene.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of all region lighthouse scene - -Example Usage - -```hcl -data "tencentcloud_lighthouse_all_scene" "scene" { - offset = 0 - limit = 20 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_bundle.go b/tencentcloud/data_source_tc_lighthouse_bundle.go index 2cf09dca53..ab89059b75 100644 --- a/tencentcloud/data_source_tc_lighthouse_bundle.go +++ b/tencentcloud/data_source_tc_lighthouse_bundle.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse bundle - -Example Usage - -```hcl -data "tencentcloud_lighthouse_bundle" "bundle" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_disk_config.go b/tencentcloud/data_source_tc_lighthouse_disk_config.go index 28ef2a083a..66fbe7ff3b 100644 --- a/tencentcloud/data_source_tc_lighthouse_disk_config.go +++ b/tencentcloud/data_source_tc_lighthouse_disk_config.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse disk_config - -Example Usage - -```hcl -data "tencentcloud_lighthouse_disk_config" "disk_config" { - filters { - name = "zone" - values = ["ap-guangzhou-3"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_disks.go b/tencentcloud/data_source_tc_lighthouse_disks.go index 3541da47f3..3128bfee9e 100644 --- a/tencentcloud/data_source_tc_lighthouse_disks.go +++ b/tencentcloud/data_source_tc_lighthouse_disks.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse disk - -Example Usage - -```hcl -data "tencentcloud_lighthouse_disks" "disks" { - disk_ids = ["lhdisk-xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_firewall_rules_template.go b/tencentcloud/data_source_tc_lighthouse_firewall_rules_template.go index 11bde063ad..0c1ce7513b 100644 --- a/tencentcloud/data_source_tc_lighthouse_firewall_rules_template.go +++ b/tencentcloud/data_source_tc_lighthouse_firewall_rules_template.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse firewall_rules_template - -Example Usage - -```hcl -data "tencentcloud_lighthouse_firewall_rules_template" "firewall_rules_template" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_instance_blueprint.go b/tencentcloud/data_source_tc_lighthouse_instance_blueprint.go index e24a51c5ac..f8d1661998 100644 --- a/tencentcloud/data_source_tc_lighthouse_instance_blueprint.go +++ b/tencentcloud/data_source_tc_lighthouse_instance_blueprint.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse instance_blueprint - -Example Usage - -```hcl -data "tencentcloud_lighthouse_instance_blueprint" "instance_blueprint" { - instance_ids = ["lhins-xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_instance_disk_num.go b/tencentcloud/data_source_tc_lighthouse_instance_disk_num.go index 3069f7b2aa..936b3e413c 100644 --- a/tencentcloud/data_source_tc_lighthouse_instance_disk_num.go +++ b/tencentcloud/data_source_tc_lighthouse_instance_disk_num.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse instance_disk_num - -Example Usage - -```hcl -data "tencentcloud_lighthouse_instance_disk_num" "instance_disk_num" { - instance_ids = ["lhins-xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_instance_traffic_package.go b/tencentcloud/data_source_tc_lighthouse_instance_traffic_package.go index 600f040471..d08a6c3818 100644 --- a/tencentcloud/data_source_tc_lighthouse_instance_traffic_package.go +++ b/tencentcloud/data_source_tc_lighthouse_instance_traffic_package.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse instance_traffic_package - -Example Usage - -```hcl -data "tencentcloud_lighthouse_instance_traffic_package" "instance_traffic_package" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_instance_vnc_url.go b/tencentcloud/data_source_tc_lighthouse_instance_vnc_url.go index ec565ef5af..331937c595 100644 --- a/tencentcloud/data_source_tc_lighthouse_instance_vnc_url.go +++ b/tencentcloud/data_source_tc_lighthouse_instance_vnc_url.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse instance_vnc_url - -Example Usage - -```hcl -data "tencentcloud_lighthouse_instance_vnc_url" "instance_vnc_url" { - instance_id = "lhins-123456" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_modify_instance_bundle.go b/tencentcloud/data_source_tc_lighthouse_modify_instance_bundle.go index 53378a8a53..eb1cfaf80a 100644 --- a/tencentcloud/data_source_tc_lighthouse_modify_instance_bundle.go +++ b/tencentcloud/data_source_tc_lighthouse_modify_instance_bundle.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse modify_instance_bundle - -Example Usage - -```hcl -data "tencentcloud_lighthouse_modify_instance_bundle" "modify_instance_bundle" { - instance_id = "lhins-xxxxxx" - filters { - name = "bundle-id" - values = ["bundle_gen_mc_med2_02"] - - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_region.go b/tencentcloud/data_source_tc_lighthouse_region.go index b34570ad4a..2a930c8dcf 100644 --- a/tencentcloud/data_source_tc_lighthouse_region.go +++ b/tencentcloud/data_source_tc_lighthouse_region.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse region - -Example Usage - -```hcl -data "tencentcloud_lighthouse_region" "region" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_reset_instance_blueprint.go b/tencentcloud/data_source_tc_lighthouse_reset_instance_blueprint.go index 6554138971..c217ed0358 100644 --- a/tencentcloud/data_source_tc_lighthouse_reset_instance_blueprint.go +++ b/tencentcloud/data_source_tc_lighthouse_reset_instance_blueprint.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse reset_instance_blueprint - -Example Usage - -```hcl -data "tencentcloud_lighthouse_reset_instance_blueprint" "reset_instance_blueprint" { - instance_id = "lhins-123456" - offset = 0 - limit = 20 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_scene.go b/tencentcloud/data_source_tc_lighthouse_scene.go index e4ec7c074d..6b69f923db 100644 --- a/tencentcloud/data_source_tc_lighthouse_scene.go +++ b/tencentcloud/data_source_tc_lighthouse_scene.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse scene with region - -Example Usage - -```hcl -data "tencentcloud_lighthouse_scene" "scene" { - offset = 0 - limit = 20 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_lighthouse_zone.go b/tencentcloud/data_source_tc_lighthouse_zone.go index 5962ca0913..fd48b2966d 100644 --- a/tencentcloud/data_source_tc_lighthouse_zone.go +++ b/tencentcloud/data_source_tc_lighthouse_zone.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of lighthouse zone - -Example Usage - -```hcl -data "tencentcloud_lighthouse_zone" "zone" { - order_field = "ZONE" - order = "ASC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_accounts.go b/tencentcloud/data_source_tc_mariadb_accounts.go index 097c0a5559..dce12b858f 100644 --- a/tencentcloud/data_source_tc_mariadb_accounts.go +++ b/tencentcloud/data_source_tc_mariadb_accounts.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mariadb accounts - -Example Usage - -```hcl -data "tencentcloud_mariadb_accounts" "accounts" { - instance_id = "tdsql-4pzs5b67" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_database_objects.go b/tencentcloud/data_source_tc_mariadb_database_objects.go index 80c4f5d1ef..acc18ae219 100644 --- a/tencentcloud/data_source_tc_mariadb_database_objects.go +++ b/tencentcloud/data_source_tc_mariadb_database_objects.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mariadb database_objects - -Example Usage - -```hcl -data "tencentcloud_mariadb_database_objects" "database_objects" { - instance_id = "tdsql-n2fw7pn3" - db_name = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_database_table.go b/tencentcloud/data_source_tc_mariadb_database_table.go index 2429b8a740..c0352e9577 100644 --- a/tencentcloud/data_source_tc_mariadb_database_table.go +++ b/tencentcloud/data_source_tc_mariadb_database_table.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of mariadb database_table - -Example Usage - -```hcl -data "tencentcloud_mariadb_database_table" "database_table" { - instance_id = "tdsql-e9tklsgz" - db_name = "mysql" - table = "server_cost" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_databases.go b/tencentcloud/data_source_tc_mariadb_databases.go index d4641a988c..e9c300a3c8 100644 --- a/tencentcloud/data_source_tc_mariadb_databases.go +++ b/tencentcloud/data_source_tc_mariadb_databases.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mariadb databases - -Example Usage - -```hcl -data "tencentcloud_mariadb_databases" "databases" { - instance_id = "tdsql-e9tklsgz" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_db_instances.go b/tencentcloud/data_source_tc_mariadb_db_instances.go index 3823f5ea4e..927a3a8c07 100644 --- a/tencentcloud/data_source_tc_mariadb_db_instances.go +++ b/tencentcloud/data_source_tc_mariadb_db_instances.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of mariadb dbInstances - -Example Usage - -```hcl -data "tencentcloud_mariadb_db_instances" "dbInstances" { - instance_ids = ["tdsql-ijxtqk5p"] - project_ids = ["0"] - vpc_id = "5556791" - subnet_id = "3454730" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_dcn_detail.go b/tencentcloud/data_source_tc_mariadb_dcn_detail.go index 2f47de346c..5a4147ab69 100644 --- a/tencentcloud/data_source_tc_mariadb_dcn_detail.go +++ b/tencentcloud/data_source_tc_mariadb_dcn_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mariadb dcn_detail - -Example Usage - -```hcl -data "tencentcloud_mariadb_dcn_detail" "dcn_detail" { - instance_id = "tdsql-9vqvls95" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_file_download_url.go b/tencentcloud/data_source_tc_mariadb_file_download_url.go index 4f2ecddf76..9e815383a8 100644 --- a/tencentcloud/data_source_tc_mariadb_file_download_url.go +++ b/tencentcloud/data_source_tc_mariadb_file_download_url.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mariadb file_download_url - -Example Usage - -```hcl -data "tencentcloud_mariadb_file_download_url" "file_download_url" { - instance_id = "tdsql-9vqvls95" - file_path = "/cos_backup/test.txt" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_flow.go b/tencentcloud/data_source_tc_mariadb_flow.go index 667bea3146..75e3a167b0 100644 --- a/tencentcloud/data_source_tc_mariadb_flow.go +++ b/tencentcloud/data_source_tc_mariadb_flow.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mariadb flow - -Example Usage - -```hcl -data "tencentcloud_mariadb_flow" "flow" { - flow_id = 1307 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_instance_specs.go b/tencentcloud/data_source_tc_mariadb_instance_specs.go index d6070ccfe2..3506e72733 100644 --- a/tencentcloud/data_source_tc_mariadb_instance_specs.go +++ b/tencentcloud/data_source_tc_mariadb_instance_specs.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of mariadb instance_specs - -Example Usage - -```hcl -data "tencentcloud_mariadb_instance_specs" "instance_specs" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_log_files.go b/tencentcloud/data_source_tc_mariadb_log_files.go index 8da627d221..1249eaa92d 100644 --- a/tencentcloud/data_source_tc_mariadb_log_files.go +++ b/tencentcloud/data_source_tc_mariadb_log_files.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mariadb log_files - -Example Usage - -```hcl -data "tencentcloud_mariadb_log_files" "log_files" { - instance_id = "tdsql-9vqvls95" - type = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_orders.go b/tencentcloud/data_source_tc_mariadb_orders.go index 755a0ba8a8..7abbf53e66 100644 --- a/tencentcloud/data_source_tc_mariadb_orders.go +++ b/tencentcloud/data_source_tc_mariadb_orders.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mariadb orders - -Example Usage - -```hcl -data "tencentcloud_mariadb_orders" "orders" { - deal_name = "20230607164033835942781" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_price.go b/tencentcloud/data_source_tc_mariadb_price.go index bac81d0ab3..e6ebadcc20 100644 --- a/tencentcloud/data_source_tc_mariadb_price.go +++ b/tencentcloud/data_source_tc_mariadb_price.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of mariadb price - -Example Usage - -```hcl -data "tencentcloud_mariadb_price" "price" { - zone = "ap-guangzhou-3" - node_count = 2 - memory = 2 - storage = 20 - buy_count = 1 - period = 1 - paymode = "prepaid" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_project_security_groups.go b/tencentcloud/data_source_tc_mariadb_project_security_groups.go index 5031723c8b..2c335cd28c 100644 --- a/tencentcloud/data_source_tc_mariadb_project_security_groups.go +++ b/tencentcloud/data_source_tc_mariadb_project_security_groups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mariadb project_security_groups - -Example Usage - -```hcl -data "tencentcloud_mariadb_project_security_groups" "project_security_groups" { - product = "mariadb" - project_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_renewal_price.go b/tencentcloud/data_source_tc_mariadb_renewal_price.go index 90f746ce8b..f6559c8aea 100644 --- a/tencentcloud/data_source_tc_mariadb_renewal_price.go +++ b/tencentcloud/data_source_tc_mariadb_renewal_price.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mariadb renewal_price - -Example Usage - -```hcl -data "tencentcloud_mariadb_renewal_price" "renewal_price" { - instance_id = "tdsql-9vqvls95" - period = 2 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_sale_info.go b/tencentcloud/data_source_tc_mariadb_sale_info.go index 04d70a3fd5..03a0e31aab 100644 --- a/tencentcloud/data_source_tc_mariadb_sale_info.go +++ b/tencentcloud/data_source_tc_mariadb_sale_info.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of mariadb sale_info - -Example Usage - -```hcl -data "tencentcloud_mariadb_sale_info" "sale_info" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_security_groups.go b/tencentcloud/data_source_tc_mariadb_security_groups.go index aa5754a57b..0a0baee64d 100644 --- a/tencentcloud/data_source_tc_mariadb_security_groups.go +++ b/tencentcloud/data_source_tc_mariadb_security_groups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mariadb securityGroups - -Example Usage - -```hcl -data "tencentcloud_mariadb_security_groups" "securityGroups" { - instance_id = "tdsql-4pzs5b67" - product = "mariadb" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_slow_logs.go b/tencentcloud/data_source_tc_mariadb_slow_logs.go index 40951937e3..0d8d397c00 100644 --- a/tencentcloud/data_source_tc_mariadb_slow_logs.go +++ b/tencentcloud/data_source_tc_mariadb_slow_logs.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of mariadb slow_logs - -Example Usage - -```hcl -data "tencentcloud_mariadb_slow_logs" "slow_logs" { - instance_id = "tdsql-9vqvls95" - start_time = "2023-06-01 14:55:20" - order_by = "query_time_sum" - order_by_type = "desc" - slave = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mariadb_upgrade_price.go b/tencentcloud/data_source_tc_mariadb_upgrade_price.go index 0d6ed8ec8a..799678ff7c 100644 --- a/tencentcloud/data_source_tc_mariadb_upgrade_price.go +++ b/tencentcloud/data_source_tc_mariadb_upgrade_price.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of mariadb upgrade_price - -Example Usage - -```hcl -data "tencentcloud_mariadb_upgrade_price" "upgrade_price" { - instance_id = "tdsql-9vqvls95" - memory = 4 - storage = 40 - node_count = 2 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_instance_backups.go b/tencentcloud/data_source_tc_mongodb_instance_backups.go index ee3dd384d2..f48e999a6f 100644 --- a/tencentcloud/data_source_tc_mongodb_instance_backups.go +++ b/tencentcloud/data_source_tc_mongodb_instance_backups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mongodb instance_backups - -Example Usage - -```hcl -data "tencentcloud_mongodb_instance_backups" "instance_backups" { - instance_id = "cmgo-9d0p6umb" - backup_method = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_instance_connections.go b/tencentcloud/data_source_tc_mongodb_instance_connections.go index e14474eeb4..c215a34853 100644 --- a/tencentcloud/data_source_tc_mongodb_instance_connections.go +++ b/tencentcloud/data_source_tc_mongodb_instance_connections.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mongodb instance_connections - -Example Usage - -```hcl -data "tencentcloud_mongodb_instance_connections" "instance_connections" { - instance_id = "cmgo-9d0p6umb" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_instance_current_op.go b/tencentcloud/data_source_tc_mongodb_instance_current_op.go index 54bfaa197f..3394245b09 100644 --- a/tencentcloud/data_source_tc_mongodb_instance_current_op.go +++ b/tencentcloud/data_source_tc_mongodb_instance_current_op.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of mongodb instance_current_op - -Example Usage - -```hcl -data "tencentcloud_mongodb_instance_current_op" "instance_current_op" { - instance_id = "cmgo-b43i3wkj" - op = "command" - order_by_type = "desc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_instance_params.go b/tencentcloud/data_source_tc_mongodb_instance_params.go index 76543f77d6..97cb9704b1 100644 --- a/tencentcloud/data_source_tc_mongodb_instance_params.go +++ b/tencentcloud/data_source_tc_mongodb_instance_params.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mongodb instance_params - -Example Usage - -```hcl -data "tencentcloud_mongodb_instance_params" "instance_params" { - instance_id = "cmgo-gwqk8669" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_instance_slow_log.go b/tencentcloud/data_source_tc_mongodb_instance_slow_log.go index d92735ed83..6645dc340e 100644 --- a/tencentcloud/data_source_tc_mongodb_instance_slow_log.go +++ b/tencentcloud/data_source_tc_mongodb_instance_slow_log.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of mongodb instance_slow_log - -Example Usage - -```hcl -data "tencentcloud_mongodb_instance_slow_log" "instance_slow_log" { - instance_id = "cmgo-9d0p6umb" - start_time = "2019-06-01 10:00:00" - end_time = "2019-06-02 12:00:00" - slow_m_s = 100 - format = "json" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_instances.go b/tencentcloud/data_source_tc_mongodb_instances.go index d540a3df82..68d89c2f79 100644 --- a/tencentcloud/data_source_tc_mongodb_instances.go +++ b/tencentcloud/data_source_tc_mongodb_instances.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of Mongodb instances. - -Example Usage - -```hcl -data "tencentcloud_mongodb_instances" "mongodb" { - instance_id = "cmgo-l6lwdsel" - cluster_type = "REPLSET" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mongodb_zone_config.go b/tencentcloud/data_source_tc_mongodb_zone_config.go index 30eb24bbcf..073c6a8c40 100644 --- a/tencentcloud/data_source_tc_mongodb_zone_config.go +++ b/tencentcloud/data_source_tc_mongodb_zone_config.go @@ -1,14 +1,3 @@ -/* -Use this data source to query the available mongodb specifications for different zone. - -Example Usage - -```hcl -data "tencentcloud_mongodb_zone_config" "mongodb" { - available_zone = "ap-guangzhou-2" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_all_namespaces.go b/tencentcloud/data_source_tc_monitor_alarm_all_namespaces.go index 4e06ae50b5..caec3f2a0f 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_all_namespaces.go +++ b/tencentcloud/data_source_tc_monitor_alarm_all_namespaces.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_all_namespaces - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_all_namespaces" "alarm_all_namespaces" { - scene_type = "ST_ALARM" - module = "monitor" - monitor_types = ["MT_QCE"] - ids = ["qaap_tunnel_l4_listeners"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_basic_alarms.go b/tencentcloud/data_source_tc_monitor_alarm_basic_alarms.go index ba16417da8..eabf84f247 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_basic_alarms.go +++ b/tencentcloud/data_source_tc_monitor_alarm_basic_alarms.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of monitor basic_alarms - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_basic_alarms" "alarms" { - module = "monitor" - start_time = 1696990903 - end_time = 1697098903 - occur_time_order = "DESC" - project_ids = [0] - view_names = ["cvm_device"] - alarm_status = [1] - instance_group_ids = [5497073] - metric_names = ["cpu_usage"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_basic_metric.go b/tencentcloud/data_source_tc_monitor_alarm_basic_metric.go index d59a871cc6..00e872a6da 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_basic_metric.go +++ b/tencentcloud/data_source_tc_monitor_alarm_basic_metric.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of monitor basic_metric - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_basic_metric" "alarm_metric" { - namespace = "qce/cvm" - metric_name = "WanOuttraffic" - dimensions = ["uuid"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_conditions_template.go b/tencentcloud/data_source_tc_monitor_alarm_conditions_template.go index e827f9475f..6ab3b70657 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_conditions_template.go +++ b/tencentcloud/data_source_tc_monitor_alarm_conditions_template.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_conditions_template - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_conditions_template" "alarm_conditions_template" { - module = "monitor" - view_name = "cvm_device" - group_name = "keep-template" - group_id = "7803070" - update_time_order = "desc=descending" - policy_count_order = "asc=ascending" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_history.go b/tencentcloud/data_source_tc_monitor_alarm_history.go index 3091485a78..a952127b98 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_history.go +++ b/tencentcloud/data_source_tc_monitor_alarm_history.go @@ -1,26 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_history - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_history" "alarm_history" { - module = "monitor" - order = "DESC" - start_time = 1696608000 - end_time = 1697212799 - monitor_types = ["MT_QCE"] - project_ids = [0] - namespaces { - monitor_type = "CpuUsage" - namespace = "cvm_device" - } - policy_name = "terraform_test" - content = "CPU利用率 > 3%" - policy_ids = ["policy-iejtp4ue"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_metric.go b/tencentcloud/data_source_tc_monitor_alarm_metric.go index f55e54e55a..280550d43e 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_metric.go +++ b/tencentcloud/data_source_tc_monitor_alarm_metric.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_metric - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_metric" "alarm_metric" { - module = "monitor" - monitor_type = "Monitoring" - namespace = "cvm_device" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_monitor_type.go b/tencentcloud/data_source_tc_monitor_alarm_monitor_type.go index 7a41b998ab..b5765eeb6f 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_monitor_type.go +++ b/tencentcloud/data_source_tc_monitor_alarm_monitor_type.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_monitor_type - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_monitor_type" "alarm_monitor_type" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_notice_callbacks.go b/tencentcloud/data_source_tc_monitor_alarm_notice_callbacks.go index 1fdd5bfb88..c5e994573d 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_notice_callbacks.go +++ b/tencentcloud/data_source_tc_monitor_alarm_notice_callbacks.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_notice_callbacks - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_notice_callbacks" "alarm_notice_callbacks" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_notices.go b/tencentcloud/data_source_tc_monitor_alarm_notices.go index 2eb0bbebff..33a62b2316 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_notices.go +++ b/tencentcloud/data_source_tc_monitor_alarm_notices.go @@ -1,21 +1,3 @@ -/* -Use this data source to Interlude notification list. - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_notices" "notices" { - order = "DESC" - owner_uid = 1 - name = "" - receiver_type = "" - user_ids = [] - group_ids = [] - notice_ids = [] -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_alarm_policy.go b/tencentcloud/data_source_tc_monitor_alarm_policy.go index 42b82da905..d97f35ecae 100644 --- a/tencentcloud/data_source_tc_monitor_alarm_policy.go +++ b/tencentcloud/data_source_tc_monitor_alarm_policy.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of monitor alarm_policy - -Example Usage - -```hcl -data "tencentcloud_monitor_alarm_policy" "alarm_policy" { - module = "monitor" - policy_name = "terraform" - monitor_types = ["MT_QCE"] - namespaces = ["cvm_device"] - project_ids = [0] - notice_ids = ["notice-f2svbu3w"] - rule_types = ["STATIC"] - enable = [1] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_binding_objects.go b/tencentcloud/data_source_tc_monitor_binding_objects.go index 538381856b..ab5504f04e 100644 --- a/tencentcloud/data_source_tc_monitor_binding_objects.go +++ b/tencentcloud/data_source_tc_monitor_binding_objects.go @@ -1,19 +1,3 @@ -/* -Use this data source to query policy group binding objects. - -Example Usage - -```hcl -data "tencentcloud_monitor_policy_groups" "name" { - name = "test" -} - -data "tencentcloud_monitor_binding_objects" "objects" { - group_id = data.tencentcloud_monitor_policy_groups.name.list[0].group_id -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_data.go b/tencentcloud/data_source_tc_monitor_data.go index 20ea61232b..4c9b491099 100644 --- a/tencentcloud/data_source_tc_monitor_data.go +++ b/tencentcloud/data_source_tc_monitor_data.go @@ -1,45 +1,3 @@ -/* -Use this data source to query monitor data. for complex queries, use (https://github.com/tencentyun/tencentcloud-exporter) - -Example Usage - -```hcl -data "tencentcloud_instances" "instances" { -} - -#cvm -data "tencentcloud_monitor_data" "cvm_monitor_data" { - namespace = "QCE/CVM" - metric_name = "CPUUsage" - dimensions { - name = "InstanceId" - value = data.tencentcloud_instances.instances.instance_list[0].instance_id - } - period = 300 - start_time = "2020-04-28T18:45:00+08:00" - end_time = "2020-04-28T19:00:00+08:00" -} - -#cos -data "tencentcloud_monitor_data" "cos_monitor_data" { - namespace = "QCE/COS" - metric_name = "InternetTraffic" - dimensions { - name = "appid" - value = "1258798060" - } - dimensions { - name = "bucket" - value = "test-1258798060" - } - - period = 300 - start_time = "2020-04-28T18:30:00+08:00" - end_time = "2020-04-28T19:00:00+08:00" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_grafana_plugin_overviews.go b/tencentcloud/data_source_tc_monitor_grafana_plugin_overviews.go index ab863ce061..50308c6c12 100644 --- a/tencentcloud/data_source_tc_monitor_grafana_plugin_overviews.go +++ b/tencentcloud/data_source_tc_monitor_grafana_plugin_overviews.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of monitor grafana_plugin_overviews - -Example Usage - -```hcl -data "tencentcloud_monitor_grafana_plugin_overviews" "grafana_plugin_overviews" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_policy_conditions.go b/tencentcloud/data_source_tc_monitor_policy_conditions.go index adbaaba7d7..138fa7edc6 100644 --- a/tencentcloud/data_source_tc_monitor_policy_conditions.go +++ b/tencentcloud/data_source_tc_monitor_policy_conditions.go @@ -1,16 +1,3 @@ -/* -Use this data source to query monitor policy conditions(There is a lot of data and it is recommended to output to a file) - -Example Usage - -```hcl -data "tencentcloud_monitor_policy_conditions" "monitor_policy_conditions" { - name = "Cloud Virtual Machine" - result_output_file = "./tencentcloud_monitor_policy_conditions.txt" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_policy_groups.go b/tencentcloud/data_source_tc_monitor_policy_groups.go index 37105158c3..8339a108fd 100644 --- a/tencentcloud/data_source_tc_monitor_policy_groups.go +++ b/tencentcloud/data_source_tc_monitor_policy_groups.go @@ -1,19 +1,3 @@ -/* -Use this data source to query monitor policy groups (There is a lot of data and it is recommended to output to a file) - -Example Usage - -```hcl -data "tencentcloud_monitor_policy_groups" "groups" { - policy_view_names = ["REDIS-CLUSTER", "cvm_device"] -} - -data "tencentcloud_monitor_policy_groups" "name" { - name = "test" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_product_event.go b/tencentcloud/data_source_tc_monitor_product_event.go index 3fb78e403f..81cbf8e5fc 100644 --- a/tencentcloud/data_source_tc_monitor_product_event.go +++ b/tencentcloud/data_source_tc_monitor_product_event.go @@ -1,17 +1,3 @@ -/* -Use this data source to query monitor events(There is a lot of data and it is recommended to output to a file) - -Example Usage - -```hcl -data "tencentcloud_monitor_product_event" "cvm_event_data" { - start_time = 1588700283 - is_alarm_config = 0 - product_name = ["cvm"] -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_product_namespace.go b/tencentcloud/data_source_tc_monitor_product_namespace.go index bb577ed9bf..35a3fb3b98 100644 --- a/tencentcloud/data_source_tc_monitor_product_namespace.go +++ b/tencentcloud/data_source_tc_monitor_product_namespace.go @@ -1,15 +1,3 @@ -/* -Use this data source to query product namespace in monitor) - -Example Usage - -```hcl -data "tencentcloud_monitor_product_namespace" "instances" { - name = "Redis" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_monitor_tmp_regions.go b/tencentcloud/data_source_tc_monitor_tmp_regions.go index e22fcfe114..13ccf09dfc 100644 --- a/tencentcloud/data_source_tc_monitor_tmp_regions.go +++ b/tencentcloud/data_source_tc_monitor_tmp_regions.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of monitor tmp_regions - -Example Usage - -```hcl -data "tencentcloud_monitor_tmp_regions" "tmp_regions" { - pay_mode = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mps_media_meta_data.go b/tencentcloud/data_source_tc_mps_media_meta_data.go index dd5f693514..069663da4e 100644 --- a/tencentcloud/data_source_tc_mps_media_meta_data.go +++ b/tencentcloud/data_source_tc_mps_media_meta_data.go @@ -1,28 +1,3 @@ -/* -Use this data source to query detailed information of mps media_meta_data - -Example Usage - -Query the mps media meta data through COS - -```hcl -data "tencentcloud_cos_bucket_object" "object" { - bucket = "keep-bucket-${local.app_id}" - key = "/mps-test/test.mov" -} - -data "tencentcloud_mps_media_meta_data" "metadata" { - input_info { - type = "COS" - cos_input_info { - bucket = data.tencentcloud_cos_bucket_object.object.bucket - region = "%s" - object = data.tencentcloud_cos_bucket_object.object.key - } - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mps_parse_live_stream_process_notification.go b/tencentcloud/data_source_tc_mps_parse_live_stream_process_notification.go index ddcd34a97a..f36489a3c0 100644 --- a/tencentcloud/data_source_tc_mps_parse_live_stream_process_notification.go +++ b/tencentcloud/data_source_tc_mps_parse_live_stream_process_notification.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mps parse_live_stream_process_notification - -Example Usage - -```hcl -data "tencentcloud_mps_parse_live_stream_process_notification" "parse_live_stream_process_notification" { - content = "your_content" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mps_parse_notification.go b/tencentcloud/data_source_tc_mps_parse_notification.go index 3f6b805c22..827582e2c8 100644 --- a/tencentcloud/data_source_tc_mps_parse_notification.go +++ b/tencentcloud/data_source_tc_mps_parse_notification.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mps parse_notification - -Example Usage - -```hcl -data "tencentcloud_mps_parse_notification" "parse_notification" { - content = "your_content" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mps_schedules.go b/tencentcloud/data_source_tc_mps_schedules.go index 7f6226e694..2fe3866f92 100644 --- a/tencentcloud/data_source_tc_mps_schedules.go +++ b/tencentcloud/data_source_tc_mps_schedules.go @@ -1,27 +1,3 @@ -/* -Use this data source to query detailed information of mps schedules - -Example Usage - -Query the enabled schedules. - -```hcl -data "tencentcloud_mps_schedules" "schedules" { - status = "Enabled" -} -``` - -Query the specified one. - -```hcl -data "tencentcloud_mps_schedules" "schedules" { - schedule_ids = [%d] - trigger_type = "CosFileUpload" - status = "Enabled" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mps_tasks.go b/tencentcloud/data_source_tc_mps_tasks.go index 3febfbda9a..e391e614a4 100644 --- a/tencentcloud/data_source_tc_mps_tasks.go +++ b/tencentcloud/data_source_tc_mps_tasks.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mps tasks - -Example Usage - -```hcl -data "tencentcloud_mps_tasks" "tasks" { - status = "FINISH" - limit = 20 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_backup_list.go b/tencentcloud/data_source_tc_mysql_backup_list.go index ef9c48b322..281405dada 100644 --- a/tencentcloud/data_source_tc_mysql_backup_list.go +++ b/tencentcloud/data_source_tc_mysql_backup_list.go @@ -1,16 +1,3 @@ -/* -Use this data source to query the list of backup databases. - -Example Usage - -```hcl -data "tencentcloud_mysql_backup_list" "default" { - mysql_id = "terraform-test-local-database" - max_number = 10 - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_backup_overview.go b/tencentcloud/data_source_tc_mysql_backup_overview.go index b259419a5e..11eb7a1755 100644 --- a/tencentcloud/data_source_tc_mysql_backup_overview.go +++ b/tencentcloud/data_source_tc_mysql_backup_overview.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql backup_overview - -Example Usage - -```hcl -data "tencentcloud_mysql_backup_overview" "backup_overview" { - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_backup_summaries.go b/tencentcloud/data_source_tc_mysql_backup_summaries.go index 0d30242d9a..3266397c9b 100644 --- a/tencentcloud/data_source_tc_mysql_backup_summaries.go +++ b/tencentcloud/data_source_tc_mysql_backup_summaries.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of mysql backup_summaries - -Example Usage - -```hcl -data "tencentcloud_mysql_backup_summaries" "backup_summaries" { - product = "mysql" - order_by = "BackupVolume" - order_direction = "ASC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_bin_log.go b/tencentcloud/data_source_tc_mysql_bin_log.go index db69910a2e..4c98f5eb76 100644 --- a/tencentcloud/data_source_tc_mysql_bin_log.go +++ b/tencentcloud/data_source_tc_mysql_bin_log.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql bin_log - -Example Usage - -```hcl -data "tencentcloud_mysql_bin_log" "bin_log" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_binlog_backup_overview.go b/tencentcloud/data_source_tc_mysql_binlog_backup_overview.go index 60a02c7fc5..09f8c99fa6 100644 --- a/tencentcloud/data_source_tc_mysql_binlog_backup_overview.go +++ b/tencentcloud/data_source_tc_mysql_binlog_backup_overview.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql binlog_backup_overview - -Example Usage - -```hcl -data "tencentcloud_mysql_binlog_backup_overview" "binlog_backup_overview" { - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_clone_list.go b/tencentcloud/data_source_tc_mysql_clone_list.go index 768deaf40e..eeb933a7c2 100644 --- a/tencentcloud/data_source_tc_mysql_clone_list.go +++ b/tencentcloud/data_source_tc_mysql_clone_list.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql clone_list - -Example Usage - -```hcl -data "tencentcloud_mysql_clone_list" "clone_list" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_data_backup_overview.go b/tencentcloud/data_source_tc_mysql_data_backup_overview.go index c190d4a514..fdf19a7ecc 100644 --- a/tencentcloud/data_source_tc_mysql_data_backup_overview.go +++ b/tencentcloud/data_source_tc_mysql_data_backup_overview.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql data_backup_overview - -Example Usage - -```hcl -data "tencentcloud_mysql_data_backup_overview" "data_backup_overview" { - product = "mysql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_databases.go b/tencentcloud/data_source_tc_mysql_databases.go index aa78f1af14..6dc1c16e4b 100644 --- a/tencentcloud/data_source_tc_mysql_databases.go +++ b/tencentcloud/data_source_tc_mysql_databases.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mysql databases - -Example Usage - -```hcl -data "tencentcloud_mysql_databases" "databases" { - instance_id = "cdb-c1nl9rpv" - database_regexp = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_db_features.go b/tencentcloud/data_source_tc_mysql_db_features.go index f2467209bd..31499048d5 100644 --- a/tencentcloud/data_source_tc_mysql_db_features.go +++ b/tencentcloud/data_source_tc_mysql_db_features.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql db_features - -Example Usage - -```hcl -data "tencentcloud_mysql_db_features" "db_features" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_default_params.go b/tencentcloud/data_source_tc_mysql_default_params.go index ac971c4185..81be7165c3 100644 --- a/tencentcloud/data_source_tc_mysql_default_params.go +++ b/tencentcloud/data_source_tc_mysql_default_params.go @@ -1,16 +1,3 @@ -/* -Provide a datasource to query default mysql parameters. - -Example Usage - -```hcl -resource "tencentcloud_mysql_default_params" "mysql_57" { - db_version = "5.7" -} -``` - - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_error_log.go b/tencentcloud/data_source_tc_mysql_error_log.go index abde376402..71dd630a28 100644 --- a/tencentcloud/data_source_tc_mysql_error_log.go +++ b/tencentcloud/data_source_tc_mysql_error_log.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of mysql error_log - -Example Usage - -```hcl -data "tencentcloud_mysql_error_log" "error_log" { - instance_id = "cdb-fitq5t9h" - start_time = 1683538307 - end_time = 1686043908 - key_words = ["Shutting"] - inst_type = "slave" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_inst_tables.go b/tencentcloud/data_source_tc_mysql_inst_tables.go index 0401d499a3..470ad529fc 100644 --- a/tencentcloud/data_source_tc_mysql_inst_tables.go +++ b/tencentcloud/data_source_tc_mysql_inst_tables.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of mysql inst_tables - -Example Usage - -```hcl -data "tencentcloud_mysql_inst_tables" "inst_tables" { - instance_id = "cdb-fitq5t9h" - database = "tf_ci_test" - # table_regexp = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_instance.go b/tencentcloud/data_source_tc_mysql_instance.go index bbeb5fe349..00d918115e 100644 --- a/tencentcloud/data_source_tc_mysql_instance.go +++ b/tencentcloud/data_source_tc_mysql_instance.go @@ -1,14 +1,3 @@ -/* -Use this data source to get information about a MySQL instance. - -Example Usage - -```hcl -data "tencentcloud_mysql_instance" "mysql" { - mysql_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_instance_charset.go b/tencentcloud/data_source_tc_mysql_instance_charset.go index 01a734680b..9bd58ec421 100644 --- a/tencentcloud/data_source_tc_mysql_instance_charset.go +++ b/tencentcloud/data_source_tc_mysql_instance_charset.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql instance_charset - -Example Usage - -```hcl -data "tencentcloud_mysql_instance_charset" "instance_charset" { - instance_id = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_instance_info.go b/tencentcloud/data_source_tc_mysql_instance_info.go index daa81e60e8..0ef79598db 100644 --- a/tencentcloud/data_source_tc_mysql_instance_info.go +++ b/tencentcloud/data_source_tc_mysql_instance_info.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql instance_info - -Example Usage - -```hcl -data "tencentcloud_mysql_instance_info" "instance_info" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_instance_param_record.go b/tencentcloud/data_source_tc_mysql_instance_param_record.go index 53d18caa27..a91e82d58d 100644 --- a/tencentcloud/data_source_tc_mysql_instance_param_record.go +++ b/tencentcloud/data_source_tc_mysql_instance_param_record.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql instance_param_record - -Example Usage - -```hcl -data "tencentcloud_mysql_instance_param_record" "instance_param_record" { - instance_id = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_instance_reboot_time.go b/tencentcloud/data_source_tc_mysql_instance_reboot_time.go index 538dd1c68c..730279ffb7 100644 --- a/tencentcloud/data_source_tc_mysql_instance_reboot_time.go +++ b/tencentcloud/data_source_tc_mysql_instance_reboot_time.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql instance_reboot_time - -Example Usage - -```hcl -data "tencentcloud_mysql_instance_reboot_time" "instance_reboot_time" { - instance_ids = ["cdb-fitq5t9h"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_parameter_list.go b/tencentcloud/data_source_tc_mysql_parameter_list.go index c0e3a19587..8278f994a7 100644 --- a/tencentcloud/data_source_tc_mysql_parameter_list.go +++ b/tencentcloud/data_source_tc_mysql_parameter_list.go @@ -1,16 +1,3 @@ -/* -Use this data source to get information about a parameter group of a database instance. - -Example Usage - -```hcl -data "tencentcloud_mysql_parameter_list" "mysql" { - mysql_id = "terraform-test-local-database" - engine_version = "5.5" - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_project_security_group.go b/tencentcloud/data_source_tc_mysql_project_security_group.go index 58d4d1a8d2..d4f3fe890a 100644 --- a/tencentcloud/data_source_tc_mysql_project_security_group.go +++ b/tencentcloud/data_source_tc_mysql_project_security_group.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql project_security_group - -Example Usage - -```hcl -data "tencentcloud_mysql_project_security_group" "project_security_group" { - project_id = 1250480 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_ro_min_scale.go b/tencentcloud/data_source_tc_mysql_ro_min_scale.go index 445ed2ac3f..e70c9ba9c8 100644 --- a/tencentcloud/data_source_tc_mysql_ro_min_scale.go +++ b/tencentcloud/data_source_tc_mysql_ro_min_scale.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of mysql ro_min_scale - -Example Usage - -```hcl -data "tencentcloud_mysql_ro_min_scale" "ro_min_scale" { - # ro_instance_id = "" - master_instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_rollback_range_time.go b/tencentcloud/data_source_tc_mysql_rollback_range_time.go index 1dd78da8fd..70c1a88f4a 100644 --- a/tencentcloud/data_source_tc_mysql_rollback_range_time.go +++ b/tencentcloud/data_source_tc_mysql_rollback_range_time.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql rollback_range_time - -Example Usage - -```hcl -data "tencentcloud_mysql_rollback_range_time" "rollback_range_time" { - instance_ids = ["cdb-fitq5t9h"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_slow_log.go b/tencentcloud/data_source_tc_mysql_slow_log.go index ef58a0a8d6..ad10797fdb 100644 --- a/tencentcloud/data_source_tc_mysql_slow_log.go +++ b/tencentcloud/data_source_tc_mysql_slow_log.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql slow_log - -Example Usage - -```hcl -data "tencentcloud_mysql_slow_log" "slow_log" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_slow_log_data.go b/tencentcloud/data_source_tc_mysql_slow_log_data.go index 22b91a9d6b..bfae522d09 100644 --- a/tencentcloud/data_source_tc_mysql_slow_log_data.go +++ b/tencentcloud/data_source_tc_mysql_slow_log_data.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of mysql slow_log_data - -Example Usage - -```hcl -data "tencentcloud_mysql_slow_log_data" "slow_log_data" { - instance_id = "cdb-fitq5t9h" - start_time = 1682664459 - end_time = 1684392459 - user_hosts = ["169.254.128.158"] - user_names = ["keep_dts"] - data_bases = ["tf_ci_test"] - sort_by = "Timestamp" - order_by = "ASC" - inst_type = "slave" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_supported_privileges.go b/tencentcloud/data_source_tc_mysql_supported_privileges.go index c3023c51b0..a53cd35ac4 100644 --- a/tencentcloud/data_source_tc_mysql_supported_privileges.go +++ b/tencentcloud/data_source_tc_mysql_supported_privileges.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql supported_privileges - -Example Usage - -```hcl -data "tencentcloud_mysql_supported_privileges" "supported_privileges" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_switch_record.go b/tencentcloud/data_source_tc_mysql_switch_record.go index 34e3c9b199..e362cccfa2 100644 --- a/tencentcloud/data_source_tc_mysql_switch_record.go +++ b/tencentcloud/data_source_tc_mysql_switch_record.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of mysql switch_record - -Example Usage - -```hcl -data "tencentcloud_mysql_switch_record" "switch_record" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_user_task.go b/tencentcloud/data_source_tc_mysql_user_task.go index 10a54a33e4..5e2a3c7c72 100644 --- a/tencentcloud/data_source_tc_mysql_user_task.go +++ b/tencentcloud/data_source_tc_mysql_user_task.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of mysql user_task - -Example Usage - -```hcl -data "tencentcloud_mysql_user_task" "user_task" { - instance_id = "cdb-fitq5t9h" - async_request_id = "f2fe828c-773af816-0a08f542-94bb2a9c" - task_types = [5] - task_status = [2] - start_time_begin = "2017-12-31 10:40:01" - start_time_end = "2017-12-31 10:40:01" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_mysql_zone_config.go b/tencentcloud/data_source_tc_mysql_zone_config.go index ad44a282f0..dfc3caec12 100644 --- a/tencentcloud/data_source_tc_mysql_zone_config.go +++ b/tencentcloud/data_source_tc_mysql_zone_config.go @@ -1,15 +1,3 @@ -/* -Use this data source to query the available database specifications for different regions. And a maximum of 20 requests can be initiated per second for this query. - -Example Usage - -```hcl -data "tencentcloud_mysql_zone_config" "mysql" { - region = "ap-guangzhou" - result_output_file = "mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_nat_dc_route.go b/tencentcloud/data_source_tc_nat_dc_route.go index e148b27b58..60395b3534 100644 --- a/tencentcloud/data_source_tc_nat_dc_route.go +++ b/tencentcloud/data_source_tc_nat_dc_route.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of vpc nat_dc_route - -Example Usage - -```hcl -data "tencentcloud_nat_dc_route" "nat_dc_route" { - nat_gateway_id = "nat-gnxkey2e" - vpc_id = "vpc-pyyv5k3v" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_nat_gateway_snats.go b/tencentcloud/data_source_tc_nat_gateway_snats.go index 704bb0fecd..25daf0adbf 100644 --- a/tencentcloud/data_source_tc_nat_gateway_snats.go +++ b/tencentcloud/data_source_tc_nat_gateway_snats.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of VPN gateways. - -Example Usage - -```hcl -data "tencentcloud_nat_gateway_snats" "snat" { - nat_gateway_id = tencentcloud_nat_gateway.my_nat.id - subnet_id = tencentcloud_nat_gateway_snat.my_subnet.id - public_ip_addr = ["50.29.23.234"] - description = "snat demo" - result_output_file = "./snat.txt" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_nat_gateways.go b/tencentcloud/data_source_tc_nat_gateways.go index 461dc508e9..07aca3f821 100644 --- a/tencentcloud/data_source_tc_nat_gateways.go +++ b/tencentcloud/data_source_tc_nat_gateways.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of NAT gateways. - -Example Usage - -```hcl -data "tencentcloud_nat_gateways" "foo" { - name = "main" - vpc_id = "vpc-xfqag" - id = "nat-xfaq1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_nats.go b/tencentcloud/data_source_tc_nats.go index 5e5d519213..ba4e06ca3c 100644 --- a/tencentcloud/data_source_tc_nats.go +++ b/tencentcloud/data_source_tc_nats.go @@ -1,30 +1,3 @@ -/* -The NATs data source lists a number of NATs resource information owned by an TencentCloud account. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_nat_gateways. - -Example Usage - -```hcl -# Query the NAT gateway by ID -data "tencentcloud_nats" "anat" { - id = "nat-k6ualnp2" -} - -# Query the list of normal NAT gateways -data "tencentcloud_nats" "nat_state" { - state = 0 -} - -# Multi conditional query NAT gateway list -data "tencentcloud_nats" "multi_nat" { - name = "terraform test" - vpc_id = "vpc-ezij4ltv" - max_concurrent = 3000000 - bandwidth = 500 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_check_savepoint.go b/tencentcloud/data_source_tc_oceanus_check_savepoint.go index 3bffe81651..631b9a7c59 100644 --- a/tencentcloud/data_source_tc_oceanus_check_savepoint.go +++ b/tencentcloud/data_source_tc_oceanus_check_savepoint.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of oceanus check_savepoint - -Example Usage - -```hcl -data "tencentcloud_oceanus_check_savepoint" "example" { - job_id = "cql-314rw6w0" - serial_id = "svp-52xkpymp" - record_type = 1 - savepoint_path = "cosn://52xkpymp-12345/12345/10000/cql-12345/2/flink-savepoints/savepoint-000000-12334" - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_clusters.go b/tencentcloud/data_source_tc_oceanus_clusters.go index 9cc66e4768..cd0dd9cfe7 100644 --- a/tencentcloud/data_source_tc_oceanus_clusters.go +++ b/tencentcloud/data_source_tc_oceanus_clusters.go @@ -1,28 +1,3 @@ -/* -Use this data source to query detailed information of oceanus clusters - -Example Usage - -Query all clusters - -```hcl -data "tencentcloud_oceanus_clusters" "example" {} -``` - -Query the specified cluster - -```hcl -data "tencentcloud_oceanus_clusters" "example" { - cluster_ids = ["cluster-5c42n3a5"] - order_type = 1 - filters { - name = "name" - values = ["tf_example"] - } - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_job_submission_log.go b/tencentcloud/data_source_tc_oceanus_job_submission_log.go index 9fcde9f35b..896c9b5102 100644 --- a/tencentcloud/data_source_tc_oceanus_job_submission_log.go +++ b/tencentcloud/data_source_tc_oceanus_job_submission_log.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of oceanus job_submission_log - -Example Usage - -```hcl -data "tencentcloud_oceanus_job_submission_log" "example" { - job_id = "cql-314rw6w0" - start_time = 1696130964345 - end_time = 1698118169241 - running_order_id = 0 - order_type = "desc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_resource_related_job.go b/tencentcloud/data_source_tc_oceanus_resource_related_job.go index f537a33ec7..2d5706c9a5 100644 --- a/tencentcloud/data_source_tc_oceanus_resource_related_job.go +++ b/tencentcloud/data_source_tc_oceanus_resource_related_job.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of oceanus resource_related_job - -Example Usage - -```hcl -data "tencentcloud_oceanus_resource_related_job" "example" { - resource_id = "resource-8y9lzcuz" - desc_by_job_config_create_time = 0 - resource_config_version = 1 - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_savepoint_list.go b/tencentcloud/data_source_tc_oceanus_savepoint_list.go index 90b7f00963..9c2949372f 100644 --- a/tencentcloud/data_source_tc_oceanus_savepoint_list.go +++ b/tencentcloud/data_source_tc_oceanus_savepoint_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of oceanus savepoint_list - -Example Usage - -```hcl -data "tencentcloud_oceanus_savepoint_list" "example" { - job_id = "cql-314rw6w0" - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_system_resource.go b/tencentcloud/data_source_tc_oceanus_system_resource.go index 281b70e4bc..a4ea0b9339 100644 --- a/tencentcloud/data_source_tc_oceanus_system_resource.go +++ b/tencentcloud/data_source_tc_oceanus_system_resource.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of oceanus system_resource - -Example Usage - -```hcl -data "tencentcloud_oceanus_system_resource" "example" { - resource_ids = ["resource-abd503yt"] - filters { - name = "Name" - values = ["tf_example"] - } - cluster_id = "cluster-n8yaia0p" - flink_version = "Flink-1.11" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_tree_jobs.go b/tencentcloud/data_source_tc_oceanus_tree_jobs.go index 4f31bbf60d..e92da43f8a 100644 --- a/tencentcloud/data_source_tc_oceanus_tree_jobs.go +++ b/tencentcloud/data_source_tc_oceanus_tree_jobs.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of oceanus tree_jobs - -Example Usage - -```hcl -data "tencentcloud_oceanus_tree_jobs" "example" { - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_tree_resources.go b/tencentcloud/data_source_tc_oceanus_tree_resources.go index 187ee2c18a..a8bb86aed0 100644 --- a/tencentcloud/data_source_tc_oceanus_tree_resources.go +++ b/tencentcloud/data_source_tc_oceanus_tree_resources.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of oceanus tree_resources - -Example Usage - -```hcl -data "tencentcloud_oceanus_tree_resources" "example" { - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_oceanus_work_spaces.go b/tencentcloud/data_source_tc_oceanus_work_spaces.go index 1417e0d142..0888421c45 100644 --- a/tencentcloud/data_source_tc_oceanus_work_spaces.go +++ b/tencentcloud/data_source_tc_oceanus_work_spaces.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of oceanus work_spaces - -Example Usage - -```hcl -data "tencentcloud_oceanus_work_spaces" "example" { - order_type = 1 - filters { - name = "WorkSpaceName" - values = ["tf_example"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_organization_members.go b/tencentcloud/data_source_tc_organization_members.go index 936bdae8ea..60eaf37582 100644 --- a/tencentcloud/data_source_tc_organization_members.go +++ b/tencentcloud/data_source_tc_organization_members.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of organization members - -Example Usage - -```hcl -data "tencentcloud_organization_members" "members" {} -``` -*/ package tencentcloud import ( @@ -15,6 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" organization "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/organization/v20210331" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" ) diff --git a/tencentcloud/data_source_tc_organization_org_auth_node.go b/tencentcloud/data_source_tc_organization_org_auth_node.go index 3b787e2e32..5b900ae110 100644 --- a/tencentcloud/data_source_tc_organization_org_auth_node.go +++ b/tencentcloud/data_source_tc_organization_org_auth_node.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of organization org_auth_node - -Example Usage - -```hcl -data "tencentcloud_organization_org_auth_node" "org_auth_node" { - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_organization_org_financial_by_member.go b/tencentcloud/data_source_tc_organization_org_financial_by_member.go index bcd2342322..23d6e959f2 100644 --- a/tencentcloud/data_source_tc_organization_org_financial_by_member.go +++ b/tencentcloud/data_source_tc_organization_org_financial_by_member.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of organization org_financial_by_member - -Example Usage - -```hcl -data "tencentcloud_organization_org_financial_by_member" "org_financial_by_member" { - month = "2023-05" - end_month = "2023-10" - member_uins = [100015591986,100029796005] - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_organization_org_financial_by_month.go b/tencentcloud/data_source_tc_organization_org_financial_by_month.go index aabd22df61..d6ded22ffb 100644 --- a/tencentcloud/data_source_tc_organization_org_financial_by_month.go +++ b/tencentcloud/data_source_tc_organization_org_financial_by_month.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of organization org_financial_by_month - -Example Usage - -```hcl - -data "tencentcloud_organization_org_financial_by_month" "org_financial_by_month" { - end_month = "2023-05" - member_uins = [100026517717] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_organization_org_financial_by_product.go b/tencentcloud/data_source_tc_organization_org_financial_by_product.go index eda39c2570..f2ea7146e1 100644 --- a/tencentcloud/data_source_tc_organization_org_financial_by_product.go +++ b/tencentcloud/data_source_tc_organization_org_financial_by_product.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of organization org_financial_by_product - -Example Usage - -```hcl - -data "tencentcloud_organization_org_financial_by_product" "org_financial_by_product" { - month = "2023-05" - end_month = "2023-09" - product_codes = ["p_eip"] - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_placement_groups.go b/tencentcloud/data_source_tc_placement_groups.go index fa11037a95..946f20518e 100644 --- a/tencentcloud/data_source_tc_placement_groups.go +++ b/tencentcloud/data_source_tc_placement_groups.go @@ -1,15 +1,3 @@ -/* -Use this data source to query placement groups. - -Example Usage - -```hcl -data "tencentcloud_placement_groups" "foo" { - placement_group_id = "ps-21q9ibvr" - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_backup_download_urls.go b/tencentcloud/data_source_tc_postgresql_backup_download_urls.go index 8c83e9685e..1798a6c9df 100644 --- a/tencentcloud/data_source_tc_postgresql_backup_download_urls.go +++ b/tencentcloud/data_source_tc_postgresql_backup_download_urls.go @@ -1,36 +1,3 @@ -/* -Use this data source to query detailed information of postgresql backup_download_urls - -Example Usage - -```hcl -data "tencentcloud_postgresql_log_backups" "log_backups" { - min_finish_time = "%s" - max_finish_time = "%s" - filters { - name = "db-instance-id" - values = [local.pgsql_id] - } - order_by = "StartTime" - order_by_type = "desc" - - } - -data "tencentcloud_postgresql_backup_download_urls" "backup_download_urls" { - db_instance_id = local.pgsql_id - backup_type = "LogBackup" - backup_id = data.tencentcloud_postgresql_log_backups.log_backups.log_backup_set.0.id - url_expire_time = 12 - backup_download_restriction { - restriction_type = "NONE" - vpc_restriction_effect = "ALLOW" - vpc_id_set = [local.vpc_id] - ip_restriction_effect = "ALLOW" - ip_set = ["0.0.0.0"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_base_backups.go b/tencentcloud/data_source_tc_postgresql_base_backups.go index 4ac8cf2596..e10b3d01c1 100644 --- a/tencentcloud/data_source_tc_postgresql_base_backups.go +++ b/tencentcloud/data_source_tc_postgresql_base_backups.go @@ -1,28 +1,3 @@ -/* -Use this data source to query detailed information of postgresql base_backups - -Example Usage - -```hcl -data "tencentcloud_postgresql_base_backups" "base_backups" { - min_finish_time = "%s" - max_finish_time = "%s" - - order_by = "StartTime" - order_by_type = "asc" -} - -data "tencentcloud_postgresql_base_backups" "base_backups" { - filters { - name = "db-instance-id" - values = [local.pgsql_id] - } - - order_by = "Size" - order_by_type = "asc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_db_instance_classes.go b/tencentcloud/data_source_tc_postgresql_db_instance_classes.go index 55e1de2116..20ac716e88 100644 --- a/tencentcloud/data_source_tc_postgresql_db_instance_classes.go +++ b/tencentcloud/data_source_tc_postgresql_db_instance_classes.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of postgresql db_instance_classes - -Example Usage - -```hcl -data "tencentcloud_postgresql_db_instance_classes" "db_instance_classes" { - zone = "ap-guangzhou-7" - db_engine = "postgresql" - db_major_version = "13" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_db_instance_versions.go b/tencentcloud/data_source_tc_postgresql_db_instance_versions.go index 8988cf88c8..4a5c040b98 100644 --- a/tencentcloud/data_source_tc_postgresql_db_instance_versions.go +++ b/tencentcloud/data_source_tc_postgresql_db_instance_versions.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of postgresql db_instance_versions - -Example Usage - -```hcl -data "tencentcloud_postgresql_db_instance_versions" "db_instance_versions" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_default_parameters.go b/tencentcloud/data_source_tc_postgresql_default_parameters.go index 4021f0bc32..99b66d6cd1 100644 --- a/tencentcloud/data_source_tc_postgresql_default_parameters.go +++ b/tencentcloud/data_source_tc_postgresql_default_parameters.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of postgresql default_parameters - -Example Usage - -```hcl -data "tencentcloud_postgresql_default_parameters" "default_parameters" { - db_major_version = "13" - db_engine = "postgresql" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_instances.go b/tencentcloud/data_source_tc_postgresql_instances.go index d273040df2..af808326e3 100644 --- a/tencentcloud/data_source_tc_postgresql_instances.go +++ b/tencentcloud/data_source_tc_postgresql_instances.go @@ -1,22 +1,3 @@ -/* -Use this data source to query postgresql instances - -Example Usage - -```hcl -data "tencentcloud_postgresql_instances" "name" { - name = "test" -} - -data "tencentcloud_postgresql_instances" "project" { - project_id = 0 -} - -data "tencentcloud_postgresql_instances" "id" { - id = "postgres-h9t4fde1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_log_backups.go b/tencentcloud/data_source_tc_postgresql_log_backups.go index 7af65634e4..d92b2a01e2 100644 --- a/tencentcloud/data_source_tc_postgresql_log_backups.go +++ b/tencentcloud/data_source_tc_postgresql_log_backups.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of postgresql log_backups - -Example Usage - -```hcl -data "tencentcloud_postgresql_log_backups" "log_backups" { - min_finish_time = "%s" - max_finish_time = "%s" - filters { - name = "db-instance-id" - values = [local.pgsql_id] - } - order_by = "StartTime" - order_by_type = "desc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_parameter_templates.go b/tencentcloud/data_source_tc_postgresql_parameter_templates.go index a013004223..8d55a29b24 100644 --- a/tencentcloud/data_source_tc_postgresql_parameter_templates.go +++ b/tencentcloud/data_source_tc_postgresql_parameter_templates.go @@ -1,23 +1,3 @@ -/* -Use this data source to query detailed information of postgresql parameter_templates - -Example Usage - -```hcl -data "tencentcloud_postgresql_parameter_templates" "parameter_templates" { - filters { - name = "TemplateName" - values = ["temp_name"] - } - filters { - name = "DBEngine" - values = ["postgresql"] - } - order_by = "CreateTime" - order_by_type = "desc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_readonly_groups.go b/tencentcloud/data_source_tc_postgresql_readonly_groups.go index 9076d968e1..67710a01ef 100644 --- a/tencentcloud/data_source_tc_postgresql_readonly_groups.go +++ b/tencentcloud/data_source_tc_postgresql_readonly_groups.go @@ -1,32 +1,3 @@ -/* -Use this data source to query detailed information of postgresql read_only_groups - -Example Usage - -```hcl -resource "tencentcloud_postgresql_readonly_group" "group" { - master_db_instance_id = "postgres-gzg9jb2n" - name = "test-datasource" - project_id = 0 - vpc_id = "vpc-86v957zb" - subnet_id = "subnet-enm92y0m" - replay_lag_eliminate = 1 - replay_latency_eliminate = 1 - max_replay_lag = 100 - max_replay_latency = 512 - min_delay_eliminate_reserve = 1 -} - -data "tencentcloud_postgresql_readonly_groups" "read_only_groups" { - filters { - name = "db-master-instance-id" - values = [tencentcloud_postgresql_readonly_group.group.master_db_instance_id] - } - order_by = "CreateTime" - order_by_type = "asc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_recovery_time.go b/tencentcloud/data_source_tc_postgresql_recovery_time.go index 13bc99a267..0b1a9dd782 100644 --- a/tencentcloud/data_source_tc_postgresql_recovery_time.go +++ b/tencentcloud/data_source_tc_postgresql_recovery_time.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of postgresql recovery_time - -Example Usage - -```hcl -data "tencentcloud_postgresql_recovery_time" "recovery_time" { - db_instance_id = local.pgsql_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_regions.go b/tencentcloud/data_source_tc_postgresql_regions.go index f3c409d175..af78f31a8e 100644 --- a/tencentcloud/data_source_tc_postgresql_regions.go +++ b/tencentcloud/data_source_tc_postgresql_regions.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of postgresql regions - -Example Usage - -```hcl -data "tencentcloud_postgresql_regions" "regions" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_specinfos.go b/tencentcloud/data_source_tc_postgresql_specinfos.go index 482846edfc..90129f8450 100644 --- a/tencentcloud/data_source_tc_postgresql_specinfos.go +++ b/tencentcloud/data_source_tc_postgresql_specinfos.go @@ -1,14 +1,3 @@ -/* -Use this data source to get the available product configs of the postgresql instance. - -Example Usage - -```hcl -data "tencentcloud_postgresql_specinfos" "foo" { - availability_zone = "ap-shanghai-2" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_xlogs.go b/tencentcloud/data_source_tc_postgresql_xlogs.go index d13c7202fc..9116d21d83 100644 --- a/tencentcloud/data_source_tc_postgresql_xlogs.go +++ b/tencentcloud/data_source_tc_postgresql_xlogs.go @@ -1,18 +1,3 @@ -/* -Provide a datasource to query PostgreSQL Xlogs. - -Example Usage - -```hcl -data "tencentcloud_postgresql_xlogs" "foo" { - instance_id = "postgres-xxxxxxxx" - start_time = "2022-01-01 00:00:00" - end_time = "2022-01-07 01:02:03" -} -``` - - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_postgresql_zones.go b/tencentcloud/data_source_tc_postgresql_zones.go index 01ad5eeeca..584f2e6aae 100644 --- a/tencentcloud/data_source_tc_postgresql_zones.go +++ b/tencentcloud/data_source_tc_postgresql_zones.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of postgresql zones - -Example Usage - -```hcl -data "tencentcloud_postgresql_zones" "zones" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_private_dns_records.go b/tencentcloud/data_source_tc_private_dns_records.go index 9c9e106f0a..3977634f59 100644 --- a/tencentcloud/data_source_tc_private_dns_records.go +++ b/tencentcloud/data_source_tc_private_dns_records.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of private dns records - -Example Usage - -```hcl -data "tencentcloud_private_dns_records" "private_dns_record" { - zone_id = "zone-xxxxxx" - filters { - name = "Value" - values = ["8.8.8.8"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_projects.go b/tencentcloud/data_source_tc_projects.go index f48a387a61..7db5da2737 100644 --- a/tencentcloud/data_source_tc_projects.go +++ b/tencentcloud/data_source_tc_projects.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tag project - -Example Usage - -```hcl -data "tencentcloud_projects" "project" { - all_list = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_protocol_template_groups.go b/tencentcloud/data_source_tc_protocol_template_groups.go index fe153544d9..02f05d575b 100644 --- a/tencentcloud/data_source_tc_protocol_template_groups.go +++ b/tencentcloud/data_source_tc_protocol_template_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of protocol template groups. - -Example Usage - -```hcl -data "tencentcloud_protocol_template_groups" "name" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_protocol_templates.go b/tencentcloud/data_source_tc_protocol_templates.go index b76a3a829c..e21f5c4793 100644 --- a/tencentcloud/data_source_tc_protocol_templates.go +++ b/tencentcloud/data_source_tc_protocol_templates.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of protocol templates. - -Example Usage - -```hcl -data "tencentcloud_protocol_templates" "name" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_pts_scenario_with_jobs.go b/tencentcloud/data_source_tc_pts_scenario_with_jobs.go index 4fb594cb64..e1bbabbd28 100644 --- a/tencentcloud/data_source_tc_pts_scenario_with_jobs.go +++ b/tencentcloud/data_source_tc_pts_scenario_with_jobs.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of pts scenario_with_jobs - -Example Usage - -```hcl -data "tencentcloud_pts_scenario_with_jobs" "scenario_with_jobs" { - project_ids = ["project-45vw7v82"] - scenario_ids = ["scenario-koakp3h6"] - scenario_name = "pts-jmeter" - ascend = true - ignore_script = true - ignore_dataset = true - scenario_type = "pts-jmeter" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_backup.go b/tencentcloud/data_source_tc_redis_backup.go index ebf0ec53f6..949a90cd5d 100644 --- a/tencentcloud/data_source_tc_redis_backup.go +++ b/tencentcloud/data_source_tc_redis_backup.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of redis backup - -Example Usage - -```hcl -data "tencentcloud_redis_backup" "backup" { - instance_id = "crs-c1nl9rpv" - begin_time = "2023-04-07 03:57:30" - end_time = "2023-04-07 03:57:56" - status = [2] - instance_name = "Keep-terraform" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_backup_download_info.go b/tencentcloud/data_source_tc_redis_backup_download_info.go index 31901de764..b629ff8788 100644 --- a/tencentcloud/data_source_tc_redis_backup_download_info.go +++ b/tencentcloud/data_source_tc_redis_backup_download_info.go @@ -1,23 +1,3 @@ -/* -Use this data source to query detailed information of redis backup_download_info - -Example Usage - -```hcl -data "tencentcloud_redis_backup_download_info" "backup_download_info" { - instance_id = "crs-iw7d9wdd" - backup_id = "641186639-8362913-1516672770" - # limit_type = "NoLimit" - # vpc_comparison_symbol = "In" - # ip_comparison_symbol = "In" - # limit_vpc { - # region = "ap-guangzhou" - # vpc_list = [""] - # } - # limit_ip = [""] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_instance_node_info.go b/tencentcloud/data_source_tc_redis_instance_node_info.go index 5be708d3f3..cab7e3f83c 100644 --- a/tencentcloud/data_source_tc_redis_instance_node_info.go +++ b/tencentcloud/data_source_tc_redis_instance_node_info.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of redis instance_node_info - -Example Usage - -```hcl -data "tencentcloud_redis_instance_node_info" "instance_node_info" { - instance_id = "crs-c1nl9rpv" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_instance_shards.go b/tencentcloud/data_source_tc_redis_instance_shards.go index 66f951b871..b7df5d4c42 100644 --- a/tencentcloud/data_source_tc_redis_instance_shards.go +++ b/tencentcloud/data_source_tc_redis_instance_shards.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of redis instance_shards - -Example Usage - -```hcl -data "tencentcloud_redis_instance_shards" "instance_shards" { - instance_id = "crs-c1nl9rpv" - filter_slave = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_instance_task_list.go b/tencentcloud/data_source_tc_redis_instance_task_list.go index 3582bbcdc0..1fde39dfd1 100644 --- a/tencentcloud/data_source_tc_redis_instance_task_list.go +++ b/tencentcloud/data_source_tc_redis_instance_task_list.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of redis instance_task_list - -Example Usage - -```hcl -data "tencentcloud_redis_instance_task_list" "instance_task_list" { - instance_id = "crs-c1nl9rpv" - instance_name = "" - project_ids = [""] - task_types = [""] - begin_time = "2021-12-30 00:00:00" - end_time = "2021-12-30 00:00:00" - task_status = [""] - result = [""] - operate_uin = [""] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_instance_zone_info.go b/tencentcloud/data_source_tc_redis_instance_zone_info.go index ba73093be6..c9cf5d566a 100644 --- a/tencentcloud/data_source_tc_redis_instance_zone_info.go +++ b/tencentcloud/data_source_tc_redis_instance_zone_info.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of redis instance_zone_info - -Example Usage - -```hcl -data "tencentcloud_redis_instance_zone_info" "instance_zone_info" { - instance_id = "crs-c1nl9rpv" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_instances.go b/tencentcloud/data_source_tc_redis_instances.go index 945cb7829f..8089d51a8f 100644 --- a/tencentcloud/data_source_tc_redis_instances.go +++ b/tencentcloud/data_source_tc_redis_instances.go @@ -1,18 +1,3 @@ -/* -Use this data source to query the detail information of redis instance. - -Example Usage - -```hcl -data "tencentcloud_redis_instances" "redislab" { - zone = "ap-hongkong-1" - search_key = "myredis" - project_id = 0 - limit = 20 - result_output_file = "/tmp/redis_instances" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_param_records.go b/tencentcloud/data_source_tc_redis_param_records.go index 411d20c157..a9f9582c1c 100644 --- a/tencentcloud/data_source_tc_redis_param_records.go +++ b/tencentcloud/data_source_tc_redis_param_records.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of redis param records - -Example Usage - -```hcl - -data "tencentcloud_redis_param_records" "param_records" { - instance_id = "crs-c1nl9rpv" -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_redis_zone_config.go b/tencentcloud/data_source_tc_redis_zone_config.go index 7348519c45..d1cd2f2cad 100644 --- a/tencentcloud/data_source_tc_redis_zone_config.go +++ b/tencentcloud/data_source_tc_redis_zone_config.go @@ -1,15 +1,3 @@ -/* -Use this data source to query which instance types of Redis are available in a specific region. - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "redislab" { - region = "ap-hongkong" - result_output_file = "/temp/mytestpath" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_reserved_instance_configs.go b/tencentcloud/data_source_tc_reserved_instance_configs.go index 89294cde63..b6c1ef107a 100644 --- a/tencentcloud/data_source_tc_reserved_instance_configs.go +++ b/tencentcloud/data_source_tc_reserved_instance_configs.go @@ -1,14 +1,3 @@ -/* -Use this data source to query reserved instances configuration. - -Example Usage - -```hcl -data "tencentcloud_reserved_instance_configs" "config" { - availability_zone = "na-siliconvalley-1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_reserved_instances.go b/tencentcloud/data_source_tc_reserved_instances.go index 81e1b9a745..1c414f26ef 100644 --- a/tencentcloud/data_source_tc_reserved_instances.go +++ b/tencentcloud/data_source_tc_reserved_instances.go @@ -1,15 +1,3 @@ -/* -Use this data source to query reserved instances. - -Example Usage - -```hcl -data "tencentcloud_reserved_instances" "instances" { - availability_zone = "na-siliconvalley-1" - instance_type = "S2.MEDIUM8" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_route_table.go b/tencentcloud/data_source_tc_route_table.go index 3fe7a9d558..d00f2c425e 100644 --- a/tencentcloud/data_source_tc_route_table.go +++ b/tencentcloud/data_source_tc_route_table.go @@ -1,28 +1,3 @@ -/* -Provides details about a specific Route Table. - -This resource can prove useful when a module accepts a Subnet id as an input variable and needs to, for example, add a route in the Route Table. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_vpc_route_tables. - -Example Usage - -```hcl -variable "route_table_id" {} - -data "tencentcloud_route_table" "selected" { - route_table_id = var.route_table_id -} - -resource "tencentcloud_route_entry" "rtb_entry_instance" { - vpc_id = "{data.tencentcloud_route_table.selected.vpc_id}" - route_table_id = var.route_table_id - cidr_block = "10.4.8.0/24" - next_type = "instance" - next_hub = "10.16.1.7" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_custom_url.go b/tencentcloud/data_source_tc_rum_custom_url.go index 90afb2d11c..2bcee552ae 100644 --- a/tencentcloud/data_source_tc_rum_custom_url.go +++ b/tencentcloud/data_source_tc_rum_custom_url.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum custom_url - -Example Usage - -```hcl -data "tencentcloud_rum_custom_url" "custom_url" { - start_time = 1625444040 - type = "top" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_event_url.go b/tencentcloud/data_source_tc_rum_event_url.go index 22cff0c96f..ff9933745c 100644 --- a/tencentcloud/data_source_tc_rum_event_url.go +++ b/tencentcloud/data_source_tc_rum_event_url.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum event_url - -Example Usage - -```hcl -data "tencentcloud_rum_event_url" "event_url" { - start_time = 1625444040 - type = "allcount" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_fetch_url.go b/tencentcloud/data_source_tc_rum_fetch_url.go index 330008b7dd..b9ac904ac6 100644 --- a/tencentcloud/data_source_tc_rum_fetch_url.go +++ b/tencentcloud/data_source_tc_rum_fetch_url.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum fetch_url - -Example Usage - -```hcl -data "tencentcloud_rum_fetch_url" "fetch_url" { - start_time = 1625444040 - type = "allcount" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_fetch_url_info.go b/tencentcloud/data_source_tc_rum_fetch_url_info.go index defdc1afc3..bedf931acd 100644 --- a/tencentcloud/data_source_tc_rum_fetch_url_info.go +++ b/tencentcloud/data_source_tc_rum_fetch_url_info.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum fetch_url_info - -Example Usage - -```hcl -data "tencentcloud_rum_fetch_url_info" "fetch_url_info" { - start_time = 1625444040 - type = "top" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_group_log.go b/tencentcloud/data_source_tc_rum_group_log.go index 5d5c2166d1..c3d9f85629 100644 --- a/tencentcloud/data_source_tc_rum_group_log.go +++ b/tencentcloud/data_source_tc_rum_group_log.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of rum group_log - -Example Usage - -```hcl -data "tencentcloud_rum_group_log" "group_log" { - order_by = "desc" - start_time = 1625444040000 - query = "id:123 AND type:\"log\"" - end_time = 1625454840000 - project_id = 1 - group_field = "level" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_log_export_list.go b/tencentcloud/data_source_tc_rum_log_export_list.go index be6b4a6087..7a59677773 100644 --- a/tencentcloud/data_source_tc_rum_log_export_list.go +++ b/tencentcloud/data_source_tc_rum_log_export_list.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of rum log_export_list - -Example Usage - -```hcl -data "tencentcloud_rum_log_export_list" "log_export_list" { - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_log_url_statistics.go b/tencentcloud/data_source_tc_rum_log_url_statistics.go index d85e15d820..372e61d2d2 100644 --- a/tencentcloud/data_source_tc_rum_log_url_statistics.go +++ b/tencentcloud/data_source_tc_rum_log_url_statistics.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum log_url_statistics - -Example Usage - -```hcl -data "tencentcloud_rum_log_url_statistics" "log_url_statistics" { - start_time = 1625444040 - type = "analysis" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_offline_log_config.go b/tencentcloud/data_source_tc_rum_offline_log_config.go index 046b35c648..59ad375a43 100644 --- a/tencentcloud/data_source_tc_rum_offline_log_config.go +++ b/tencentcloud/data_source_tc_rum_offline_log_config.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of rum offlineLogConfig - -Example Usage - -```hcl -data "tencentcloud_rum_offline_log_config" "offlineLogConfig" { - project_key = "ZEYrYfvaYQ30jRdmPx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_performance_page.go b/tencentcloud/data_source_tc_rum_performance_page.go index 3a74335628..985218eb68 100644 --- a/tencentcloud/data_source_tc_rum_performance_page.go +++ b/tencentcloud/data_source_tc_rum_performance_page.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of rum performance_page - -Example Usage - -```hcl -data "tencentcloud_rum_performance_page" "performance_page" { - project_id = 1 - start_time = 1625444040 - end_time = 1625454840 - type = "pagepv" - level = "1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_project.go b/tencentcloud/data_source_tc_rum_project.go index 4c83f00132..fd93305249 100644 --- a/tencentcloud/data_source_tc_rum_project.go +++ b/tencentcloud/data_source_tc_rum_project.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of rum project - -Example Usage - -```hcl -data "tencentcloud_rum_project" "project" { - instance_id = "rum-pasZKEI3RLgakj" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_pv_url_info.go b/tencentcloud/data_source_tc_rum_pv_url_info.go index a73d0c7852..e3dc519a97 100644 --- a/tencentcloud/data_source_tc_rum_pv_url_info.go +++ b/tencentcloud/data_source_tc_rum_pv_url_info.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum pv_url_info - -Example Usage - -```hcl -data "tencentcloud_rum_pv_url_info" "pv_url_info" { - start_time = 1625444040 - type = "pagepv" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_pv_url_statistics.go b/tencentcloud/data_source_tc_rum_pv_url_statistics.go index fcd5229543..fe24e14f56 100644 --- a/tencentcloud/data_source_tc_rum_pv_url_statistics.go +++ b/tencentcloud/data_source_tc_rum_pv_url_statistics.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum pv_url_statistics - -Example Usage - -```hcl -data "tencentcloud_rum_pv_url_statistics" "pv_url_statistics" { - start_time = 1625444040 - type = "allcount" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_report_count.go b/tencentcloud/data_source_tc_rum_report_count.go index 222d2be6e7..8b35db7884 100644 --- a/tencentcloud/data_source_tc_rum_report_count.go +++ b/tencentcloud/data_source_tc_rum_report_count.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum report_count - -Example Usage - -```hcl -data "tencentcloud_rum_report_count" "report_count" { - start_time = 1625444040 - end_time = 1625454840 - project_id = 1 - report_type = "log" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_scores.go b/tencentcloud/data_source_tc_rum_scores.go index a7b635925b..9676c83c39 100644 --- a/tencentcloud/data_source_tc_rum_scores.go +++ b/tencentcloud/data_source_tc_rum_scores.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum scores - -Example Usage - -```hcl -data "tencentcloud_rum_scores" "scores" { - end_time = "2023082215" - start_time = "2023082214" - project_id = 1 - is_demo = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_set_url_statistics.go b/tencentcloud/data_source_tc_rum_set_url_statistics.go index 44f65b2474..8adf8aabd9 100644 --- a/tencentcloud/data_source_tc_rum_set_url_statistics.go +++ b/tencentcloud/data_source_tc_rum_set_url_statistics.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum set_url_statistics - -Example Usage - -```hcl -data "tencentcloud_rum_set_url_statistics" "set_url_statistics" { - start_time = 1625444040 - type = "allcount" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_sign.go b/tencentcloud/data_source_tc_rum_sign.go index 0e18b45df2..f82a06fcbd 100644 --- a/tencentcloud/data_source_tc_rum_sign.go +++ b/tencentcloud/data_source_tc_rum_sign.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of rum sign - -Example Usage - -```hcl -data "tencentcloud_rum_sign" "sign" { - timeout = 1800 - file_type = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_static_project.go b/tencentcloud/data_source_tc_rum_static_project.go index 5e600271f4..28f41fdb91 100644 --- a/tencentcloud/data_source_tc_rum_static_project.go +++ b/tencentcloud/data_source_tc_rum_static_project.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum static_project - -Example Usage - -```hcl -data "tencentcloud_rum_static_project" "static_project" { - start_time = 1625444040 - type = "allcount" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_static_resource.go b/tencentcloud/data_source_tc_rum_static_resource.go index 5c63b0a3e5..69dedcb5a4 100644 --- a/tencentcloud/data_source_tc_rum_static_resource.go +++ b/tencentcloud/data_source_tc_rum_static_resource.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum static_resource - -Example Usage - -```hcl -data "tencentcloud_rum_static_resource" "static_resource" { - start_time = 1625444040 - type = "top" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_static_url.go b/tencentcloud/data_source_tc_rum_static_url.go index 5f79596d51..c626e2a1fd 100644 --- a/tencentcloud/data_source_tc_rum_static_url.go +++ b/tencentcloud/data_source_tc_rum_static_url.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum static_url - -Example Usage - -```hcl -data "tencentcloud_rum_static_url" "static_url" { - start_time = 1625444040 - type = "pagepv" - end_time = 1625454840 - project_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_taw_instance.go b/tencentcloud/data_source_tc_rum_taw_instance.go index a7d4cb0132..f88025cae4 100644 --- a/tencentcloud/data_source_tc_rum_taw_instance.go +++ b/tencentcloud/data_source_tc_rum_taw_instance.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of rum tawInstance - -Example Usage - -```hcl -data "tencentcloud_rum_taw_instance" "taw_instance" { - charge_statuses = [1,] - charge_types = [1,] - area_ids = [1,] - instance_statuses = [2,] - instance_ids = ["rum-pasZKEI3RLgakj",] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_web_vitals_page.go b/tencentcloud/data_source_tc_rum_web_vitals_page.go index a0a01e7bf0..08fd209248 100644 --- a/tencentcloud/data_source_tc_rum_web_vitals_page.go +++ b/tencentcloud/data_source_tc_rum_web_vitals_page.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of rum web_vitals_page - -Example Usage - -```hcl -data "tencentcloud_rum_web_vitals_page" "web_vitals_page" { - start_time = 1625444040 - end_time = 1625454840 - project_id = 1 - type = "from" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_rum_whitelist.go b/tencentcloud/data_source_tc_rum_whitelist.go index 31528274c4..4e145dfe19 100644 --- a/tencentcloud/data_source_tc_rum_whitelist.go +++ b/tencentcloud/data_source_tc_rum_whitelist.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of rum whitelist - -Example Usage - -```hcl -data "tencentcloud_rum_whitelist" "whitelist" { - instance_id = "rum-pasZKEI3RLgakj" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_account_info.go b/tencentcloud/data_source_tc_scf_account_info.go index f15b27e297..c3e7e8903b 100644 --- a/tencentcloud/data_source_tc_scf_account_info.go +++ b/tencentcloud/data_source_tc_scf_account_info.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of scf account_info - -Example Usage - -```hcl -data "tencentcloud_scf_account_info" "account_info" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_async_event_management.go b/tencentcloud/data_source_tc_scf_async_event_management.go index 0f4ed4dc1e..c1277faefa 100644 --- a/tencentcloud/data_source_tc_scf_async_event_management.go +++ b/tencentcloud/data_source_tc_scf_async_event_management.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of scf async_event_management - -Example Usage - -```hcl -data "tencentcloud_scf_async_event_management" "async_event_management" { - function_name = "keep-1676351130" - namespace = "default" - qualifier = "$LATEST" - order = "ASC" - orderby = "StartTime" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_async_event_status.go b/tencentcloud/data_source_tc_scf_async_event_status.go index c81a5c9a9a..562ee655b1 100644 --- a/tencentcloud/data_source_tc_scf_async_event_status.go +++ b/tencentcloud/data_source_tc_scf_async_event_status.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of scf async_event_status - -Example Usage - -```hcl -data "tencentcloud_scf_async_event_status" "async_event_status" { - invoke_request_id = "9de9405a-e33a-498d-bb59-e80b7bed1191" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_function_address.go b/tencentcloud/data_source_tc_scf_function_address.go index 054868e0c4..b6afbe49ad 100644 --- a/tencentcloud/data_source_tc_scf_function_address.go +++ b/tencentcloud/data_source_tc_scf_function_address.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of scf function_address - -Example Usage - -```hcl -data "tencentcloud_scf_function_address" "function_address" { - function_name = "keep-1676351130" - namespace = "default" - qualifier = "$LATEST" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_function_aliases.go b/tencentcloud/data_source_tc_scf_function_aliases.go index bea04dac00..a7ebcece2f 100644 --- a/tencentcloud/data_source_tc_scf_function_aliases.go +++ b/tencentcloud/data_source_tc_scf_function_aliases.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of scf function_aliases - -Example Usage - -```hcl -data "tencentcloud_scf_function_aliases" "function_aliases" { - function_name = "keep-1676351130" - namespace = "default" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_function_versions.go b/tencentcloud/data_source_tc_scf_function_versions.go index db88056499..ff9e5f5f27 100644 --- a/tencentcloud/data_source_tc_scf_function_versions.go +++ b/tencentcloud/data_source_tc_scf_function_versions.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of scf function_versions - -Example Usage - -```hcl -data "tencentcloud_scf_function_versions" "function_versions" { - function_name = "keep-1676351130" - namespace = "default" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_functions.go b/tencentcloud/data_source_tc_scf_functions.go index 76457d400c..b985589abc 100644 --- a/tencentcloud/data_source_tc_scf_functions.go +++ b/tencentcloud/data_source_tc_scf_functions.go @@ -1,24 +1,3 @@ -/* -Use this data source to query SCF functions. - -Example Usage - -```hcl -resource "tencentcloud_scf_function" "foo" { - name = "ci-test-function" - handler = "main.do_it" - runtime = "Python3.6" - - cos_bucket_name = "scf-code-1234567890" - cos_object_name = "code.zip" - cos_bucket_region = "ap-guangzhou" -} - -data "tencentcloud_scf_functions" "foo" { - name = tencentcloud_scf_function.foo.name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_layer_versions.go b/tencentcloud/data_source_tc_scf_layer_versions.go index da4143615e..445adf21f0 100644 --- a/tencentcloud/data_source_tc_scf_layer_versions.go +++ b/tencentcloud/data_source_tc_scf_layer_versions.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of scf layer_versions - -Example Usage - -```hcl -data "tencentcloud_scf_layer_versions" "layer_versions" { - layer_name = "tf-test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_layers.go b/tencentcloud/data_source_tc_scf_layers.go index f3a66cb1c5..05f991c998 100644 --- a/tencentcloud/data_source_tc_scf_layers.go +++ b/tencentcloud/data_source_tc_scf_layers.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of scf layers - -Example Usage - -```hcl -data "tencentcloud_scf_layers" "layers" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_logs.go b/tencentcloud/data_source_tc_scf_logs.go index 029082fab4..09aca29cb5 100644 --- a/tencentcloud/data_source_tc_scf_logs.go +++ b/tencentcloud/data_source_tc_scf_logs.go @@ -1,24 +1,3 @@ -/* -Use this data source to query SCF function logs. - -Example Usage - -```hcl -resource "tencentcloud_scf_function" "foo" { - name = "ci-test-function" - handler = "main.do_it" - runtime = "Python3.6" - - cos_bucket_name = "scf-code-1234567890" - cos_object_name = "code.zip" - cos_bucket_region = "ap-guangzhou" -} - -data "tencentcloud_scf_logs" "foo" { - function_name = tencentcloud_scf_function.foo.name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_namespaces.go b/tencentcloud/data_source_tc_scf_namespaces.go index 4fc1d20916..ec5fc2ef95 100644 --- a/tencentcloud/data_source_tc_scf_namespaces.go +++ b/tencentcloud/data_source_tc_scf_namespaces.go @@ -1,18 +1,3 @@ -/* -Use this data source to query SCF namespaces. - -Example Usage - -```hcl -resource "tencentcloud_scf_namespace" "foo" { - namespace = "ci-test-scf" -} - -data "tencentcloud_scf_namespaces" "foo" { - namespace = tencentcloud_scf_namespace.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_request_status.go b/tencentcloud/data_source_tc_scf_request_status.go index 3f0aa76b2f..235b52c905 100644 --- a/tencentcloud/data_source_tc_scf_request_status.go +++ b/tencentcloud/data_source_tc_scf_request_status.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of scf request_status - -Example Usage - -```hcl -data "tencentcloud_scf_request_status" "request_status" { - function_name = "keep-1676351130" - function_request_id = "9de9405a-e33a-498d-bb59-e80b7bed1191" - namespace = "default" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_scf_triggers.go b/tencentcloud/data_source_tc_scf_triggers.go index 90c0c3850e..edbb7b3d85 100644 --- a/tencentcloud/data_source_tc_scf_triggers.go +++ b/tencentcloud/data_source_tc_scf_triggers.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of scf triggers - -Example Usage - -```hcl -data "tencentcloud_scf_triggers" "triggers" { - function_name = "keep-1676351130" - namespace = "default" - order_by = "add_time" - order = "DESC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_security_group.go b/tencentcloud/data_source_tc_security_group.go index bc58897f17..f86fc8656a 100644 --- a/tencentcloud/data_source_tc_security_group.go +++ b/tencentcloud/data_source_tc_security_group.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of security group. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_security_groups. - -Example Usage - -```hcl -data "tencentcloud_security_group" "sglab" { - security_group_id = tencentcloud_security_group.sglab.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_security_groups.go b/tencentcloud/data_source_tc_security_groups.go index 646e0671ac..b751aed973 100644 --- a/tencentcloud/data_source_tc_security_groups.go +++ b/tencentcloud/data_source_tc_security_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of security groups. - -Example Usage - -```hcl -data "tencentcloud_security_groups" "sglab" { - security_group_id = tencentcloud_security_group.sglab.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ses_black_email_address.go b/tencentcloud/data_source_tc_ses_black_email_address.go index 084e1af0e4..2267af3515 100644 --- a/tencentcloud/data_source_tc_ses_black_email_address.go +++ b/tencentcloud/data_source_tc_ses_black_email_address.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of ses black_email_address - -Example Usage - -```hcl -data "tencentcloud_ses_black_email_address" "black_email_address" { - start_date = "2020-09-22" - end_date = "2020-09-23" - email_address = "xxx@mail.qcloud.com" - task_id = "7000" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ses_email_identities.go b/tencentcloud/data_source_tc_ses_email_identities.go index 69e013969b..456caa664d 100644 --- a/tencentcloud/data_source_tc_ses_email_identities.go +++ b/tencentcloud/data_source_tc_ses_email_identities.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of ses email_identities - -Example Usage - -```hcl -data "tencentcloud_ses_email_identities" "email_identities" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ses_receivers.go b/tencentcloud/data_source_tc_ses_receivers.go index 518879fc5c..73218b2133 100644 --- a/tencentcloud/data_source_tc_ses_receivers.go +++ b/tencentcloud/data_source_tc_ses_receivers.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ses receivers - -Example Usage - -```hcl -data "tencentcloud_ses_receivers" "receivers" { - status = 3 - key_word = "keep" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ses_send_email_status.go b/tencentcloud/data_source_tc_ses_send_email_status.go index 74e0138929..a554330c56 100644 --- a/tencentcloud/data_source_tc_ses_send_email_status.go +++ b/tencentcloud/data_source_tc_ses_send_email_status.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of ses send_email_status - -Example Usage - -```hcl -data "tencentcloud_ses_send_email_status" "send_email_status" { - request_date = "2020-09-22" - message_id = "qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1" - to_email_address = "example@cloud.com" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ses_send_tasks.go b/tencentcloud/data_source_tc_ses_send_tasks.go index 8bdaf742de..63b368b18e 100644 --- a/tencentcloud/data_source_tc_ses_send_tasks.go +++ b/tencentcloud/data_source_tc_ses_send_tasks.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of ses send_tasks - -Example Usage - -```hcl -data "tencentcloud_ses_send_tasks" "send_tasks" { - status = 10 - receiver_id = 1063742 - task_type = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ses_statistics_report.go b/tencentcloud/data_source_tc_ses_statistics_report.go index 660a3f8c54..d81f9fa5e4 100644 --- a/tencentcloud/data_source_tc_ses_statistics_report.go +++ b/tencentcloud/data_source_tc_ses_statistics_report.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of ses statistics_report - -Example Usage - -```hcl -data "tencentcloud_ses_statistics_report" "statistics_report" { - start_date = "2020-10-01" - end_date = "2023-09-05" - domain = "iac-tf.cloud" - receiving_mailbox_type = "gmail.com" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_account_db_attachments.go b/tencentcloud/data_source_tc_sqlserver_account_db_attachments.go index 123595a965..c176f73a87 100644 --- a/tencentcloud/data_source_tc_sqlserver_account_db_attachments.go +++ b/tencentcloud/data_source_tc_sqlserver_account_db_attachments.go @@ -1,75 +1,3 @@ -/* -Use this data source to query the list of SQL Server account DB privileges. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -data "tencentcloud_sqlserver_account_db_attachments" "test" { - instance_id = tencentcloud_sqlserver_instance.example.id - account_name = tencentcloud_sqlserver_account_db_attachment.example.account_name -} - -resource "tencentcloud_vpc" "vpc" { - name = "example-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "example-vpc" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "example-sg" - description = "desc." -} - -resource "tencentcloud_sqlserver_instance" "example" { - name = "tf_example_sql" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - charge_type = "POSTPAID_BY_HOUR" - period = 1 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.security_group.id] - project_id = 0 - memory = 2 - storage = 20 - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "01:00" - maintenance_time_span = 3 - tags = { - "createBy" = "tfExample" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_instance.example.id - name = "tfExampleDb" - charset = "Chinese_PRC_BIN" - remark = "remark desc." -} - -resource "tencentcloud_sqlserver_account" "example" { - instance_id = tencentcloud_sqlserver_instance.example.id - name = "tf_example_account" - password = "PassWord@123" - remark = "remark desc." -} - -resource "tencentcloud_sqlserver_account_db_attachment" "example" { - instance_id = tencentcloud_sqlserver_instance.example.id - account_name = tencentcloud_sqlserver_account.example.name - db_name = tencentcloud_sqlserver_db.example.name - privilege = "ReadWrite" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_accounts.go b/tencentcloud/data_source_tc_sqlserver_accounts.go index 886344cd7b..00272ef243 100644 --- a/tencentcloud/data_source_tc_sqlserver_accounts.go +++ b/tencentcloud/data_source_tc_sqlserver_accounts.go @@ -1,25 +1,3 @@ -/* -Use this data source to query the list of SQL Server accounts. - -Example Usage - -Pull instance account list - -```hcl -data "tencentcloud_sqlserver_accounts" "example" { - instance_id = "mssql-3cdq7kx5" -} -``` - -Pull instance account list Filter by name - -```hcl -data "tencentcloud_sqlserver_accounts" "example" { - instance_id = "mssql-3cdq7kx5" - name = "myaccount" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_backup_by_flow_id.go b/tencentcloud/data_source_tc_sqlserver_backup_by_flow_id.go index dcb2a5bb8f..1552fa925f 100644 --- a/tencentcloud/data_source_tc_sqlserver_backup_by_flow_id.go +++ b/tencentcloud/data_source_tc_sqlserver_backup_by_flow_id.go @@ -1,71 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver datasource_backup_by_flow_id - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -data "tencentcloud_sqlserver_backup_by_flow_id" "example" { - instance_id = tencentcloud_sqlserver_general_backup.example.instance_id - flow_id = tencentcloud_sqlserver_general_backup.example.flow_id -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_general_backup" "example" { - instance_id = tencentcloud_sqlserver_db.example.id - backup_name = "tf_example_backup" - strategy = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_backup_commands.go b/tencentcloud/data_source_tc_sqlserver_backup_commands.go index 568e2cf7e4..eaaccada17 100644 --- a/tencentcloud/data_source_tc_sqlserver_backup_commands.go +++ b/tencentcloud/data_source_tc_sqlserver_backup_commands.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver datasource_backup_command - -Example Usage - -```hcl -data "tencentcloud_sqlserver_backup_commands" "example" { - backup_file_type = "FULL" - data_base_name = "keep-publish-instance" - is_recovery = "NO" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_backup_upload_size.go b/tencentcloud/data_source_tc_sqlserver_backup_upload_size.go index a207a47289..cda69a7714 100644 --- a/tencentcloud/data_source_tc_sqlserver_backup_upload_size.go +++ b/tencentcloud/data_source_tc_sqlserver_backup_upload_size.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver datasource_backup_upload_size - -Example Usage - -```hcl -data "tencentcloud_sqlserver_backup_upload_size" "example" { - instance_id = "mssql-4gmc5805" - backup_migration_id = "mssql-backup-migration-9tj0sxnz" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_basic_instances.go b/tencentcloud/data_source_tc_sqlserver_basic_instances.go index 326fc30319..d1be248801 100644 --- a/tencentcloud/data_source_tc_sqlserver_basic_instances.go +++ b/tencentcloud/data_source_tc_sqlserver_basic_instances.go @@ -1,33 +1,3 @@ -/* -Use this data source to query SQL Server basic instances - -Example Usage - -Filter instance by Id - -```hcl -data "tencentcloud_sqlserver_basic_instances" "example_id" { - id = "mssql-3l3fgqn7" -} -``` - -Filter instance by project Id - -```hcl -data "tencentcloud_sqlserver_basic_instances" "example_project" { - project_id = 0 -} -``` - -Filter instance by VPC/Subnet - -```hcl -data "tencentcloud_sqlserver_basic_instances" "example_vpc" { - vpc_id = "vpc-409mvdvv" - subnet_id = "subnet-nf9n81ps" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_cross_region_zone.go b/tencentcloud/data_source_tc_sqlserver_cross_region_zone.go index 56724bb9bf..21f1294dec 100644 --- a/tencentcloud/data_source_tc_sqlserver_cross_region_zone.go +++ b/tencentcloud/data_source_tc_sqlserver_cross_region_zone.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver datasource_cross_region_zone - -Example Usage - -```hcl -data "tencentcloud_sqlserver_cross_region_zone" "example" { - instance_id = "mssql-qelbzgwf" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_db_charsets.go b/tencentcloud/data_source_tc_sqlserver_db_charsets.go index 211a96b1a8..a421b2a2db 100644 --- a/tencentcloud/data_source_tc_sqlserver_db_charsets.go +++ b/tencentcloud/data_source_tc_sqlserver_db_charsets.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver datasource_d_b_charsets - -Example Usage - -```hcl -data "tencentcloud_sqlserver_db_charsets" "example" { - instance_id = "mssql-qelbzgwf" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_dbs.go b/tencentcloud/data_source_tc_sqlserver_dbs.go index 5ba871a23d..f0d8021f29 100644 --- a/tencentcloud/data_source_tc_sqlserver_dbs.go +++ b/tencentcloud/data_source_tc_sqlserver_dbs.go @@ -1,64 +1,3 @@ -/* -Use this data source to query DB resources for the specific SQL Server instance. - -Example Usage - -```hcl -data "tencentcloud_sqlserver_dbs" "example" { - instance_id = tencentcloud_sqlserver_db.example.instance_id -} - -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_ins_attribute.go b/tencentcloud/data_source_tc_sqlserver_ins_attribute.go index 3b812879d6..883a838197 100644 --- a/tencentcloud/data_source_tc_sqlserver_ins_attribute.go +++ b/tencentcloud/data_source_tc_sqlserver_ins_attribute.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver_ins_attribute - -Example Usage - -```hcl -data "tencentcloud_sqlserver_ins_attribute" "example" { - instance_id = "mssql-gyg9xycl" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_instance_param_records.go b/tencentcloud/data_source_tc_sqlserver_instance_param_records.go index 494e63487a..d11f105b2f 100644 --- a/tencentcloud/data_source_tc_sqlserver_instance_param_records.go +++ b/tencentcloud/data_source_tc_sqlserver_instance_param_records.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver instance_param_records - -Example Usage - -```hcl -data "tencentcloud_sqlserver_instance_param_records" "example" { - instance_id = "mssql-qelbzgwf" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_instances.go b/tencentcloud/data_source_tc_sqlserver_instances.go index 4e3caff158..3d24de8fac 100644 --- a/tencentcloud/data_source_tc_sqlserver_instances.go +++ b/tencentcloud/data_source_tc_sqlserver_instances.go @@ -1,33 +1,3 @@ -/* -Use this data source to query SQL Server instances - -Example Usage - -Filter instance by Id - -```hcl -data "tencentcloud_sqlserver_instances" "example_id" { - id = "mssql-3l3fgqn7" -} -``` - -Filter instance by project Id - -```hcl -data "tencentcloud_sqlserver_instances" "example_project" { - project_id = 0 -} -``` - -Filter instance by VPC/Subnet - -```hcl -data "tencentcloud_sqlserver_instances" "example_vpc" { - vpc_id = "vpc-409mvdvv" - subnet_id = "subnet-nf9n81ps" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_project_security_groups.go b/tencentcloud/data_source_tc_sqlserver_project_security_groups.go index 2e84cf2c28..af60f05157 100644 --- a/tencentcloud/data_source_tc_sqlserver_project_security_groups.go +++ b/tencentcloud/data_source_tc_sqlserver_project_security_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver project_security_groups - -Example Usage - -```hcl -data "tencentcloud_sqlserver_project_security_groups" "example" { - project_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_publish_subscribes.go b/tencentcloud/data_source_tc_sqlserver_publish_subscribes.go index e5ab4f45d7..66cd75dcfc 100644 --- a/tencentcloud/data_source_tc_sqlserver_publish_subscribes.go +++ b/tencentcloud/data_source_tc_sqlserver_publish_subscribes.go @@ -1,109 +1,3 @@ -/* -Use this data source to query Publish Subscribe resources for the specific SQL Server instance. - -Example Usage - -```hcl -data "tencentcloud_sqlserver_publish_subscribes" "example" { - instance_id = tencentcloud_sqlserver_publish_subscribe.example.publish_instance_id -} - -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_general_cloud_instance" "example_pub" { - name = "tf-example-pub" - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_HSSD" - instance_charge_type = "POSTPAID" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "2008R2" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 5, 6, 7] - start_time = "00:00" - span = 6 - resource_tags { - tag_key = "test" - tag_value = "test" - } - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" -} - -resource "tencentcloud_sqlserver_general_cloud_instance" "example_sub" { - name = "tf-example-sub" - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_HSSD" - instance_charge_type = "POSTPAID" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "2008R2" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 5, 6, 7] - start_time = "00:00" - span = 6 - resource_tags { - tag_key = "test" - tag_value = "test" - } - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" -} - -resource "tencentcloud_sqlserver_db" "example_pub" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id - name = "tf_example_db_pub" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_db" "example_sub" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id - name = "tf_example_db_sub" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_publish_subscribe" "example" { - publish_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id - subscribe_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id - publish_subscribe_name = "example" - delete_subscribe_db = false - database_tuples { - publish_database = tencentcloud_sqlserver_db.example_pub.name - subscribe_database = tencentcloud_sqlserver_db.example_sub.name - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_query_xevent.go b/tencentcloud/data_source_tc_sqlserver_query_xevent.go index 53881f282c..6251cc4d4c 100644 --- a/tencentcloud/data_source_tc_sqlserver_query_xevent.go +++ b/tencentcloud/data_source_tc_sqlserver_query_xevent.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver query_xevent - -Example Usage - -```hcl -data "tencentcloud_sqlserver_query_xevent" "example" { - instance_id = "mssql-gyg9xycl" - event_type = "blocked" - start_time = "2023-08-01 00:00:00" - end_time = "2023-08-10 00:00:00" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_readonly_groups.go b/tencentcloud/data_source_tc_sqlserver_readonly_groups.go index 4bebf4e522..fe7d85f6bd 100644 --- a/tencentcloud/data_source_tc_sqlserver_readonly_groups.go +++ b/tencentcloud/data_source_tc_sqlserver_readonly_groups.go @@ -1,14 +1,3 @@ -/* -Use this data source to query the list of SQL Server readonly groups. - -Example Usage - -```hcl -data "tencentcloud_sqlserver_dbs" "example" { - instance_id = "mssql-ds1xhnt9" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_regions.go b/tencentcloud/data_source_tc_sqlserver_regions.go index fd6d18c24f..743734eea9 100644 --- a/tencentcloud/data_source_tc_sqlserver_regions.go +++ b/tencentcloud/data_source_tc_sqlserver_regions.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver datasource_regions - -Example Usage - -```hcl -data "tencentcloud_sqlserver_regions" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_rollback_time.go b/tencentcloud/data_source_tc_sqlserver_rollback_time.go index afcc6bca28..798959dffe 100644 --- a/tencentcloud/data_source_tc_sqlserver_rollback_time.go +++ b/tencentcloud/data_source_tc_sqlserver_rollback_time.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver rollback_time - -Example Usage - -```hcl -data "tencentcloud_sqlserver_rollback_time" "example" { - instance_id = "mssql-qelbzgwf" - dbs = ["keep_pubsub_db"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_slowlogs.go b/tencentcloud/data_source_tc_sqlserver_slowlogs.go index 004d159a56..0ee8ab4b24 100644 --- a/tencentcloud/data_source_tc_sqlserver_slowlogs.go +++ b/tencentcloud/data_source_tc_sqlserver_slowlogs.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver slowlogs - -Example Usage - -```hcl -data "tencentcloud_sqlserver_slowlogs" "example" { - instance_id = "mssql-qelbzgwf" - start_time = "2023-08-01 00:00:00" - end_time = "2023-08-07 00:00:00" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_upload_backup_info.go b/tencentcloud/data_source_tc_sqlserver_upload_backup_info.go index 2b68cbd8b4..492fdcc20a 100644 --- a/tencentcloud/data_source_tc_sqlserver_upload_backup_info.go +++ b/tencentcloud/data_source_tc_sqlserver_upload_backup_info.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver upload_backup_info - -Example Usage - -```hcl -data "tencentcloud_sqlserver_upload_backup_info" "example" { - instance_id = "mssql-qelbzgwf" - backup_migration_id = "mssql-backup-migration-8a0f3eht" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_upload_incremental_info.go b/tencentcloud/data_source_tc_sqlserver_upload_incremental_info.go index aed7f0964f..5be6cf0f2d 100644 --- a/tencentcloud/data_source_tc_sqlserver_upload_incremental_info.go +++ b/tencentcloud/data_source_tc_sqlserver_upload_incremental_info.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of sqlserver upload_incremental_info - -Example Usage - -```hcl -data "tencentcloud_sqlserver_upload_incremental_info" "example" { - instance_id = "mssql-4tgeyeeh" - backup_migration_id = "mssql-backup-migration-83t5u3tv" - incremental_migration_id = "mssql-incremental-migration-h36gkdxn" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sqlserver_zone_config.go b/tencentcloud/data_source_tc_sqlserver_zone_config.go index f362934c58..4921854e0d 100644 --- a/tencentcloud/data_source_tc_sqlserver_zone_config.go +++ b/tencentcloud/data_source_tc_sqlserver_zone_config.go @@ -1,12 +1,3 @@ -/* -Use this data source to query purchasable specification configuration for each availability zone in this specific region. - -Example Usage - -```hcl -data "tencentcloud_sqlserver_zone_config" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_certificates.go b/tencentcloud/data_source_tc_ssl_certificates.go index d85ea4faf9..fdf5afaefa 100644 --- a/tencentcloud/data_source_tc_ssl_certificates.go +++ b/tencentcloud/data_source_tc_ssl_certificates.go @@ -1,14 +1,3 @@ -/* -Use this data source to query SSL certificate. - -Example Usage - -```hcl -data "tencentcloud_ssl_certificates" "foo" { - name = "certificate" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_certificate.go b/tencentcloud/data_source_tc_ssl_describe_certificate.go index 9464dc31b1..c4487d73ca 100644 --- a/tencentcloud/data_source_tc_ssl_describe_certificate.go +++ b/tencentcloud/data_source_tc_ssl_describe_certificate.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_certificate - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_certificate" "describe_certificate" { - certificate_id = "8cj4g8h8" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_companies.go b/tencentcloud/data_source_tc_ssl_describe_companies.go index b7c06a9eda..527aeca923 100644 --- a/tencentcloud/data_source_tc_ssl_describe_companies.go +++ b/tencentcloud/data_source_tc_ssl_describe_companies.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_companies - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_companies" "describe_companies" { - company_id = 122 - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_api_gateway_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_api_gateway_instance_list.go index 0aaa67e8dd..4d17334542 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_api_gateway_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_api_gateway_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_api_gateway_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_api_gateway_instance_list" "describe_host_api_gateway_instance_list" { - certificate_id = "9Bpk7XOu" - resource_type = "apiGateway" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_cdn_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_cdn_instance_list.go index aa6919292d..f3d7f3b112 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_cdn_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_cdn_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_cdn_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_cdn_instance_list" "describe_host_cdn_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "cdn" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_clb_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_clb_instance_list.go index d97cd107ca..3d1750f62e 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_clb_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_clb_instance_list.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_clb_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_clb_instance_list" "describe_host_clb_instance_list" { - certificate_id = "8u8DII0l" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_cos_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_cos_instance_list.go index 32fcfac506..91a0a677aa 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_cos_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_cos_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_cos_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_cos_instance_list" "describe_host_cos_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "cos" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_ddos_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_ddos_instance_list.go index 208b43125c..2b0f2d6d2d 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_ddos_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_ddos_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_ddos_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_ddos_instance_list" "describe_host_ddos_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "ddos" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_deploy_record.go b/tencentcloud/data_source_tc_ssl_describe_host_deploy_record.go index b73406be60..9e8414065b 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_deploy_record.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_deploy_record.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_deploy_record - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_deploy_record" "describe_host_deploy_record" { - certificate_id = "8u8DII0l" - resource_type = "ddos" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_deploy_record_detail.go b/tencentcloud/data_source_tc_ssl_describe_host_deploy_record_detail.go index bc91f301fa..1e9bd1d2ee 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_deploy_record_detail.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_deploy_record_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_deploy_record_detail - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_deploy_record_detail" "describe_host_deploy_record_detail" { - deploy_record_id = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_lighthouse_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_lighthouse_instance_list.go index 525248fc90..0b7cb85543 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_lighthouse_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_lighthouse_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_lighthouse_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_lighthouse_instance_list" "describe_host_lighthouse_instance_list" { - certificate_id = "8tvMCvGF" - resource_type = "lighthouse" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_live_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_live_instance_list.go index b779f3d454..a252e3b011 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_live_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_live_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_live_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_live_instance_list" "describe_host_live_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "live" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_teo_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_teo_instance_list.go index be37c18223..55588a1fb4 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_teo_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_teo_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_teo_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_teo_instance_list" "describe_host_teo_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "teo" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_tke_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_tke_instance_list.go index 0b38fc1254..56994621a5 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_tke_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_tke_instance_list.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_tke_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_tke_instance_list" "describe_host_tke_instance_list" { - certificate_id = "8u8DII0l" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_update_record.go b/tencentcloud/data_source_tc_ssl_describe_host_update_record.go index a046e6073f..f4bde9384d 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_update_record.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_update_record.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_update_record - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_update_record" "describe_host_update_record" { - old_certificate_id = "8u8DII0l" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_update_record_detail.go b/tencentcloud/data_source_tc_ssl_describe_host_update_record_detail.go index 3185ac7ac0..d75f5539e2 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_update_record_detail.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_update_record_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_update_record_detail - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_update_record_detail" "describe_host_update_record_detail" { - deploy_record_id = "35364" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_vod_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_vod_instance_list.go index a7bac4eae2..8447a6f93b 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_vod_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_vod_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_vod_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_vod_instance_list" "describe_host_vod_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "vod" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_host_waf_instance_list.go b/tencentcloud/data_source_tc_ssl_describe_host_waf_instance_list.go index 9483cfc0c1..a1bde633aa 100644 --- a/tencentcloud/data_source_tc_ssl_describe_host_waf_instance_list.go +++ b/tencentcloud/data_source_tc_ssl_describe_host_waf_instance_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_host_waf_instance_list - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_host_waf_instance_list" "describe_host_waf_instance_list" { - certificate_id = "8u8DII0l" - resource_type = "waf" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_manager_detail.go b/tencentcloud/data_source_tc_ssl_describe_manager_detail.go index 027a18edc4..0ee9c904d7 100644 --- a/tencentcloud/data_source_tc_ssl_describe_manager_detail.go +++ b/tencentcloud/data_source_tc_ssl_describe_manager_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_manager_detail - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_manager_detail" "describe_manager_detail" { - manager_id = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssl_describe_managers.go b/tencentcloud/data_source_tc_ssl_describe_managers.go index 7ab89526c9..e58b46dc7c 100644 --- a/tencentcloud/data_source_tc_ssl_describe_managers.go +++ b/tencentcloud/data_source_tc_ssl_describe_managers.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssl describe_managers - -Example Usage - -```hcl -data "tencentcloud_ssl_describe_managers" "describe_managers" { - company_id = "11772" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_products.go b/tencentcloud/data_source_tc_ssm_products.go index 85bf3d6d4f..748b36e194 100644 --- a/tencentcloud/data_source_tc_ssm_products.go +++ b/tencentcloud/data_source_tc_ssm_products.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of ssm products - -Example Usage - -```hcl -data "tencentcloud_ssm_products" "products" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_rotation_detail.go b/tencentcloud/data_source_tc_ssm_rotation_detail.go index 05fb36d12e..30235c193d 100644 --- a/tencentcloud/data_source_tc_ssm_rotation_detail.go +++ b/tencentcloud/data_source_tc_ssm_rotation_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssm rotation_detail - -Example Usage - -```hcl -data "tencentcloud_ssm_rotation_detail" "example" { - secret_name = "tf_example" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_rotation_history.go b/tencentcloud/data_source_tc_ssm_rotation_history.go index 9cfb21ee07..82cdf5de81 100644 --- a/tencentcloud/data_source_tc_ssm_rotation_history.go +++ b/tencentcloud/data_source_tc_ssm_rotation_history.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of ssm rotation_history - -Example Usage - -```hcl -data "tencentcloud_ssm_rotation_history" "example" { - secret_name = "keep_terraform" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_secret_versions.go b/tencentcloud/data_source_tc_ssm_secret_versions.go index 7e0342b694..60bb00b793 100644 --- a/tencentcloud/data_source_tc_ssm_secret_versions.go +++ b/tencentcloud/data_source_tc_ssm_secret_versions.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of SSM secret version - -Example Usage - -```hcl -data "tencentcloud_ssm_secret_versions" "example" { - secret_name = tencentcloud_ssm_secret_version.v1.secret_name - version_id = tencentcloud_ssm_secret_version.v1.version_id -} - -resource "tencentcloud_ssm_secret" "example" { - secret_name = "tf-example" - description = "desc." - - tags = { - createdBy = "terraform" - } -} - -resource "tencentcloud_ssm_secret_version" "v1" { - secret_name = tencentcloud_ssm_secret.example.secret_name - version_id = "v1" - secret_binary = "MTIzMTIzMTIzMTIzMTIzQQ==" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_secrets.go b/tencentcloud/data_source_tc_ssm_secrets.go index 864e8c6ed6..0f4156d9e2 100644 --- a/tencentcloud/data_source_tc_ssm_secrets.go +++ b/tencentcloud/data_source_tc_ssm_secrets.go @@ -1,37 +1,3 @@ -/* -Use this data source to query detailed information of SSM secret - -Example Usage - -```hcl -data "tencentcloud_ssm_secrets" "example" { - secret_name = tencentcloud_ssm_secret.example.secret_name - state = 1 -} - -resource "tencentcloud_ssm_secret" "example" { - secret_name = "tf_example" - description = "desc." - - tags = { - createdBy = "terraform" - } -} -``` - -OR you can filter by tags - -```hcl -data "tencentcloud_ssm_secrets" "example" { - secret_name = tencentcloud_ssm_secret.example.secret_name - state = 1 - - tags = { - createdBy = "terraform" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_service_status.go b/tencentcloud/data_source_tc_ssm_service_status.go index 76c5474043..07f35cc7a6 100644 --- a/tencentcloud/data_source_tc_ssm_service_status.go +++ b/tencentcloud/data_source_tc_ssm_service_status.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of ssm service_status - -Example Usage - -```hcl -data "tencentcloud_ssm_service_status" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_ssm_ssh_key_pair_value.go b/tencentcloud/data_source_tc_ssm_ssh_key_pair_value.go index 5fca70e6b9..8a04fcbcce 100644 --- a/tencentcloud/data_source_tc_ssm_ssh_key_pair_value.go +++ b/tencentcloud/data_source_tc_ssm_ssh_key_pair_value.go @@ -1,33 +1,3 @@ -/* -Use this data source to query detailed information of ssm ssh_key_pair_value - -~> **NOTE:** Must set at least one of `secret_name` or `ssh_key_id`. - -Example Usage - -```hcl -data "tencentcloud_ssm_ssh_key_pair_value" "example" { - secret_name = "keep_terraform" - ssh_key_id = "skey-2ae2snwd" -} -``` - -Or - -```hcl -data "tencentcloud_ssm_ssh_key_pair_value" "example" { - secret_name = "keep_terraform" -} -``` - -Or - -```hcl -data "tencentcloud_ssm_ssh_key_pair_value" "example" { - ssh_key_id = "skey-2ae2snwd" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_sts_caller_identity.go b/tencentcloud/data_source_tc_sts_caller_identity.go index 9e8ac9647e..5c7d5b170d 100644 --- a/tencentcloud/data_source_tc_sts_caller_identity.go +++ b/tencentcloud/data_source_tc_sts_caller_identity.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of sts callerIdentity - -Example Usage - -```hcl -data "tencentcloud_sts_caller_identity" "callerIdentity" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_subnet.go b/tencentcloud/data_source_tc_subnet.go index 0f22665be8..0313f1b806 100644 --- a/tencentcloud/data_source_tc_subnet.go +++ b/tencentcloud/data_source_tc_subnet.go @@ -1,36 +1,3 @@ -/* -Provides details about a specific VPC subnet. - -This resource can prove useful when a module accepts a subnet id as an input variable and needs to, for example, determine the id of the VPC that the subnet belongs to. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_vpc_subnets. - -Example Usage - -```hcl -variable "subnet_id" {} -variable "vpc_id" {} - -data "tencentcloud_subnet" "selected" { - vpc_id = var.vpc_id - subnet_id = var.subnet_id -} - -resource "tencentcloud_security_group" "default" { - name = "test subnet data" - description = "test subnet data description" -} - -resource "tencentcloud_security_group_rule" "subnet" { - security_group_id = tencentcloud_security_group.default.id - type = "ingress" - cidr_ip = data.tencentcloud_subnet.selected.cidr_block - ip_protocol = "tcp" - port_range = "80,8080" - policy = "accept" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tat_agent.go b/tencentcloud/data_source_tc_tat_agent.go index 92aed7d0dc..9c5ce55f09 100644 --- a/tencentcloud/data_source_tc_tat_agent.go +++ b/tencentcloud/data_source_tc_tat_agent.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tat agent - -Example Usage - -```hcl -data "tencentcloud_tat_agent" "agent" { - # instance_ids = ["ins-f9jr4bd2"] - filters { - name = "environment" - values = ["Linux"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tat_command.go b/tencentcloud/data_source_tc_tat_command.go index 4dc9ec22c8..cd31f13892 100644 --- a/tencentcloud/data_source_tc_tat_command.go +++ b/tencentcloud/data_source_tc_tat_command.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tat command - -Example Usage - -```hcl -data "tencentcloud_tat_command" "command" { - # command_id = "" - # command_name = "" - command_type = "SHELL" - created_by = "TAT" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tat_invocation_task.go b/tencentcloud/data_source_tc_tat_invocation_task.go index bd11d7dcc2..a4eb574359 100644 --- a/tencentcloud/data_source_tc_tat_invocation_task.go +++ b/tencentcloud/data_source_tc_tat_invocation_task.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tat invocation_task - -Example Usage - -```hcl -data "tencentcloud_tat_invocation_task" "invocation_task" { - # invocation_task_ids = ["invt-a8bv0ip7"] - filters { - name = "instance-id" - values = ["ins-p4pq4gaq"] - } - hide_output = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tat_invoker.go b/tencentcloud/data_source_tc_tat_invoker.go index 9d16f13701..5a6b3d9e03 100644 --- a/tencentcloud/data_source_tc_tat_invoker.go +++ b/tencentcloud/data_source_tc_tat_invoker.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of tat invoker - -Example Usage - -```hcl -data "tencentcloud_tat_invoker" "invoker" { - # invoker_id = "" - # command_id = "" - # type = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tat_invoker_records.go b/tencentcloud/data_source_tc_tat_invoker_records.go index 9b94453ecd..349d66be89 100644 --- a/tencentcloud/data_source_tc_tat_invoker_records.go +++ b/tencentcloud/data_source_tc_tat_invoker_records.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tat invoker_records - -Example Usage - -```hcl -data "tencentcloud_tat_invoker_records" "invoker_records" { - invoker_ids = ["ivk-cas4upyf"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcaplus_clusters.go b/tencentcloud/data_source_tc_tcaplus_clusters.go index f854828551..38a7be2f79 100644 --- a/tencentcloud/data_source_tc_tcaplus_clusters.go +++ b/tencentcloud/data_source_tc_tcaplus_clusters.go @@ -1,22 +1,3 @@ -/* - -Use this data source to query TcaplusDB clusters. - -Example Usage - -```hcl -data "tencentcloud_tcaplus_clusters" "name" { - cluster_name = "cluster" -} -data "tencentcloud_tcaplus_clusters" "id" { - cluster_id = tencentcloud_tcaplus_cluster.test.id -} -data "tencentcloud_tcaplus_clusters" "idname" { - cluster_id = tencentcloud_tcaplus_cluster.test.id - cluster_name = "cluster" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcaplus_idls.go b/tencentcloud/data_source_tc_tcaplus_idls.go index 574dc6a0ba..02f805ce27 100644 --- a/tencentcloud/data_source_tc_tcaplus_idls.go +++ b/tencentcloud/data_source_tc_tcaplus_idls.go @@ -1,14 +1,3 @@ -/* -Use this data source to query IDL information of the TcaplusDB table. - -Example Usage - -```hcl -data "tencentcloud_tcaplus_idls" "id_test" { - cluster_id = "19162256624" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcaplus_tablegroups.go b/tencentcloud/data_source_tc_tcaplus_tablegroups.go index a68350cf35..5359e0c1b0 100644 --- a/tencentcloud/data_source_tc_tcaplus_tablegroups.go +++ b/tencentcloud/data_source_tc_tcaplus_tablegroups.go @@ -1,27 +1,3 @@ -/* -Use this data source to query table groups of the TcaplusDB cluster. - -Example Usage - -```hcl -data "tencentcloud_tcaplus_tablegroups" "null" { - cluster_id = "19162256624" -} -data "tencentcloud_tcaplus_tablegroups" "id" { - cluster_id = "19162256624" - tablegroup_id = "19162256624:1" -} -data "tencentcloud_tcaplus_tablegroups" "name" { - cluster_id = "19162256624" - tablegroup_name = "test" -} -data "tencentcloud_tcaplus_tablegroups" "all" { - cluster_id = "19162256624" - tablegroup_id = "19162256624:1" - tablegroup_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcaplus_tables.go b/tencentcloud/data_source_tc_tcaplus_tables.go index 24bfd94011..74b1a1fd58 100644 --- a/tencentcloud/data_source_tc_tcaplus_tables.go +++ b/tencentcloud/data_source_tc_tcaplus_tables.go @@ -1,36 +1,3 @@ -/* -Use this data source to query TcaplusDB tables. - -Example Usage - -```hcl -data "tencentcloud_tcaplus_tables" "null" { - cluster_id = "19162256624" -} - -data "tencentcloud_tcaplus_tables" "tablegroup" { - cluster_id = "19162256624" - tablegroup_id = "19162256624:3" -} - -data "tencentcloud_tcaplus_tables" "name" { - cluster_id = "19162256624" - tablegroup_id = "19162256624:3" - table_name = "guagua" -} - -data "tencentcloud_tcaplus_tables" "id" { - cluster_id = "19162256624" - table_id = "tcaplus-faa65eb7" -} -data "tencentcloud_tcaplus_tables" "all" { - cluster_id = "19162256624" - tablegroup_id = "19162256624:3" - table_id = "tcaplus-faa65eb7" - table_name = "guagua" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcm_mesh.go b/tencentcloud/data_source_tc_tcm_mesh.go index c0269dbc5f..f2a3618175 100644 --- a/tencentcloud/data_source_tc_tcm_mesh.go +++ b/tencentcloud/data_source_tc_tcm_mesh.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tcm mesh - -Example Usage - -```hcl -data "tencentcloud_tcm_mesh" "mesh" { - mesh_id = ["mesh-xxxxxx"] - mesh_name = ["KEEP_MASH"] - tags = ["key"] - mesh_cluster = ["cls-xxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcmq_queue.go b/tencentcloud/data_source_tc_tcmq_queue.go index 5004b939c7..ab25a777d9 100644 --- a/tencentcloud/data_source_tc_tcmq_queue.go +++ b/tencentcloud/data_source_tc_tcmq_queue.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tcmq queue - -Example Usage - -```hcl -data "tencentcloud_tcmq_queue" "queue" { - queue_name = "queue_name" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcmq_subscribe.go b/tencentcloud/data_source_tc_tcmq_subscribe.go index fd1cff05ad..fac8306636 100644 --- a/tencentcloud/data_source_tc_tcmq_subscribe.go +++ b/tencentcloud/data_source_tc_tcmq_subscribe.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tcmq subscribe - -Example Usage - -```hcl -data "tencentcloud_tcmq_subscribe" "subscribe" { - topic_name = "topic_name" - subscription_name = "subscription_name"; -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcmq_topic.go b/tencentcloud/data_source_tc_tcmq_topic.go index f9dbab3631..81cd6cb4f1 100644 --- a/tencentcloud/data_source_tc_tcmq_topic.go +++ b/tencentcloud/data_source_tc_tcmq_topic.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tcmq topic - -Example Usage - -```hcl -data "tencentcloud_tcmq_topic" "topic" { - topic_name = "topic_name" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_image_manifests.go b/tencentcloud/data_source_tc_tcr_image_manifests.go index 68f79272e8..110323625e 100644 --- a/tencentcloud/data_source_tc_tcr_image_manifests.go +++ b/tencentcloud/data_source_tc_tcr_image_manifests.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tcr image_manifests - -Example Usage - -```hcl -data "tencentcloud_tcr_image_manifests" "image_manifests" { - registry_id = "%s" - namespace_name = "%s" - repository_name = "%s" - image_version = "v1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_images.go b/tencentcloud/data_source_tc_tcr_images.go index ad3cc22d74..b672119e44 100644 --- a/tencentcloud/data_source_tc_tcr_images.go +++ b/tencentcloud/data_source_tc_tcr_images.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tcr images - -Example Usage - -```hcl -data "tencentcloud_tcr_images" "images" { - registry_id = "tcr-xxx" - namespace_name = "ns" - repository_name = "repo" - image_version = "v1" - digest = "sha256:xxxxx" - exact_match = false - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_instances.go b/tencentcloud/data_source_tc_tcr_instances.go index 4443f0b352..360be0feef 100644 --- a/tencentcloud/data_source_tc_tcr_instances.go +++ b/tencentcloud/data_source_tc_tcr_instances.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of TCR instances. - -Example Usage - -```hcl -data "tencentcloud_tcr_instances" "name" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_namespaces.go b/tencentcloud/data_source_tc_tcr_namespaces.go index c2917bce0b..cb51f27af3 100644 --- a/tencentcloud/data_source_tc_tcr_namespaces.go +++ b/tencentcloud/data_source_tc_tcr_namespaces.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of TCR namespaces. - -Example Usage - -```hcl -data "tencentcloud_tcr_namespaces" "name" { - instance_id = "cls-satg5125" - namespace_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_replication_instance_create_tasks.go b/tencentcloud/data_source_tc_tcr_replication_instance_create_tasks.go index a694e5b4f7..be7c847f7d 100644 --- a/tencentcloud/data_source_tc_tcr_replication_instance_create_tasks.go +++ b/tencentcloud/data_source_tc_tcr_replication_instance_create_tasks.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of tcr replication_instance_create_tasks - -Example Usage - -```hcl -local { - src_registry_id = local.tcr_id - dst_registry_id = tencentcloud_tcr_manage_replication_operation.my_replica.destination_registry_id - dst_region_id = tencentcloud_tcr_manage_replication_operation.my_replica.destination_region_id -} - -data "tencentcloud_tcr_replication_instance_create_tasks" "create_tasks" { - replication_registry_id = local.dst_registry_id - replication_region_id = local.dst_region_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_replication_instance_sync_status.go b/tencentcloud/data_source_tc_tcr_replication_instance_sync_status.go index 4784e5b2d0..51e42e37bb 100644 --- a/tencentcloud/data_source_tc_tcr_replication_instance_sync_status.go +++ b/tencentcloud/data_source_tc_tcr_replication_instance_sync_status.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tcr replication_instance_sync_status - -Example Usage - -```hcl -data "tencentcloud_tcr_replication_instance_sync_status" "sync_status" { - registry_id = local.src_registry_id - replication_registry_id = local.dst_registry_id - replication_region_id = local.dst_region_id - show_replication_log = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_repositories.go b/tencentcloud/data_source_tc_tcr_repositories.go index 174ba3b457..5379b1791e 100644 --- a/tencentcloud/data_source_tc_tcr_repositories.go +++ b/tencentcloud/data_source_tc_tcr_repositories.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of TCR repositories. - -Example Usage - -```hcl -data "tencentcloud_tcr_repositories" "name" { - name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_tag_retention_execution_tasks.go b/tencentcloud/data_source_tc_tcr_tag_retention_execution_tasks.go index 3e9bd783c6..4b8ad54148 100644 --- a/tencentcloud/data_source_tc_tcr_tag_retention_execution_tasks.go +++ b/tencentcloud/data_source_tc_tcr_tag_retention_execution_tasks.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of tcr tag_retention_execution_tasks - -Example Usage - -```hcl -data "tencentcloud_tcr_tag_retention_execution_tasks" "tasks" { - registry_id = "tcr_ins_id" - retention_id = 1 - execution_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_tag_retention_executions.go b/tencentcloud/data_source_tc_tcr_tag_retention_executions.go index cfd6d94226..ce239f51a4 100644 --- a/tencentcloud/data_source_tc_tcr_tag_retention_executions.go +++ b/tencentcloud/data_source_tc_tcr_tag_retention_executions.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tcr tag_retention_executions - -Example Usage - -```hcl -data "tencentcloud_tcr_tag_retention_executions" "tag_retention_executions" { - registry_id = "tcr_ins_id" - retention_id = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_tokens.go b/tencentcloud/data_source_tc_tcr_tokens.go index 5af1599dbb..6677cc739d 100644 --- a/tencentcloud/data_source_tc_tcr_tokens.go +++ b/tencentcloud/data_source_tc_tcr_tokens.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of TCR tokens. - -Example Usage - -```hcl -data "tencentcloud_tcr_tokens" "name" { - instance_id = "cls-satg5125" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_vpc_attachments.go b/tencentcloud/data_source_tc_tcr_vpc_attachments.go index f6de272142..4c570f1f65 100644 --- a/tencentcloud/data_source_tc_tcr_vpc_attachments.go +++ b/tencentcloud/data_source_tc_tcr_vpc_attachments.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of TCR VPC attachment. - -Example Usage - -```hcl -data "tencentcloud_tcr_vpc_attachments" "id" { - instance_id = "cls-satg5125" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tcr_webhook_trigger_logs.go b/tencentcloud/data_source_tc_tcr_webhook_trigger_logs.go index fdaa095ec9..79bc6681b2 100644 --- a/tencentcloud/data_source_tc_tcr_webhook_trigger_logs.go +++ b/tencentcloud/data_source_tc_tcr_webhook_trigger_logs.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tencentcloud_tcr_webhook_trigger_logs - -Example Usage - -```hcl -data "tencentcloud_tcr_webhook_trigger_logs" "my_logs" { - registry_id = local.tcr_id - namespace = var.tcr_namespace - trigger_id = var.trigger_id - tags = { - "createdBy" = "terraform" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdcpg_clusters.go b/tencentcloud/data_source_tc_tdcpg_clusters.go index 6c01c4713e..6f3375e3fb 100644 --- a/tencentcloud/data_source_tc_tdcpg_clusters.go +++ b/tencentcloud/data_source_tc_tdcpg_clusters.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of tdcpg clusters. - -~> **NOTE:** This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. - -Example Usage - -```hcl -data "tencentcloud_tdcpg_clusters" "clusters" { - cluster_id = "" - cluster_name = "" - status = "" - pay_mode = "" - project_id = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdcpg_instances.go b/tencentcloud/data_source_tc_tdcpg_instances.go index cabeb15747..362900c708 100644 --- a/tencentcloud/data_source_tc_tdcpg_instances.go +++ b/tencentcloud/data_source_tc_tdcpg_instances.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of tdcpg instances. - -~> **NOTE:** This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. - -Example Usage - -```hcl -data "tencentcloud_tdcpg_instances" "instances" { - cluster_id = "" - instance_id = "" - instance_name = "" - status = "" - instance_type = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_environment_attributes.go b/tencentcloud/data_source_tc_tdmq_environment_attributes.go index fa123f3a34..77a3caa2fc 100644 --- a/tencentcloud/data_source_tc_tdmq_environment_attributes.go +++ b/tencentcloud/data_source_tc_tdmq_environment_attributes.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of tdmq environment_attributes - -Example Usage - -```hcl -data "tencentcloud_tdmq_environment_attributes" "example" { - environment_id = tencentcloud_tdmq_namespace.example.environ_name - cluster_id = tencentcloud_tdmq_instance.example.id -} - -resource "tencentcloud_tdmq_instance" "example" { - cluster_name = "tf_example" - remark = "remark." - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tdmq_namespace" "example" { - environ_name = "tf_example" - msg_ttl = 300 - cluster_id = tencentcloud_tdmq_instance.example.id - remark = "remark." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_pro_instance_detail.go b/tencentcloud/data_source_tc_tdmq_pro_instance_detail.go index aa606b4683..55f2b103aa 100644 --- a/tencentcloud/data_source_tc_tdmq_pro_instance_detail.go +++ b/tencentcloud/data_source_tc_tdmq_pro_instance_detail.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tdmq pro_instance_detail - -Example Usage - -```hcl -data "tencentcloud_tdmq_pro_instance_detail" "pro_instance_detail" { - cluster_id = "pulsar-9n95ax58b9vn" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_pro_instances.go b/tencentcloud/data_source_tc_tdmq_pro_instances.go index 03f6460fe6..643b6adeec 100644 --- a/tencentcloud/data_source_tc_tdmq_pro_instances.go +++ b/tencentcloud/data_source_tc_tdmq_pro_instances.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tdmq pro_instances - -Example Usage - -```hcl -data "tencentcloud_tdmq_pro_instances" "pro_instances_filter" { - filters { - name = "InstanceName" - values = ["keep"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_publisher_summary.go b/tencentcloud/data_source_tc_tdmq_publisher_summary.go index ced42dba14..d36bcb8c49 100644 --- a/tencentcloud/data_source_tc_tdmq_publisher_summary.go +++ b/tencentcloud/data_source_tc_tdmq_publisher_summary.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of tdmq publisher_summary - -Example Usage - -```hcl -data "tencentcloud_tdmq_publisher_summary" "publisher_summary" { - cluster_id = "pulsar-9n95ax58b9vn" - namespace = "keep-ns" - topic = "keep-topic" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_publishers.go b/tencentcloud/data_source_tc_tdmq_publishers.go index 0be2afdd0b..ef8e828de1 100644 --- a/tencentcloud/data_source_tc_tdmq_publishers.go +++ b/tencentcloud/data_source_tc_tdmq_publishers.go @@ -1,24 +1,3 @@ -/* -Use this data source to query detailed information of tdmq publishers - -Example Usage - -```hcl -data "tencentcloud_tdmq_publishers" "publishers" { - cluster_id = "pulsar-9n95ax58b9vn" - namespace = "keep-ns" - topic = "keep-topic" - filters { - name = "ProducerName" - values = ["test"] - } - sort { - name = "ProducerName" - order = "DESC" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_rocketmq_cluster.go b/tencentcloud/data_source_tc_tdmq_rocketmq_cluster.go index 6e016255a3..e2a819e042 100644 --- a/tencentcloud/data_source_tc_tdmq_rocketmq_cluster.go +++ b/tencentcloud/data_source_tc_tdmq_rocketmq_cluster.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tdmqRocketmq cluster - -Example Usage - -```hcl -data "tencentcloud_tdmq_rocketmq_cluster" "example" { - name_keyword = tencentcloud_tdmq_rocketmq_cluster.example.cluster_name -} - -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_rocketmq_group.go b/tencentcloud/data_source_tc_tdmq_rocketmq_group.go index e214eb0b65..5068d8c37a 100644 --- a/tencentcloud/data_source_tc_tdmq_rocketmq_group.go +++ b/tencentcloud/data_source_tc_tdmq_rocketmq_group.go @@ -1,36 +1,3 @@ -/* -Use this data source to query detailed information of tdmqRocketmq group - -Example Usage - -```hcl -data "tencentcloud_tdmq_rocketmq_group" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_id = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - filter_group = tencentcloud_tdmq_rocketmq_group.example.group_name -} - -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_group" "example" { - group_name = "tf_example" - namespace = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - read_enable = true - broadcast_enable = true - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - remark = "remark." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_rocketmq_messages.go b/tencentcloud/data_source_tc_tdmq_rocketmq_messages.go index 6e1b2ccbe1..ba87f22bc3 100644 --- a/tencentcloud/data_source_tc_tdmq_rocketmq_messages.go +++ b/tencentcloud/data_source_tc_tdmq_rocketmq_messages.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tdmq message - -Example Usage - -```hcl -data "tencentcloud_tdmq_rocketmq_messages" "message" { - cluster_id = "rocketmq-rkrbm52djmro" - environment_id = "keep_ns" - topic_name = "keep-topic" - msg_id = "A9FE8D0567FE15DB97425FC08EEF0000" - query_dlq_msg = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_rocketmq_namespace.go b/tencentcloud/data_source_tc_tdmq_rocketmq_namespace.go index 2b8b9087be..1db53b91fc 100644 --- a/tencentcloud/data_source_tc_tdmq_rocketmq_namespace.go +++ b/tencentcloud/data_source_tc_tdmq_rocketmq_namespace.go @@ -1,26 +1,3 @@ -/* -Use this data source to query detailed information of tdmqRocketmq namespace - -Example Usage - -```hcl -data "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - name_keyword = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name -} - -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example" - remark = "remark." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_rocketmq_role.go b/tencentcloud/data_source_tc_tdmq_rocketmq_role.go index 8830db7c83..4a6b5d8a4d 100644 --- a/tencentcloud/data_source_tc_tdmq_rocketmq_role.go +++ b/tencentcloud/data_source_tc_tdmq_rocketmq_role.go @@ -1,26 +1,3 @@ -/* -Use this data source to query detailed information of tdmqRocketmq role - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "cluster" { - cluster_name = "test_rocketmq_datasource_role" - remark = "test recket mq" -} - -resource "tencentcloud_tdmq_rocketmq_role" "role" { - role_name = "test_rocketmq_role" - remark = "test rocketmq role" - cluster_id = tencentcloud_tdmq_rocketmq_cluster.cluster.cluster_id -} - -data "tencentcloud_tdmq_rocketmq_role" "role" { - role_name = tencentcloud_tdmq_rocketmq_role.role.role_name - cluster_id = tencentcloud_tdmq_rocketmq_cluster.cluster.cluster_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tdmq_rocketmq_topic.go b/tencentcloud/data_source_tc_tdmq_rocketmq_topic.go index 9e126ac1f4..7137a449d5 100644 --- a/tencentcloud/data_source_tc_tdmq_rocketmq_topic.go +++ b/tencentcloud/data_source_tc_tdmq_rocketmq_topic.go @@ -1,35 +1,3 @@ -/* -Use this data source to query detailed information of tdmqRocketmq topic - -Example Usage - -```hcl -data "tencentcloud_tdmq_rocketmq_topic" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_id = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - filter_name = tencentcloud_tdmq_rocketmq_topic.example.topic_name -} - -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_topic" "example" { - topic_name = "tf_example" - namespace_name = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - type = "Normal" - remark = "remark." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_teo_rule_engine_settings.go b/tencentcloud/data_source_tc_teo_rule_engine_settings.go index a5369ac1af..0f2990997f 100644 --- a/tencentcloud/data_source_tc_teo_rule_engine_settings.go +++ b/tencentcloud/data_source_tc_teo_rule_engine_settings.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of teo ruleEngineSettings - -Example Usage - -```hcl -data "tencentcloud_teo_rule_engine_settings" "ruleEngineSettings" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_teo_zone_available_plans.go b/tencentcloud/data_source_tc_teo_zone_available_plans.go index 5f381eb9dc..9be553d507 100644 --- a/tencentcloud/data_source_tc_teo_zone_available_plans.go +++ b/tencentcloud/data_source_tc_teo_zone_available_plans.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of teo zoneAvailablePlans - -Example Usage - -```hcl -data "tencentcloud_teo_zone_available_plans" "zoneAvailablePlans" { -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_access_address.go b/tencentcloud/data_source_tc_tse_access_address.go index 38457751b3..e612ceba78 100644 --- a/tencentcloud/data_source_tc_tse_access_address.go +++ b/tencentcloud/data_source_tc_tse_access_address.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tse access_address - -Example Usage - -```hcl -data "tencentcloud_tse_access_address" "access_address" { - instance_id = "ins-7eb7eea7" - # vpc_id = "vpc-xxxxxx" - # subnet_id = "subnet-xxxxxx" - # workload = "pushgateway" - engine_region = "ap-guangzhou" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_gateway_canary_rules.go b/tencentcloud/data_source_tc_tse_gateway_canary_rules.go index b04a009067..a3e35ebe49 100644 --- a/tencentcloud/data_source_tc_tse_gateway_canary_rules.go +++ b/tencentcloud/data_source_tc_tse_gateway_canary_rules.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tse gateway_canary_rules - -Example Usage - -```hcl -data "tencentcloud_tse_gateway_canary_rules" "gateway_canary_rules" { - gateway_id = "gateway-xxxxxx" - service_id = "451a9920-e67a-4519-af41-fccac0e72005" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_gateway_certificates.go b/tencentcloud/data_source_tc_tse_gateway_certificates.go index 00d2ca6c4c..2bcadfecd0 100644 --- a/tencentcloud/data_source_tc_tse_gateway_certificates.go +++ b/tencentcloud/data_source_tc_tse_gateway_certificates.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tse gateway_certificates - -Example Usage - -```hcl - -data "tencentcloud_tse_gateway_certificates" "gateway_certificates" { - gateway_id = "gateway-ddbb709b" - filters { - key = "BindDomain" - value = "example.com" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_gateway_nodes.go b/tencentcloud/data_source_tc_tse_gateway_nodes.go index e1766e377e..bbc50f1993 100644 --- a/tencentcloud/data_source_tc_tse_gateway_nodes.go +++ b/tencentcloud/data_source_tc_tse_gateway_nodes.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tse gateway_nodes - -Example Usage - -```hcl -data "tencentcloud_tse_gateway_nodes" "gateway_nodes" { - gateway_id = "gateway-ddbb709b" - group_id = "group-013c0d8e" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_gateway_routes.go b/tencentcloud/data_source_tc_tse_gateway_routes.go index b8a923e299..1f046fa8bf 100644 --- a/tencentcloud/data_source_tc_tse_gateway_routes.go +++ b/tencentcloud/data_source_tc_tse_gateway_routes.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of tse gateway_routes - -Example Usage - -```hcl -data "tencentcloud_tse_gateway_routes" "gateway_routes" { - gateway_id = "gateway-ddbb709b" - service_name = "test" - route_name = "keep-routes" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_gateway_services.go b/tencentcloud/data_source_tc_tse_gateway_services.go index 02fa1aae13..7161250d07 100644 --- a/tencentcloud/data_source_tc_tse_gateway_services.go +++ b/tencentcloud/data_source_tc_tse_gateway_services.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tse gateway_services - -Example Usage - -```hcl -data "tencentcloud_tse_gateway_services" "gateway_services" { - gateway_id = "gateway-ddbb709b" - filters { - key = "name" - value = "test" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_gateways.go b/tencentcloud/data_source_tc_tse_gateways.go index ae66a09ad4..600ce2c34d 100644 --- a/tencentcloud/data_source_tc_tse_gateways.go +++ b/tencentcloud/data_source_tc_tse_gateways.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tse gateways - -Example Usage - -```hcl -data "tencentcloud_tse_gateways" "gateways" { - filters { - name = "GatewayId" - values = ["gateway-ddbb709b"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_groups.go b/tencentcloud/data_source_tc_tse_groups.go index becd6d2e1f..0073859a99 100644 --- a/tencentcloud/data_source_tc_tse_groups.go +++ b/tencentcloud/data_source_tc_tse_groups.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tse groups - -Example Usage - -```hcl -data "tencentcloud_tse_groups" "groups" { - gateway_id = "gateway-ddbb709b" - filters { - name = "GroupId" - values = ["group-013c0d8e"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_nacos_replicas.go b/tencentcloud/data_source_tc_tse_nacos_replicas.go index a055b82b7e..8b5ccc6f1f 100644 --- a/tencentcloud/data_source_tc_tse_nacos_replicas.go +++ b/tencentcloud/data_source_tc_tse_nacos_replicas.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tse nacos_replicas - -Example Usage - -```hcl -data "tencentcloud_tse_nacos_replicas" "nacos_replicas" { - instance_id = "ins-8078da86" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_nacos_server_interfaces.go b/tencentcloud/data_source_tc_tse_nacos_server_interfaces.go index 805fe5418a..60975b9c9d 100644 --- a/tencentcloud/data_source_tc_tse_nacos_server_interfaces.go +++ b/tencentcloud/data_source_tc_tse_nacos_server_interfaces.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tse nacos_server_interfaces - -Example Usage - -```hcl -data "tencentcloud_tse_nacos_server_interfaces" "nacos_server_interfaces" { - instance_id = "ins-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_zookeeper_replicas.go b/tencentcloud/data_source_tc_tse_zookeeper_replicas.go index 79b37f4b7d..5e215d480e 100644 --- a/tencentcloud/data_source_tc_tse_zookeeper_replicas.go +++ b/tencentcloud/data_source_tc_tse_zookeeper_replicas.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tse zookeeper_replicas - -Example Usage - -```hcl -data "tencentcloud_tse_zookeeper_replicas" "zookeeper_replicas" { - instance_id = "ins-7eb7eea7" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tse_zookeeper_server_interfaces.go b/tencentcloud/data_source_tc_tse_zookeeper_server_interfaces.go index 75ff2ab42c..3ea794e85f 100644 --- a/tencentcloud/data_source_tc_tse_zookeeper_server_interfaces.go +++ b/tencentcloud/data_source_tc_tse_zookeeper_server_interfaces.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tse zookeeper_server_interfaces - -Example Usage - -```hcl -data "tencentcloud_tse_zookeeper_server_interfaces" "zookeeper_server_interfaces" { - instance_id = "ins-7eb7eea7" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_api_detail.go b/tencentcloud/data_source_tc_tsf_api_detail.go index cdc436835a..05066307a3 100644 --- a/tencentcloud/data_source_tc_tsf_api_detail.go +++ b/tencentcloud/data_source_tc_tsf_api_detail.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tsf api_detail - -Example Usage - -```hcl -data "tencentcloud_tsf_api_detail" "api_detail" { - microservice_id = "ms-yq3jo6jd" - path = "/printRequest" - method = "GET" - pkg_version = "20210625192923" - application_id = "application-a24x29xv" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_api_group.go b/tencentcloud/data_source_tc_tsf_api_group.go index da95ee7ef4..789792ceea 100644 --- a/tencentcloud/data_source_tc_tsf_api_group.go +++ b/tencentcloud/data_source_tc_tsf_api_group.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of tsf api_group - -Example Usage - -```hcl -data "tencentcloud_tsf_api_group" "api_group" { - search_word = "xxx01" - group_type = "ms" - auth_type = "none" - status = "released" - order_by = "created_time" - order_type = 0 - gateway_instance_id = "gw-ins-lvdypq5k" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_application.go b/tencentcloud/data_source_tc_tsf_application.go index 6f87a25753..31c594862d 100644 --- a/tencentcloud/data_source_tc_tsf_application.go +++ b/tencentcloud/data_source_tc_tsf_application.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tsf application - -Example Usage - -```hcl -data "tencentcloud_tsf_application" "application" { - application_type = "V" - microservice_type = "N" - # application_resource_type_list = [""] - application_id_list = ["application-a24x29xv"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_application_attribute.go b/tencentcloud/data_source_tc_tsf_application_attribute.go index 8e7595f71f..2f30f962d2 100644 --- a/tencentcloud/data_source_tc_tsf_application_attribute.go +++ b/tencentcloud/data_source_tc_tsf_application_attribute.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tsf application_attribute - -Example Usage - -```hcl -data "tencentcloud_tsf_application_attribute" "application_attribute" { - application_id = "application-a24x29xv" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_application_config.go b/tencentcloud/data_source_tc_tsf_application_config.go index b3d8269f5c..c6fcdb8a70 100644 --- a/tencentcloud/data_source_tc_tsf_application_config.go +++ b/tencentcloud/data_source_tc_tsf_application_config.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tsf application_config - -Example Usage - -```hcl -data "tencentcloud_tsf_application_config" "application_config" { - application_id = "app-123456" - config_id = "config-123456" - config_id_list = - config_name = "test-config" - config_version = "1.0" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_application_file_config.go b/tencentcloud/data_source_tc_tsf_application_file_config.go index 0352f8070e..f25ba4b448 100644 --- a/tencentcloud/data_source_tc_tsf_application_file_config.go +++ b/tencentcloud/data_source_tc_tsf_application_file_config.go @@ -1,18 +1,3 @@ -/* -Use this data source to query detailed information of tsf application_file_config - -Example Usage - -```hcl -data "tencentcloud_tsf_application_file_config" "application_file_config" { - config_id = "dcfg-f-4y4ekzqv" - # config_id_list = [""] - config_name = "file-log1" - application_id = "application-2vzk6n3v" - config_version = "1.2" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_application_public_config.go b/tencentcloud/data_source_tc_tsf_application_public_config.go index ac2138f9e7..570f601c58 100644 --- a/tencentcloud/data_source_tc_tsf_application_public_config.go +++ b/tencentcloud/data_source_tc_tsf_application_public_config.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tsf application_public_config - -Example Usage - -```hcl -data "tencentcloud_tsf_application_public_config" "application_public_config" { - config_id = "dcfg-p-evjrbgly" - # config_id_list = [""] - config_name = "dsadsa" - config_version = "123" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_business_log_configs.go b/tencentcloud/data_source_tc_tsf_business_log_configs.go index f90c2c1968..c3eaa23cda 100644 --- a/tencentcloud/data_source_tc_tsf_business_log_configs.go +++ b/tencentcloud/data_source_tc_tsf_business_log_configs.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of tsf business_log_configs - -Example Usage - -```hcl -data "tencentcloud_tsf_business_log_configs" "business_log_configs" { - search_word = "terraform" - disable_program_auth_check = true - config_id_list = ["apm-busi-log-cfg-qv3x3rdv"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_cluster.go b/tencentcloud/data_source_tc_tsf_cluster.go index 2bc250223f..0829138f61 100644 --- a/tencentcloud/data_source_tc_tsf_cluster.go +++ b/tencentcloud/data_source_tc_tsf_cluster.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tsf cluster - -Example Usage - -```hcl -data "tencentcloud_tsf_cluster" "cluster" { - cluster_id_list = ["cluster-vwgj5e6y"] - cluster_type = "V" - # search_word = "" - disable_program_auth_check = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_config_summary.go b/tencentcloud/data_source_tc_tsf_config_summary.go index a97a39af63..0296a1ccec 100644 --- a/tencentcloud/data_source_tc_tsf_config_summary.go +++ b/tencentcloud/data_source_tc_tsf_config_summary.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tsf config_summary - -Example Usage - -```hcl -data "tencentcloud_tsf_config_summary" "config_summary" { - application_id = "application-a24x29xv" - search_word = "terraform" - order_by = "last_update_time" - order_type = 0 - disable_program_auth_check = true - config_id_list = ["dcfg-y54wzk3a"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_container_group.go b/tencentcloud/data_source_tc_tsf_container_group.go index 2ab1e46bef..9e9955ca49 100644 --- a/tencentcloud/data_source_tc_tsf_container_group.go +++ b/tencentcloud/data_source_tc_tsf_container_group.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tsf container_group - -Example Usage - -```hcl -data "tencentcloud_tsf_container_group" "container_group" { - application_id = "application-a24x29xv" - search_word = "keep" - order_by = "createTime" - order_type = 0 - cluster_id = "cluster-vwgj5e6y" - namespace_id = "namespace-aemrg36v" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_delivery_config_by_group_id.go b/tencentcloud/data_source_tc_tsf_delivery_config_by_group_id.go index 8d1da512b3..de729aa145 100644 --- a/tencentcloud/data_source_tc_tsf_delivery_config_by_group_id.go +++ b/tencentcloud/data_source_tc_tsf_delivery_config_by_group_id.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tsf delivery_config_by_group_id - -Example Usage - -```hcl -data "tencentcloud_tsf_delivery_config_by_group_id" "delivery_config_by_group_id" { - group_id = "group-yrjkln9v" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_delivery_configs.go b/tencentcloud/data_source_tc_tsf_delivery_configs.go index 3a7446ab63..edae5e295f 100644 --- a/tencentcloud/data_source_tc_tsf_delivery_configs.go +++ b/tencentcloud/data_source_tc_tsf_delivery_configs.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tsf delivery_configs - -Example Usage - -```hcl -data "tencentcloud_tsf_delivery_configs" "delivery_configs" { - search_word = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_gateway_all_group_apis.go b/tencentcloud/data_source_tc_tsf_gateway_all_group_apis.go index bc51063fe5..e327f4a507 100644 --- a/tencentcloud/data_source_tc_tsf_gateway_all_group_apis.go +++ b/tencentcloud/data_source_tc_tsf_gateway_all_group_apis.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tsf gateway_all_group_apis - -Example Usage - -```hcl -data "tencentcloud_tsf_gateway_all_group_apis" "gateway_all_group_apis" { - gateway_deploy_group_id = "group-aeoej4qy" - search_word = "user" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_group_config_release.go b/tencentcloud/data_source_tc_tsf_group_config_release.go index 5bf4d07065..e20779d348 100644 --- a/tencentcloud/data_source_tc_tsf_group_config_release.go +++ b/tencentcloud/data_source_tc_tsf_group_config_release.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tsf group_config_release - -Example Usage - -```hcl -data "tencentcloud_tsf_group_config_release" "group_config_release" { - group_id = "group-yrjkln9v" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_group_gateways.go b/tencentcloud/data_source_tc_tsf_group_gateways.go index dc5a9daf15..b6239fc3de 100644 --- a/tencentcloud/data_source_tc_tsf_group_gateways.go +++ b/tencentcloud/data_source_tc_tsf_group_gateways.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tsf group_gateways - -Example Usage - -```hcl -data "tencentcloud_tsf_group_gateways" "group_gateways" { - gateway_deploy_group_id = "group-aeoej4qy" - search_word = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_group_instances.go b/tencentcloud/data_source_tc_tsf_group_instances.go index 8cce4c44b0..0a86c1fbc2 100644 --- a/tencentcloud/data_source_tc_tsf_group_instances.go +++ b/tencentcloud/data_source_tc_tsf_group_instances.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tsf group_instances - -Example Usage - -```hcl -data "tencentcloud_tsf_group_instances" "group_instances" { - group_id = "group-yrjkln9v" - search_word = "testing" - order_by = "ASC" - order_type = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_groups.go b/tencentcloud/data_source_tc_tsf_groups.go index 6c4fb42169..37cc242747 100644 --- a/tencentcloud/data_source_tc_tsf_groups.go +++ b/tencentcloud/data_source_tc_tsf_groups.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of tsf groups - -Example Usage - -```hcl -data "tencentcloud_tsf_groups" "groups" { - search_word = "keep" - application_id = "application-a24x29xv" - order_by = "createTime" - order_type = 0 - namespace_id = "namespace-aemrg36v" - cluster_id = "cluster-vwgj5e6y" - group_resource_type_list = ["DEF"] - status = "Running" - group_id_list = ["group-yrjkln9v"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_microservice.go b/tencentcloud/data_source_tc_tsf_microservice.go index ec787fa9a4..258b584d76 100644 --- a/tencentcloud/data_source_tc_tsf_microservice.go +++ b/tencentcloud/data_source_tc_tsf_microservice.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of tsf microservice - -Example Usage - -```hcl -data "tencentcloud_tsf_microservice" "microservice" { - namespace_id = var.namespace_id - # status = - microservice_id_list = ["ms-yq3jo6jd"] - microservice_name_list = ["provider-demo"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_microservice_api_version.go b/tencentcloud/data_source_tc_tsf_microservice_api_version.go index 0305d9c7f1..148fb55227 100644 --- a/tencentcloud/data_source_tc_tsf_microservice_api_version.go +++ b/tencentcloud/data_source_tc_tsf_microservice_api_version.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of tsf microservice_api_version - -Example Usage - -```hcl -data "tencentcloud_tsf_microservice_api_version" "microservice_api_version" { - microservice_id = "ms-yq3jo6jd" - path = "" - method = "get" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_ms_api_list.go b/tencentcloud/data_source_tc_tsf_ms_api_list.go index e8c1696f00..e99d483042 100644 --- a/tencentcloud/data_source_tc_tsf_ms_api_list.go +++ b/tencentcloud/data_source_tc_tsf_ms_api_list.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tsf ms_api_list - -Example Usage - -```hcl -data "tencentcloud_tsf_ms_api_list" "ms_api_list" { - microservice_id = "ms-yq3jo6jd" - search_word = "echo" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_pod_instances.go b/tencentcloud/data_source_tc_tsf_pod_instances.go index 107f9fdea1..3a6c26c9b8 100644 --- a/tencentcloud/data_source_tc_tsf_pod_instances.go +++ b/tencentcloud/data_source_tc_tsf_pod_instances.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tsf pod_instances - -Example Usage - -```hcl -data "tencentcloud_tsf_pod_instances" "pod_instances" { - group_id = "group-ynd95rea" - pod_name_list = ["keep-terraform-6f8f977688-zvphm"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_public_config_summary.go b/tencentcloud/data_source_tc_tsf_public_config_summary.go index 38f3b67179..98b3317e9c 100644 --- a/tencentcloud/data_source_tc_tsf_public_config_summary.go +++ b/tencentcloud/data_source_tc_tsf_public_config_summary.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of tsf public_config_summary - -Example Usage - -```hcl -data "tencentcloud_tsf_describe_public_config_summary" "describe_public_config_summary" { - search_word = "test" - order_by = "last_update_time" - order_type = 0 - # config_tag_list = [""] - disable_program_auth_check = true - config_id_list = ["dcfg-p-ygbdw5mv"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_repository.go b/tencentcloud/data_source_tc_tsf_repository.go index 1e2b2fe496..575e877406 100644 --- a/tencentcloud/data_source_tc_tsf_repository.go +++ b/tencentcloud/data_source_tc_tsf_repository.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tsf repository - -Example Usage - -```hcl -data "tencentcloud_tsf_repository" "repository" { - search_word = "test" - repository_type = "default" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_unit_rules.go b/tencentcloud/data_source_tc_tsf_unit_rules.go index 9f8b3c6cb6..5038c586c0 100644 --- a/tencentcloud/data_source_tc_tsf_unit_rules.go +++ b/tencentcloud/data_source_tc_tsf_unit_rules.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of tsf unit_rules - -Example Usage - -```hcl -data "tencentcloud_tsf_unit_rules" "unit_rules" { - gateway_instance_id = "gw-ins-lvdypq5k" - status = "disabled" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_tsf_usable_unit_namespaces.go b/tencentcloud/data_source_tc_tsf_usable_unit_namespaces.go index e95ca1af72..9557d79793 100644 --- a/tencentcloud/data_source_tc_tsf_usable_unit_namespaces.go +++ b/tencentcloud/data_source_tc_tsf_usable_unit_namespaces.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of tsf usable_unit_namespaces - -Example Usage - -```hcl -data "tencentcloud_tsf_usable_unit_namespaces" "usable_unit_namespaces" { - search_word = "" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_user_info.go b/tencentcloud/data_source_tc_user_info.go index 39f565720d..eb9a3ff2e6 100644 --- a/tencentcloud/data_source_tc_user_info.go +++ b/tencentcloud/data_source_tc_user_info.go @@ -1,13 +1,3 @@ -/* -Use this data source to query user appid, uin and ownerUin. - -Example Usage - -```hcl -data "tencentcloud_user_info" "foo" {} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vod_adaptive_dynamic_streaming_templates.go b/tencentcloud/data_source_tc_vod_adaptive_dynamic_streaming_templates.go index e1310645f2..54d8f06144 100644 --- a/tencentcloud/data_source_tc_vod_adaptive_dynamic_streaming_templates.go +++ b/tencentcloud/data_source_tc_vod_adaptive_dynamic_streaming_templates.go @@ -1,56 +1,3 @@ -/* -Use this data source to query detailed information of VOD adaptive dynamic streaming templates. - -Example Usage - -```hcl -resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { - format = "HLS" - name = "tf-adaptive" - drm_type = "SimpleAES" - disable_higher_video_bitrate = false - disable_higher_video_resolution = false - comment = "test" - - stream_info { - video { - codec = "libx265" - fps = 4 - bitrate = 129 - resolution_adaptive = false - width = 128 - height = 128 - fill_type = "stretch" - } - audio { - codec = "libmp3lame" - bitrate = 129 - sample_rate = 44100 - audio_channel = "dual" - } - remove_audio = false - } - stream_info { - video { - codec = "libx264" - fps = 4 - bitrate = 256 - } - audio { - codec = "libfdk_aac" - bitrate = 256 - sample_rate = 44100 - } - remove_audio = true - } -} - -data "tencentcloud_vod_adaptive_dynamic_streaming_templates" "foo" { - type = "Custom" - definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vod_image_sprite_templates.go b/tencentcloud/data_source_tc_vod_image_sprite_templates.go index 919ee42696..6bad509308 100644 --- a/tencentcloud/data_source_tc_vod_image_sprite_templates.go +++ b/tencentcloud/data_source_tc_vod_image_sprite_templates.go @@ -1,28 +1,3 @@ -/* -Use this data source to query detailed information of VOD image sprite templates. - -Example Usage - -```hcl -resource "tencentcloud_vod_image_sprite_template" "foo" { - sample_type = "Percent" - sample_interval = 10 - row_count = 3 - column_count = 3 - name = "tf-sprite" - comment = "test" - fill_type = "stretch" - width = 128 - height = 128 - resolution_adaptive = false -} - -data "tencentcloud_vod_image_sprite_templates" "foo" { - type = "Custom" - definition = tencentcloud_vod_image_sprite_template.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vod_procedure_templates.go b/tencentcloud/data_source_tc_vod_procedure_templates.go index bdb5017214..5b52bfe6e6 100644 --- a/tencentcloud/data_source_tc_vod_procedure_templates.go +++ b/tencentcloud/data_source_tc_vod_procedure_templates.go @@ -1,34 +1,3 @@ -/* -Use this data source to query detailed information of VOD procedure templates. - -Example Usage - -```hcl -resource "tencentcloud_vod_procedure_template" "foo" { - name = "tf-procedure" - comment = "test" - media_process_task { - adaptive_dynamic_streaming_task_list { - definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id - } - snapshot_by_time_offset_task_list { - definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id - ext_time_offset_list = [ - "3.5s" - ] - } - image_sprite_task_list { - definition = tencentcloud_vod_image_sprite_template.foo.id - } - } -} - -data "tencentcloud_vod_procedure_templates" "foo" { - type = "Custom" - name = tencentcloud_vod_procedure_template.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vod_snapshot_by_time_offset_templates.go b/tencentcloud/data_source_tc_vod_snapshot_by_time_offset_templates.go index cd10b7075c..763dd14c23 100644 --- a/tencentcloud/data_source_tc_vod_snapshot_by_time_offset_templates.go +++ b/tencentcloud/data_source_tc_vod_snapshot_by_time_offset_templates.go @@ -1,25 +1,3 @@ -/* -Use this data source to query detailed information of VOD snapshot by time offset templates. - -Example Usage - -```hcl -resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" { - name = "tf-snapshot" - width = 130 - height = 128 - resolution_adaptive = false - format = "png" - comment = "test" - fill_type = "white" -} - -data "tencentcloud_vod_snapshot_by_time_offset_templates" "foo" { - type = "Custom" - definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vod_super_player_configs.go b/tencentcloud/data_source_tc_vod_super_player_configs.go index eb96829dee..147903cf98 100644 --- a/tencentcloud/data_source_tc_vod_super_player_configs.go +++ b/tencentcloud/data_source_tc_vod_super_player_configs.go @@ -1,35 +1,3 @@ -/* -Use this data source to query detailed information of VOD super player configs. - -Example Usage - -```hcl -resource "tencentcloud_vod_super_player_config" "foo" { - name = "tf-super-player" - drm_switch = true - drm_streaming_info { - simple_aes_definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id - } - image_sprite_definition = tencentcloud_vod_image_sprite_template.foo.id - resolution_names { - min_edge_length = 889 - name = "test1" - } - resolution_names { - min_edge_length = 890 - name = "test2" - } - domain = "Default" - scheme = "Default" - comment = "test" -} - -data "tencentcloud_vod_super_player_configs" "foo" { - type = "Custom" - name = "tf-super-player" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc.go b/tencentcloud/data_source_tc_vpc.go index 459cafd1fc..4e5ff52263 100644 --- a/tencentcloud/data_source_tc_vpc.go +++ b/tencentcloud/data_source_tc_vpc.go @@ -1,27 +1,3 @@ -/* -Provides details about a specific VPC. - -This resource can prove useful when a module accepts a vpc id as an input variable and needs to, for example, determine the CIDR block of that VPC. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_vpc_instances. - -Example Usage - -```hcl -variable "vpc_id" {} - -data "tencentcloud_vpc" "selected" { - id = var.vpc_id -} - -resource "tencentcloud_subnet" "main" { - name = "my test subnet" - cidr_block = cidrsubnet(data.tencentcloud_vpc.selected.cidr_block, 4, 1) - availability_zone = "eu-frankfurt-1" - vpc_id = data.tencentcloud_vpc.selected.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_account_attributes.go b/tencentcloud/data_source_tc_vpc_account_attributes.go index 36ed570c8d..d283992251 100644 --- a/tencentcloud/data_source_tc_vpc_account_attributes.go +++ b/tencentcloud/data_source_tc_vpc_account_attributes.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of vpc account_attributes - -Example Usage - -```hcl -data "tencentcloud_vpc_account_attributes" "account_attributes" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_acls.go b/tencentcloud/data_source_tc_vpc_acls.go index de551e7cf3..9a114f55b9 100644 --- a/tencentcloud/data_source_tc_vpc_acls.go +++ b/tencentcloud/data_source_tc_vpc_acls.go @@ -1,22 +1,3 @@ -/* -Use this data source to query VPC Network ACL information. - -Example Usage - -```hcl -data "tencentcloud_vpc_instances" "foo" { -} - -data "tencentcloud_vpc_acls" "foo" { - vpc_id = data.tencentcloud_vpc_instances.foo.instance_list.0.vpc_id -} - -data "tencentcloud_vpc_acls" "foo" { - name = "test_acl" -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_bandwidth_package_bill_usage.go b/tencentcloud/data_source_tc_vpc_bandwidth_package_bill_usage.go index dac84079f6..6c5e407c82 100644 --- a/tencentcloud/data_source_tc_vpc_bandwidth_package_bill_usage.go +++ b/tencentcloud/data_source_tc_vpc_bandwidth_package_bill_usage.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc bandwidth_package_bill_usage - -Example Usage - -```hcl -data "tencentcloud_vpc_bandwidth_package_bill_usage" "bandwidth_package_bill_usage" { - bandwidth_package_id = "bwp-234rfgt5" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_bandwidth_package_quota.go b/tencentcloud/data_source_tc_vpc_bandwidth_package_quota.go index c2d9e64f8c..40934194c4 100644 --- a/tencentcloud/data_source_tc_vpc_bandwidth_package_quota.go +++ b/tencentcloud/data_source_tc_vpc_bandwidth_package_quota.go @@ -1,13 +1,3 @@ -/* -Use this data source to query detailed information of vpc bandwidth_package_quota - -Example Usage - -```hcl -data "tencentcloud_vpc_bandwidth_package_quota" "bandwidth_package_quota" { - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_classic_link_instances.go b/tencentcloud/data_source_tc_vpc_classic_link_instances.go index 1b0ec06f21..535a31c85d 100644 --- a/tencentcloud/data_source_tc_vpc_classic_link_instances.go +++ b/tencentcloud/data_source_tc_vpc_classic_link_instances.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of vpc classic_link_instances - -Example Usage - -```hcl -data "tencentcloud_vpc_classic_link_instances" "classic_link_instances" { - filters { - name = "vpc-id" - values = ["vpc-lh4nqig9"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_cvm_instances.go b/tencentcloud/data_source_tc_vpc_cvm_instances.go index 4ccf50bbe2..34431b7a83 100644 --- a/tencentcloud/data_source_tc_vpc_cvm_instances.go +++ b/tencentcloud/data_source_tc_vpc_cvm_instances.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of vpc cvm_instances - -Example Usage - -```hcl -data "tencentcloud_vpc_cvm_instances" "cvm_instances" { - filters { - name = "vpc-id" - values = ["vpc-lh4nqig9"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_gateway_flow_monitor_detail.go b/tencentcloud/data_source_tc_vpc_gateway_flow_monitor_detail.go index 2f63aaaf71..8f84da0894 100644 --- a/tencentcloud/data_source_tc_vpc_gateway_flow_monitor_detail.go +++ b/tencentcloud/data_source_tc_vpc_gateway_flow_monitor_detail.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of vpc gateway_flow_monitor_detail - -Example Usage - -```hcl -data "tencentcloud_vpc_gateway_flow_monitor_detail" "gateway_flow_monitor_detail" { - time_point = "2023-06-02 12:15:20" - vpn_id = "vpngw-gt8bianl" - order_field = "OutTraffic" - order_direction = "DESC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_gateway_flow_qos.go b/tencentcloud/data_source_tc_vpc_gateway_flow_qos.go index d8d58ac96f..af00dbd07d 100644 --- a/tencentcloud/data_source_tc_vpc_gateway_flow_qos.go +++ b/tencentcloud/data_source_tc_vpc_gateway_flow_qos.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc gateway_flow_qos - -Example Usage - -```hcl -data "tencentcloud_vpc_gateway_flow_qos" "gateway_flow_qos" { - gateway_id = "vpngw-gt8bianl" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_instances.go b/tencentcloud/data_source_tc_vpc_instances.go index a79295a132..cc1553b603 100644 --- a/tencentcloud/data_source_tc_vpc_instances.go +++ b/tencentcloud/data_source_tc_vpc_instances.go @@ -1,23 +1,3 @@ -/* -Use this data source to query vpc instances' information. - -Example Usage - -```hcl -resource "tencentcloud_vpc" "foo" { - name = "guagua_vpc_instance_test" - cidr_block = "10.0.0.0/16" -} - -data "tencentcloud_vpc_instances" "id_instances" { - vpc_id = tencentcloud_vpc.foo.id -} - -data "tencentcloud_vpc_instances" "name_instances" { - name = tencentcloud_vpc.foo.name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_limits.go b/tencentcloud/data_source_tc_vpc_limits.go index 168ddaf9f6..68a3d0fc92 100644 --- a/tencentcloud/data_source_tc_vpc_limits.go +++ b/tencentcloud/data_source_tc_vpc_limits.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc limits - -Example Usage - -```hcl -data "tencentcloud_vpc_limits" "limits" { - limit_types = ["appid-max-vpcs", "vpc-max-subnets"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_net_detect_state_check.go b/tencentcloud/data_source_tc_vpc_net_detect_state_check.go index f3aa7fd01f..13bedfa900 100644 --- a/tencentcloud/data_source_tc_vpc_net_detect_state_check.go +++ b/tencentcloud/data_source_tc_vpc_net_detect_state_check.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of vpc net_detect_state_check - -Example Usage - -```hcl -data "tencentcloud_vpc_net_detect_state_check" "net_detect_state_check" { - net_detect_id = "netd-12345678" - detect_destination_ip = [ - "10.0.0.3", - "10.0.0.2" - ] - next_hop_type = "NORMAL_CVM" - next_hop_destination = "10.0.0.4" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_net_detect_states.go b/tencentcloud/data_source_tc_vpc_net_detect_states.go index 7039a02c37..1eea52e977 100644 --- a/tencentcloud/data_source_tc_vpc_net_detect_states.go +++ b/tencentcloud/data_source_tc_vpc_net_detect_states.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc net_detect_states - -Example Usage - -```hcl -data "tencentcloud_vpc_net_detect_states" "net_detect_states" { - net_detect_ids = ["netd-12345678"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_network_interface_limit.go b/tencentcloud/data_source_tc_vpc_network_interface_limit.go index 17cc48cfa4..60395cefa0 100644 --- a/tencentcloud/data_source_tc_vpc_network_interface_limit.go +++ b/tencentcloud/data_source_tc_vpc_network_interface_limit.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc network_interface_limit - -Example Usage - -```hcl -data "tencentcloud_vpc_network_interface_limit" "network_interface_limit" { - instance_id = "ins-cr2rfq78" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_private_ip_addresses.go b/tencentcloud/data_source_tc_vpc_private_ip_addresses.go index e901e36723..938db902c4 100644 --- a/tencentcloud/data_source_tc_vpc_private_ip_addresses.go +++ b/tencentcloud/data_source_tc_vpc_private_ip_addresses.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of vpc private_ip_addresses - -Example Usage - -```hcl -data "tencentcloud_vpc_private_ip_addresses" "private_ip_addresses" { - vpc_id = "vpc-l0dw94uh" - private_ip_addresses = ["10.0.0.1"] -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_product_quota.go b/tencentcloud/data_source_tc_vpc_product_quota.go index 787c4a56f4..00837eb971 100644 --- a/tencentcloud/data_source_tc_vpc_product_quota.go +++ b/tencentcloud/data_source_tc_vpc_product_quota.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc product_quota - -Example Usage - -```hcl -data "tencentcloud_vpc_product_quota" "product_quota" { - product = "vpc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_resource_dashboard.go b/tencentcloud/data_source_tc_vpc_resource_dashboard.go index a772bf1409..c7c2f9f0d1 100644 --- a/tencentcloud/data_source_tc_vpc_resource_dashboard.go +++ b/tencentcloud/data_source_tc_vpc_resource_dashboard.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc resource_dashboard - -Example Usage - -```hcl -data "tencentcloud_vpc_resource_dashboard" "resource_dashboard" { - vpc_ids = ["vpc-4owdpnwr"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_route_conflicts.go b/tencentcloud/data_source_tc_vpc_route_conflicts.go index af9f5ab324..b083e4bfbb 100644 --- a/tencentcloud/data_source_tc_vpc_route_conflicts.go +++ b/tencentcloud/data_source_tc_vpc_route_conflicts.go @@ -1,15 +1,3 @@ -/* -Use this data source to query detailed information of vpc route_conflicts - -Example Usage - -```hcl -data "tencentcloud_vpc_route_conflicts" "route_conflicts" { - route_table_id = "rtb-6xypllqe" - destination_cidr_blocks = ["172.18.111.0/24"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_route_tables.go b/tencentcloud/data_source_tc_vpc_route_tables.go index a6c67ee24e..e1b1b282c8 100644 --- a/tencentcloud/data_source_tc_vpc_route_tables.go +++ b/tencentcloud/data_source_tc_vpc_route_tables.go @@ -1,45 +1,3 @@ -/* -Use this data source to query vpc route tables information. - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -resource "tencentcloud_vpc" "foo" { - name = "guagua-ci-temp-test" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_route_table" "route_table" { - vpc_id = tencentcloud_vpc.foo.id - name = "ci-temp-test-rt" - - tags = { - "test" = "test" - } -} - -data "tencentcloud_vpc_route_tables" "id_instances" { - route_table_id = tencentcloud_route_table.route_table.id -} - -data "tencentcloud_vpc_route_tables" "name_instances" { - name = tencentcloud_route_table.route_table.name -} - -data "tencentcloud_vpc_route_tables" "vpc_default_instance" { - vpc_id = tencentcloud_vpc.foo.id - association_main = true -} - -data "tencentcloud_vpc_route_tables" "tags_instances" { - tags = tencentcloud_route_table.route_table.tags -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_security_group_limits.go b/tencentcloud/data_source_tc_vpc_security_group_limits.go index 89b9b4184b..a760ec1fcb 100644 --- a/tencentcloud/data_source_tc_vpc_security_group_limits.go +++ b/tencentcloud/data_source_tc_vpc_security_group_limits.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of vpc security_group_limits - -Example Usage - -```hcl -data "tencentcloud_vpc_security_group_limits" "security_group_limits" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_security_group_references.go b/tencentcloud/data_source_tc_vpc_security_group_references.go index e8cc56a4dc..d8a42895d0 100644 --- a/tencentcloud/data_source_tc_vpc_security_group_references.go +++ b/tencentcloud/data_source_tc_vpc_security_group_references.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc security_group_references - -Example Usage - -```hcl -data "tencentcloud_vpc_security_group_references" "security_group_references" { - security_group_ids = ["sg-edmur627"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_sg_snapshot_file_content.go b/tencentcloud/data_source_tc_vpc_sg_snapshot_file_content.go index 264751e03e..67e57830fb 100644 --- a/tencentcloud/data_source_tc_vpc_sg_snapshot_file_content.go +++ b/tencentcloud/data_source_tc_vpc_sg_snapshot_file_content.go @@ -1,16 +1,3 @@ -/* -Use this data source to query detailed information of vpc sg_snapshot_file_content - -Example Usage - -```hcl -data "tencentcloud_vpc_sg_snapshot_file_content" "sg_snapshot_file_content" { - snapshot_policy_id = "sspolicy-ebjofe71" - snapshot_file_id = "ssfile-017gepjxpr" - security_group_id = "sg-ntrgm89v" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_snapshot_files.go b/tencentcloud/data_source_tc_vpc_snapshot_files.go index c6b25bf811..643543fa76 100644 --- a/tencentcloud/data_source_tc_vpc_snapshot_files.go +++ b/tencentcloud/data_source_tc_vpc_snapshot_files.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of vpc snapshot_files - -Example Usage - -```hcl -data "tencentcloud_vpc_snapshot_files" "snapshot_files" { - business_type = "securitygroup" - instance_id = "sg-902tl7t7" - start_date = "2022-10-10 00:00:00" - end_date = "2023-10-30 19:00:00" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_subnet_resource_dashboard.go b/tencentcloud/data_source_tc_vpc_subnet_resource_dashboard.go index 40532a7ae0..43b8760a27 100644 --- a/tencentcloud/data_source_tc_vpc_subnet_resource_dashboard.go +++ b/tencentcloud/data_source_tc_vpc_subnet_resource_dashboard.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc subnet_resource_dashboard - -Example Usage - -```hcl -data "tencentcloud_vpc_subnet_resource_dashboard" "subnet_resource_dashboard" { - subnet_ids = ["subnet-i9tpf6hq"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_subnets.go b/tencentcloud/data_source_tc_vpc_subnets.go index 722b70eaaa..f4be2b5a02 100644 --- a/tencentcloud/data_source_tc_vpc_subnets.go +++ b/tencentcloud/data_source_tc_vpc_subnets.go @@ -1,43 +1,3 @@ -/* - Use this data source to query vpc subnets information. - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -resource "tencentcloud_vpc" "foo" { - name = "guagua_vpc_instance_test" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = var.availability_zone - name = "guagua_vpc_subnet_test" - vpc_id = tencentcloud_vpc.foo.id - cidr_block = "10.0.20.0/28" - is_multicast = false - - tags = { - "test" = "test" - } -} - -data "tencentcloud_vpc_subnets" "id_instances" { - subnet_id = tencentcloud_subnet.subnet.id -} - -data "tencentcloud_vpc_subnets" "name_instances" { - name = tencentcloud_subnet.subnet.name -} - -data "tencentcloud_vpc_subnets" "tags_instances" { - tags = tencentcloud_subnet.subnet.tags -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_template_limits.go b/tencentcloud/data_source_tc_vpc_template_limits.go index 3a6ffd0a69..22fff30423 100644 --- a/tencentcloud/data_source_tc_vpc_template_limits.go +++ b/tencentcloud/data_source_tc_vpc_template_limits.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of vpc template_limits - -Example Usage - -```hcl -data "tencentcloud_vpc_template_limits" "template_limits" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpc_used_ip_address.go b/tencentcloud/data_source_tc_vpc_used_ip_address.go index 866d43704c..1e80022cfa 100644 --- a/tencentcloud/data_source_tc_vpc_used_ip_address.go +++ b/tencentcloud/data_source_tc_vpc_used_ip_address.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpc used_ip_address - -Example Usage - -```hcl -data "tencentcloud_vpc_used_ip_address" "used_ip_address" { - vpc_id = "vpc-4owdpnwr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpn_connections.go b/tencentcloud/data_source_tc_vpn_connections.go index f9377fd53d..bb33f5b7e1 100644 --- a/tencentcloud/data_source_tc_vpn_connections.go +++ b/tencentcloud/data_source_tc_vpn_connections.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of VPN connections. - -Example Usage - -```hcl -data "tencentcloud_vpn_connections" "foo" { - name = "main" - id = "vpnx-xfqag" - vpn_gateway_id = "vpngw-8ccsnclt" - vpc_id = "cgw-xfqag" - customer_gateway_id = "" - tags = { - test = "tf" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpn_customer_gateway_vendors.go b/tencentcloud/data_source_tc_vpn_customer_gateway_vendors.go index 5f4f05b1d2..e19e7a5d50 100644 --- a/tencentcloud/data_source_tc_vpn_customer_gateway_vendors.go +++ b/tencentcloud/data_source_tc_vpn_customer_gateway_vendors.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of vpc vpn_customer_gateway_vendors - -Example Usage - -```hcl -data "tencentcloud_vpn_customer_gateway_vendors" "vpn_customer_gateway_vendors" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpn_customer_gateways.go b/tencentcloud/data_source_tc_vpn_customer_gateways.go index 2969afd049..7f7b67b1d5 100644 --- a/tencentcloud/data_source_tc_vpn_customer_gateways.go +++ b/tencentcloud/data_source_tc_vpn_customer_gateways.go @@ -1,19 +1,3 @@ -/* -Use this data source to query detailed information of VPN customer gateways. - -Example Usage - -```hcl -data "tencentcloud_customer_gateways" "foo" { - name = "main" - id = "cgw-xfqag" - public_ip_address = "1.1.1.1" - tags = { - test = "tf" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpn_default_health_check_ip.go b/tencentcloud/data_source_tc_vpn_default_health_check_ip.go index 2a0ec7fb27..d2b6ef60c9 100644 --- a/tencentcloud/data_source_tc_vpn_default_health_check_ip.go +++ b/tencentcloud/data_source_tc_vpn_default_health_check_ip.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of vpn default_health_check_ip - -Example Usage - -```hcl -data "tencentcloud_vpn_default_health_check_ip" "default_health_check_ip" { - vpn_gateway_id = "vpngw-gt8bianl" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpn_gateway_routes.go b/tencentcloud/data_source_tc_vpn_gateway_routes.go index b6bc2e7200..2d523a7116 100644 --- a/tencentcloud/data_source_tc_vpn_gateway_routes.go +++ b/tencentcloud/data_source_tc_vpn_gateway_routes.go @@ -1,20 +1,3 @@ -/* -Use this data source to query detailed information of VPN gateways. - -Example Usage - -```hcl -data "tencentcloud_vpn_gateways" "foo" { - vpn_gateway_id = "main" - destination_cidr_block = "vpngw-8ccsnclt" - instance_type = "1.1.1.1" - instance_id = "ap-guangzhou-3" - tags = { - test = "tf" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_vpn_gateways.go b/tencentcloud/data_source_tc_vpn_gateways.go index c15f85e47c..2bbaa8d3a6 100644 --- a/tencentcloud/data_source_tc_vpn_gateways.go +++ b/tencentcloud/data_source_tc_vpn_gateways.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of VPN gateways. - -Example Usage - -```hcl -data "tencentcloud_vpn_gateways" "foo" { - name = "main" - id = "vpngw-8ccsnclt" - public_ip_address = "1.1.1.1" - zone = "ap-guangzhou-3" - vpc_id = "vpc-dk8zmwuf" - tags = { - test = "tf" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_attack_log_histogram.go b/tencentcloud/data_source_tc_waf_attack_log_histogram.go index 7c2e8c147d..be3b893a08 100644 --- a/tencentcloud/data_source_tc_waf_attack_log_histogram.go +++ b/tencentcloud/data_source_tc_waf_attack_log_histogram.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of waf attack_log_histogram - -Example Usage - -Obtain the specified domain name log information - -```hcl -data "tencentcloud_waf_attack_log_histogram" "example" { - domain = "domain.com" - start_time = "2023-09-01 00:00:00" - end_time = "2023-09-29 00:00:00" - query_string = "method:GET" -} -``` - -Obtain all domain name log information - -```hcl -data "tencentcloud_waf_attack_log_histogram" "example" { - domain = "all" - start_time = "2023-09-01 00:00:00" - end_time = "2023-09-29 00:00:00" - query_string = "method:GET" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_attack_log_list.go b/tencentcloud/data_source_tc_waf_attack_log_list.go index e95ca87241..4034e5dcc2 100644 --- a/tencentcloud/data_source_tc_waf_attack_log_list.go +++ b/tencentcloud/data_source_tc_waf_attack_log_list.go @@ -1,36 +1,3 @@ -/* -Use this data source to query detailed information of waf attack_log_list - -Example Usage - -Obtain the specified domain name attack log list - -```hcl -data "tencentcloud_waf_attack_log_list" "example" { - domain = "domain.com" - start_time = "2023-09-01 00:00:00" - end_time = "2023-09-07 00:00:00" - query_string = "method:GET" - sort = "desc" - query_count = 10 - page = 0 -} -``` - -Obtain all domain name attack log list - -```hcl -data "tencentcloud_waf_attack_log_list" "example" { - domain = "all" - start_time = "2023-09-01 00:00:00" - end_time = "2023-09-07 00:00:00" - query_string = "method:GET" - sort = "asc" - query_count = 20 - page = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_attack_overview.go b/tencentcloud/data_source_tc_waf_attack_overview.go index 4abe2096a4..463c36b22a 100644 --- a/tencentcloud/data_source_tc_waf_attack_overview.go +++ b/tencentcloud/data_source_tc_waf_attack_overview.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of waf attack_overview - -Example Usage - -Basic Query - -```hcl -data "tencentcloud_waf_attack_overview" "example" { - from_time = "2023-09-01 00:00:00" - to_time = "2023-09-07 00:00:00" -} -``` - -Query by filter - -```hcl -data "tencentcloud_waf_attack_overview" "example" { - from_time = "2023-09-01 00:00:00" - to_time = "2023-09-07 00:00:00" - appid = 1304251372 - domain = "test.com" - edition = "clb-waf" - instance_id = "waf_2kxtlbky00b2v1fn" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_attack_total_count.go b/tencentcloud/data_source_tc_waf_attack_total_count.go index adbeb2e74b..cd18f7a291 100644 --- a/tencentcloud/data_source_tc_waf_attack_total_count.go +++ b/tencentcloud/data_source_tc_waf_attack_total_count.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of waf attack_total_count - -Example Usage - -Obtain the specified domain name attack log - -```hcl -data "tencentcloud_waf_attack_total_count" "example" { - start_time = "2023-09-01 00:00:00" - end_time = "2023-09-07 00:00:00" - domain = "domain.com" - query_string = "method:GET" -} -``` - -Obtain all domain name attack log - -```hcl -data "tencentcloud_waf_attack_total_count" "example" { - start_time = "2023-09-01 00:00:00" - end_time = "2023-09-07 00:00:00" - domain = "all" - query_string = "method:GET" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_ciphers.go b/tencentcloud/data_source_tc_waf_ciphers.go index 751e486fc6..5c61217c61 100644 --- a/tencentcloud/data_source_tc_waf_ciphers.go +++ b/tencentcloud/data_source_tc_waf_ciphers.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of waf ciphers - -Example Usage - -```hcl -data "tencentcloud_waf_ciphers" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_domains.go b/tencentcloud/data_source_tc_waf_domains.go index 9b6f24c130..19a29f70fe 100644 --- a/tencentcloud/data_source_tc_waf_domains.go +++ b/tencentcloud/data_source_tc_waf_domains.go @@ -1,23 +1,3 @@ -/* -Use this data source to query detailed information of waf domains - -Example Usage - -Find all domains - -```hcl -data "tencentcloud_waf_domains" "example" {} -``` - -Find domains by filter - -```hcl -data "tencentcloud_waf_domains" "example" { - instance_id = "waf_2kxtlbky01b3wceb" - domain = "tf.example.com" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_find_domains.go b/tencentcloud/data_source_tc_waf_find_domains.go index 21d50f7b39..44a4b1ed42 100644 --- a/tencentcloud/data_source_tc_waf_find_domains.go +++ b/tencentcloud/data_source_tc_waf_find_domains.go @@ -1,25 +1,3 @@ -/* -Use this data source to query detailed information of waf find_domains - -Example Usage - -Find all domains - -```hcl -data "tencentcloud_waf_find_domains" "example" {} -``` - -Find domains by filter - -```hcl -data "tencentcloud_waf_find_domains" "example" { - key = "keyWord" - is_waf_domain = "1" - by = "FindTime" - order = "asc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_instance_qps_limit.go b/tencentcloud/data_source_tc_waf_instance_qps_limit.go index facfe96eff..8faa1683be 100644 --- a/tencentcloud/data_source_tc_waf_instance_qps_limit.go +++ b/tencentcloud/data_source_tc_waf_instance_qps_limit.go @@ -1,14 +1,3 @@ -/* -Use this data source to query detailed information of waf instance_qps_limit - -Example Usage - -```hcl -data "tencentcloud_waf_instance_qps_limit" "example" { - instance_id = "waf_2kxtlbky00b3b4qz" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_peak_points.go b/tencentcloud/data_source_tc_waf_peak_points.go index 5e6a85befa..eab683943b 100644 --- a/tencentcloud/data_source_tc_waf_peak_points.go +++ b/tencentcloud/data_source_tc_waf_peak_points.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of waf peak_points - -Example Usage - -Basic Query - -```hcl -data "tencentcloud_waf_peak_points" "example" { - from_time = "2023-09-01 00:00:00" - to_time = "2023-09-07 00:00:00" -} -``` - -Query by filter - -```hcl -data "tencentcloud_waf_peak_points" "example" { - from_time = "2023-09-01 00:00:00" - to_time = "2023-09-07 00:00:00" - domain = "domain.com" - edition = "clb-waf" - instance_id = "waf_2kxtlbky00b2v1fn" - metric_name = "access" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_ports.go b/tencentcloud/data_source_tc_waf_ports.go index 3082717ddf..b700e529f5 100644 --- a/tencentcloud/data_source_tc_waf_ports.go +++ b/tencentcloud/data_source_tc_waf_ports.go @@ -1,21 +1,3 @@ -/* -Use this data source to query detailed information of waf ports - -Example Usage - -```hcl -data "tencentcloud_waf_ports" "example" {} -``` - -Or - -```hcl -data "tencentcloud_waf_ports" "example" { - edition = "clb-waf" - instance_id = "waf_2kxtlbky00b2v1fn" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_tls_versions.go b/tencentcloud/data_source_tc_waf_tls_versions.go index dbb92306fa..f3b9db85d4 100644 --- a/tencentcloud/data_source_tc_waf_tls_versions.go +++ b/tencentcloud/data_source_tc_waf_tls_versions.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of waf tls_versions - -Example Usage - -```hcl -data "tencentcloud_waf_tls_versions" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_user_clb_regions.go b/tencentcloud/data_source_tc_waf_user_clb_regions.go index f75ecc88e4..7701bd15fa 100644 --- a/tencentcloud/data_source_tc_waf_user_clb_regions.go +++ b/tencentcloud/data_source_tc_waf_user_clb_regions.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of waf user_clb_regions - -Example Usage - -```hcl -data "tencentcloud_waf_user_clb_regions" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_waf_user_domains.go b/tencentcloud/data_source_tc_waf_user_domains.go index 9bd6a922f1..5bda295294 100644 --- a/tencentcloud/data_source_tc_waf_user_domains.go +++ b/tencentcloud/data_source_tc_waf_user_domains.go @@ -1,12 +1,3 @@ -/* -Use this data source to query detailed information of waf user_domains - -Example Usage - -```hcl -data "tencentcloud_waf_user_domains" "user_domains" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_wedata_data_source_list.go b/tencentcloud/data_source_tc_wedata_data_source_list.go index 2e72acfe16..3d16333ee0 100644 --- a/tencentcloud/data_source_tc_wedata_data_source_list.go +++ b/tencentcloud/data_source_tc_wedata_data_source_list.go @@ -1,30 +1,3 @@ -/* -Use this data source to query detailed information of wedata data_source_list - -Example Usage - -Query All - -```hcl -data "tencentcloud_wedata_data_source_list" "example" {} -``` - -Query By filter - -```hcl -data "tencentcloud_wedata_data_source_list" "example" { - order_fields { - name = "create_time" - direction = "DESC" - } - - filters { - name = "Name" - values = ["tf_example"] - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_wedata_data_source_without_info.go b/tencentcloud/data_source_tc_wedata_data_source_without_info.go index 24faf818ed..1313bda802 100644 --- a/tencentcloud/data_source_tc_wedata_data_source_without_info.go +++ b/tencentcloud/data_source_tc_wedata_data_source_without_info.go @@ -1,22 +1,3 @@ -/* -Use this data source to query detailed information of wedata data_source_without_info - -Example Usage - -```hcl -data "tencentcloud_wedata_data_source_without_info" "example" { - filters { - name = "ownerProjectId" - values = ["1612982498218618880"] - } - - order_fields { - name = "create_time" - direction = "DESC" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/data_source_tc_wedata_rule_templates.go b/tencentcloud/data_source_tc_wedata_rule_templates.go index 280040f3a9..91fab97001 100644 --- a/tencentcloud/data_source_tc_wedata_rule_templates.go +++ b/tencentcloud/data_source_tc_wedata_rule_templates.go @@ -1,17 +1,3 @@ -/* -Use this data source to query detailed information of wedata rule templates - -Example Usage - -```hcl -data "tencentcloud_wedata_rule_templates" "rule_templates" { - type = 2 - source_object_type = 2 - project_id = "1840731346428280832" - source_engine_types = [2, 4, 16] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/dayu/data_source_tc_dayu_cc_http_policies.md b/tencentcloud/dayu/data_source_tc_dayu_cc_http_policies.md new file mode 100644 index 0000000000..5f2b7c1d6b --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_cc_http_policies.md @@ -0,0 +1,16 @@ +Use this data source to query dayu CC http policies + +Example Usage + +```hcl +data "tencentcloud_dayu_cc_http_policies" "id_test" { + resource_type = tencentcloud_dayu_cc_http_policy.test_policy.resource_type + resource_id = tencentcloud_dayu_cc_http_policy.test_policy.resource_id + policy_id = tencentcloud_dayu_cc_http_policy.test_policy.policy_id +} +data "tencentcloud_dayu_cc_http_policies" "name_test" { + resource_type = tencentcloud_dayu_cc_http_policy.test_policy.resource_type + resource_id = tencentcloud_dayu_cc_http_policy.test_policy.resource_id + name = tencentcloud_dayu_cc_http_policy.test_policy.name +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/data_source_tc_dayu_cc_https_policies.md b/tencentcloud/dayu/data_source_tc_dayu_cc_https_policies.md new file mode 100644 index 0000000000..8224610b82 --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_cc_https_policies.md @@ -0,0 +1,16 @@ +Use this data source to query dayu CC https policies + +Example Usage + +```hcl +data "tencentcloud_dayu_cc_https_policies" "name_test" { + resource_type = tencentcloud_dayu_cc_https_policy.test_policy.resource_type + resource_id = tencentcloud_dayu_cc_https_policy.test_policy.resource_id + name = tencentcloud_dayu_cc_https_policy.test_policy.name +} +data "tencentcloud_dayu_cc_https_policies" "id_test" { + resource_type = tencentcloud_dayu_cc_https_policy.test_policy.resource_type + resource_id = tencentcloud_dayu_cc_https_policy.test_policy.resource_id + policy_id = tencentcloud_dayu_cc_https_policy.test_policy.policy_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/data_source_tc_dayu_ddos_policies.md b/tencentcloud/dayu/data_source_tc_dayu_ddos_policies.md new file mode 100644 index 0000000000..6f28d4770f --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_ddos_policies.md @@ -0,0 +1,10 @@ +Use this data source to query dayu DDoS policies + +Example Usage + +```hcl +data "tencentcloud_dayu_ddos_policies" "id_test" { + resource_type = tencentcloud_dayu_ddos_policy.test_policy.resource_type + policy_id = tencentcloud_dayu_ddos_policy.test_policy.policy_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/data_source_tc_dayu_ddos_policy_attachments.md b/tencentcloud/dayu/data_source_tc_dayu_ddos_policy_attachments.md new file mode 100644 index 0000000000..c1c4f0baba --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_ddos_policy_attachments.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of dayu DDoS policy attachments + +Example Usage + +```hcl +data "tencentcloud_dayu_ddos_policy_attachments" "foo_type" { + resource_type = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type +} +data "tencentcloud_dayu_ddos_policy_attachments" "foo_resource" { + resource_id = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_id + resource_type = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type +} +data "tencentcloud_dayu_ddos_policy_attachments" "foo_policy" { + resource_type = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type + policy_id = tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.policy_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/data_source_tc_dayu_ddos_policy_cases.md b/tencentcloud/dayu/data_source_tc_dayu_ddos_policy_cases.md new file mode 100644 index 0000000000..0366ba4de8 --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_ddos_policy_cases.md @@ -0,0 +1,10 @@ +Use this data source to query dayu DDoS policy cases + +Example Usage + +```hcl +data "tencentcloud_dayu_ddos_policy_cases" "id_test" { + resource_type = tencentcloud_dayu_ddos_policy_case.test_policy_case.resource_type + scene_id = tencentcloud_dayu_ddos_policy_case.test_policy_case.scene_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/data_source_tc_dayu_l4_rules.md b/tencentcloud/dayu/data_source_tc_dayu_l4_rules.md new file mode 100644 index 0000000000..ef8ad4193a --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_l4_rules.md @@ -0,0 +1,16 @@ +Use this data source to query dayu layer 4 rules + +Example Usage + +```hcl +data "tencentcloud_dayu_l4_rules" "name_test" { + resource_type = tencentcloud_dayu_l4_rule.test_rule.resource_type + resource_id = tencentcloud_dayu_l4_rule.test_rule.resource_id + name = tencentcloud_dayu_l4_rule.test_rule.name +} +data "tencentcloud_dayu_l4_rules" "id_test" { + resource_type = tencentcloud_dayu_l4_rule.test_rule.resource_type + resource_id = tencentcloud_dayu_l4_rule.test_rule.resource_id + rule_id = tencentcloud_dayu_l4_rule.test_rule.rule_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/data_source_tc_dayu_l7_rules.md b/tencentcloud/dayu/data_source_tc_dayu_l7_rules.md new file mode 100644 index 0000000000..c5e66f1de9 --- /dev/null +++ b/tencentcloud/dayu/data_source_tc_dayu_l7_rules.md @@ -0,0 +1,16 @@ +Use this data source to query dayu layer 7 rules + +Example Usage + +```hcl +data "tencentcloud_dayu_l7_rules" "domain_test" { + resource_type = tencentcloud_dayu_l7_rule.test_rule.resource_type + resource_id = tencentcloud_dayu_l7_rule.test_rule.resource_id + domain = tencentcloud_dayu_l7_rule.test_rule.domain +} +data "tencentcloud_dayu_l7_rules" "id_test" { + resource_type = tencentcloud_dayu_l7_rule.test_rule.resource_type + resource_id = tencentcloud_dayu_l7_rule.test_rule.resource_id + rule_id = tencentcloud_dayu_l7_rule.test_rule.rule_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_cc_http_policy.md b/tencentcloud/dayu/resource_tc_dayu_cc_http_policy.md new file mode 100644 index 0000000000..07de8759ec --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_cc_http_policy.md @@ -0,0 +1,64 @@ +Use this resource to create a dayu CC self-define http policy + +Example Usage + +```hcl +resource "tencentcloud_dayu_cc_http_policy" "test_bgpip" { + resource_type = "bgpip" + resource_id = "bgpip-00000294" + name = "policy_match" + smode = "matching" + action = "drop" + switch = true + rule_list { + skey = "host" + operator = "include" + value = "123" + } +} + +resource "tencentcloud_dayu_cc_http_policy" "test_net" { + resource_type = "net" + resource_id = "net-0000007e" + name = "policy_match" + smode = "matching" + action = "drop" + switch = true + rule_list { + skey = "cgi" + operator = "equal" + value = "123" + } +} + +resource "tencentcloud_dayu_cc_http_policy" "test_bgpmultip" { + resource_type = "bgp-multip" + resource_id = "bgp-0000008o" + name = "policy_match" + smode = "matching" + action = "alg" + switch = true + ip = "111.230.178.25" + + rule_list { + skey = "referer" + operator = "not_include" + value = "123" + } +} + +resource "tencentcloud_dayu_cc_http_policy" "test_bgp" { + resource_type = "bgp" + resource_id = "bgp-000006mq" + name = "policy_match" + smode = "matching" + action = "alg" + switch = true + + rule_list { + skey = "ua" + operator = "not_include" + value = "123" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_cc_https_policy.md b/tencentcloud/dayu/resource_tc_dayu_cc_https_policy.md new file mode 100644 index 0000000000..bf42c395d9 --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_cc_https_policy.md @@ -0,0 +1,24 @@ +Use this resource to create a dayu CC self-define https policy + +~> **NOTE:** creating CC self-define https policy need a valid resource `tencentcloud_dayu_l7_rule`; The resource only support Anti-DDoS of resource type `bgpip`. + +Example Usage + +```hcl +resource "tencentcloud_dayu_cc_https_policy" "test_policy" { + resource_type = tencentcloud_dayu_l7_rule.test_rule.resource_type + resource_id = tencentcloud_dayu_l7_rule.test_rule.resource_id + rule_id = tencentcloud_dayu_l7_rule.test_rule.rule_id + domain = tencentcloud_dayu_l7_rule.test_rule.domain + name = "policy_test" + action = "drop" + switch = true + + rule_list { + skey = "cgi" + operator = "include" + value = "123" + } +} + +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_ddos_policy.md b/tencentcloud/dayu/resource_tc_dayu_ddos_policy.md new file mode 100644 index 0000000000..a6d4ce1297 --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_ddos_policy.md @@ -0,0 +1,66 @@ +Use this resource to create dayu DDoS policy + +Example Usage + +```hcl +resource "tencentcloud_dayu_ddos_policy" "test_policy" { + resource_type = "bgpip" + name = "tf_test_policy" + black_ips = ["1.1.1.1"] + white_ips = ["2.2.2.2"] + + drop_options { + drop_tcp = true + drop_udp = true + drop_icmp = true + drop_other = true + drop_abroad = true + check_sync_conn = true + s_new_limit = 100 + d_new_limit = 100 + s_conn_limit = 100 + d_conn_limit = 100 + tcp_mbps_limit = 100 + udp_mbps_limit = 100 + icmp_mbps_limit = 100 + other_mbps_limit = 100 + bad_conn_threshold = 100 + null_conn_enable = true + conn_timeout = 500 + syn_rate = 50 + syn_limit = 100 + } + + port_filters { + start_port = "2000" + end_port = "2500" + protocol = "all" + action = "drop" + kind = 1 + } + + packet_filters { + protocol = "tcp" + action = "drop" + d_start_port = 1000 + d_end_port = 1500 + s_start_port = 2000 + s_end_port = 2500 + pkt_length_max = 1400 + pkt_length_min = 1000 + is_include = true + match_begin = "begin_l5" + match_type = "pcre" + depth = 1000 + offset = 500 + } + + watermark_filters { + tcp_port_list = ["2000-3000", "3500-4000"] + udp_port_list = ["5000-6000"] + offset = 50 + auto_remove = true + open_switch = true + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_ddos_policy_attachment.md b/tencentcloud/dayu/resource_tc_dayu_ddos_policy_attachment.md new file mode 100644 index 0000000000..e3484dfe98 --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_ddos_policy_attachment.md @@ -0,0 +1,11 @@ +Provides a resource to create a dayu DDoS policy attachment. + +Example Usage + +```hcl +resource "tencentcloud_dayu_ddos_policy_attachment" "dayu_ddos_policy_attachment_basic" { + resource_type = tencentcloud_dayu_ddos_policy.test_policy.resource_type + resource_id = "bgpip-00000294" + policy_id = tencentcloud_dayu_ddos_policy.test_policy.policy_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_ddos_policy_case.md b/tencentcloud/dayu/resource_tc_dayu_ddos_policy_case.md new file mode 100644 index 0000000000..624536a717 --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_ddos_policy_case.md @@ -0,0 +1,32 @@ +Use this resource to create dayu DDoS policy case + +~> **NOTE:** when a dayu DDoS policy case is created, there will be a dayu DDoS policy created with the same prefix name in the same time. This resource only supports Anti-DDoS of type `bgp`, `bgp-multip` and `bgpip`. One Anti-DDoS resource can only has one DDoS policy case resource. When there is only one Anti-DDoS resource and one policy case, those two resource will be bind automatically. + +Example Usage + +```hcl +resource "tencentcloud_dayu_ddos_policy_case" "foo" { + resource_type = "bgpip" + name = "tf_test_policy_case" + platform_types = ["PC", "MOBILE"] + app_type = "WEB" + app_protocols = ["tcp", "udp"] + tcp_start_port = "1000" + tcp_end_port = "2000" + udp_start_port = "3000" + udp_end_port = "4000" + has_abroad = "yes" + has_initiate_tcp = "yes" + has_initiate_udp = "yes" + peer_tcp_port = "1111" + peer_udp_port = "3333" + tcp_footprint = "511" + udp_footprint = "500" + web_api_urls = ["abc.com", "test.cn/aaa.png"] + min_tcp_package_len = "1000" + max_tcp_package_len = "1200" + min_udp_package_len = "1000" + max_udp_package_len = "1200" + has_vpn = "yes" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_l4_rule.md b/tencentcloud/dayu/resource_tc_dayu_l4_rule.md new file mode 100644 index 0000000000..a04efdb110 --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_l4_rule.md @@ -0,0 +1,33 @@ +Use this resource to create dayu layer 4 rule + +~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` and `net` + +Example Usage + +```hcl +resource "tencentcloud_dayu_l4_rule" "test_rule" { + resource_type = "bgpip" + resource_id = "bgpip-00000294" + name = "rule_test" + protocol = "TCP" + s_port = 80 + d_port = 60 + source_type = 2 + health_check_switch = true + health_check_timeout = 30 + health_check_interval = 35 + health_check_health_num = 5 + health_check_unhealth_num = 10 + session_switch = false + session_time = 300 + + source_list { + source = "1.1.1.1" + weight = 100 + } + source_list { + source = "2.2.2.2" + weight = 50 + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dayu/resource_tc_dayu_l7_rule.md b/tencentcloud/dayu/resource_tc_dayu_l7_rule.md new file mode 100644 index 0000000000..360c6ae607 --- /dev/null +++ b/tencentcloud/dayu/resource_tc_dayu_l7_rule.md @@ -0,0 +1,26 @@ +Use this resource to create dayu layer 7 rule + +~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` + +Example Usage + +```hcl +resource "tencentcloud_dayu_l7_rule" "test_rule" { + resource_type = "bgpip" + resource_id = "bgpip-00000294" + name = "rule_test" + domain = "zhaoshaona.com" + protocol = "https" + switch = true + source_type = 2 + source_list = ["1.1.1.1:80", "2.2.2.2"] + ssl_id = "%s" + health_check_switch = true + health_check_code = 31 + health_check_interval = 30 + health_check_method = "GET" + health_check_path = "/" + health_check_health_num = 5 + health_check_unhealth_num = 10 +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_antiddos_overview_cc_trend.md b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_cc_trend.md new file mode 100644 index 0000000000..52dc7697b1 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_cc_trend.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of antiddos overview_cc_trend + +Example Usage + +```hcl +data "tencentcloud_antiddos_overview_cc_trend" "overview_cc_trend" { + period = 300 + start_time = "2023-11-20 00:00:00" + end_time = "2023-11-21 00:00:00" + metric_name = "inqps" + business = "bgpip" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_event_list.md b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_event_list.md new file mode 100644 index 0000000000..59ed9fe4c0 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_event_list.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of antiddos overview_ddos_event_list + +Example Usage + +```hcl +data "tencentcloud_antiddos_overview_ddos_event_list" "overview_ddos_event_list" { + start_time = "2023-11-20 00:00:00" + end_time = "2023-11-21 00:00:00" + attack_status = "end" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_trend.md b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_trend.md new file mode 100644 index 0000000000..0802df116c --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_trend.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of antiddos overview ddos trend + +Example Usage + +```hcl +data "tencentcloud_antiddos_overview_ddos_trend" "overview_ddos_trend" { + period = 300 + start_time = "2023-11-20 14:16:23" + end_time = "2023-11-21 14:16:23" + metric_name = "bps" + business = "bgpip" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_antiddos_overview_index.md b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_index.md new file mode 100644 index 0000000000..df09e8f740 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_antiddos_overview_index.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of antiddos overview index + +Example Usage + +```hcl +data "tencentcloud_antiddos_overview_index" "overview_index" { + start_time = "2023-11-20 12:32:12" + end_time = "2023-11-21 12:32:12" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_antiddos_pending_risk_info.md b/tencentcloud/dayuv2/data_source_tc_antiddos_pending_risk_info.md new file mode 100644 index 0000000000..a67fce1b29 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_antiddos_pending_risk_info.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of antiddos pending risk info + +Example Usage + +```hcl +data "tencentcloud_antiddos_pending_risk_info" "pending_risk_info" { +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_dayu_eip.md b/tencentcloud/dayuv2/data_source_tc_dayu_eip.md new file mode 100644 index 0000000000..bb19d0d6c1 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_dayu_eip.md @@ -0,0 +1,9 @@ +Use this data source to query dayu eip rules + +Example Usage + +```hcl +data "tencentcloud_dayu_eip" "test" { + resource_id="bgpip-000004xg" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_dayu_l4_rules_v2.md b/tencentcloud/dayuv2/data_source_tc_dayu_l4_rules_v2.md new file mode 100644 index 0000000000..8d3abfc1f7 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_dayu_l4_rules_v2.md @@ -0,0 +1,9 @@ +Use this data source to query dayu new layer 4 rules + +Example Usage + +```hcl +data "tencentcloud_dayu_l4_rules_v2" "tencentcloud_dayu_l4_rules_v2" { + business = "bgpip" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/data_source_tc_dayu_l7_rules_v2.md b/tencentcloud/dayuv2/data_source_tc_dayu_l7_rules_v2.md new file mode 100644 index 0000000000..c8cefbc4a3 --- /dev/null +++ b/tencentcloud/dayuv2/data_source_tc_dayu_l7_rules_v2.md @@ -0,0 +1,11 @@ +Use this data source to query new dayu layer 7 rules + +Example Usage + +```hcl +data "tencentcloud_dayu_l7_rules_v2" "test" { + business = "bgpip" + domain = "qq.com" + protocol = "https" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_cc_black_white_ip.md b/tencentcloud/dayuv2/resource_tc_antiddos_cc_black_white_ip.md new file mode 100644 index 0000000000..67f128c0e0 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_cc_black_white_ip.md @@ -0,0 +1,26 @@ +Provides a resource to create a antiddos cc black white ip + +Example Usage + +```hcl +resource "tencentcloud_antiddos_cc_black_white_ip" "cc_black_white_ip" { + instance_id = "bgpip-xxxxxx" + black_white_ip { + ip = "1.2.3.5" + mask = 0 + + } + type = "black" + ip = "xxx.xxx.xxx.xxx" + domain = "t.baidu.com" + protocol = "http" +} +``` + +Import + +antiddos cc_black_white_ip can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_cc_black_white_ip.cc_black_white_ip ${instanceId}#${policyId}#${instanceIp}#${domain}#${protocol} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_cc_precision_policy.md b/tencentcloud/dayuv2/resource_tc_antiddos_cc_precision_policy.md new file mode 100644 index 0000000000..8e0f3716e0 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_cc_precision_policy.md @@ -0,0 +1,34 @@ +Provides a resource to create a antiddos cc_precision_policy + +Example Usage + +```hcl +resource "tencentcloud_antiddos_cc_precision_policy" "cc_precision_policy" { + instance_id = "bgpip-0000078h" + ip = "212.64.62.191" + protocol = "http" + domain = "t.baidu.com" + policy_action = "drop" + policy_list { + field_type = "value" + field_name = "cgi" + value = "a.com" + value_operator = "equal" + } + + policy_list { + field_type = "value" + field_name = "ua" + value = "test" + value_operator = "equal" + } +} +``` + +Import + +antiddos cc_precision_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_cc_precision_policy.cc_precision_policy ${instanceId}#${policyId}#${instanceIp}#${domain}#${protocol} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_ddos_black_white_ip.md b/tencentcloud/dayuv2/resource_tc_antiddos_ddos_black_white_ip.md new file mode 100644 index 0000000000..f1789128e1 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_ddos_black_white_ip.md @@ -0,0 +1,20 @@ +Provides a resource to create a antiddos ddos black white ip + +Example Usage + +```hcl +resource "tencentcloud_antiddos_ddos_black_white_ip" "ddos_black_white_ip" { + instance_id = "bgp-xxxxxx" + ip = "1.2.3.5" + mask = 0 + type = "black" +} +``` + +Import + +antiddos ddos_black_white_ip can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_ddos_black_white_ip.ddos_black_white_ip ${instanceId}#${ip} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_ddos_geo_ip_block_config.md b/tencentcloud/dayuv2/resource_tc_antiddos_ddos_geo_ip_block_config.md new file mode 100644 index 0000000000..0c127ca483 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_ddos_geo_ip_block_config.md @@ -0,0 +1,22 @@ +Provides a resource to create a antiddos ddos_geo_ip_block_config + +Example Usage + +```hcl +resource "tencentcloud_antiddos_ddos_geo_ip_block_config" "ddos_geo_ip_block_config" { + instance_id = "bgp-xxxxxx" + ddos_geo_ip_block_config { + region_type = "customized" + action = "drop" + area_list = [100002] + } +} +``` + +Import + +antiddos ddos_geo_ip_block_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_ddos_geo_ip_block_config.ddos_geo_ip_block_config ${instanceId}#${configId} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_ddos_speed_limit_config.md b/tencentcloud/dayuv2/resource_tc_antiddos_ddos_speed_limit_config.md new file mode 100644 index 0000000000..a75698ce72 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_ddos_speed_limit_config.md @@ -0,0 +1,30 @@ +Provides a resource to create a antiddos ddos speed limit config + +Example Usage + +```hcl +resource "tencentcloud_antiddos_ddos_speed_limit_config" "ddos_speed_limit_config" { + instance_id = "bgp-xxxxxx" + ddos_speed_limit_config { + mode = 1 + speed_values { + type = 1 + value = 1 + } + speed_values { + type = 2 + value = 2 + } + protocol_list = "ALL" + dst_port_list = "8000" + } +} +``` + +Import + +antiddos ddos_speed_limit_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_ddos_speed_limit_config.ddos_speed_limit_config ${instanceId}#${configId}s +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_default_alarm_threshold.md b/tencentcloud/dayuv2/resource_tc_antiddos_default_alarm_threshold.md new file mode 100644 index 0000000000..8c14c6734f --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_default_alarm_threshold.md @@ -0,0 +1,21 @@ +Provides a resource to create a antiddos default alarm threshold + +Example Usage + +```hcl +resource "tencentcloud_antiddos_default_alarm_threshold" "default_alarm_threshold" { + default_alarm_config { + alarm_type = 1 + alarm_threshold = 2000 + } + instance_type = "bgp" +} +``` + +Import + +antiddos default_alarm_threshold can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_default_alarm_threshold.default_alarm_threshold ${instanceType} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_ip_alarm_threshold_config.md b/tencentcloud/dayuv2/resource_tc_antiddos_ip_alarm_threshold_config.md new file mode 100644 index 0000000000..58d0d1117c --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_ip_alarm_threshold_config.md @@ -0,0 +1,20 @@ +Provides a resource to create a antiddos ip_alarm_threshold_config + +Example Usage + +```hcl +resource "tencentcloud_antiddos_ip_alarm_threshold_config" "ip_alarm_threshold_config" { + alarm_type = 1 + alarm_threshold = 2 + instance_ip = "xxx.xxx.xxx.xxx" + instance_id = "bgp-xxxxxx" +} +``` + +Import + +antiddos ip_alarm_threshold_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_ip_alarm_threshold_config.ip_alarm_threshold_config ${instanceId}#${instanceIp}#${alarmType} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_packet_filter_config.md b/tencentcloud/dayuv2/resource_tc_antiddos_packet_filter_config.md new file mode 100644 index 0000000000..fb1494fe00 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_packet_filter_config.md @@ -0,0 +1,33 @@ +Provides a resource to create a antiddos packet filter config + +Example Usage + +```hcl +resource "tencentcloud_antiddos_packet_filter_config" "packet_filter_config" { + instance_id = "bgp-00000ry7" + packet_filter_config { + action = "drop" + depth = 1 + dport_start = 80 + dport_end = 80 + is_not = 0 + match_begin = "begin_l5" + match_type = "pcre" + offset = 1 + pktlen_min = 1400 + pktlen_max = 1400 + protocol = "all" + sport_start = 8080 + sport_end = 8080 + str = "a" + } +}s +``` + +Import + +antiddos packet_filter_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_packet_filter_config.packet_filter_config packet_filter_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_port_acl_config.md b/tencentcloud/dayuv2/resource_tc_antiddos_port_acl_config.md new file mode 100644 index 0000000000..2af3a7273f --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_port_acl_config.md @@ -0,0 +1,27 @@ +Provides a resource to create a antiddos port acl config + +Example Usage + +```hcl +resource "tencentcloud_antiddos_port_acl_config" "port_acl_config" { + instance_id = "bgp-xxxxxx" + acl_config { + forward_protocol = "all" + d_port_start = 22 + d_port_end = 23 + s_port_start = 22 + s_port_end = 23 + action = "drop" + priority = 2 + + } +} +``` + +Import + +antiddos port_acl_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_port_acl_config.port_acl_config ${instanceId}#${configJson} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_antiddos_scheduling_domain_user_name.md b/tencentcloud/dayuv2/resource_tc_antiddos_scheduling_domain_user_name.md new file mode 100644 index 0000000000..d18d1312eb --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_antiddos_scheduling_domain_user_name.md @@ -0,0 +1,18 @@ +Provides a resource to create a antiddos scheduling_domain_user_name + +Example Usage + +```hcl +resource "tencentcloud_antiddos_scheduling_domain_user_name" "scheduling_domain_user_name" { + domain_name = "test.com" + domain_user_name = "" +} +``` + +Import + +antiddos scheduling_domain_user_name can be imported using the id, e.g. + +``` +terraform import tencentcloud_antiddos_scheduling_domain_user_name.scheduling_domain_user_name ${domainName} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_dayu_cc_policy_v2.md b/tencentcloud/dayuv2/resource_tc_dayu_cc_policy_v2.md new file mode 100644 index 0000000000..91b11e741c --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_cc_policy_v2.md @@ -0,0 +1,52 @@ +Use this resource to create a dayu CC policy + +Example Usage + +```hcl +resource "tencentcloud_dayu_cc_policy_v2" "demo" { + resource_id="bgpip-000004xf" + business="bgpip" + thresholds { + domain="12.com" + threshold=0 + } + cc_geo_ip_policys { + action="drop" + region_type="china" + domain="12.com" + protocol="http" + } + + cc_black_white_ips { + protocol="http" + domain="12.com" + black_white_ip="1.2.3.4" + type="black" + } + cc_precision_policys{ + policy_action="drop" + domain="1.com" + protocol="http" + ip="162.62.163.34" + policys { + field_name="cgi" + field_type="value" + value="12123.com" + value_operator="equal" + } + } + cc_precision_req_limits { + domain="11.com" + protocol="http" + level="loose" + policys { + action="alg" + execute_duration=2 + mode="equal" + period=5 + request_num=12 + uri="15.com" + } + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_dayu_ddos_ip_attachment_v2.md b/tencentcloud/dayuv2/resource_tc_dayu_ddos_ip_attachment_v2.md new file mode 100644 index 0000000000..45d969242d --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_ddos_ip_attachment_v2.md @@ -0,0 +1,15 @@ +Provides a resource to create a antiddos ip. Only support for bgp-multip. + +Example Usage + +```hcl +resource "tencentcloud_dayu_ddos_ip_attachment_v2" "boundip" { + id = "bgp-xxxxxx" + bound_ip_list { + ip = "1.1.1.1" + biz_type = "public" + instance_id = "ins-xxx" + device_type = "cvm" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_dayu_ddos_policy_v2.md b/tencentcloud/dayuv2/resource_tc_dayu_ddos_policy_v2.md new file mode 100644 index 0000000000..800435ca43 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_ddos_policy_v2.md @@ -0,0 +1,89 @@ +Use this resource to create dayu DDoS policy v2 + +Example Usage + +```hcl +resource "tencentcloud_dayu_ddos_policy_v2" "ddos_v2" { + resource_id = "bgpip-000004xf" + business = "bgpip" + ddos_threshold="100" + ddos_level="low" + black_white_ips { + ip = "1.2.3.4" + ip_type = "black" + } + acls { + action = "transmit" + d_port_start = 1 + d_port_end = 10 + s_port_start=10 + s_port_end=20 + priority=9 + forward_protocol="all" + } + protocol_block_config { + drop_icmp=1 + drop_tcp=0 + drop_udp=0 + drop_other=0 + } + ddos_connect_limit { + sd_new_limit=10 + sd_conn_limit=11 + dst_new_limit=20 + dst_conn_limit=21 + bad_conn_threshold=30 + syn_rate=10 + syn_limit=20 + conn_timeout=30 + null_conn_enable=1 + } + ddos_ai="on" + ddos_geo_ip_block_config { + action="drop" + area_list=["100001"] + region_type="customized" + } + ddos_speed_limit_config { + protocol_list="TCP" + dst_port_list="10" + mode=1 + packet_rate=10 + bandwidth=20 + } + packet_filters { + action="drop" + protocol="all" + s_port_start=10 + s_port_end=10 + d_port_start=20 + d_port_end=20 + pktlen_min=30 + pktlen_max=30 + str="12" + str2="30" + match_logic="and" + match_type="pcre" + match_type2="pcre" + match_begin="begin_l3" + match_begin2="begin_l3" + depth=2 + depth2=3 + offset=1 + offset2=2 + is_not=0 + is_not2=0 + } + water_print_config { + offset = 1 + open_status = 1 + listeners { + frontend_port = 90 + forward_protocol = "TCP" + frontend_port_end = 90 + } + verify = "checkall" + } +} + +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_dayu_eip.md b/tencentcloud/dayuv2/resource_tc_dayu_eip.md new file mode 100644 index 0000000000..e3a2eb749e --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_eip.md @@ -0,0 +1,13 @@ +Use this resource to create dayu eip rule + +Example Usage + +```hcl +resource "tencentcloud_dayu_eip" "test" { + resource_id = "bgpip-000004xg" + eip = "162.62.163.50" + bind_resource_id = "ins-4m0jvxic" + bind_resource_region = "hk" + bind_resource_type = "cvm" +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_dayu_l4_rule.md b/tencentcloud/dayuv2/resource_tc_dayu_l4_rule.md new file mode 100644 index 0000000000..a04efdb110 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_l4_rule.md @@ -0,0 +1,33 @@ +Use this resource to create dayu layer 4 rule + +~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` and `net` + +Example Usage + +```hcl +resource "tencentcloud_dayu_l4_rule" "test_rule" { + resource_type = "bgpip" + resource_id = "bgpip-00000294" + name = "rule_test" + protocol = "TCP" + s_port = 80 + d_port = 60 + source_type = 2 + health_check_switch = true + health_check_timeout = 30 + health_check_interval = 35 + health_check_health_num = 5 + health_check_unhealth_num = 10 + session_switch = false + session_time = 300 + + source_list { + source = "1.1.1.1" + weight = 100 + } + source_list { + source = "2.2.2.2" + weight = 50 + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dayuv2/resource_tc_dayu_l7_rule_v2.md b/tencentcloud/dayuv2/resource_tc_dayu_l7_rule_v2.md new file mode 100644 index 0000000000..bd4c3443ee --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_l7_rule_v2.md @@ -0,0 +1,29 @@ +Use this resource to create dayu new layer 7 rule + +~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` + +Example Usage + +```hcl +resource "tencentcloud_dayu_l7_rule_v2" "tencentcloud_dayu_l7_rule_v2" { + resource_type="bgpip" + resource_id="bgpip-000004xe" + resource_ip="119.28.217.162" + rule { + keep_enable=false + keeptime=0 + source_list { + source="1.2.3.5" + weight=100 + } + source_list { + source="1.2.3.6" + weight=100 + } + lb_type=1 + protocol="http" + source_type=2 + domain="github.com" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_db_space_status.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_db_space_status.md new file mode 100644 index 0000000000..ca2ee71b8d --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_db_space_status.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain db_space_status + +Example Usage + +```hcl +data "tencentcloud_dbbrain_db_space_status" "db_space_status" { + instance_id = "%s" + range_days = 7 + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_db_instances.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_db_instances.md new file mode 100644 index 0000000000..f9eab02dca --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_db_instances.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain diag_db_instances + +Example Usage + +```hcl +data "tencentcloud_dbbrain_diag_db_instances" "diag_db_instances" { + is_supported = true + product = "mysql" + instance_names = ["keep_preset_mysql"] +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_event.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_event.md new file mode 100644 index 0000000000..36f5b8d2da --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_event.md @@ -0,0 +1,18 @@ +Use this data source to query detailed information of dbbrain diag_event + +Example Usage + +```hcl +data "tencentcloud_dbbrain_diag_history" "diag_history" { + instance_id = "%s" + start_time = "%s" + end_time = "%s" + product = "mysql" +} + +data "tencentcloud_dbbrain_diag_event" "diag_event" { + instance_id = "%s" + event_id = data.tencentcloud_dbbrain_diag_history.diag_history.events.0.event_id + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_events.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_events.md new file mode 100644 index 0000000000..7b05f15555 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_events.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dbbrain diag_events + +Example Usage + +```hcl +data "tencentcloud_dbbrain_diag_events" "diag_events" { + instance_ids = ["%s"] + start_time = "%s" + end_time = "%s" + severities = [1,4,5] +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_history.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_history.md new file mode 100644 index 0000000000..129d122e2b --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_diag_history.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dbbrain diag_history + +Example Usage + +```hcl +data "tencentcloud_dbbrain_diag_history" "diag_history" { + instance_id = "%s" + start_time = "%s" + end_time = "%s" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_health_scores.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_health_scores.md new file mode 100644 index 0000000000..0fc1640575 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_health_scores.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain health_scores + +Example Usage + +```hcl +data "tencentcloud_dbbrain_health_scores" "health_scores" { + instance_id = "" + time = "" + product = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_mysql_process_list.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_mysql_process_list.md new file mode 100644 index 0000000000..6750676b29 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_mysql_process_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of dbbrain mysql_process_list + +Example Usage + +```hcl +data "tencentcloud_dbbrain_mysql_process_list" "mysql_process_list" { + instance_id = local.mysql_id + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_no_primary_key_tables.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_no_primary_key_tables.md new file mode 100644 index 0000000000..c292325bd4 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_no_primary_key_tables.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain no_primary_key_tables + +Example Usage + +```hcl +data "tencentcloud_dbbrain_no_primary_key_tables" "no_primary_key_tables" { + instance_id = "" + date = "" + product = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_big_keys.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_big_keys.md new file mode 100644 index 0000000000..4c307c9456 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_big_keys.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of dbbrain redis_top_big_keys + +Example Usage + +```hcl +data "tencentcloud_dbbrain_redis_top_big_keys" "redis_top_big_keys" { + instance_id = local.redis_id + date = "%s" + product = "redis" + sort_by = "Capacity" + key_type = "string" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_key_prefix_list.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_key_prefix_list.md new file mode 100644 index 0000000000..ff25e288f7 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_key_prefix_list.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain redis_top_key_prefix_list + +Example Usage + +```hcl +data "tencentcloud_dbbrain_redis_top_key_prefix_list" "redis_top_key_prefix_list" { + instance_id = local.redis_id + date = "%s" + product = "redis" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_download_urls.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_download_urls.md new file mode 100644 index 0000000000..bee24b8df0 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_download_urls.md @@ -0,0 +1,19 @@ +Use this data source to query detailed information of dbbrain security_audit_log_download_urls + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_security_audit_log_export_task" "task" { + sec_audit_group_id = "%s" + start_time = "%s" + end_time = "%s" + product = "mysql" + danger_levels = [0,1,2] +} + +data "tencentcloud_dbbrain_security_audit_log_download_urls" "test" { + sec_audit_group_id = "%s" + async_request_id = tencentcloud_dbbrain_security_audit_log_export_task.task.async_request_id + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_export_tasks.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_export_tasks.md new file mode 100644 index 0000000000..530df2d96a --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_export_tasks.md @@ -0,0 +1,19 @@ +Use this data source to query detailed information of dbbrain securityAuditLogExportTasks + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_security_audit_log_export_task" "task" { + sec_audit_group_id = "sec_audit_group_id" + start_time = "start_time" + end_time = "end_time" + product = "mysql" + danger_levels = [0,1,2] +} + +data "tencentcloud_dbbrain_security_audit_log_export_tasks" "tasks" { + sec_audit_group_id = "sec_audit_group_id" + product = "mysql" + async_request_ids = [tencentcloud_dbbrain_security_audit_log_export_task.task.async_request_id] +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_time_series_stats.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_time_series_stats.md new file mode 100644 index 0000000000..a5cf7647cd --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_time_series_stats.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dbbrain slow_log_time_series_stats + +Example Usage + +```hcl +data "tencentcloud_dbbrain_slow_log_time_series_stats" "test" { + instance_id = "%s" + start_time = "%s" + end_time = "%s" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_top_sqls.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_top_sqls.md new file mode 100644 index 0000000000..7916fab8a8 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_top_sqls.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of dbbrain slow_log_top_sqls + +Example Usage + +```hcl +data "tencentcloud_dbbrain_slow_log_top_sqls" "test" { + instance_id = "%s" + start_time = "%s" + end_time = "%s" + sort_by = "QueryTimeMax" + order_by = "ASC" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_host_stats.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_host_stats.md new file mode 100644 index 0000000000..703ffa3dfc --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_host_stats.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dbbrain slow_log_user_host_stats + +Example Usage + +```hcl +data "tencentcloud_dbbrain_slow_log_user_host_stats" "test" { + instance_id = "%s" + start_time = "%s" + end_time = "%s" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_sql_advice.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_sql_advice.md new file mode 100644 index 0000000000..5675df5682 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_sql_advice.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain slow_log_user_sql_advice + +Example Usage + +```hcl +data "tencentcloud_dbbrain_slow_log_user_sql_advice" "test" { + instance_id = "%s" + sql_text = "%s" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_logs.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_logs.md new file mode 100644 index 0000000000..bc5cb4d597 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_slow_logs.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of dbbrain slow_logs + +Example Usage + +```hcl +data "tencentcloud_dbbrain_slow_logs" "slow_logs" { + product = "mysql" + instance_id = "%s" + md5 = "4961208426639258265" + start_time = "%s" + end_time = "%s" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_sql_filters.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_sql_filters.md new file mode 100644 index 0000000000..59b46596de --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_sql_filters.md @@ -0,0 +1,22 @@ +Use this data source to query detailed information of dbbrain sqlFilters + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_sql_filter" "sql_filter" { + instance_id = "mysql_ins_id" + session_token { + user = "user" + password = "password" + } + sql_type = "SELECT" + filter_key = "test" + max_concurrency = 10 + duration = 3600 +} + +data "tencentcloud_dbbrain_sql_filters" "sql_filters" { + instance_id = "mysql_ins_id" + filter_ids = [tencentcloud_dbbrain_sql_filter.sql_filter.filter_id] + } +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_sql_templates.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_sql_templates.md new file mode 100644 index 0000000000..f1a04bcd31 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_sql_templates.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dbbrain sql_templates + +Example Usage + +```hcl +data "tencentcloud_dbbrain_sql_templates" "sql_templates" { + instance_id = "" + schema = "" + sql_text = "" + product = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schema_time_series.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schema_time_series.md new file mode 100644 index 0000000000..a8b0c71d97 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schema_time_series.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of dbbrain top_space_schema_time_series + +Example Usage + +```hcl +data "tencentcloud_dbbrain_top_space_schema_time_series" "top_space_schema_time_series" { + instance_id = "%s" + sort_by = "DataLength" + start_date = "%s" + end_date = "%s" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schemas.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schemas.md new file mode 100644 index 0000000000..6d66ce6603 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schemas.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dbbrain top_space_schemas + +Example Usage + +```hcl +data "tencentcloud_dbbrain_top_space_schemas" "top_space_schemas" { + instance_id = "%s" + sort_by = "DataLength" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_table_time_series.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_table_time_series.md new file mode 100644 index 0000000000..5f57d293b5 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_table_time_series.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of dbbrain top_space_table_time_series + +Example Usage + +```hcl +data "tencentcloud_dbbrain_top_space_table_time_series" "top_space_table_time_series" { + instance_id = "%s" + sort_by = "DataLength" + start_date = "%s" + end_date = "%s" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_tables.md b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_tables.md new file mode 100644 index 0000000000..cfea666df6 --- /dev/null +++ b/tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_tables.md @@ -0,0 +1,21 @@ +Use this data source to query detailed information of dbbrain top_space_tables + +Example Usage + +Sort by PhysicalFileSize +```hcl +data "tencentcloud_dbbrain_top_space_tables" "top_space_tables" { + instance_id = "%s" + sort_by = "PhysicalFileSize" + product = "mysql" +} +``` + +Sort by TotalLength +```hcl +data "tencentcloud_dbbrain_top_space_tables" "top_space_tables" { + instance_id = "%s" + sort_by = "PhysicalFileSize" + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/resource_tc_dbbrain_db_diag_report_task.md b/tencentcloud/dbbrain/resource_tc_dbbrain_db_diag_report_task.md new file mode 100644 index 0000000000..2f721d61e4 --- /dev/null +++ b/tencentcloud/dbbrain/resource_tc_dbbrain_db_diag_report_task.md @@ -0,0 +1,13 @@ +Provides a resource to create a dbbrain db_diag_report_task + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_db_diag_report_task" "db_diag_report_task" { + instance_id = "%s" + start_time = "%s" + end_time = "%s" + send_mail_flag = 0 + product = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/resource_tc_dbbrain_modify_diag_db_instance_operation.md b/tencentcloud/dbbrain/resource_tc_dbbrain_modify_diag_db_instance_operation.md new file mode 100644 index 0000000000..79f3c1bbba --- /dev/null +++ b/tencentcloud/dbbrain/resource_tc_dbbrain_modify_diag_db_instance_operation.md @@ -0,0 +1,25 @@ +Provides a resource to create a dbbrain modify_diag_db_instance_conf + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_modify_diag_db_instance_operation" "on" { + instance_confs { + daily_inspection = "Yes" + overview_display = "Yes" + } + product = "mysql" + instance_ids = ["%s"] +} +``` + +```hcl +resource "tencentcloud_dbbrain_modify_diag_db_instance_operation" "off" { + instance_confs { + daily_inspection = "No" + overview_display = "No" + } + product = "mysql" + instance_ids = ["%s"] +} +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/resource_tc_dbbrain_security_audit_log_export_task.md b/tencentcloud/dbbrain/resource_tc_dbbrain_security_audit_log_export_task.md new file mode 100644 index 0000000000..3d5d9a6413 --- /dev/null +++ b/tencentcloud/dbbrain/resource_tc_dbbrain_security_audit_log_export_task.md @@ -0,0 +1,14 @@ +Provides a resource to create a dbbrain security_audit_log_export_task + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_security_audit_log_export_task" "task" { + sec_audit_group_id = "sec_audit_group_id" + start_time = "2020-12-28 00:00:00" + end_time = "2020-12-28 01:00:00" + product = "mysql" + danger_levels = [0,1,2] +} + +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/resource_tc_dbbrain_sql_filter.md b/tencentcloud/dbbrain/resource_tc_dbbrain_sql_filter.md new file mode 100644 index 0000000000..8de455fcd3 --- /dev/null +++ b/tencentcloud/dbbrain/resource_tc_dbbrain_sql_filter.md @@ -0,0 +1,33 @@ +Provides a resource to create a dbbrain sql_filter. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} +variable "region" { + default = "ap-guangzhou" +} + +data "tencentcloud_mysql_instance" "mysql" { + instance_name = "instance_name" +} + +locals { + mysql_id = data.tencentcloud_mysql_instance.mysql.instance_list.0.mysql_id +} + +resource "tencentcloud_dbbrain_sql_filter" "sql_filter" { + instance_id = local.mysql_id + session_token { + user = "test" + password = "===password===" + } + sql_type = "SELECT" + filter_key = "filter_key" + max_concurrency = 10 + duration = 3600 +} + +``` \ No newline at end of file diff --git a/tencentcloud/dbbrain/resource_tc_dbbrain_tdsql_audit_log.md b/tencentcloud/dbbrain/resource_tc_dbbrain_tdsql_audit_log.md new file mode 100644 index 0000000000..d1e85d69c8 --- /dev/null +++ b/tencentcloud/dbbrain/resource_tc_dbbrain_tdsql_audit_log.md @@ -0,0 +1,17 @@ +Provides a resource to create a dbbrain tdsql_audit_log + +Example Usage + +```hcl +resource "tencentcloud_dbbrain_tdsql_audit_log" "my_log" { + product = "dcdb" + node_request_type = "dcdb" + instance_id = "%s" + start_time = "%s" + end_time = "%s" + filter { + host = ["%%", "127.0.0.1"] + user = ["tf_test", "mysql"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dc/data_source_tc_dc_access_points.md b/tencentcloud/dc/data_source_tc_dc_access_points.md new file mode 100644 index 0000000000..40e6181779 --- /dev/null +++ b/tencentcloud/dc/data_source_tc_dc_access_points.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dc access_points + +Example Usage + +```hcl +data "tencentcloud_dc_access_points" "access_points" { + region_id = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/dc/data_source_tc_dc_instances.md b/tencentcloud/dc/data_source_tc_dc_instances.md new file mode 100644 index 0000000000..32f5542416 --- /dev/null +++ b/tencentcloud/dc/data_source_tc_dc_instances.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of DC instances. + +Example Usage + +```hcl +data "tencentcloud_dc_instances" "name_select" { + name = "t" +} + +data "tencentcloud_dc_instances" "id" { + dcx_id = "dc-kax48sg7" +} +``` \ No newline at end of file diff --git a/tencentcloud/dc/data_source_tc_dc_internet_address_quota.md b/tencentcloud/dc/data_source_tc_dc_internet_address_quota.md new file mode 100644 index 0000000000..d7b8172dbd --- /dev/null +++ b/tencentcloud/dc/data_source_tc_dc_internet_address_quota.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of dc internet_address_quota + +Example Usage + +```hcl +data "tencentcloud_dc_internet_address_quota" "internet_address_quota" {} +``` \ No newline at end of file diff --git a/tencentcloud/dc/data_source_tc_dc_internet_address_statistics.md b/tencentcloud/dc/data_source_tc_dc_internet_address_statistics.md new file mode 100644 index 0000000000..3f4acfd058 --- /dev/null +++ b/tencentcloud/dc/data_source_tc_dc_internet_address_statistics.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of dc internet_address_statistics + +Example Usage + +```hcl +data "tencentcloud_dc_internet_address_statistics" "internet_address_statistics" {} +``` \ No newline at end of file diff --git a/tencentcloud/dc/data_source_tc_dc_public_direct_connect_tunnel_routes.md b/tencentcloud/dc/data_source_tc_dc_public_direct_connect_tunnel_routes.md new file mode 100644 index 0000000000..9d14350e1f --- /dev/null +++ b/tencentcloud/dc/data_source_tc_dc_public_direct_connect_tunnel_routes.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dc public_direct_connect_tunnel_routes + +Example Usage + +```hcl +data "tencentcloud_dc_public_direct_connect_tunnel_routes" "public_direct_connect_tunnel_routes" { + direct_connect_tunnel_id = "dcx-4z49tnws" +} +``` \ No newline at end of file diff --git a/tencentcloud/dc/data_source_tc_dcx_instances.md b/tencentcloud/dc/data_source_tc_dcx_instances.md new file mode 100644 index 0000000000..c88f877167 --- /dev/null +++ b/tencentcloud/dc/data_source_tc_dcx_instances.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of dedicated tunnels instances. + +Example Usage + +```hcl +data "tencentcloud_dcx_instances" "name_select" { + name = "main" +} + +data "tencentcloud_dcx_instances" "id" { + dcx_id = "dcx-3ikuw30k" +} +``` \ No newline at end of file diff --git a/tencentcloud/dc/resource_tc_dc_instance.md b/tencentcloud/dc/resource_tc_dc_instance.md new file mode 100644 index 0000000000..6d832f89ea --- /dev/null +++ b/tencentcloud/dc/resource_tc_dc_instance.md @@ -0,0 +1,24 @@ +Provides a resource to create a dc instance + +Example Usage + +```hcl +resource "tencentcloud_dc_instance" "instance" { + access_point_id = "ap-shenzhen-b-ft" + bandwidth = 10 + customer_contact_number = "0" + direct_connect_name = "terraform-for-test" + line_operator = "In-houseWiring" + port_type = "10GBase-LR" + sign_law = true + vlan = -1 +} +``` + +Import + +dc instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_dc_instance.instance dc_id +``` \ No newline at end of file diff --git a/tencentcloud/dc/resource_tc_dc_internet_address.md b/tencentcloud/dc/resource_tc_dc_internet_address.md new file mode 100644 index 0000000000..701dbf4fed --- /dev/null +++ b/tencentcloud/dc/resource_tc_dc_internet_address.md @@ -0,0 +1,19 @@ +Provides a resource to create a dc internet_address + +Example Usage + +```hcl +resource "tencentcloud_dc_internet_address" "internet_address" { + mask_len = 30 + addr_type = 2 + addr_proto = 0 +} +``` + +Import + +dc internet_address can be imported using the id, e.g. + +``` +terraform import tencentcloud_dc_internet_address.internet_address internet_address_id +``` \ No newline at end of file diff --git a/tencentcloud/dc/resource_tc_dc_internet_address_config.md b/tencentcloud/dc/resource_tc_dc_internet_address_config.md new file mode 100644 index 0000000000..6ca8a85192 --- /dev/null +++ b/tencentcloud/dc/resource_tc_dc_internet_address_config.md @@ -0,0 +1,24 @@ +Provides a resource to create a dc internet_address_config + +Example Usage + +```hcl +resource "tencentcloud_dc_internet_address" "internet_address" { + mask_len = 30 + addr_type = 2 + addr_proto = 0 +} + +resource "tencentcloud_dc_internet_address_config" "internet_address_config" { + instance_id = tencentcloud_dc_internet_address.internet_address.id + enable = false +} +``` + +Import + +dc internet_address_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dc_internet_address_config.internet_address_config internet_address_id +``` \ No newline at end of file diff --git a/tencentcloud/dc/resource_tc_dc_share_dcx_config.md b/tencentcloud/dc/resource_tc_dc_share_dcx_config.md new file mode 100644 index 0000000000..6d88645a7d --- /dev/null +++ b/tencentcloud/dc/resource_tc_dc_share_dcx_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a dc share_dcx_config + +Example Usage + +```hcl +resource "tencentcloud_dc_share_dcx_config" "share_dcx_config" { + direct_connect_tunnel_id = "dcx-4z49tnws" + enable = false +} +``` + +Import + +dc share_dcx_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dc_share_dcx_config.share_dcx_config dcx_id +``` \ No newline at end of file diff --git a/tencentcloud/dc/resource_tc_dcx.md b/tencentcloud/dc/resource_tc_dcx.md new file mode 100644 index 0000000000..1a5ae25b76 --- /dev/null +++ b/tencentcloud/dc/resource_tc_dcx.md @@ -0,0 +1,45 @@ +Provides a resource to creating dedicated tunnels instances. + +~> **NOTE:** 1. ID of the DC is queried, can only apply for this resource offline. + +Example Usage + +```hcl +variable "dc_id" { + default = "dc-kax48sg7" +} + +variable "dcg_id" { + default = "dcg-dmbhf7jf" +} + +variable "vpc_id" { + default = "vpc-4h9v4mo3" +} + +resource "tencentcloud_dcx" "bgp_main" { + bandwidth = 900 + dc_id = var.dc_id + dcg_id = var.dcg_id + name = "bgp_main" + network_type = "VPC" + route_type = "BGP" + vlan = 306 + vpc_id = var.vpc_id +} + +resource "tencentcloud_dcx" "static_main" { + bandwidth = 900 + dc_id = var.dc_id + dcg_id = var.dcg_id + name = "static_main" + dc_owner_account = "xxxxxxxx" + network_type = "VPC" + route_type = "STATIC" + vlan = 301 + vpc_id = var.vpc_id + route_filter_prefixes = ["10.10.10.101/32"] + tencent_address = "100.93.46.1/30" + customer_address = "100.93.46.2/30" +} +``` \ No newline at end of file diff --git a/tencentcloud/dc/resource_tc_dcx_extra_config.md b/tencentcloud/dc/resource_tc_dcx_extra_config.md new file mode 100644 index 0000000000..f3dab82c19 --- /dev/null +++ b/tencentcloud/dc/resource_tc_dcx_extra_config.md @@ -0,0 +1,46 @@ +Provides a resource to create a dc dcx_extra_config + +Example Usage + +```hcl +resource "tencentcloud_dcx_extra_config" "dcx_extra_config" { + direct_connect_tunnel_id = "dcx-4z49tnws" + vlan = 123 + bgp_peer { + asn = 65101 + auth_key = "test123" + + } + route_filter_prefixes { + cidr = "192.168.0.0/24" + } + tencent_address = "192.168.1.1" + tencent_backup_address = "192.168.1.2" + customer_address = "192.168.1.4" + bandwidth = 10 + enable_bgp_community = false + bfd_enable = 0 + nqa_enable = 1 + bfd_info { + probe_failed_times = 3 + interval = 100 + + } + nqa_info { + probe_failed_times = 3 + interval = 100 + destination_ip = "192.168.2.2" + + } + ipv6_enable = 0 + jumbo_enable = 0 +} +``` + +Import + +dc dcx_extra_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dcx_extra_config.dcx_extra_config dcx_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_accounts.md b/tencentcloud/dcdb/data_source_tc_dcdb_accounts.md new file mode 100644 index 0000000000..37730fee60 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_accounts.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dcdb accounts. + +Example Usage + +```hcl +data "tencentcloud_dcdb_accounts" "foo" { + instance_id = tencentcloud_dcdb_account.foo.instance_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_database_objects.md b/tencentcloud/dcdb/data_source_tc_dcdb_database_objects.md new file mode 100644 index 0000000000..513110e1a2 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_database_objects.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of dcdb database_objects + +Example Usage + +```hcl +data "tencentcloud_dcdb_database_objects" "database_objects" { + instance_id = "dcdbt-ow7t8lmc" + db_name = <nil> + } +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_database_tables.md b/tencentcloud/dcdb/data_source_tc_dcdb_database_tables.md new file mode 100644 index 0000000000..78248a064b --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_database_tables.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of dcdb database_tables + +Example Usage + +```hcl +data "tencentcloud_dcdb_database_tables" "database_tables" { + instance_id = "dcdbt-ow7t8lmc" + db_name = <nil> + table = <nil> + table = <nil> + cols { + col = <nil> + type = <nil> + + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_databases.md b/tencentcloud/dcdb/data_source_tc_dcdb_databases.md new file mode 100644 index 0000000000..0804c189fd --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_databases.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dcdb databases + +Example Usage + +```hcl +data "tencentcloud_dcdb_databases" "databases" { + instance_id = "your_dcdb_instance_id" + } +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_file_download_url.md b/tencentcloud/dcdb/data_source_tc_dcdb_file_download_url.md new file mode 100644 index 0000000000..216b187fad --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_file_download_url.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dcdb file_download_url + +Example Usage + +```hcl +data "tencentcloud_dcdb_file_download_url" "file_download_url" { + instance_id = local.dcdb_id + shard_id = "shard-1b5r04az" + file_path = "/cos_backup/test.txt" +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_instance_node_info.md b/tencentcloud/dcdb/data_source_tc_dcdb_instance_node_info.md new file mode 100644 index 0000000000..f56341be99 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_instance_node_info.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dcdb instance_node_info + +Example Usage + +```hcl +data "tencentcloud_dcdb_instance_node_info" "instance_node_info" { + instance_id = local.dcdb_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_instances.md b/tencentcloud/dcdb/data_source_tc_dcdb_instances.md new file mode 100644 index 0000000000..30267ebeff --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_instances.md @@ -0,0 +1,29 @@ +Use this data source to query detailed information of dcdb instances + +Example Usage + +```hcl +data "tencentcloud_dcdb_instances" "instances1" { + instance_ids = "your_dcdb_instance1_id" + search_name = "instancename" + search_key = "search_key" + project_ids = [0] + excluster_type = 0 + is_filter_excluster = true + excluster_type = 0 + is_filter_vpc = true + vpc_id = "your_vpc_id" + subnet_id = "your_subnet_id" +} + +data "tencentcloud_dcdb_instances" "instances2" { + instance_ids = ["your_dcdb_instance2_id"] +} + +data "tencentcloud_dcdb_instances" "instances3" { + search_name = "instancename" + search_key = "instances3" + is_filter_excluster = false + excluster_type = 2 +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_log_files.md b/tencentcloud/dcdb/data_source_tc_dcdb_log_files.md new file mode 100644 index 0000000000..52a1b357f9 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_log_files.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dcdb log_files + +Example Usage + +```hcl +data "tencentcloud_dcdb_log_files" "log_files" { + instance_id = local.dcdb_id + shard_id = "shard-1b5r04az" + type = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_orders.md b/tencentcloud/dcdb/data_source_tc_dcdb_orders.md new file mode 100644 index 0000000000..6d9a94b9ce --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_orders.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dcdb orders + +Example Usage + +```hcl +data "tencentcloud_dcdb_orders" "orders" { + deal_names = ["2023061224903413767xxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_parameters.md b/tencentcloud/dcdb/data_source_tc_dcdb_parameters.md new file mode 100644 index 0000000000..a1336818b8 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_parameters.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dcdb parameters + +Example Usage + +```hcl +data "tencentcloud_dcdb_parameters" "parameters" { + instance_id = "your_instance_id" + } +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_price.md b/tencentcloud/dcdb/data_source_tc_dcdb_price.md new file mode 100644 index 0000000000..db3c2a1d78 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_price.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of dcdb price + +Example Usage + +```hcl +data "tencentcloud_dcdb_price" "price" { + instance_count = 1 + zone = var.default_az + period = 1 + shard_node_count = 2 + shard_memory = 2 + shard_storage = 10 + shard_count = 2 + paymode = "postpaid" + amount_unit = "pent" +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_project_security_groups.md b/tencentcloud/dcdb/data_source_tc_dcdb_project_security_groups.md new file mode 100644 index 0000000000..4268d84d5f --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_project_security_groups.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of dcdb project_security_groups + +Example Usage + +```hcl +data "tencentcloud_dcdb_project_security_groups" "project_security_groups" { + product = "dcdb" + project_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_projects.md b/tencentcloud/dcdb/data_source_tc_dcdb_projects.md new file mode 100644 index 0000000000..8c04673ca5 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_projects.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of dcdb projects + +Example Usage + +```hcl +data "tencentcloud_dcdb_projects" "projects" {} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_renewal_price.md b/tencentcloud/dcdb/data_source_tc_dcdb_renewal_price.md new file mode 100644 index 0000000000..9d618072ee --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_renewal_price.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dcdb renewal_price + +Example Usage + +```hcl +data "tencentcloud_dcdb_renewal_price" "renewal_price" { + instance_id = local.dcdb_id + period = 1 + amount_unit = "pent" +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_sale_info.md b/tencentcloud/dcdb/data_source_tc_dcdb_sale_info.md new file mode 100644 index 0000000000..d0df656d75 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_sale_info.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of dcdb sale_info + +Example Usage + +```hcl +data "tencentcloud_dcdb_sale_info" "sale_info" { + } +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_security_groups.md b/tencentcloud/dcdb/data_source_tc_dcdb_security_groups.md new file mode 100644 index 0000000000..2f97ebdc92 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_security_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dcdb securityGroups + +Example Usage + +```hcl +data "tencentcloud_dcdb_security_groups" "securityGroups" { + instance_id = "your_instance_id" + } +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_shard_spec.md b/tencentcloud/dcdb/data_source_tc_dcdb_shard_spec.md new file mode 100644 index 0000000000..99df165858 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_shard_spec.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of dcdb shard_spec + +Example Usage + +```hcl +data "tencentcloud_dcdb_shard_spec" "shard_spec" {} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_shards.md b/tencentcloud/dcdb/data_source_tc_dcdb_shards.md new file mode 100644 index 0000000000..81ed5cbea0 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_shards.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of dcdb shards + +Example Usage + +```hcl +data "tencentcloud_dcdb_shards" "shards" { + instance_id = "your_instance_id" + shard_instance_ids = ["shard1_id"] + } +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_slow_logs.md b/tencentcloud/dcdb/data_source_tc_dcdb_slow_logs.md new file mode 100644 index 0000000000..59fd4194a2 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_slow_logs.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of dcdb slow_logs + +Example Usage + +```hcl +data "tencentcloud_dcdb_slow_logs" "slow_logs" { + instance_id = local.dcdb_id + start_time = "%s" + end_time = "%s" + shard_id = "shard-1b5r04az" + db = "tf_test_db" + order_by = "query_time_sum" + order_by_type = "desc" + slave = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/data_source_tc_dcdb_upgrade_price.md b/tencentcloud/dcdb/data_source_tc_dcdb_upgrade_price.md new file mode 100644 index 0000000000..b3690559d4 --- /dev/null +++ b/tencentcloud/dcdb/data_source_tc_dcdb_upgrade_price.md @@ -0,0 +1,42 @@ +Use this data source to query detailed information of dcdb upgrade_price + +Example Usage + +```hcl +data "tencentcloud_dcdb_upgrade_price" "add_upgrade_price" { + instance_id = local.dcdb_id + upgrade_type = "ADD" + add_shard_config { + shard_count = 2 + shard_memory = 2 + shard_storage = 100 + } + amount_unit = "pent" +} + +data "tencentcloud_dcdb_upgrade_price" "expand_upgrade_price" { + instance_id = local.dcdb_id + upgrade_type = "EXPAND" + + expand_shard_config { + shard_instance_ids = ["shard-1b5r04az"] + shard_memory = 2 + shard_storage = 40 + shard_node_count = 2 + } + amount_unit = "pent" +} + +data "tencentcloud_dcdb_upgrade_price" "split_upgrade_price" { + instance_id = local.dcdb_id + upgrade_type = "SPLIT" + + split_shard_config { + shard_instance_ids = ["shard-1b5r04az"] + split_rate = 50 + shard_memory = 2 + shard_storage = 100 + } + amount_unit = "pent" +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_account.md b/tencentcloud/dcdb/resource_tc_dcdb_account.md new file mode 100644 index 0000000000..5618a6178f --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_account.md @@ -0,0 +1,22 @@ +Provides a resource to create a dcdb account + +Example Usage + +```hcl +resource "tencentcloud_dcdb_account" "account" { + instance_id = "tdsqlshard-kkpoxvnv" + user_name = "mysql" + host = "127.0.0.1" + password = "===password===" + read_only = 0 + description = "this is a test account" + max_user_connections = 10 +} + +``` +Import + +dcdb account can be imported using the id, e.g. +``` +$ terraform import tencentcloud_dcdb_account.account account_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_account_privileges.md b/tencentcloud/dcdb/resource_tc_dcdb_account_privileges.md new file mode 100644 index 0000000000..d3d17bca5e --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_account_privileges.md @@ -0,0 +1,32 @@ +Provides a resource to create a dcdb account_privileges + +Example Usage + +```hcl +resource "tencentcloud_dcdb_account_privileges" "account_privileges" { + instance_id = "%s" + account { + user = "tf_test" + host = "%s" + } + global_privileges = ["SHOW DATABASES","SHOW VIEW"] + database_privileges { + privileges = ["SELECT","INSERT","UPDATE","DELETE","CREATE"] + database = "tf_test_db" + } + + table_privileges { + database = "tf_test_db" + table = "tf_test_table" + privileges = ["SELECT","INSERT","UPDATE","DELETE","CREATE"] + + } +``` + +Import + +dcdb account_privileges can be imported using the id, e.g. + +``` +terraform import tencentcloud_dcdb_account_privileges.account_privileges instanceId#userName#host#dbName#tabName#viewName#colName +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_activate_hour_instance_operation.md b/tencentcloud/dcdb/resource_tc_dcdb_activate_hour_instance_operation.md new file mode 100644 index 0000000000..90f502d00e --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_activate_hour_instance_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dcdb activate_hour_instance_operation + +Example Usage + +```hcl +resource "tencentcloud_dcdb_activate_hour_instance_operation" "activate_hour_instance_operation" { + instance_id = local.dcdb_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_cancel_dcn_job_operation.md b/tencentcloud/dcdb/resource_tc_dcdb_cancel_dcn_job_operation.md new file mode 100644 index 0000000000..04be840100 --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_cancel_dcn_job_operation.md @@ -0,0 +1,50 @@ +Provides a resource to create a dcdb cancel_dcn_job_operation + +Example Usage + +```hcl +data "tencentcloud_security_groups" "internal" { + name = "default" +} + +data "tencentcloud_vpc_instances" "vpc" { + name ="Default-VPC" +} + +data "tencentcloud_vpc_subnets" "subnet" { + vpc_id = data.tencentcloud_vpc_instances.vpc.instance_list.0.vpc_id +} + +locals { + vpc_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.subnet_id + sg_id = data.tencentcloud_security_groups.internal.security_groups.0.security_group_id +} + +resource "tencentcloud_dcdb_hourdb_instance" "hourdb_instance_dcn" { + instance_name = "test_dcdb_db_hourdb_instance_dcn" + zones = [var.default_az] + shard_memory = "2" + shard_storage = "10" + shard_node_count = "2" + shard_count = "2" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + security_group_id = local.sg_id + db_version_id = "8.0" + dcn_region = "ap-guangzhou" + dcn_instance_id = local.dcdb_id //master_instance + resource_tags { + tag_key = "aaa" + tag_value = "bbb" + } +} + +locals { + dcn_dcdb_id = tencentcloud_dcdb_hourdb_instance.hourdb_instance_dcn.id +} + +resource "tencentcloud_dcdb_cancel_dcn_job_operation" "cancel_operation" { + instance_id = local.dcn_dcdb_id // cancel the dcn/readonly instance +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_db_parameters.md b/tencentcloud/dcdb/resource_tc_dcdb_db_parameters.md new file mode 100644 index 0000000000..76c59334c8 --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_db_parameters.md @@ -0,0 +1,21 @@ +Provides a resource to create a dcdb db_parameters + +Example Usage + +```hcl +resource "tencentcloud_dcdb_db_parameters" "db_parameters" { + instance_id = "%s" + params { + param = "max_connections" + value = "9999" + } +} +``` + +Import + +dcdb db_parameters can be imported using the id, e.g. + +``` +terraform import tencentcloud_dcdb_db_parameters.db_parameters instanceId#paramName +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_db_sync_mode_config.md b/tencentcloud/dcdb/resource_tc_dcdb_db_sync_mode_config.md new file mode 100644 index 0000000000..f666fe462a --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_db_sync_mode_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a dcdb db_sync_mode_config + +Example Usage + +```hcl +resource "tencentcloud_dcdb_db_sync_mode_config" "config" { + instance_id = "%s" + sync_mode = 2 +} +``` + +Import + +dcdb db_sync_mode_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dcdb_db_sync_mode_config.db_sync_mode_config db_sync_mode_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_encrypt_attributes_config.md b/tencentcloud/dcdb/resource_tc_dcdb_encrypt_attributes_config.md new file mode 100644 index 0000000000..a3eec91a81 --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_encrypt_attributes_config.md @@ -0,0 +1,85 @@ +Provides a resource to create a dcdb encrypt_attributes_config + +~> **NOTE:** This resource currently only supports the newly created MySQL 8.0.24 version. + +Example Usage + +```hcl +data "tencentcloud_security_groups" "internal" { + name = "default" +} + +data "tencentcloud_vpc_instances" "vpc" { + name ="Default-VPC" +} + +data "tencentcloud_vpc_subnets" "subnet" { + vpc_id = data.tencentcloud_vpc_instances.vpc.instance_list.0.vpc_id +} + +locals { + vpc_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.subnet_id + sg_id = data.tencentcloud_security_groups.internal.security_groups.0.security_group_id +} + +resource "tencentcloud_dcdb_db_instance" "prepaid_instance" { + instance_name = "test_dcdb_db_post_instance" + zones = [var.default_az] + period = 1 + shard_memory = "2" + shard_storage = "10" + shard_node_count = "2" + shard_count = "2" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + db_version_id = "8.0" + resource_tags { + tag_key = "aaa" + tag_value = "bbb" + } + security_group_ids = [local.sg_id] +} + +resource "tencentcloud_dcdb_hourdb_instance" "hourdb_instance" { + instance_name = "test_dcdb_db_hourdb_instance" + zones = [var.default_az] + shard_memory = "2" + shard_storage = "10" + shard_node_count = "2" + shard_count = "2" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + security_group_id = local.sg_id + db_version_id = "8.0" + resource_tags { + tag_key = "aaa" + tag_value = "bbb" + } +} + +locals { + prepaid_dcdb_id = tencentcloud_dcdb_db_instance.prepaid_instance.id + hourdb_dcdb_id = tencentcloud_dcdb_hourdb_instance.hourdb_instance.id +} + +// for postpaid instance +resource "tencentcloud_dcdb_encrypt_attributes_config" "config_hourdb" { + instance_id = local.hourdb_dcdb_id + encrypt_enabled = 1 +} + +// for prepaid instance +resource "tencentcloud_dcdb_encrypt_attributes_config" "config_prepaid" { + instance_id = local.prepaid_dcdb_id + encrypt_enabled = 1 +} +``` + +Import + +dcdb encrypt_attributes_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dcdb_encrypt_attributes_config.encrypt_attributes_config encrypt_attributes_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_flush_binlog_operation.md b/tencentcloud/dcdb/resource_tc_dcdb_flush_binlog_operation.md new file mode 100644 index 0000000000..4edfbecd19 --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_flush_binlog_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dcdb flush_binlog_operation + +Example Usage + +```hcl +resource "tencentcloud_dcdb_flush_binlog_operation" "flush_operation" { + instance_id = local.dcdb_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_hourdb_instance.md b/tencentcloud/dcdb/resource_tc_dcdb_hourdb_instance.md new file mode 100644 index 0000000000..2b7915907e --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_hourdb_instance.md @@ -0,0 +1,29 @@ +Provides a resource to create a dcdb hourdb_instance + +Example Usage + +```hcl +resource "tencentcloud_dcdb_hourdb_instance" "hourdb_instance" { + instance_name = "test_dcdc_dc_instance" + zones = ["ap-guangzhou-5", "ap-guangzhou-6"] + shard_memory = "2" + shard_storage = "10" + shard_node_count = "2" + shard_count = "2" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + security_group_id = local.sg_id + db_version_id = "8.0" + resource_tags { + tag_key = "aaa" + tag_value = "bbb" + } +} + +``` +Import + +dcdb hourdb_instance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_dcdb_hourdb_instance.hourdb_instance hourdbInstance_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_instance_config.md b/tencentcloud/dcdb/resource_tc_dcdb_instance_config.md new file mode 100644 index 0000000000..8e86391283 --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_instance_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a dcdb instance_config + +Example Usage + +```hcl +resource "tencentcloud_dcdb_instance_config" "instance_config" { + instance_id = local.dcdb_id + rs_access_strategy = 0 +} +``` + +Import + +dcdb instance_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dcdb_instance_config.instance_config instance_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_isolate_hour_instance_operation.md b/tencentcloud/dcdb/resource_tc_dcdb_isolate_hour_instance_operation.md new file mode 100644 index 0000000000..bfe0b3546f --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_isolate_hour_instance_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dcdb isolate_hour_instance_operation + +Example Usage + +```hcl +resource "tencentcloud_dcdb_isolate_hour_instance_operation" "isolate_hour_instance_operation" { + instance_ids = local.dcdb_id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_security_group_attachment.md b/tencentcloud/dcdb/resource_tc_dcdb_security_group_attachment.md new file mode 100644 index 0000000000..87443757f5 --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_security_group_attachment.md @@ -0,0 +1,17 @@ +Provides a resource to create a dcdb security_group_attachment + +Example Usage + +```hcl +resource "tencentcloud_dcdb_security_group_attachment" "security_group_attachment" { + security_group_id = "" + instance_id = "" +} + +``` +Import + +dcdb security_group_attachment can be imported using the id, e.g. +``` +$ terraform import tencentcloud_dcdb_security_group_attachment.security_group_attachment securityGroupAttachment_id +``` \ No newline at end of file diff --git a/tencentcloud/dcdb/resource_tc_dcdb_switch_db_instance_ha_operation.md b/tencentcloud/dcdb/resource_tc_dcdb_switch_db_instance_ha_operation.md new file mode 100644 index 0000000000..aa3f206b4a --- /dev/null +++ b/tencentcloud/dcdb/resource_tc_dcdb_switch_db_instance_ha_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dcdb switch_db_instance_ha_operation + +Example Usage + +```hcl +resource "tencentcloud_dcdb_switch_db_instance_ha_operation" "switch_operation" { + instance_id = local.dcdb_id + zone = "ap-guangzhou-4" //3 to 4 +} +``` \ No newline at end of file diff --git a/tencentcloud/dcg/data_source_tc_dc_gateway_ccn_routes.md b/tencentcloud/dcg/data_source_tc_dc_gateway_ccn_routes.md new file mode 100644 index 0000000000..8a2752709e --- /dev/null +++ b/tencentcloud/dcg/data_source_tc_dc_gateway_ccn_routes.md @@ -0,0 +1,33 @@ +Use this data source to query detailed information of direct connect gateway route entries. + +Example Usage + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +resource "tencentcloud_dc_gateway" "ccn_main" { + name = "ci-cdg-ccn-test" + network_instance_id = tencentcloud_ccn.main.id + network_type = "CCN" + gateway_type = "NORMAL" +} + +resource "tencentcloud_dc_gateway_ccn_route" "route1" { + dcg_id = tencentcloud_dc_gateway.ccn_main.id + cidr_block = "10.1.1.0/32" +} + +resource "tencentcloud_dc_gateway_ccn_route" "route2" { + dcg_id = tencentcloud_dc_gateway.ccn_main.id + cidr_block = "192.1.1.0/32" +} + +#You need to sleep for a few seconds because there is a cache on the server +data "tencentcloud_dc_gateway_ccn_routes" "test" { + dcg_id = tencentcloud_dc_gateway.ccn_main.id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcg/data_source_tc_dc_gateway_instances.md b/tencentcloud/dcg/data_source_tc_dc_gateway_instances.md new file mode 100644 index 0000000000..be43d15fb5 --- /dev/null +++ b/tencentcloud/dcg/data_source_tc_dc_gateway_instances.md @@ -0,0 +1,27 @@ +Use this data source to query detailed information of direct connect gateway instances. + +Example Usage + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +resource "tencentcloud_dc_gateway" "ccn_main" { + name = "ci-cdg-ccn-test" + network_instance_id = tencentcloud_ccn.main.id + network_type = "CCN" + gateway_type = "NORMAL" +} + +#You need to sleep for a few seconds because there is a cache on the server +data "tencentcloud_dc_gateway_instances" "name_select" { + name = tencentcloud_dc_gateway.ccn_main.name +} + +data "tencentcloud_dc_gateway_instances" "id_select" { + dcg_id = tencentcloud_dc_gateway.ccn_main.id +} +``` \ No newline at end of file diff --git a/tencentcloud/dcg/resource_tc_dc_gateway.md b/tencentcloud/dcg/resource_tc_dc_gateway.md new file mode 100644 index 0000000000..82849848c5 --- /dev/null +++ b/tencentcloud/dcg/resource_tc_dc_gateway.md @@ -0,0 +1,25 @@ +Provides a resource to creating direct connect gateway instance. + +Example Usage + +```hcl +resource "tencentcloud_vpc" "main" { + name = "ci-vpc-instance-test" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_dc_gateway" "vpc_main" { + name = "ci-cdg-vpc-test" + network_instance_id = tencentcloud_vpc.main.id + network_type = "VPC" + gateway_type = "NAT" +} +``` + +Import + +Direct connect gateway instance can be imported, e.g. + +``` +$ terraform import tencentcloud_dc_gateway.instance dcg-id +``` \ No newline at end of file diff --git a/tencentcloud/dcg/resource_tc_dc_gateway_attachment.md b/tencentcloud/dcg/resource_tc_dc_gateway_attachment.md new file mode 100644 index 0000000000..18f1740c4f --- /dev/null +++ b/tencentcloud/dcg/resource_tc_dc_gateway_attachment.md @@ -0,0 +1,19 @@ +Provides a resource to create a dc_gateway_attachment + +Example Usage + +```hcl +resource "tencentcloud_dc_gateway_attachment" "dc_gateway_attachment" { + vpc_id = "vpc-4h9v4mo3" + nat_gateway_id = "nat-7kanjc6y" + direct_connect_gateway_id = "dcg-dmbhf7jf" +} +``` + +Import + +dc_gateway_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_dc_gateway_attachment.dc_gateway_attachment vpcId#dcgId#ngId +``` \ No newline at end of file diff --git a/tencentcloud/dcg/resource_tc_dc_gateway_ccn_route.md b/tencentcloud/dcg/resource_tc_dc_gateway_ccn_route.md new file mode 100644 index 0000000000..4b43694835 --- /dev/null +++ b/tencentcloud/dcg/resource_tc_dc_gateway_ccn_route.md @@ -0,0 +1,28 @@ +Provides a resource to creating direct connect gateway route entry. + +Example Usage + +```hcl +resource "tencentcloud_ccn" "main" { + name = "ci-temp-test-ccn" + description = "ci-temp-test-ccn-des" + qos = "AG" +} + +resource "tencentcloud_dc_gateway" "ccn_main" { + name = "ci-cdg-ccn-test" + network_instance_id = tencentcloud_ccn.main.id + network_type = "CCN" + gateway_type = "NORMAL" +} + +resource "tencentcloud_dc_gateway_ccn_route" "route1" { + dcg_id = tencentcloud_dc_gateway.ccn_main.id + cidr_block = "10.1.1.0/32" +} + +resource "tencentcloud_dc_gateway_ccn_route" "route2" { + dcg_id = tencentcloud_dc_gateway.ccn_main.id + cidr_block = "192.1.1.0/32" +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_config_pairs_validity.md b/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_config_pairs_validity.md new file mode 100644 index 0000000000..7fc6674fcc --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_config_pairs_validity.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc check_data_engine_config_pairs_validity + +Example Usage + +```hcl +data "tencentcloud_dlc_check_data_engine_config_pairs_validity" "check_data_engine_config_pairs_validity" { + child_image_version_id = "d3ftghd4-9a7e-4f64-a3f4-f38507c69742" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_rollback.md b/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_rollback.md new file mode 100644 index 0000000000..b3be368377 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_rollback.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc check_data_engine_image_can_be_rollback + +Example Usage + +```hcl +data "tencentcloud_dlc_check_data_engine_image_can_be_rollback" "check_data_engine_image_can_be_rollback" { + data_engine_id = "DataEngine-public-1308919341" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.md b/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.md new file mode 100644 index 0000000000..edbbf1fea7 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc check_data_engine_image_can_be_upgrade + +Example Usage + +```hcl +data "tencentcloud_dlc_check_data_engine_image_can_be_upgrade" "check_data_engine_image_can_be_upgrade" { + data_engine_id = "DataEngine-cgkvbas6" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine.md b/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine.md new file mode 100644 index 0000000000..92d8bc11e4 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_data_engine + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_data_engine" "describe_data_engine" { + data_engine_name = "testSpark" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_image_versions.md b/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_image_versions.md new file mode 100644 index 0000000000..c1ac813983 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_image_versions.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_data_engine_image_versions + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_data_engine_image_versions" "describe_data_engine_image_versions" { + engine_type = "SparkBatch" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_python_spark_images.md b/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_python_spark_images.md new file mode 100644 index 0000000000..5945febd3a --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_python_spark_images.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_data_engine_python_spark_images + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_data_engine_python_spark_images" "describe_data_engine_python_spark_images" { + child_image_version_id = "d3ftghd4-9a7e-4f64-a3f4-f38507c69742" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_engine_usage_info.md b/tencentcloud/dlc/data_source_tc_dlc_describe_engine_usage_info.md new file mode 100644 index 0000000000..af11c789da --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_engine_usage_info.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_engine_usage_info + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_engine_usage_info" "describe_engine_usage_info" { + data_engine_id = "DataEngine-g5ds87d8" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_updatable_data_engines.md b/tencentcloud/dlc/data_source_tc_dlc_describe_updatable_data_engines.md new file mode 100644 index 0000000000..cc0f3cf98d --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_updatable_data_engines.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_updatable_data_engines + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_updatable_data_engines" "describe_updatable_data_engines" { + data_engine_config_command = "UpdateSparkSQLLakefsPath" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_user_info.md b/tencentcloud/dlc/data_source_tc_dlc_describe_user_info.md new file mode 100644 index 0000000000..46b2d717b4 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_user_info.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dlc describe_user_info + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_user_info" "describe_user_info" { + user_id = "100032772113" + type = "Group" + sort_by = "create-time" + sorting = "desc" +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_user_roles.md b/tencentcloud/dlc/data_source_tc_dlc_describe_user_roles.md new file mode 100644 index 0000000000..19b2cff621 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_user_roles.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_user_roles + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_user_roles" "describe_user_roles" { + fuzzy = "1" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_user_type.md b/tencentcloud/dlc/data_source_tc_dlc_describe_user_type.md new file mode 100644 index 0000000000..89c2431929 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_user_type.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dlc describe_user_type + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_user_type" "describe_user_type" { + user_id = "127382378" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/data_source_tc_dlc_describe_work_group_info.md b/tencentcloud/dlc/data_source_tc_dlc_describe_work_group_info.md new file mode 100644 index 0000000000..fa204ec416 --- /dev/null +++ b/tencentcloud/dlc/data_source_tc_dlc_describe_work_group_info.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of dlc describe_work_group_info + +Example Usage + +```hcl +data "tencentcloud_dlc_describe_work_group_info" "describe_work_group_info" { + work_group_id = 23181 + type = "User" + sort_by = "create-time" + sorting = "desc" + } +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_add_users_to_work_group_attachment.md b/tencentcloud/dlc/resource_tc_dlc_add_users_to_work_group_attachment.md new file mode 100644 index 0000000000..de3d9e1115 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_add_users_to_work_group_attachment.md @@ -0,0 +1,21 @@ +Provides a resource to create a dlc add_users_to_work_group_attachment + +Example Usage + +```hcl +resource "tencentcloud_dlc_add_users_to_work_group_attachment" "add_users_to_work_group_attachment" { + add_info { + work_group_id = 23184 + user_ids = [100032676511] + } +} +} +``` + +Import + +dlc add_users_to_work_group_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_add_users_to_work_group_attachment.add_users_to_work_group_attachment add_users_to_work_group_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_bind_work_groups_to_user_attachment.md b/tencentcloud/dlc/resource_tc_dlc_bind_work_groups_to_user_attachment.md new file mode 100644 index 0000000000..0eff01ea29 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_bind_work_groups_to_user_attachment.md @@ -0,0 +1,20 @@ +Provides a resource to create a dlc bind_work_groups_to_user + +Example Usage + +```hcl +resource "tencentcloud_dlc_bind_work_groups_to_user_attachment" "bind_work_groups_to_user" { + add_info { + user_id = "100032772113" + work_group_ids = [23184,23181] + } +} +``` + +Import + +dlc bind_work_groups_to_user can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_bind_work_groups_to_user_attachment.bind_work_groups_to_user bind_work_groups_to_user_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_data_engine.md b/tencentcloud/dlc/resource_tc_dlc_data_engine.md new file mode 100644 index 0000000000..db6dbcaf4e --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_data_engine.md @@ -0,0 +1,33 @@ +Provides a resource to create a dlc data_engine + +Example Usage + +```hcl +resource "tencentcloud_dlc_data_engine" "data_engine" { + engine_type = "spark" + data_engine_name = "testSpark" + cluster_type = "spark_cu" + mode = 1 + auto_resume = false + size = 16 + pay_mode = 0 + min_clusters = 1 + max_clusters = 1 + default_data_engine = false + cidr_block = "10.255.0.0/16" + message = "test spark1" + time_span = 1 + time_unit = "h" + auto_suspend = false + crontab_resume_suspend = 0 + engine_exec_type = "BATCH" +} +``` + +Import + +dlc data_engine can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_data_engine.data_engine data_engine_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_modify_data_engine_description_operation.md b/tencentcloud/dlc/resource_tc_dlc_modify_data_engine_description_operation.md new file mode 100644 index 0000000000..44ba08dcea --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_modify_data_engine_description_operation.md @@ -0,0 +1,18 @@ +Provides a resource to create a dlc modify_data_engine_description_operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_modify_data_engine_description_operation" "modify_data_engine_description_operation" { + data_engine_name = "testEngine" + message = "test" +} +``` + +Import + +dlc modify_data_engine_description_operation can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_modify_data_engine_description_operation.modify_data_engine_description_operation modify_data_engine_description_operation_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_modify_user_typ_operation.md b/tencentcloud/dlc/resource_tc_dlc_modify_user_typ_operation.md new file mode 100644 index 0000000000..ca5ac0cccd --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_modify_user_typ_operation.md @@ -0,0 +1,18 @@ +Provides a resource to create a dlc modify_user_typ_operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_modify_user_typ_operation" "modify_user_typ_operation" { + user_id = "127382378" + user_type = "ADMIN" +} +``` + +Import + +dlc modify_user_typ_operation can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_modify_user_typ_operation.modify_user_typ_operation modify_user_typ_operation_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_renew_data_engine_operation.md b/tencentcloud/dlc/resource_tc_dlc_renew_data_engine_operation.md new file mode 100644 index 0000000000..6809e65080 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_renew_data_engine_operation.md @@ -0,0 +1,21 @@ +Provides a resource to create a dlc renew_data_engine + +Example Usage + +```hcl +resource "tencentcloud_dlc_renew_data_engine_operation" "renew_data_engine" { + data_engine_name = "testEngine" + time_span = 3600 + pay_mode = 1 + time_unit = "m" + renew_flag = 1 +} +``` + +Import + +dlc renew_data_engine can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_renew_data_engine_operation.renew_data_engine renew_data_engine_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_restart_data_engine_operation.md b/tencentcloud/dlc/resource_tc_dlc_restart_data_engine_operation.md new file mode 100644 index 0000000000..a18cfbf281 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_restart_data_engine_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dlc restart_data_engine + +Example Usage + +```hcl +resource "tencentcloud_dlc_restart_data_engine_operation" "restart_data_engine" { + data_engine_id = "DataEngine-g5ds87d8" + forced_operation = false +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_rollback_data_engine_image_operation.md b/tencentcloud/dlc/resource_tc_dlc_rollback_data_engine_image_operation.md new file mode 100644 index 0000000000..314df02823 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_rollback_data_engine_image_operation.md @@ -0,0 +1,22 @@ +Provides a resource to create a dlc rollback_data_engine_image + +Example Usage + +```hcl +data "tencentcloud_dlc_check_data_engine_image_can_be_rollback" "check_data_engine_image_can_be_rollback" { + data_engine_id = "DataEngine-cgkvbas6" +} +resource "tencentcloud_dlc_rollback_data_engine_image_operation" "rollback_data_engine_image" { + data_engine_id = "DataEngine-cgkvbas6" + from_record_id = data.tencentcloud_dlc_check_data_engine_image_can_be_rollback.check_data_engine_image_can_be_rollback.from_record_id + to_record_id = data.tencentcloud_dlc_check_data_engine_image_can_be_rollback.check_data_engine_image_can_be_rollback.to_record_id +} +``` + +Import + +dlc rollback_data_engine_image can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_rollback_data_engine_image_operation.rollback_data_engine_image rollback_data_engine_image_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_store_location_config.md b/tencentcloud/dlc/resource_tc_dlc_store_location_config.md new file mode 100644 index 0000000000..5e13c8c269 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_store_location_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a dlc store_location_config + +Example Usage + +```hcl +resource "tencentcloud_dlc_store_location_config" "store_location_config" { + store_location = "cosn://bucketname/" + enable = 1 +} +``` + +Import + +dlc store_location_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_store_location_config.store_location_config store_location_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_suspend_resume_data_engine.md b/tencentcloud/dlc/resource_tc_dlc_suspend_resume_data_engine.md new file mode 100644 index 0000000000..9af564a27c --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_suspend_resume_data_engine.md @@ -0,0 +1,18 @@ +Provides a resource to create a dlc suspend_resume_data_engine + +Example Usage + +```hcl +resource "tencentcloud_dlc_suspend_resume_data_engine" "suspend_resume_data_engine" { + data_engine_name = "example-iac" + operate = "suspend" +} +``` + +Import + +dlc suspend_resume_data_engine can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_suspend_resume_data_engine.suspend_resume_data_engine suspend_resume_data_engine_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_switch_data_engine_image_operation.md b/tencentcloud/dlc/resource_tc_dlc_switch_data_engine_image_operation.md new file mode 100644 index 0000000000..0c483adfc6 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_switch_data_engine_image_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dlc switch_data_engine_image_operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_switch_data_engine_image_operation" "switch_data_engine_image_operation" { + data_engine_id = "DataEngine-g5ds87d8" + new_image_version_id = "344ba1c6-b7a9-403a-a255-422fffed6d38" +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_update_data_engine_config_operation.md b/tencentcloud/dlc/resource_tc_dlc_update_data_engine_config_operation.md new file mode 100644 index 0000000000..b58c848f15 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_update_data_engine_config_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dlc update_data_engine_config_operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_update_data_engine_config_operation" "update_data_engine_config_operation" { + data_engine_id = "DataEngine-o3lzpqpo" + data_engine_config_command = "UpdateSparkSQLLakefsPath" +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_update_row_filter_operation.md b/tencentcloud/dlc/resource_tc_dlc_update_row_filter_operation.md new file mode 100644 index 0000000000..9fd969ef9c --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_update_row_filter_operation.md @@ -0,0 +1,22 @@ +Provides a resource to create a dlc update_row_filter_operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_update_row_filter_operation" "update_row_filter_operation" { + policy_id = 103704 + policy { + database = "test_iac_keep" + catalog = "DataLakeCatalog" + table = "test_table" + operation = "value!=\"0\"" + policy_type = "ROWFILTER" + function = "" + view = "" + column = "" + source = "USER" + mode = "SENIOR" + re_auth = false + } +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_upgrade_data_engine_image_operation.md b/tencentcloud/dlc/resource_tc_dlc_upgrade_data_engine_image_operation.md new file mode 100644 index 0000000000..d9f0a30ff4 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_upgrade_data_engine_image_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dlc upgrade_data_engine_image_operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_upgrade_data_engine_image_operation" "upgrade_data_engine_image_operation" { + data_engine_id = "DataEngine-g5ds87d8" +} +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_user.md b/tencentcloud/dlc/resource_tc_dlc_user.md new file mode 100644 index 0000000000..3e2d3c79c3 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_user.md @@ -0,0 +1,20 @@ +Provides a resource to create a dlc user + +Example Usage + +```hcl +resource "tencentcloud_dlc_user" "user" { + user_id = "100027012454" + user_type = "COMMON" + user_alias = "terraform-test" + user_description = "for terraform test" +} +``` + +Import + +dlc user can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_user.user user_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_user_data_engine_config.md b/tencentcloud/dlc/resource_tc_dlc_user_data_engine_config.md new file mode 100644 index 0000000000..e39604b0de --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_user_data_engine_config.md @@ -0,0 +1,27 @@ +Provides a resource to create a dlc user_data_engine_config + +Example Usage + +```hcl +resource "tencentcloud_dlc_user_data_engine_config" "user_data_engine_config" { + data_engine_id = "DataEngine-cgkvbas6" + data_engine_config_pairs { + config_item = "qq" + config_value = "ff" + } + session_resource_template { + driver_size = "small" + executor_size = "small" + executor_nums = 1 + executor_max_numbers = 1 + } +} +``` + +Import + +dlc user_data_engine_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_user_data_engine_config.user_data_engine_config user_data_engine_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dlc/resource_tc_dlc_work_group.md b/tencentcloud/dlc/resource_tc_dlc_work_group.md new file mode 100644 index 0000000000..5e277d1950 --- /dev/null +++ b/tencentcloud/dlc/resource_tc_dlc_work_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a dlc work_group + +Example Usage + +```hcl +resource "tencentcloud_dlc_work_group" "work_group" { + work_group_name = "tf-demo" + work_group_description = "dlc workgroup test" +} +``` + +Import + +dlc work_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_work_group.work_group work_group_id +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_domain_analytics.md b/tencentcloud/dnspod/data_source_tc_dnspod_domain_analytics.md new file mode 100644 index 0000000000..47805bf73d --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_domain_analytics.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of dnspod domain_analytics + +Example Usage + +```hcl + + data "tencentcloud_dnspod_domain_analytics" "domain_analytics" { + domain = "dnspod.cn" + start_date = "2023-10-07" + end_date = "2023-10-12" + dns_format = "HOUR" + # domain_id = 123 + } + +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_domain_list.md b/tencentcloud/dnspod/data_source_tc_dnspod_domain_list.md new file mode 100644 index 0000000000..c59b9645a4 --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_domain_list.md @@ -0,0 +1,27 @@ +Use this data source to query detailed information of dnspod domain_list + +Example Usage + +```hcl + +data "tencentcloud_dnspod_domain_list" "domain_list" { + type = "ALL" + group_id = [1] + keyword = "" + sort_field = "UPDATED_ON" + sort_type = "DESC" + status = ["PAUSE"] + package = [""] + remark = "" + updated_at_begin = "2021-05-01 03:00:00" + updated_at_end = "2024-05-10 20:00:00" + record_count_begin = 0 + record_count_end = 100 + project_id = -1 + tags { + tag_key = "created_by" + tag_value = ["terraform"] + } +} + +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_domain_log_list.md b/tencentcloud/dnspod/data_source_tc_dnspod_domain_log_list.md new file mode 100644 index 0000000000..2530c1b452 --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_domain_log_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of dnspod domain_log_list + +Example Usage + +```hcl +data "tencentcloud_dnspod_domain_log_list" "domain_log_list" { + domain = "iac-tf.cloud" + domain_id = 123 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_record_analytics.md b/tencentcloud/dnspod/data_source_tc_dnspod_record_analytics.md new file mode 100644 index 0000000000..e9fa0ca23c --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_record_analytics.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of dnspod record_analytics + +Example Usage + +```hcl +data "tencentcloud_dnspod_record_analytics" "record_analytics" { + domain = "iac-tf.cloud" + start_date = "2023-09-07" + end_date = "2023-11-07" + subdomain = "www" + dns_format = "HOUR" + # domain_id = 123 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_record_line_list.md b/tencentcloud/dnspod/data_source_tc_dnspod_record_line_list.md new file mode 100644 index 0000000000..627af70b62 --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_record_line_list.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of dnspod record_line_list + +Example Usage + +```hcl +data "tencentcloud_dnspod_record_line_list" "record_line_list" { + domain = "iac-tf.cloud" + domain_grade = "DP_FREE" + domain_id = 123 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_record_list.md b/tencentcloud/dnspod/data_source_tc_dnspod_record_list.md new file mode 100644 index 0000000000..6c30c644ef --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_record_list.md @@ -0,0 +1,30 @@ +Use this data source to query detailed information of dnspod record_list + +Example Usage + +```hcl +data "tencentcloud_dnspod_record_list" "record_list" { + domain = "iac-tf.cloud" + # domain_id = 123 + # sub_domain = "www" + record_type = ["A", "NS", "CNAME", "NS", "AAAA"] + # record_line = [""] + group_id = [] + keyword = "" + sort_field = "UPDATED_ON" + sort_type = "DESC" + record_value = "bicycle.dnspod.net" + record_status = ["ENABLE"] + weight_begin = 0 + weight_end = 100 + mx_begin = 0 + mx_end = 10 + ttl_begin = 1 + ttl_end = 864000 + updated_at_begin = "2021-09-07" + updated_at_end = "2023-12-07" + remark = "" + is_exact_sub_domain = true + # project_id = -1 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_record_type.md b/tencentcloud/dnspod/data_source_tc_dnspod_record_type.md new file mode 100644 index 0000000000..c2bb0be14f --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_record_type.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dnspod record_type + +Example Usage + +```hcl +data "tencentcloud_dnspod_record_type" "record_type" { + domain_grade = "DP_FREE" +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/data_source_tc_dnspod_records.md b/tencentcloud/dnspod/data_source_tc_dnspod_records.md new file mode 100644 index 0000000000..ab0f5d7964 --- /dev/null +++ b/tencentcloud/dnspod/data_source_tc_dnspod_records.md @@ -0,0 +1,31 @@ +Use this data source to query dnspod record list. + +Example Usage + +```hcl +data "tencentcloud_dnspod_records" "record" { + domain = "example.com" + subdomain = "www" +} + +output "result" { + value = data.tencentcloud_dnspod_records.record.result +} +``` + +Use verbose filter + +```hcl +data "tencentcloud_dnspod_records" "record" { + domain = "example.com" + subdomain = "www" + limit = 100 + record_type = "TXT" + sort_field = "updated_on" + sort_type = "DESC" +} + +output "result" { + value = data.tencentcloud_dnspod_records.record.result +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_custom_line.md b/tencentcloud/dnspod/resource_tc_dnspod_custom_line.md new file mode 100644 index 0000000000..8fa5e23836 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_custom_line.md @@ -0,0 +1,21 @@ +Provides a resource to create a dnspod custom_line + +~> **NOTE:** Terraform uses the combined id of doamin and name when importing. When the name changes, the combined id will also change. + +Example Usage + +```hcl +resource "tencentcloud_dnspod_custom_line" "custom_line" { + domain = "dnspod.com" + name = "testline8" + area = "6.6.6.1-6.6.6.2" +} +``` + +Import + +dnspod custom_line can be imported using the id, e.g. + +``` +terraform import tencentcloud_dnspod_custom_line.custom_line domain#name +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_domain_alias.md b/tencentcloud/dnspod/resource_tc_dnspod_domain_alias.md new file mode 100644 index 0000000000..d32b37a244 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_domain_alias.md @@ -0,0 +1,18 @@ +Provides a resource to create a dnspod domain_alias + +Example Usage + +```hcl +resource "tencentcloud_dnspod_domain_alias" "domain_alias" { + domain_alias = "dnspod.com" + domain = "dnspod.cn" +} +``` + +Import + +dnspod domain_alias can be imported using the id, e.g. + +``` +terraform import tencentcloud_dnspod_domain_alias.domain_alias domain#domain_alias_id +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_domain_instance.md b/tencentcloud/dnspod/resource_tc_dnspod_domain_instance.md new file mode 100644 index 0000000000..ad10a21e84 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_domain_instance.md @@ -0,0 +1,18 @@ +Provide a resource to create a DnsPod Domain instance. + +Example Usage + +```hcl +resource "tencentcloud_dnspod_domain_instance" "foo" { + domain = "hello.com" + remark = "this is demo" +} +``` + +Import + +DnsPod Domain instance can be imported, e.g. + +``` +$ terraform import tencentcloud_dnspod_domain_instance.foo domain +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_domain_lock.md b/tencentcloud/dnspod/resource_tc_dnspod_domain_lock.md new file mode 100644 index 0000000000..b417e59367 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_domain_lock.md @@ -0,0 +1,10 @@ +Provides a resource to create a dnspod domain_lock + +Example Usage + +```hcl +resource "tencentcloud_dnspod_domain_lock" "domain_lock" { + domain = "dnspod.cn" + lock_days = 30 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_download_snapshot_operation.md b/tencentcloud/dnspod/resource_tc_dnspod_download_snapshot_operation.md new file mode 100644 index 0000000000..3742c694b1 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_download_snapshot_operation.md @@ -0,0 +1,8 @@ +Provides a resource to create a dnspod download_snapshot +Example Usage +```hcl +resource "tencentcloud_dnspod_download_snapshot_operation" "download_snapshot" { + domain = "dnspod.cn" + snapshot_id = "456" +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_modify_domain_owner_operation.md b/tencentcloud/dnspod/resource_tc_dnspod_modify_domain_owner_operation.md new file mode 100644 index 0000000000..44f6ecc9a0 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_modify_domain_owner_operation.md @@ -0,0 +1,11 @@ +Provides a resource to create a dnspod modify_domain_owner + +Example Usage + +```hcl +resource "tencentcloud_dnspod_modify_domain_owner_operation" "modify_domain_owner" { + domain = "dnspod.cn" + account = "xxxxxxxxx" + domain_id = 123 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_modify_record_group_operation.md b/tencentcloud/dnspod/resource_tc_dnspod_modify_record_group_operation.md new file mode 100644 index 0000000000..bd5d29cb3f --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_modify_record_group_operation.md @@ -0,0 +1,12 @@ +Provides a resource to create a dnspod tencentcloud_dnspod_modify_record_group_operation + +Example Usage + +```hcl +resource "tencentcloud_dnspod_modify_record_group_operation" "modify_record_group" { + domain = "dnspod.cn" + group_id = 1 + record_id = "234|345" + domain_id = 123 +} +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_record.md b/tencentcloud/dnspod/resource_tc_dnspod_record.md new file mode 100644 index 0000000000..8fa28f063c --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_record.md @@ -0,0 +1,23 @@ +Provide a resource to create a DnsPod record. + +~> **NOTE:** Versions before v1.81.43 (including v1.81.43) do not support modifying remark or modifying remark has bug. + +Example Usage + +```hcl +resource "tencentcloud_dnspod_record" "demo" { + domain="mikatong.com" + record_type="A" + record_line="默认" + value="1.2.3.9" + sub_domain="demo" +} +``` + +Import + +DnsPod Domain record can be imported using the Domain#RecordId, e.g. + +``` +$ terraform import tencentcloud_dnspod_record.demo arunma.com#1194109872 +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_record_group.md b/tencentcloud/dnspod/resource_tc_dnspod_record_group.md new file mode 100644 index 0000000000..fb4f6bd245 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_record_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a dnspod record_group + +Example Usage + +```hcl +resource "tencentcloud_dnspod_record_group" "record_group" { + domain = "dnspod.cn" + group_name = "group_demo" +} +``` + +Import + +dnspod record_group can be imported using the domain#groupId, e.g. + +``` +terraform import tencentcloud_dnspod_record_group.record_group domain#groupId +``` \ No newline at end of file diff --git a/tencentcloud/dnspod/resource_tc_dnspod_snapshot_config.md b/tencentcloud/dnspod/resource_tc_dnspod_snapshot_config.md new file mode 100644 index 0000000000..0c0f15b6c8 --- /dev/null +++ b/tencentcloud/dnspod/resource_tc_dnspod_snapshot_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a dnspod snapshot_config + +Example Usage + +```hcl +resource "tencentcloud_dnspod_snapshot_config" "snapshot_config" { + domain = "dnspod.cn" + period = "hourly" +} +``` + +Import + +dnspod snapshot_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dnspod_snapshot_config.snapshot_config domain +``` \ No newline at end of file diff --git a/tencentcloud/domain/data_source_tc_domains.md b/tencentcloud/domain/data_source_tc_domains.md new file mode 100644 index 0000000000..a7f17c942b --- /dev/null +++ b/tencentcloud/domain/data_source_tc_domains.md @@ -0,0 +1,8 @@ +Provide a datasource to query Domains. + +Example Usage + +```hcl +data "tencentcloud_domains" "foo" { +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/data_source_tc_dts_compare_tasks.md b/tencentcloud/dts/data_source_tc_dts_compare_tasks.md new file mode 100644 index 0000000000..21ae8d6404 --- /dev/null +++ b/tencentcloud/dts/data_source_tc_dts_compare_tasks.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of dts compareTasks + +Example Usage + +```hcl +data "tencentcloud_dts_compare_tasks" "compareTasks" { + job_id = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/dts/data_source_tc_dts_migrate_db_instances.md b/tencentcloud/dts/data_source_tc_dts_migrate_db_instances.md new file mode 100644 index 0000000000..9de96c458e --- /dev/null +++ b/tencentcloud/dts/data_source_tc_dts_migrate_db_instances.md @@ -0,0 +1,18 @@ +Use this data source to query detailed information of dts migrate_db_instances + +Example Usage + +```hcl +data "tencentcloud_dts_migrate_db_instances" "migrate_db_instances" { + database_type = "mysql" + migrate_role = "src" + instance_id = "cdb-ffulb2sg" + instance_name = "cdb_test" + limit = 10 + offset = 10 + account_mode = "self" + tmp_secret_id = "AKIDvBDyVmna9TadcS4YzfBZmkU5TbX12345" + tmp_secret_key = "ZswjGWWHm24qMeiX6QUJsELDpC12345" + tmp_token = "JOqqCPVuWdNZvlVDLxxx" + } +``` \ No newline at end of file diff --git a/tencentcloud/dts/data_source_tc_dts_migrate_jobs.md b/tencentcloud/dts/data_source_tc_dts_migrate_jobs.md new file mode 100644 index 0000000000..bd000a4141 --- /dev/null +++ b/tencentcloud/dts/data_source_tc_dts_migrate_jobs.md @@ -0,0 +1,41 @@ +Use this data source to query detailed information of dts migrateJobs + +Example Usage + +```hcl +resource "tencentcloud_dts_migrate_job" "migrate_job" { + src_database_type = "mysql" + dst_database_type = "cynosdbmysql" + src_region = "ap-guangzhou" + dst_region = "ap-guangzhou" + instance_class = "small" + job_name = "tf_test_migration_job" + tags { + tag_key = "aaa" + tag_value = "bbb" + } +} + +data "tencentcloud_dts_migrate_jobs" "all" {} + +data "tencentcloud_dts_migrate_jobs" "job" { + job_id = tencentcloud_dts_migrate_job.migrate_job.id + job_name = tencentcloud_dts_migrate_job.migrate_job.job_name + status = ["created"] +} + +data "tencentcloud_dts_migrate_jobs" "src_dest" { + + src_region = "ap-guangzhou" + src_database_type = ["mysql"] + dst_region = "ap-guangzhou" + dst_database_type = ["cynosdbmysql"] + + status = ["created"] + tag_filters { + tag_key = "aaa" + tag_value = "bbb" + } +} + +``` \ No newline at end of file diff --git a/tencentcloud/dts/data_source_tc_dts_sync_jobs.md b/tencentcloud/dts/data_source_tc_dts_sync_jobs.md new file mode 100644 index 0000000000..afd06d9f92 --- /dev/null +++ b/tencentcloud/dts/data_source_tc_dts_sync_jobs.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of dts syncJobs + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job" "job" { + job_name = "tf_dts_test" + pay_mode = "PostPay" + src_database_type = "mysql" + src_region = "ap-guangzhou" + dst_database_type = "cynosdbmysql" + dst_region = "ap-guangzhou" + tags { + tag_key = "aaa" + tag_value = "bbb" + } + auto_renew = 0 + instance_class = "micro" + } + +data "tencentcloud_dts_sync_jobs" "sync_jobs" { + job_id = tencentcloud_dts_sync_job.job.id + job_name = "tf_dts_test" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_compare_task.md b/tencentcloud/dts/resource_tc_dts_compare_task.md new file mode 100644 index 0000000000..52fda879c4 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_compare_task.md @@ -0,0 +1,29 @@ +Provides a resource to create a dts compare_task + +Example Usage + +```hcl +resource "tencentcloud_dts_compare_task" "compare_task" { + job_id = "" + task_name = "" + object_mode = "" + objects { + object_mode = "" + object_items { + db_name = "" + db_mode = "" + schema_name = "" + table_mode = "" + tables { + table_name = "" + } + view_mode = "" + views { + view_name = "" + } + } + + } + } + +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_compare_task_stop_operation.md b/tencentcloud/dts/resource_tc_dts_compare_task_stop_operation.md new file mode 100644 index 0000000000..48bf585680 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_compare_task_stop_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dts compare_task_stop_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_compare_task_stop_operation" "compare_task_stop_operation" { + job_id = "dts-8yv4w2i1" + compare_task_id = "dts-8yv4w2i1-cmp-37skmii9" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_migrate_job.md b/tencentcloud/dts/resource_tc_dts_migrate_job.md new file mode 100644 index 0000000000..0022acae79 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_migrate_job.md @@ -0,0 +1,121 @@ +Provides a resource to create a dts migrate_job + +Example Usage + +```hcl +resource "tencentcloud_cynosdb_cluster" "foo" { + available_zone = var.availability_zone + vpc_id = local.vpc_id + subnet_id = local.subnet_id + db_type = "MYSQL" + db_version = "5.7" + storage_limit = 1000 + cluster_name = "tf-cynosdb-mysql" + password = "cynos@123" + instance_maintain_duration = 3600 + instance_maintain_start_time = 10800 + instance_maintain_weekdays = [ + "Fri", + "Mon", + "Sat", + "Sun", + "Thu", + "Wed", + "Tue", + ] + + instance_cpu_core = 1 + instance_memory_size = 2 + param_items { + name = "character_set_server" + current_value = "utf8" + } + param_items { + name = "time_zone" + current_value = "+09:00" + } + param_items { + name = "lower_case_table_names" + current_value = "1" + } + + force_delete = true + + rw_group_sg = [ + local.sg_id + ] + ro_group_sg = [ + local.sg_id + ] + prarm_template_id = var.my_param_template + } + +resource "tencentcloud_dts_migrate_service" "service" { + src_database_type = "mysql" + dst_database_type = "cynosdbmysql" + src_region = "ap-guangzhou" + dst_region = "ap-guangzhou" + instance_class = "small" + job_name = "tf_test_migration_service_1" + tags { + tag_key = "aaa" + tag_value = "bbb" + } + } + +resource "tencentcloud_dts_migrate_job" "job" { + service_id = tencentcloud_dts_migrate_service.service.id + run_mode = "immediate" + migrate_option { + database_table { + object_mode = "partial" + databases { + db_name = "tf_ci_test" + db_mode = "partial" + table_mode = "partial" + tables { + table_name = "test" + new_table_name = "test_%s" + table_edit_mode = "rename" + } + } + } + } + src_info { + region = "ap-guangzhou" + access_type = "cdb" + database_type = "mysql" + node_type = "simple" + info { + user = "user_name" + password = "your_pw" + instance_id = "cdb-fitq5t9h" + } + + } + dst_info { + region = "ap-guangzhou" + access_type = "cdb" + database_type = "cynosdbmysql" + node_type = "simple" + info { + user = "user_name" + password = "your_pw" + instance_id = tencentcloud_cynosdb_cluster.foo.id + } + } + auto_retry_time_range_minutes = 0 +} + +resource "tencentcloud_dts_migrate_job_start_operation" "start"{ + job_id = tencentcloud_dts_migrate_job.job.id +} +``` + +Import + +dts migrate_job can be imported using the id, e.g. + +``` +terraform import tencentcloud_dts_migrate_job.migrate_job migrate_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_migrate_job_config.md b/tencentcloud/dts/resource_tc_dts_migrate_job_config.md new file mode 100644 index 0000000000..9861a55117 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_migrate_job_config.md @@ -0,0 +1,112 @@ +Provides a resource to create a dts migrate_job_config + +Example Usage + +```hcl +resource "tencentcloud_dts_migrate_service" "service" { + src_database_type = "mysql" + dst_database_type = "cynosdbmysql" + src_region = "ap-guangzhou" + dst_region = "ap-guangzhou" + instance_class = "small" + job_name = "tf_test_xxx" + tags { + tag_key = "aaa" + tag_value = "bbb" + } + } + +resource "tencentcloud_dts_migrate_job" "job" { + service_id = tencentcloud_dts_migrate_service.service.id + run_mode = "immediate" + migrate_option { + database_table { + object_mode = "partial" + databases { + db_name = "tf_ci_test" + db_mode = "partial" + table_mode = "partial" + tables { + table_name = "test" + new_table_name = "test_xxx" + table_edit_mode = "rename" + } + } + } + } + src_info { + region = "ap-guangzhou" + access_type = "cdb" + database_type = "mysql" + node_type = "simple" + info { + user = "root" + password = "xxx" + instance_id = "id" + } + + } + dst_info { + region = "ap-guangzhou" + access_type = "cdb" + database_type = "cynosdbmysql" + node_type = "simple" + info { + user = "user" + password = "xxx" + instance_id = "id" + } + } + auto_retry_time_range_minutes = 0 +} + +resource "tencentcloud_dts_migrate_job_start_operation" "start"{ + job_id = tencentcloud_dts_migrate_job.job.id +} + +// pause the migration job +resource "tencentcloud_dts_migrate_job_config" "config" { + job_id = tencentcloud_dts_migrate_job_start_operation.start.id + action = "pause" +} +``` + +Continue the a migration job +``` +resource "tencentcloud_dts_migrate_job_config" "config" { + job_id = tencentcloud_dts_migrate_job_start_operation.start.id + action = "continue" +} +``` + +Complete a migration job when the status is readyComplete +``` +resource "tencentcloud_dts_migrate_job_config" "config" { + job_id = tencentcloud_dts_migrate_job_start_operation.start.id + action = "continue" +} +``` + +Stop a running migration job +``` +resource "tencentcloud_dts_migrate_job_config" "config" { + job_id = tencentcloud_dts_migrate_job_start_operation.start.id + action = "stop" +} +``` + +Isolate a stopped/canceled migration job +``` +resource "tencentcloud_dts_migrate_job_config" "config" { + job_id = tencentcloud_dts_migrate_job_start_operation.start.id + action = "isolate" +} +``` + +Recover a isolated migration job +``` +resource "tencentcloud_dts_migrate_job_config" "config" { + job_id = tencentcloud_dts_migrate_job_start_operation.start.id + action = "recover" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_migrate_job_resume_operation.md b/tencentcloud/dts/resource_tc_dts_migrate_job_resume_operation.md new file mode 100644 index 0000000000..ec7fe4e60e --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_migrate_job_resume_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dts migrate_job_resume_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_migrate_job_resume_operation" "resume" { + job_id = "job_id" + resume_option = "normal" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_migrate_job_start_operation.md b/tencentcloud/dts/resource_tc_dts_migrate_job_start_operation.md new file mode 100644 index 0000000000..c25093b7a6 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_migrate_job_start_operation.md @@ -0,0 +1,9 @@ +Provides a resource to start a dts migrate_job + +Example Usage + +```hcl +resource "tencentcloud_dts_migrate_job_start_operation" "start"{ + job_id = tencentcloud_dts_migrate_job.job.id +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_migrate_service.md b/tencentcloud/dts/resource_tc_dts_migrate_service.md new file mode 100644 index 0000000000..24e5a75d33 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_migrate_service.md @@ -0,0 +1,25 @@ +Provides a resource to create a dts migrate_service + +Example Usage + +```hcl +resource "tencentcloud_dts_migrate_service" "migrate_service" { + src_database_type = "mysql" + dst_database_type = "cynosdbmysql" + src_region = "ap-guangzhou" + dst_region = "ap-guangzhou" + instance_class = "small" + job_name = "tf_test_migration_job" + tags { + tag_key = "aaa" + tag_value = "bbb" + } +} + +``` +Import + +dts migrate_service can be imported using the id, e.g. +``` +$ terraform import tencentcloud_dts_migrate_service.migrate_service migrateService_id +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_check_job_operation.md b/tencentcloud/dts/resource_tc_dts_sync_check_job_operation.md new file mode 100644 index 0000000000..6e6d116125 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_check_job_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_check_job_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_check_job_operation" "sync_check_job_operation" { + job_id = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_config.md b/tencentcloud/dts/resource_tc_dts_sync_config.md new file mode 100644 index 0000000000..88457853e6 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_config.md @@ -0,0 +1,198 @@ +Provides a resource to create a dts sync_config + +Example Usage + +Sync mysql database to cynosdb through cdb access type + +```hcl +resource "tencentcloud_cynosdb_cluster" "foo" { + available_zone = var.availability_zone + vpc_id = local.vpc_id + subnet_id = local.subnet_id + db_type = "MYSQL" + db_version = "5.7" + storage_limit = 1000 + cluster_name = "tf-cynosdb-mysql-sync-dst" + password = "*" + instance_maintain_duration = 3600 + instance_maintain_start_time = 10800 + instance_maintain_weekdays = [ + "Fri", + "Mon", + "Sat", + "Sun", + "Thu", + "Wed", + "Tue", + ] + + instance_cpu_core = 1 + instance_memory_size = 2 + param_items { + name = "character_set_server" + current_value = "utf8" + } + param_items { + name = "time_zone" + current_value = "+09:00" + } + param_items { + name = "lower_case_table_names" + current_value = "1" + } + + force_delete = true + + rw_group_sg = [ + local.sg_id + ] + ro_group_sg = [ + local.sg_id + ] + prarm_template_id = var.my_param_template + } + +resource "tencentcloud_dts_sync_job" "sync_job" { + pay_mode = "PostPay" + src_database_type = "mysql" + src_region = "ap-guangzhou" + dst_database_type = "cynosdbmysql" + dst_region = "ap-guangzhou" + tags { + tag_key = "aaa" + tag_value = "bbb" + } + auto_renew = 0 + instance_class = "micro" + } + +resource "tencentcloud_dts_sync_config" "sync_config" { + job_id = tencentcloud_dts_sync_job.sync_job.job_id + src_access_type = "cdb" + dst_access_type = "cdb" + + job_name = "tf_test_sync_config" + job_mode = "liteMode" + run_mode = "Immediate" + + objects { + mode = "Partial" + databases { + db_name = "tf_ci_test" + new_db_name = "tf_ci_test_new" + db_mode = "Partial" + table_mode = "All" + tables { + table_name = "test" + new_table_name = "test_new" + } + } + } + src_info { + region = "ap-guangzhou" + instance_id = "cdb-fitq5t9h" + user = "your_user_name" + password = "*" + db_name = "tf_ci_test" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + } + dst_info { + region = "ap-guangzhou" + instance_id = tencentcloud_cynosdb_cluster.foo.id + user = "root" + password = "*" + db_name = "tf_ci_test_new" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + } + auto_retry_time_range_minutes = 0 +} +``` + +Sync mysql database using CCN to route from ap-shanghai to ap-guangzhou + +```hcl +locals { + vpc_id_sh = "vpc-evtcyb3g" + subnet_id_sh = "subnet-1t83cxkp" + src_ip = data.tencentcloud_mysql_instance.src_mysql.instance_list.0.intranet_ip + src_port = data.tencentcloud_mysql_instance.src_mysql.instance_list.0.intranet_port + ccn_id = data.tencentcloud_ccn_instances.ccns.instance_list.0.ccn_id + dst_mysql_id = data.tencentcloud_mysql_instance.dst_mysql.instance_list.0.mysql_id +} + +variable "src_az_sh" { + default = "ap-shanghai" +} + +variable "dst_az_gz" { + default = "ap-guangzhou" +} + +data "tencentcloud_dts_sync_jobs" "sync_jobs" { + job_name = "keep_sync_config_ccn_2_cdb" +} + +data "tencentcloud_ccn_instances" "ccns" { + name = "keep-ccn-dts-sh" +} + +data "tencentcloud_mysql_instance" "src_mysql" { + instance_name = "your_user_name_mysql_src" +} + +data "tencentcloud_mysql_instance" "dst_mysql" { + instance_name = "your_user_name_mysql_src" +} + +resource "tencentcloud_dts_sync_config" "sync_config" { + job_id = data.tencentcloud_dts_sync_jobs.sync_jobs.list.0.job_id + src_access_type = "ccn" + dst_access_type = "cdb" + + job_mode = "liteMode" + run_mode = "Immediate" + + objects { + mode = "Partial" + databases { + db_name = "tf_ci_test" + new_db_name = "tf_ci_test_new" + db_mode = "Partial" + table_mode = "All" + tables { + table_name = "test" + new_table_name = "test_new" + } + } + } + src_info { // shanghai to guangzhou via ccn + region = var.src_az_sh + user = "your_user_name" + password = "your_pass_word" + ip = local.src_ip + port = local.src_port + vpc_id = local.vpc_id_sh + subnet_id = local.subnet_id_sh + ccn_id = local.ccn_id + database_net_env = "TencentVPC" + } + dst_info { + region = var.dst_az_gz + instance_id = local.dst_mysql_id + user = "your_user_name" + password = "your_pass_word" + } + auto_retry_time_range_minutes = 0 +} + +```` + +Import + +dts sync_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_dts_sync_config.sync_config sync_config_id +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job.md b/tencentcloud/dts/resource_tc_dts_sync_job.md new file mode 100644 index 0000000000..cfc0635ea0 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job.md @@ -0,0 +1,20 @@ +Provides a resource to create a dts sync_job + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job" "sync_job" { + pay_mode = "PostPay" + src_database_type = "mysql" + src_region = "ap-guangzhou" + dst_database_type = "cynosdbmysql" + dst_region = "ap-guangzhou" + tags { + tag_key = "aaa" + tag_value = "bbb" + } + auto_renew = 0 + instance_class = "micro" +} + +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_continue_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_continue_operation.md new file mode 100644 index 0000000000..b7bab49fae --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_continue_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_continue_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_continue_operation" "sync_job_continue_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_isolate_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_isolate_operation.md new file mode 100644 index 0000000000..60b8066b02 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_isolate_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_isolate_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_isolate_operation" "sync_job_isolate_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_pause_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_pause_operation.md new file mode 100644 index 0000000000..6901fa8349 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_pause_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_pause_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_pause_operation" "sync_job_pause_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_recover_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_recover_operation.md new file mode 100644 index 0000000000..b4dc7a7b26 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_recover_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_recover_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_recover_operation" "sync_job_recover_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_resize_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_resize_operation.md new file mode 100644 index 0000000000..cacbd62b10 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_resize_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a dts sync_job_resize_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_resize_operation" "sync_job_resize_operation" { + job_id = "sync-werwfs23" + new_instance_class = "large" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_resume_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_resume_operation.md new file mode 100644 index 0000000000..41501b8f84 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_resume_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_resume_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_resume_operation" "sync_job_resume_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_start_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_start_operation.md new file mode 100644 index 0000000000..540c8ac2f7 --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_start_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_start_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_start_operation" "sync_job_start_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/dts/resource_tc_dts_sync_job_stop_operation.md b/tencentcloud/dts/resource_tc_dts_sync_job_stop_operation.md new file mode 100644 index 0000000000..6e96dfc18e --- /dev/null +++ b/tencentcloud/dts/resource_tc_dts_sync_job_stop_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a dts sync_job_stop_operation + +Example Usage + +```hcl +resource "tencentcloud_dts_sync_job_stop_operation" "sync_job_stop_operation" { + job_id = "sync-werwfs23" +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/data_source_tc_eb_bus.md b/tencentcloud/eb/data_source_tc_eb_bus.md new file mode 100644 index 0000000000..287070cf3e --- /dev/null +++ b/tencentcloud/eb/data_source_tc_eb_bus.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of eb bus + +Example Usage + +```hcl +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} +data "tencentcloud_eb_bus" "bus" { + order_by = "AddTime" + order = "DESC" + filters { + values = ["Custom"] + name = "Type" + } + + depends_on = [ tencentcloud_eb_event_bus.foo ] +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/data_source_tc_eb_event_rules.md b/tencentcloud/eb/data_source_tc_eb_event_rules.md new file mode 100644 index 0000000000..cb8e97200d --- /dev/null +++ b/tencentcloud/eb/data_source_tc_eb_event_rules.md @@ -0,0 +1,36 @@ +Use this data source to query detailed information of eb event_rules +Example Usage +```hcl +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus_rule" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} +resource "tencentcloud_eb_event_rule" "event_rule" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_name = "tf-event_rule" + description = "event rule desc" + enable = true + event_pattern = jsonencode( + { + source = "apigw.cloud.tencent" + type = [ + "connector:apigw", + ] + } + ) + tags = { + "createdBy" = "terraform" + } +} +data "tencentcloud_eb_event_rules" "event_rules" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + order_by = "AddTime" + order = "DESC" + depends_on = [tencentcloud_eb_event_rule.event_rule] +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/data_source_tc_eb_plateform_event_template.md b/tencentcloud/eb/data_source_tc_eb_plateform_event_template.md new file mode 100644 index 0000000000..be3153fb00 --- /dev/null +++ b/tencentcloud/eb/data_source_tc_eb_plateform_event_template.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of eb plateform_event_template + +Example Usage + +```hcl +data "tencentcloud_eb_plateform_event_template" "plateform_event_template" { + event_type = "eb_platform_test:TEST:ALL" +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/data_source_tc_eb_platform_event_names.md b/tencentcloud/eb/data_source_tc_eb_platform_event_names.md new file mode 100644 index 0000000000..08e4fabc5a --- /dev/null +++ b/tencentcloud/eb/data_source_tc_eb_platform_event_names.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of eb platform_event_names + +Example Usage + +```hcl +data "tencentcloud_eb_platform_event_names" "platform_event_names" { + product_type = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/data_source_tc_eb_platform_event_patterns.md b/tencentcloud/eb/data_source_tc_eb_platform_event_patterns.md new file mode 100644 index 0000000000..1e9f9a41e7 --- /dev/null +++ b/tencentcloud/eb/data_source_tc_eb_platform_event_patterns.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of eb platform_event_patterns + +Example Usage + +```hcl +data "tencentcloud_eb_platform_event_patterns" "platform_event_patterns" { + product_type = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/data_source_tc_eb_platform_products.md b/tencentcloud/eb/data_source_tc_eb_platform_products.md new file mode 100644 index 0000000000..1e8b9f3db3 --- /dev/null +++ b/tencentcloud/eb/data_source_tc_eb_platform_products.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of eb platform_products + +Example Usage + +```hcl +data "tencentcloud_eb_platform_products" "platform_products" { +} +``` \ No newline at end of file diff --git a/tencentcloud/eb/resource_tc_eb_event_bus.md b/tencentcloud/eb/resource_tc_eb_event_bus.md new file mode 100644 index 0000000000..3b118d4991 --- /dev/null +++ b/tencentcloud/eb/resource_tc_eb_event_bus.md @@ -0,0 +1,23 @@ +Provides a resource to create a eb event_bus + +Example Usage + +```hcl +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +eb event_bus can be imported using the id, e.g. + +``` +terraform import tencentcloud_eb_event_bus.event_bus event_bus_id +``` \ No newline at end of file diff --git a/tencentcloud/eb/resource_tc_eb_event_connector.md b/tencentcloud/eb/resource_tc_eb_event_connector.md new file mode 100644 index 0000000000..061b5d1ff1 --- /dev/null +++ b/tencentcloud/eb/resource_tc_eb_event_connector.md @@ -0,0 +1,118 @@ +Provides a resource to create a eb event_connector + +~> **NOTE:** When the type is `apigw`, the import function is not supported. + +Example Usage + +Create ckafka event connector +```hcl +data "tencentcloud_user_info" "foo" {} + +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_ckafka_instance" "kafka_instance" { + instance_name = "ckafka-instance-maz-tf-test" + zone_id = 100003 + multi_zone_flag = true + zone_ids = [100003, 100006] + period = 1 + vpc_id = var.vpc_id + subnet_id = var.subnet_id + msg_retention_time = 1300 + renew_flag = 0 + kafka_version = "1.1.1" + disk_size = 500 + disk_type = "CLOUD_BASIC" + + config { + auto_create_topic_enable = true + default_num_partitions = 3 + default_replication_factor = 3 + } + + dynamic_retention_config { + enable = 1 + } +} + +locals { + ckafka_id = tencentcloud_ckafka_instance.kafka_instance.id + uin = data.tencentcloud_user_info.foo.owner_uin +} + +resource "tencentcloud_eb_event_connector" "event_connector" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + connection_name = "tf-event-connector" + description = "event connector desc1" + enable = true + type = "ckafka" + connection_description { + resource_description = "qcs::ckafka:ap-guangzhou:uin/${local.uin}:ckafkaId/uin/${local.uin}/${local.ckafka_id}" + ckafka_params { + offset = "latest" + topic_name = "dasdasd" + } + } +} +``` + +Create api_gateway event connector + +```hcl +data "tencentcloud_user_info" "foo" {} + +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_api_gateway_service" "service" { + service_name = "tf-eb-service" + protocol = "http&https" + service_desc = "your nice service" + net_type = ["INNER", "OUTER"] + ip_version = "IPv4" +} + +locals { + uin = data.tencentcloud_user_info.foo.owner_uin + service_id = tencentcloud_api_gateway_service.service.id +} + +resource "tencentcloud_eb_event_connector" "event_connector" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + connection_name = "tf-event-connector" + description = "event connector desc1" + enable = false + type = "apigw" + + connection_description { + resource_description = "qcs::apigw:ap-guangzhou:uin/${local.uin}:serviceid/${local.service_id}" + api_gw_params { + protocol = "HTTP" + method = "GET" + } + } +} +``` + +Import + +eb event_connector can be imported using the id, e.g. + +``` +terraform import tencentcloud_eb_event_connector.event_connector eventBusId#connectionId +``` \ No newline at end of file diff --git a/tencentcloud/eb/resource_tc_eb_event_rule.md b/tencentcloud/eb/resource_tc_eb_event_rule.md new file mode 100644 index 0000000000..e386c092a7 --- /dev/null +++ b/tencentcloud/eb/resource_tc_eb_event_rule.md @@ -0,0 +1,41 @@ +Provides a resource to create a eb event_rule + +Example Usage + +```hcl +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_eb_event_rule" "event_rule" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_name = "tf-event_rule" + description = "event rule desc" + enable = true + event_pattern = jsonencode( + { + source = "apigw.cloud.tencent" + type = [ + "connector:apigw", + ] + } + ) + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +eb event_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_eb_event_rule.event_rule event_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/eb/resource_tc_eb_event_target.md b/tencentcloud/eb/resource_tc_eb_event_target.md new file mode 100644 index 0000000000..447ecbcb95 --- /dev/null +++ b/tencentcloud/eb/resource_tc_eb_event_target.md @@ -0,0 +1,105 @@ +Provides a resource to create a eb event_target + +Example Usage + +Create an event target of type scf + +```hcl +variable "zone" { + default = "ap-guangzhou" +} + +variable "namespace" { + default = "default" +} + +variable "function" { + default = "keep-1676351130" +} + +variable "function_version" { + default = "$LATEST" +} + +data "tencentcloud_cam_users" "foo" { +} + +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_eb_event_rule" "foo" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_name = "tf-event_rule" + description = "event rule desc" + enable = true + event_pattern = jsonencode( + { + source = "apigw.cloud.tencent" + type = [ + "connector:apigw", + ] + } + ) + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_eb_event_target" "scf_target" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_id = tencentcloud_eb_event_rule.foo.rule_id + type = "scf" + + target_description { + resource_description = "qcs::scf:${var.zone}:uin/${data.tencentcloud_cam_users.foo.user_list.0.uin}:namespace/${var.namespace}/function/${var.function}/${var.function_version}" + + scf_params { + batch_event_count = 1 + batch_timeout = 1 + enable_batch_delivery = true + } + } +} +``` + +Create an event target of type ckafka + +```hcl +variable "ckafka" { + default = "ckafka-qzoeaqx8" +} + +resource "tencentcloud_eb_event_target" "ckafka_target" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_id = tencentcloud_eb_event_rule.foo.rule_id + type = "ckafka" + + target_description { + resource_description = "qcs::scf:${var.zone}:uin/${data.tencentcloud_cam_users.foo.user_list.0.uin}:ckafkaId/uin/${data.tencentcloud_cam_users.foo.user_list.0.uin}/${var.ckafka}" + + ckafka_target_params { + topic_name = "dasdasd" + + retry_policy { + max_retry_attempts = 360 + retry_interval = 60 + } + } + } +} +``` + +Import + +eb event_target can be imported using the id, e.g. + +``` +terraform import tencentcloud_eb_event_target.event_target event_target_id +``` \ No newline at end of file diff --git a/tencentcloud/eb/resource_tc_eb_event_transform.md b/tencentcloud/eb/resource_tc_eb_event_transform.md new file mode 100644 index 0000000000..514c7dbb5e --- /dev/null +++ b/tencentcloud/eb/resource_tc_eb_event_transform.md @@ -0,0 +1,95 @@ +Provides a resource to create a eb eb_transform + +Example Usage + +```hcl +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_eb_event_rule" "foo" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_name = "tf-event_rule" + description = "event rule desc" + enable = true + event_pattern = jsonencode( + { + source = "apigw.cloud.tencent" + type = [ + "connector:apigw", + ] + } + ) + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_eb_event_transform" "foo" { + event_bus_id = tencentcloud_eb_event_bus.foo.id + rule_id = tencentcloud_eb_event_rule.foo.rule_id + + transformations { + + extraction { + extraction_input_path = "$" + format = "JSON" + } + + transform { + output_structs { + key = "type" + value = "connector:ckafka" + value_type = "STRING" + } + output_structs { + key = "source" + value = "ckafka.cloud.tencent" + value_type = "STRING" + } + output_structs { + key = "region" + value = "ap-guangzhou" + value_type = "STRING" + } + output_structs { + key = "datacontenttype" + value = "application/json;charset=utf-8" + value_type = "STRING" + } + output_structs { + key = "status" + value = "-" + value_type = "STRING" + } + output_structs { + key = "data" + value = jsonencode( + { + Partition = 1 + msgBody = "Hello from Ckafka again!" + msgKey = "test" + offset = 37 + topic = "test-topic" + } + ) + value_type = "STRING" + } + } + } +} +``` + +Import + +eb eb_transform can be imported using the id, e.g. + +``` +terraform import tencentcloud_eb_event_transform.eb_transform eb_transform_id +``` \ No newline at end of file diff --git a/tencentcloud/eb/resource_tc_eb_put_events.md b/tencentcloud/eb/resource_tc_eb_put_events.md new file mode 100644 index 0000000000..1f4988f6aa --- /dev/null +++ b/tencentcloud/eb/resource_tc_eb_put_events.md @@ -0,0 +1,35 @@ +Provides a resource to create a eb put_events + +Example Usage + +```hcl +resource "tencentcloud_eb_event_bus" "foo" { + event_bus_name = "tf-event_bus" + description = "event bus desc" + enable_store = false + save_days = 1 + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_eb_put_events" "put_events" { + event_list { + source = "ckafka.cloud.tencent" + data = jsonencode( + { + "topic" : "test-topic", + "Partition" : 1, + "offset" : 37, + "msgKey" : "test", + "msgBody" : "Hello from Ckafka again!" + } + ) + type = "connector:ckafka" + subject = "qcs::ckafka:ap-guangzhou:uin/1250000000:ckafkaId/uin/1250000000/ckafka-123456" + time = 1691572461939 + + } + event_bus_id = tencentcloud_eb_event_bus.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/emr/data_source_tc_emr.md b/tencentcloud/emr/data_source_tc_emr.md new file mode 100644 index 0000000000..8857f32fa2 --- /dev/null +++ b/tencentcloud/emr/data_source_tc_emr.md @@ -0,0 +1,12 @@ +Provides an available EMR for the user. + +The EMR data source fetch proper EMR from user's EMR pool. + +Example Usage + +```hcl +data "tencentcloud_emr" "my_emr" { + display_strategy="clusterList" + instance_ids=["emr-rnzqrleq"] +} +``` \ No newline at end of file diff --git a/tencentcloud/emr/data_source_tc_emr_auto_scale_records.md b/tencentcloud/emr/data_source_tc_emr_auto_scale_records.md new file mode 100644 index 0000000000..22eadd8b89 --- /dev/null +++ b/tencentcloud/emr/data_source_tc_emr_auto_scale_records.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of emr auto_scale_records + +Example Usage + +```hcl +data "tencentcloud_emr_auto_scale_records" "auto_scale_records" { + instance_id = "emr-bpum4pad" + filters { + key = "StartTime" + value = "2006-01-02 15:04:05" + } +} +``` diff --git a/tencentcloud/emr/data_source_tc_emr_cvm_quota.md b/tencentcloud/emr/data_source_tc_emr_cvm_quota.md new file mode 100644 index 0000000000..1e655b739a --- /dev/null +++ b/tencentcloud/emr/data_source_tc_emr_cvm_quota.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of emr cvm_quota + +Example Usage + +```hcl +data "tencentcloud_emr_cvm_quota" "cvm_quota" { + cluster_id = "emr-0ze36vnp" + zone_id = 100003 +} +``` \ No newline at end of file diff --git a/tencentcloud/emr/data_source_tc_emr_nodes.md b/tencentcloud/emr/data_source_tc_emr_nodes.md new file mode 100644 index 0000000000..9c4bb9eb5f --- /dev/null +++ b/tencentcloud/emr/data_source_tc_emr_nodes.md @@ -0,0 +1,12 @@ +Provides an available EMR for the user. + +The EMR data source obtain the hardware node information by using the emr cluster ID. + +Example Usage + +```hcl +data "tencentcloud_emr_nodes" "my_emr_nodes" { + node_flag="master" + instance_id="emr-rnzqrleq" +} +``` \ No newline at end of file diff --git a/tencentcloud/emr/resource_tc_emr_cluster.md b/tencentcloud/emr/resource_tc_emr_cluster.md new file mode 100644 index 0000000000..50b66f4a6d --- /dev/null +++ b/tencentcloud/emr/resource_tc_emr_cluster.md @@ -0,0 +1,89 @@ +Provide a resource to create a emr cluster. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +data "tencentcloud_instance_types" "cvm4c8m" { + exclude_sold_out=true + cpu_core_count=4 + memory_size=8 + filter { + name = "instance-charge-type" + values = ["POSTPAID_BY_HOUR"] + } + filter { + name = "zone" + values = [var.availability_zone] + } +} + +resource "tencentcloud_vpc" "emr_vpc" { + name = "emr-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "emr_subnet" { + availability_zone = var.availability_zone + name = "emr-subnets" + vpc_id = tencentcloud_vpc.emr_vpc.id + cidr_block = "10.0.20.0/28" + is_multicast = false +} + +resource "tencentcloud_security_group" "emr_sg" { + name = "emr-sg" + description = "emr sg" + project_id = 0 +} + +resource "tencentcloud_emr_cluster" "emr_cluster" { + product_id=4 + display_strategy="clusterList" + vpc_settings={ + vpc_id=tencentcloud_vpc.emr_vpc.id + subnet_id=tencentcloud_subnet.emr_subnet.id + } + softwares=[ + "zookeeper-3.6.1", + ] + support_ha=0 + instance_name="emr-cluster-test" + resource_spec { + master_resource_spec { + mem_size=8192 + cpu=4 + disk_size=100 + disk_type="CLOUD_PREMIUM" + spec="CVM.${data.tencentcloud_instance_types.cvm4c8m.instance_types.0.family}" + storage_type=5 + root_size=50 + } + core_resource_spec { + mem_size=8192 + cpu=4 + disk_size=100 + disk_type="CLOUD_PREMIUM" + spec="CVM.${data.tencentcloud_instance_types.cvm4c8m.instance_types.0.family}" + storage_type=5 + root_size=50 + } + master_count=1 + core_count=2 + } + login_settings={ + password="Tencent@cloud123" + } + time_span=3600 + time_unit="s" + pay_mode=0 + placement={ + zone=var.availability_zone + project_id=0 + } + sg_id=tencentcloud_security_group.emr_sg.id +} +``` \ No newline at end of file diff --git a/tencentcloud/emr/resource_tc_emr_user_manager.md b/tencentcloud/emr/resource_tc_emr_user_manager.md new file mode 100644 index 0000000000..07803b2e3a --- /dev/null +++ b/tencentcloud/emr/resource_tc_emr_user_manager.md @@ -0,0 +1,25 @@ +Provides a resource to create a emr user + +Example Usage + +```hcl +data "tencentcloud_emr" "my_emr" { + display_strategy = "clusterList" +} + +resource "tencentcloud_emr_user_manager" "user_manager" { + instance_id = data.tencentcloud_emr.my_emr.clusters.0.cluster_id + user_name = "tf-test" + user_group = "group1" + password = "tf@123456" +} + +``` + +Import + +emr user_manager can be imported using the id, e.g. + +``` +terraform import tencentcloud_emr_user_manager.user_manager instanceId#userName +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_describe_index_list.md b/tencentcloud/es/data_source_tc_elasticsearch_describe_index_list.md new file mode 100644 index 0000000000..2a084a2b8a --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_describe_index_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of elasticsearch index list + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_describe_index_list" "describe_index_list" { + index_type = "normal" + instance_id = "es-nni6pm4s" +} +``` diff --git a/tencentcloud/es/data_source_tc_elasticsearch_diagnose.md b/tencentcloud/es/data_source_tc_elasticsearch_diagnose.md new file mode 100644 index 0000000000..6ca894e2fc --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_diagnose.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of elasticsearch diagnose + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_diagnose" "diagnose" { + instance_id = "es-xxxxxx" + date = "20231030" + limit = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_instance_logs.md b/tencentcloud/es/data_source_tc_elasticsearch_instance_logs.md new file mode 100644 index 0000000000..8c09b021ff --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_instance_logs.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of es elasticsearch_instance_logs + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_instance_logs" "elasticsearch_instance_logs" { + instance_id = "es-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_instance_operations.md b/tencentcloud/es/data_source_tc_elasticsearch_instance_operations.md new file mode 100644 index 0000000000..1a94f88c7a --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_instance_operations.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of elasticsearch instance operations + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_instance_operations" "instance_operations" { + instance_id = "es-xxxxxx" + start_time = "2018-01-01 00:00:00" + end_time = "2023-10-31 10:12:45" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_instance_plugin_list.md b/tencentcloud/es/data_source_tc_elasticsearch_instance_plugin_list.md new file mode 100644 index 0000000000..f2bdae519f --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_instance_plugin_list.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of elasticsearch instance plugin list + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_instance_plugin_list" "instance_plugin_list" { + instance_id = "es-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_instances.md b/tencentcloud/es/data_source_tc_elasticsearch_instances.md new file mode 100644 index 0000000000..7ec4864d85 --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_instances.md @@ -0,0 +1,9 @@ +Use this data source to query elasticsearch instances. + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_instances" "foo" { + instance_id = "es-17634f05" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_logs.md b/tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_logs.md new file mode 100644 index 0000000000..c005299930 --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_logs.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of elasticsearch logstash_instance_logs + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_logstash_instance_logs" "logstash_instance_logs" { + instance_id = "ls-xxxxxx" + log_type = 1 + start_time = "2023-10-31 10:30:00" + end_time = "2023-10-31 10:30:10" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_operations.md b/tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_operations.md new file mode 100644 index 0000000000..22a37cabf9 --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_operations.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of elasticsearch logstash_instance_operations + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_logstash_instance_operations" "logstash_instance_operations" { + instance_id = "ls-xxxxxx" + start_time = "2018-01-01 00:00:00" + end_time = "2023-10-31 10:12:45" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/data_source_tc_elasticsearch_views.md b/tencentcloud/es/data_source_tc_elasticsearch_views.md new file mode 100644 index 0000000000..81f605301a --- /dev/null +++ b/tencentcloud/es/data_source_tc_elasticsearch_views.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of elasticsearch views + +Example Usage + +```hcl +data "tencentcloud_elasticsearch_views" "views" { + instance_id = "es-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/resource_tc_elasticsearch_diagnose.md b/tencentcloud/es/resource_tc_elasticsearch_diagnose.md new file mode 100644 index 0000000000..661db33320 --- /dev/null +++ b/tencentcloud/es/resource_tc_elasticsearch_diagnose.md @@ -0,0 +1,18 @@ +Provides a resource to create a elasticsearch diagnose + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_diagnose" "diagnose" { + instance_id = "es-xxxxxx" + cron_time = "15:00:00" +} +``` + +Import + +es diagnose can be imported using the id, e.g. + +``` +terraform import tencentcloud_elasticsearch_diagnose.diagnose diagnose_id +``` \ No newline at end of file diff --git a/tencentcloud/es/resource_tc_elasticsearch_diagnose_instance.md b/tencentcloud/es/resource_tc_elasticsearch_diagnose_instance.md new file mode 100644 index 0000000000..9ce51de788 --- /dev/null +++ b/tencentcloud/es/resource_tc_elasticsearch_diagnose_instance.md @@ -0,0 +1,11 @@ +Provides a resource to create a elasticsearch diagnose instance + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_diagnose_instance" "diagnose_instance" { + instance_id = "es-xxxxxx" + diagnose_jobs = ["cluster_health"] + diagnose_indices = "*" +} +``` \ No newline at end of file diff --git a/tencentcloud/es/resource_tc_elasticsearch_index.md b/tencentcloud/es/resource_tc_elasticsearch_index.md new file mode 100644 index 0000000000..635112f779 --- /dev/null +++ b/tencentcloud/es/resource_tc_elasticsearch_index.md @@ -0,0 +1,20 @@ +Provides a resource to create a elasticsearch index + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_index" "index" { + instance_id = "es-xxxxxx" + index_type = "normal" + index_name = "test-es-index" + index_meta_json = "{\"mappings\":{},\"settings\":{\"index.number_of_replicas\":1,\"index.number_of_shards\":1,\"index.refresh_interval\":\"30s\"}}" +} +``` + +Import + +elasticsearch index can be imported using the id, e.g. + +``` +terraform import tencentcloud_elasticsearch_index.index index_id +``` \ No newline at end of file diff --git a/tencentcloud/es/resource_tc_elasticsearch_instance.md b/tencentcloud/es/resource_tc_elasticsearch_instance.md new file mode 100644 index 0000000000..0eae9200a0 --- /dev/null +++ b/tencentcloud/es/resource_tc_elasticsearch_instance.md @@ -0,0 +1,149 @@ +Provides an elasticsearch instance resource. + +Example Usage + +Create a basic version of elasticsearch instance paid by the hour + +```hcl +data "tencentcloud_availability_zones_by_product" "availability_zone" { + product = "es" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_es_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name + name = "tf_es_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_elasticsearch_instance" "example" { + instance_name = "tf_example_es" + availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name + version = "7.10.1" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + password = "Test12345" + license_type = "basic" + basic_security_type = 2 + + web_node_type_info { + node_num = 1 + node_type = "ES.S1.MEDIUM4" + } + + node_info_list { + node_num = 2 + node_type = "ES.S1.MEDIUM8" + encrypt = false + } + + es_acl { + # black_list = [ + # "9.9.9.9", + # "8.8.8.8", + # ] + white_list = [ + "127.0.0.1", + ] + } + + tags = { + test = "test" + } +} +``` + +Create a basic version of elasticsearch instance for multi-availability zone deployment + +```hcl +data "tencentcloud_availability_zones_by_product" "availability_zone" { + product = "es" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_es_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name + name = "tf_es_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_subnet" "subnet_multi_zone" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.1.name + name = "tf_es_subnet" + cidr_block = "10.0.2.0/24" +} + +resource "tencentcloud_elasticsearch_instance" "example_multi_zone" { + instance_name = "tf_example_es" + availability_zone = "-" + version = "7.10.1" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = "-" + password = "Test12345" + license_type = "basic" + basic_security_type = 2 + deploy_mode = 1 + + multi_zone_infos { + availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name + subnet_id = tencentcloud_subnet.subnet.id + } + + multi_zone_infos { + availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.1.name + subnet_id = tencentcloud_subnet.subnet_multi_zone.id + } + + web_node_type_info { + node_num = 1 + node_type = "ES.S1.MEDIUM4" + } + + node_info_list { + type = "dedicatedMaster" + node_num = 3 + node_type = "ES.S1.MEDIUM8" + encrypt = false + } + + node_info_list { + type = "hotData" + node_num = 2 + node_type = "ES.S1.MEDIUM8" + encrypt = false + } + + es_acl { + # black_list = [ + # "9.9.9.9", + # "8.8.8.8", + # ] + white_list = [ + "127.0.0.1", + ] + } + + tags = { + test = "test" + } +} +``` + +Import + +Elasticsearch instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_elasticsearch_instance.foo es-17634f05 +``` \ No newline at end of file diff --git a/tencentcloud/es/resource_tc_elasticsearch_logstash.md b/tencentcloud/es/resource_tc_elasticsearch_logstash.md new file mode 100644 index 0000000000..0181cbe65f --- /dev/null +++ b/tencentcloud/es/resource_tc_elasticsearch_logstash.md @@ -0,0 +1,36 @@ +Provides a resource to create a elasticsearch logstash + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_logstash" "logstash" { + instance_name = "logstash-test" + zone = "ap-guangzhou-6" + logstash_version = "7.14.2" + vpc_id = "vpc-4owdpnwr" + subnet_id = "subnet-4o0zd840" + node_num = 1 + charge_type = "POSTPAID_BY_HOUR" + node_type = "LOGSTASH.SA2.MEDIUM4" + disk_type = "CLOUD_SSD" + disk_size = 20 + license_type = "xpack" + operation_duration { + periods = [1, 2, 3, 4, 5, 6, 0] + time_start = "02:00" + time_end = "06:00" + time_zone = "UTC+8" + } + tags = { + tagKey = "tagValue" + } +} +``` + +Import + +elasticsearch logstash can be imported using the id, e.g. + +``` +terraform import tencentcloud_elasticsearch_logstash.logstash logstash_id +``` \ No newline at end of file diff --git a/tencentcloud/es/resource_tc_elasticsearch_logstash_pipeline.md b/tencentcloud/es/resource_tc_elasticsearch_logstash_pipeline.md new file mode 100644 index 0000000000..9a467828da --- /dev/null +++ b/tencentcloud/es/resource_tc_elasticsearch_logstash_pipeline.md @@ -0,0 +1,39 @@ +Provides a resource to create a elasticsearch logstash pipeline + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_logstash_pipeline" "logstash_pipeline" { + instance_id = "ls-xxxxxx" + pipeline { + pipeline_id = "logstash-pipeline-test" + pipeline_desc = "" + config =< **NOTE:** The cloud server instance specifications that support stream log collection include: M6ce, M6p, SA3se, S4m, DA3, ITA3, I6t, I6, S5se, SA2, SK1, S4, S5, SN3ne, S3ne, S2ne, SA2a, S3ne, SW3a, SW3b, SW3ne, ITA3, IT5c, IT5, IT5c, IT3, I3, D3, DA2, D2, M6, MA2, M4, C6, IT3a, IT3b, IT3c, C4ne, CN3ne, C3ne, GI1, PNV4, GNV4v, GNV4, GT4, GI3X, GN7, GN7vw. + +~> **NOTE:** The following models no longer support the collection of new stream logs, and the stock stream logs will no longer be reported for data from July 25, 2022: Standard models: S3, SA1, S2, S1;Memory type: M3, M2, M1;Calculation type: C4, CN3, C3, C2;Batch calculation type: BC1, BS1;HPCC: HCCIC5, HCCG5v. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_cls_logset" "logset" { + logset_name = "delogsetmo" + tags = { + "test" = "test" + } +} + +resource "tencentcloud_cls_topic" "topic" { + topic_name = "topic" + logset_id = tencentcloud_cls_logset.logset.id + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-flow-log-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "vpc-flow-log-subnet" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eni" "example" { + name = "vpc-flow-log-eni" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + description = "eni desc" + ipv4_count = 1 +} + +resource "tencentcloud_instance" "example" { + instance_name = "ci-test-eni-attach" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + disable_security_service = true + disable_monitor_service = true + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_eni_attachment" "example" { + eni_id = tencentcloud_eni.example.id + instance_id = tencentcloud_instance.example.id +} + +resource "tencentcloud_vpc_flow_log" "example" { + flow_log_name = "tf-example-vpc-flow-log" + resource_type = "NETWORKINTERFACE" + resource_id = tencentcloud_eni_attachment.example.eni_id + traffic_type = "ACCEPT" + vpc_id = tencentcloud_vpc.vpc.id + flow_log_description = "this is a testing flow log" + cloud_log_id = tencentcloud_cls_topic.topic.id + storage_type = "cls" + tags = { + "testKey" = "testValue" + } +} +``` + +Import + +vpc flow_log can be imported using the flow log Id combine vpc Id, e.g. + +``` +$ terraform import tencentcloud_vpc_flow_log.flow_log flow_log_id fl-xxxx1234#vpc-yyyy5678 +``` \ No newline at end of file diff --git a/tencentcloud/fl/resource_tc_vpc_flow_log_config.md b/tencentcloud/fl/resource_tc_vpc_flow_log_config.md new file mode 100644 index 0000000000..7da6acab35 --- /dev/null +++ b/tencentcloud/fl/resource_tc_vpc_flow_log_config.md @@ -0,0 +1,123 @@ +Provides a resource to create a vpc flow_log_config + +Example Usage + +If disable FlowLogs + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_cls_logset" "logset" { + logset_name = "delogsetmo" + tags = { + "test" = "test" + } +} + +resource "tencentcloud_cls_topic" "topic" { + topic_name = "topic" + logset_id = tencentcloud_cls_logset.logset.id + auto_split = false + max_split_partitions = 20 + partition_count = 1 + period = 10 + storage_type = "hot" + tags = { + "test" = "test", + } +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-flow-log-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "vpc-flow-log-subnet" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eni" "example" { + name = "vpc-flow-log-eni" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + description = "eni desc" + ipv4_count = 1 +} + +resource "tencentcloud_instance" "example" { + instance_name = "ci-test-eni-attach" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + disable_security_service = true + disable_monitor_service = true + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_eni_attachment" "example" { + eni_id = tencentcloud_eni.example.id + instance_id = tencentcloud_instance.example.id +} + +resource "tencentcloud_vpc_flow_log" "example" { + flow_log_name = "tf-example-vpc-flow-log" + resource_type = "NETWORKINTERFACE" + resource_id = tencentcloud_eni_attachment.example.eni_id + traffic_type = "ACCEPT" + vpc_id = tencentcloud_vpc.vpc.id + flow_log_description = "this is a testing flow log" + cloud_log_id = tencentcloud_cls_topic.topic.id + storage_type = "cls" + tags = { + "testKey" = "testValue" + } +} + +resource "tencentcloud_vpc_flow_log_config" "config" { + flow_log_id = tencentcloud_vpc_flow_log.example.id + enable = false +} +``` + +If enable FlowLogs + +```hcl +resource "tencentcloud_vpc_flow_log_config" "config" { + flow_log_id = tencentcloud_vpc_flow_log.example.id + enable = true +} +``` + +Import + +vpc flow_log_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_flow_log_config.flow_log_config flow_log_id +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_access_regions.md b/tencentcloud/gaap/data_source_tc_gaap_access_regions.md new file mode 100644 index 0000000000..e924a54ea3 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_access_regions.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of gaap access regions + +Example Usage + +```hcl +data "tencentcloud_gaap_access_regions" "access_regions" { +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_access_regions_by_dest_region.md b/tencentcloud/gaap/data_source_tc_gaap_access_regions_by_dest_region.md new file mode 100644 index 0000000000..f1010afe17 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_access_regions_by_dest_region.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap access regions by dest region + +Example Usage + +```hcl +data "tencentcloud_gaap_access_regions_by_dest_region" "access_regions_by_dest_region" { + dest_region = "SouthChina" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_black_header.md b/tencentcloud/gaap/data_source_tc_gaap_black_header.md new file mode 100644 index 0000000000..5794e59085 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_black_header.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of gaap black header + +Example Usage + +```hcl +data "tencentcloud_gaap_black_header" "black_header" { +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_certificates.md b/tencentcloud/gaap/data_source_tc_gaap_certificates.md new file mode 100644 index 0000000000..a772f6c048 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_certificates.md @@ -0,0 +1,15 @@ +Use this data source to query GAAP certificate. + +Example Usage + +```hcl +resource "tencentcloud_gaap_certificate" "foo" { + type = "BASIC" + content = "test:tx2KGdo3zJg/." + name = "test_certificate" +} + +data "tencentcloud_gaap_certificates" "foo" { + id = tencentcloud_gaap_certificate.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_check_proxy_create.md b/tencentcloud/gaap/data_source_tc_gaap_check_proxy_create.md new file mode 100644 index 0000000000..b928b48fb4 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_check_proxy_create.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of gaap check proxy create + +Example Usage + +```hcl +data "tencentcloud_gaap_check_proxy_create" "check_proxy_create" { + access_region = "Guangzhou" + real_server_region = "Beijing" + bandwidth = 10 + concurrent = 2 + ip_address_version = "IPv4" + network_type = "normal" + package_type = "Thunder" + http3_supported = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_country_area_mapping.md b/tencentcloud/gaap/data_source_tc_gaap_country_area_mapping.md new file mode 100644 index 0000000000..00d0c7f63d --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_country_area_mapping.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of gaap country area mapping + +Example Usage + +```hcl +data "tencentcloud_gaap_country_area_mapping" "country_area_mapping" { +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_custom_header.md b/tencentcloud/gaap/data_source_tc_gaap_custom_header.md new file mode 100644 index 0000000000..082ee67579 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_custom_header.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap custom header + +Example Usage + +```hcl +data "tencentcloud_gaap_custom_header" "custom_header" { + rule_id = "rule-9sdhv655" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_dest_regions.md b/tencentcloud/gaap/data_source_tc_gaap_dest_regions.md new file mode 100644 index 0000000000..10a3822e7a --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_dest_regions.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of gaap dest regions + +Example Usage + +```hcl +data "tencentcloud_gaap_dest_regions" "dest_regions" { +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_domain_error_page_infos.md b/tencentcloud/gaap/data_source_tc_gaap_domain_error_page_infos.md new file mode 100644 index 0000000000..3c1eda39c3 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_domain_error_page_infos.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap domain error page infos + +Example Usage + +```hcl +data "tencentcloud_gaap_domain_error_page_infos" "domain_error_page_infos" { + error_page_ids = ["errorPage-xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_domain_error_pages.md b/tencentcloud/gaap/data_source_tc_gaap_domain_error_pages.md new file mode 100644 index 0000000000..cc64752281 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_domain_error_pages.md @@ -0,0 +1,43 @@ +Use this data source to query custom GAAP HTTP domain error page info list. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource tencentcloud_gaap_layer7_listener "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = "%s" +} + +resource tencentcloud_gaap_http_domain "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = "www.qq.com" +} + +resource tencentcloud_gaap_domain_error_page "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = tencentcloud_gaap_http_domain.foo.domain + error_codes = [406, 504] + new_error_code = 502 + body = "bad request" + clear_headers = ["Content-Length", "X-TEST"] + + set_headers = { + "X-TEST" = "test" + } +} + +data tencentcloud_gaap_domain_error_pages "foo" { + listener_id = tencentcloud_gaap_domain_error_page.foo.listener_id + domain = tencentcloud_gaap_domain_error_page.foo.domain +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_group_and_statistics_proxy.md b/tencentcloud/gaap/data_source_tc_gaap_group_and_statistics_proxy.md new file mode 100644 index 0000000000..80edeca0a2 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_group_and_statistics_proxy.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap and statistics proxy + +Example Usage + +```hcl +data "tencentcloud_gaap_group_and_statistics_proxy" "group_and_statistics_proxy" { + project_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_http_domains.md b/tencentcloud/gaap/data_source_tc_gaap_http_domains.md new file mode 100644 index 0000000000..f6b71f4a08 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_http_domains.md @@ -0,0 +1,30 @@ +Use this data source to query forward domain of layer7 listeners. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_layer7_listener" "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} + +resource "tencentcloud_gaap_http_domain" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = "www.qq.com" +} + +data "tencentcloud_gaap_http_domains" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = tencentcloud_gaap_http_domain.foo.domain +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_http_rules.md b/tencentcloud/gaap/data_source_tc_gaap_http_rules.md new file mode 100644 index 0000000000..a0035eea1d --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_http_rules.md @@ -0,0 +1,44 @@ +Use this data source to query forward rule of layer7 listeners. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_layer7_listener" "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} + +resource "tencentcloud_gaap_realserver" "foo" { + ip = "1.1.1.1" + name = "ci-test-gaap-realserver" +} + +resource "tencentcloud_gaap_http_rule" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = "www.qq.com" + path = "/" + realserver_type = "IP" + health_check = true + + realservers { + id = tencentcloud_gaap_realserver.foo.id + ip = tencentcloud_gaap_realserver.foo.ip + port = 80 + } +} + +data "tencentcloud_gaap_http_rules" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = tencentcloud_gaap_http_rule.foo.domain +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_layer4_listeners.md b/tencentcloud/gaap/data_source_tc_gaap_layer4_listeners.md new file mode 100644 index 0000000000..29583a1e4f --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_layer4_listeners.md @@ -0,0 +1,41 @@ +Use this data source to query gaap layer4 listeners. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_realserver" "foo" { + ip = "1.1.1.1" + name = "ci-test-gaap-realserver" +} + +resource "tencentcloud_gaap_layer4_listener" "foo" { + protocol = "TCP" + name = "ci-test-gaap-4-listener" + port = 80 + realserver_type = "IP" + proxy_id = tencentcloud_gaap_proxy.foo.id + health_check = true + interval = 5 + connect_timeout = 2 + + realserver_bind_set { + id = tencentcloud_gaap_realserver.foo.id + ip = tencentcloud_gaap_realserver.foo.ip + port = 80 + } +} + +data "tencentcloud_gaap_layer4_listeners" "foo" { + protocol = "TCP" + proxy_id = tencentcloud_gaap_proxy.foo.id + listener_id = tencentcloud_gaap_layer4_listener.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_layer7_listeners.md b/tencentcloud/gaap/data_source_tc_gaap_layer7_listeners.md new file mode 100644 index 0000000000..33f87f02c3 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_layer7_listeners.md @@ -0,0 +1,26 @@ +Use this data source to query gaap layer7 listeners. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_layer7_listener" "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} + +data "tencentcloud_gaap_layer7_listeners" "listenerId" { + protocol = "HTTP" + proxy_id = tencentcloud_gaap_proxy.foo.id + listener_id = tencentcloud_gaap_layer7_listener.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_listener_real_servers.md b/tencentcloud/gaap/data_source_tc_gaap_listener_real_servers.md new file mode 100644 index 0000000000..a27e88c5be --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_listener_real_servers.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap listener real servers + +Example Usage + +```hcl +data "tencentcloud_gaap_listener_real_servers" "listener_real_servers" { + listener_id = "listener-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_listener_statistics.md b/tencentcloud/gaap/data_source_tc_gaap_listener_statistics.md new file mode 100644 index 0000000000..27464d2209 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_listener_statistics.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of gaap listener statistics + +Example Usage + +```hcl +data "tencentcloud_gaap_listener_statistics" "listener_statistics" { + listener_id = "listener-xxxxxx" + start_time = "2023-10-19 00:00:00" + end_time = "2023-10-19 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InPackets", "OutPackets", "Concurrent"] + granularity = 300 +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxies.md b/tencentcloud/gaap/data_source_tc_gaap_proxies.md new file mode 100644 index 0000000000..d70ee7d1b3 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxies.md @@ -0,0 +1,17 @@ +Use this data source to query gaap proxies. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +data "tencentcloud_gaap_proxies" "foo" { + ids = [tencentcloud_gaap_proxy.foo.id] +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxies_status.md b/tencentcloud/gaap/data_source_tc_gaap_proxies_status.md new file mode 100644 index 0000000000..d884e41143 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxies_status.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap proxies status + +Example Usage + +```hcl +data "tencentcloud_gaap_proxies_status" "proxies_status" { + proxy_ids = ["link-xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxy_and_statistics_listeners.md b/tencentcloud/gaap/data_source_tc_gaap_proxy_and_statistics_listeners.md new file mode 100644 index 0000000000..41d2d38772 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxy_and_statistics_listeners.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap proxy and statistics listeners + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_and_statistics_listeners" "proxy_and_statistics_listeners" { + project_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxy_detail.md b/tencentcloud/gaap/data_source_tc_gaap_proxy_detail.md new file mode 100644 index 0000000000..c074e5b579 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxy_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap proxy detail + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_detail" "proxy_detail" { + proxy_id = "link-8lpyo88p" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxy_group_statistics.md b/tencentcloud/gaap/data_source_tc_gaap_proxy_group_statistics.md new file mode 100644 index 0000000000..f605917dd6 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxy_group_statistics.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of gaap proxy group statistics + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" { + group_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"] + granularity = 300 +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxy_groups.md b/tencentcloud/gaap/data_source_tc_gaap_proxy_groups.md new file mode 100644 index 0000000000..accdbf65b3 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxy_groups.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of gaap proxy groups + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_groups" "proxy_groups" { + project_id = 0 + filters { + name = "GroupId" + values = ["lg-5anbbou5"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_proxy_statistics.md b/tencentcloud/gaap/data_source_tc_gaap_proxy_statistics.md new file mode 100644 index 0000000000..d4a3b74110 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_proxy_statistics.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of gaap proxy statistics + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" { + proxy_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"] + granularity = 300 +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_real_servers_status.md b/tencentcloud/gaap/data_source_tc_gaap_real_servers_status.md new file mode 100644 index 0000000000..5daf504086 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_real_servers_status.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap real servers status + +Example Usage + +```hcl +data "tencentcloud_gaap_real_servers_status" "real_servers_status" { + real_server_ids = ["rs-qcygnwpd"] +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_realservers.md b/tencentcloud/gaap/data_source_tc_gaap_realservers.md new file mode 100644 index 0000000000..2148f4e365 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_realservers.md @@ -0,0 +1,14 @@ +Use this data source to query gaap realservers. + +Example Usage + +```hcl +resource "tencentcloud_gaap_realserver" "foo" { + ip = "1.1.1.1" + name = "ci-test-gaap-realserver" +} + +data "tencentcloud_gaap_realservers" "foo" { + ip = tencentcloud_gaap_realserver.foo.ip +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_region_and_price.md b/tencentcloud/gaap/data_source_tc_gaap_region_and_price.md new file mode 100644 index 0000000000..bbd0dde22a --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_region_and_price.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of gaap region and price + +Example Usage + +```hcl +data "tencentcloud_gaap_region_and_price" "region_and_price" { +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_resources_by_tag.md b/tencentcloud/gaap/data_source_tc_gaap_resources_by_tag.md new file mode 100644 index 0000000000..5ef8835565 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_resources_by_tag.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of gaap resources by tag + +Example Usage + +```hcl +data "tencentcloud_gaap_resources_by_tag" "resources_by_tag" { + tag_key = "tagKey" + tag_value = "tagValue" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_rule_real_servers.md b/tencentcloud/gaap/data_source_tc_gaap_rule_real_servers.md new file mode 100644 index 0000000000..b26f4093c9 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_rule_real_servers.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of gaap rule real servers + +Example Usage + +```hcl +data "tencentcloud_gaap_rule_real_servers" "rule_real_servers" { + rule_id = "rule-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_security_policies.md b/tencentcloud/gaap/data_source_tc_gaap_security_policies.md new file mode 100644 index 0000000000..caf798bce2 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_security_policies.md @@ -0,0 +1,22 @@ +Use this data source to query security policies of GAAP proxy. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_security_policy" "foo" { + proxy_id = tencentcloud_gaap_proxy.foo.id + action = "ACCEPT" +} + +data "tencentcloud_gaap_security_policies" "foo" { + id = tencentcloud_gaap_security_policy.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/data_source_tc_gaap_security_rules.md b/tencentcloud/gaap/data_source_tc_gaap_security_rules.md new file mode 100644 index 0000000000..a4079d7473 --- /dev/null +++ b/tencentcloud/gaap/data_source_tc_gaap_security_rules.md @@ -0,0 +1,32 @@ +Use this data source to query security policy rule. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_security_policy" "foo" { + proxy_id = tencentcloud_gaap_proxy.foo.id + action = "ACCEPT" +} + +resource "tencentcloud_gaap_security_rule" "foo" { + policy_id = tencentcloud_gaap_security_policy.foo.id + name = "ci-test-gaap-s-rule" + cidr_ip = "1.1.1.1" + action = "ACCEPT" + protocol = "TCP" + port = "80" +} + +data "tencentcloud_gaap_security_rules" "protocol" { + policy_id = tencentcloud_gaap_security_policy.foo.id + protocol = tencentcloud_gaap_security_rule.foo.protocol +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_certificate.md b/tencentcloud/gaap/resource_tc_gaap_certificate.md new file mode 100644 index 0000000000..40336f6456 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_certificate.md @@ -0,0 +1,19 @@ +Provides a resource to create a certificate of GAAP. + +Example Usage + +```hcl +resource "tencentcloud_gaap_certificate" "foo" { + type = "BASIC" + content = "test:tx2KGdo3zJg/." + name = "test_certificate" +} +``` + +Import + +GAAP certificate can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_certificate.foo cert-d5y6ei3b +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_domain_error_page.md b/tencentcloud/gaap/resource_tc_gaap_domain_error_page.md new file mode 100644 index 0000000000..d8eff2c012 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_domain_error_page.md @@ -0,0 +1,32 @@ +Provide a resource to custom error page info for a GAAP HTTP domain. + +Example Usage + +```hcl +resource tencentcloud_gaap_proxy "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource tencentcloud_gaap_layer7_listener "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} + +resource tencentcloud_gaap_http_domain "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = "www.qq.com" +} + +resource tencentcloud_gaap_domain_error_page "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = tencentcloud_gaap_http_domain.foo.domain + error_codes = [404, 503] + body = "bad request" +} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_global_domain.md b/tencentcloud/gaap/resource_tc_gaap_global_domain.md new file mode 100644 index 0000000000..5882d5e424 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_global_domain.md @@ -0,0 +1,22 @@ +Provides a resource to create a gaap global domain + +Example Usage + +```hcl +resource "tencentcloud_gaap_global_domain" "global_domain" { + project_id = 0 + default_value = "xxxxxx.com" + alias = "demo" + tags={ + key = "value" + } +} +``` + +Import + +gaap global_domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_gaap_global_domain.global_domain ${projectId}#${domainId} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_global_domain_dns.md b/tencentcloud/gaap/resource_tc_gaap_global_domain_dns.md new file mode 100644 index 0000000000..914b3cf7b5 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_global_domain_dns.md @@ -0,0 +1,19 @@ +Provides a resource to create a gaap global domain dns + +Example Usage + +```hcl +resource "tencentcloud_gaap_global_domain_dns" "global_domain_dns" { + domain_id = "dm-xxxxxx" + proxy_id_list = ["link-xxxxxx"] + nation_country_inner_codes = ["101001"] +} +``` + +Import + +gaap global_domain_dns can be imported using the id, e.g. + +``` +terraform import tencentcloud_gaap_global_domain_dns.global_domain_dns ${domainId}#${dnsRecordId} +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_http_domain.md b/tencentcloud/gaap/resource_tc_gaap_http_domain.md new file mode 100644 index 0000000000..ab4c830bee --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_http_domain.md @@ -0,0 +1,35 @@ +Provides a resource to create a forward domain of layer7 listener. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_layer7_listener" "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} + +resource "tencentcloud_gaap_http_domain" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = "www.qq.com" +} +``` + +Import + +GAAP http domain can be imported using the id, e.g. + +-> **NOTE:** The format of tencentcloud_gaap_http_domain id is `[listener-id]+[protocol]+[domain]`. + +``` + $ terraform import tencentcloud_gaap_http_domain.foo listener-11112222+HTTP+www.qq.com +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_http_rule.md b/tencentcloud/gaap/resource_tc_gaap_http_rule.md new file mode 100644 index 0000000000..5455614d09 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_http_rule.md @@ -0,0 +1,66 @@ +Provides a resource to create a forward rule of layer7 listener. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_layer7_listener" "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} + +resource "tencentcloud_gaap_realserver" "foo" { + ip = "1.1.1.1" + name = "ci-test-gaap-realserver" +} + +resource "tencentcloud_gaap_realserver" "bar" { + ip = "8.8.8.8" + name = "ci-test-gaap-realserver" +} + +resource "tencentcloud_gaap_http_domain" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = "www.qq.com" +} + +resource "tencentcloud_gaap_http_rule" "foo" { + listener_id = tencentcloud_gaap_layer7_listener.foo.id + domain = tencentcloud_gaap_http_domain.foo.domain + path = "/" + realserver_type = "IP" + health_check = true + health_check_path = "/" + health_check_method = "GET" + health_check_status_codes = [200] + + realservers { + id = tencentcloud_gaap_realserver.foo.id + ip = tencentcloud_gaap_realserver.foo.ip + port = 80 + } + + realservers { + id = tencentcloud_gaap_realserver.bar.id + ip = tencentcloud_gaap_realserver.bar.ip + port = 80 + } +} +``` + +Import + +GAAP http rule can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_http_rule.foo rule-3bsuu01r +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_layer4_listener.md b/tencentcloud/gaap/resource_tc_gaap_layer4_listener.md new file mode 100644 index 0000000000..64078774fc --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_layer4_listener.md @@ -0,0 +1,52 @@ +Provides a resource to create a layer4 listener of GAAP. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_realserver" "foo" { + ip = "1.1.1.1" + name = "ci-test-gaap-realserver" +} + +resource "tencentcloud_gaap_realserver" "bar" { + ip = "119.29.29.29" + name = "ci-test-gaap-realserver2" +} + +resource "tencentcloud_gaap_layer4_listener" "foo" { + protocol = "TCP" + name = "ci-test-gaap-4-listener" + port = 80 + realserver_type = "IP" + proxy_id = tencentcloud_gaap_proxy.foo.id + health_check = true + + realserver_bind_set { + id = tencentcloud_gaap_realserver.foo.id + ip = tencentcloud_gaap_realserver.foo.ip + port = 80 + } + + realserver_bind_set { + id = tencentcloud_gaap_realserver.bar.id + ip = tencentcloud_gaap_realserver.bar.ip + port = 80 + } +} +``` + +Import + +GAAP layer4 listener can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_layer4_listener.foo listener-11112222 +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_layer7_listener.md b/tencentcloud/gaap/resource_tc_gaap_layer7_listener.md new file mode 100644 index 0000000000..8bea46dbaa --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_layer7_listener.md @@ -0,0 +1,28 @@ +Provides a resource to create a layer7 listener of GAAP. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_layer7_listener" "foo" { + protocol = "HTTP" + name = "ci-test-gaap-l7-listener" + port = 80 + proxy_id = tencentcloud_gaap_proxy.foo.id +} +``` + +Import + +GAAP layer7 listener can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_layer7_listener.foo listener-11112222 +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_proxy.md b/tencentcloud/gaap/resource_tc_gaap_proxy.md new file mode 100644 index 0000000000..5217a986dd --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_proxy.md @@ -0,0 +1,25 @@ +Provides a resource to create a GAAP proxy. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" + + tags = { + test = "test" + } +} +``` + +Import + +GAAP proxy can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_proxy.foo link-11112222 +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_realserver.md b/tencentcloud/gaap/resource_tc_gaap_realserver.md new file mode 100644 index 0000000000..734068c8c6 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_realserver.md @@ -0,0 +1,22 @@ +Provides a resource to create a GAAP realserver. + +Example Usage + +```hcl +resource "tencentcloud_gaap_realserver" "foo" { + ip = "1.1.1.1" + name = "ci-test-gaap-realserver" + + tags = { + test = "test" + } +} +``` + +Import + +GAAP realserver can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_realserver.foo rs-4ftghy6 +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_security_policy.md b/tencentcloud/gaap/resource_tc_gaap_security_policy.md new file mode 100644 index 0000000000..50414f54b2 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_security_policy.md @@ -0,0 +1,26 @@ +Provides a resource to create a security policy of GAAP proxy. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_security_policy" "foo" { + proxy_id = tencentcloud_gaap_proxy.foo.id + action = "DROP" +} +``` + +Import + +GAAP security policy can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_security_policy.foo pl-xxxx +``` \ No newline at end of file diff --git a/tencentcloud/gaap/resource_tc_gaap_security_rule.md b/tencentcloud/gaap/resource_tc_gaap_security_rule.md new file mode 100644 index 0000000000..8f5ed0a658 --- /dev/null +++ b/tencentcloud/gaap/resource_tc_gaap_security_rule.md @@ -0,0 +1,33 @@ +Provides a resource to create a security policy rule. + +Example Usage + +```hcl +resource "tencentcloud_gaap_proxy" "foo" { + name = "ci-test-gaap-proxy" + bandwidth = 10 + concurrent = 2 + access_region = "SouthChina" + realserver_region = "NorthChina" +} + +resource "tencentcloud_gaap_security_policy" "foo" { + proxy_id = tencentcloud_gaap_proxy.foo.id + action = "ACCEPT" +} + +resource "tencentcloud_gaap_security_rule" "foo" { + policy_id = tencentcloud_gaap_security_policy.foo.id + cidr_ip = "1.1.1.1" + action = "ACCEPT" + protocol = "TCP" +} +``` + +Import + +GAAP security rule can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_gaap_security_rule.foo sr-xxxxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_describe_keys.md b/tencentcloud/kms/data_source_tc_kms_describe_keys.md new file mode 100644 index 0000000000..71f437a76c --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_describe_keys.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of kms key_lists + +Example Usage + +```hcl +data "tencentcloud_kms_describe_keys" "example" { + key_ids = [ + "9ffacc8b-6461-11ee-a54e-525400dd8a7d", + "bffae4ed-6465-11ee-90b2-5254000ef00e" + ] +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_get_parameters_for_import.md b/tencentcloud/kms/data_source_tc_kms_get_parameters_for_import.md new file mode 100644 index 0000000000..965487f9aa --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_get_parameters_for_import.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of kms get_parameters_for_import + +Example Usage + +```hcl +data "tencentcloud_kms_get_parameters_for_import" "example" { + key_id = "786aea8c-4aec-11ee-b601-525400281a45" + wrapping_algorithm = "RSAES_OAEP_SHA_1" + wrapping_key_spec = "RSA_2048" +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_keys.md b/tencentcloud/kms/data_source_tc_kms_keys.md new file mode 100644 index 0000000000..d12c4acb9c --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_keys.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of KMS key + +Example Usage + +```hcl +data "tencentcloud_kms_keys" "example" { + search_key_alias = "tf_example" + key_state = 0 + origin = "TENCENT_KMS" + key_usage = "ALL" +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_list_algorithms.md b/tencentcloud/kms/data_source_tc_kms_list_algorithms.md new file mode 100644 index 0000000000..bba8178ee7 --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_list_algorithms.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of kms list_algorithms + +Example Usage + +```hcl +data "tencentcloud_kms_list_algorithms" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_list_keys.md b/tencentcloud/kms/data_source_tc_kms_list_keys.md new file mode 100644 index 0000000000..950ac5d7c4 --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_list_keys.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of kms list_keys + +Example Usage + +```hcl +data "tencentcloud_kms_list_keys" "example" { + role = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_public_key.md b/tencentcloud/kms/data_source_tc_kms_public_key.md new file mode 100644 index 0000000000..9775733feb --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_public_key.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of kms public_key + +Example Usage + +```hcl +data "tencentcloud_kms_public_key" "example" { + key_id = tencentcloud_kms_key.example.id +} + +resource "tencentcloud_kms_key" "example" { + alias = "tf-example-kms-key" + description = "example of kms key" + key_usage = "ASYMMETRIC_DECRYPT_RSA_2048" + is_enabled = true + pending_delete_window_in_days = 7 +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_white_box_decrypt_key.md b/tencentcloud/kms/data_source_tc_kms_white_box_decrypt_key.md new file mode 100644 index 0000000000..d5eff8dff8 --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_white_box_decrypt_key.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of kms white_box_decrypt_key + +Example Usage + +```hcl +data "tencentcloud_kms_white_box_decrypt_key" "example" { + key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_white_box_device_fingerprints.md b/tencentcloud/kms/data_source_tc_kms_white_box_device_fingerprints.md new file mode 100644 index 0000000000..3d9fe22ac5 --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_white_box_device_fingerprints.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of kms white_box_device_fingerprints + +Example Usage + +```hcl +data "tencentcloud_kms_white_box_device_fingerprints" "example" { + key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/data_source_tc_kms_white_box_key_details.md b/tencentcloud/kms/data_source_tc_kms_white_box_key_details.md new file mode 100644 index 0000000000..16a5a2b633 --- /dev/null +++ b/tencentcloud/kms/data_source_tc_kms_white_box_key_details.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of kms white_box_key_details + +Example Usage + +```hcl +data "tencentcloud_kms_white_box_key_details" "example" { + key_status = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/resource_tc_kms_cloud_resource_attachment.md b/tencentcloud/kms/resource_tc_kms_cloud_resource_attachment.md new file mode 100644 index 0000000000..beb42abaa1 --- /dev/null +++ b/tencentcloud/kms/resource_tc_kms_cloud_resource_attachment.md @@ -0,0 +1,19 @@ +Provides a resource to create a kms cloud_resource_attachment + +Example Usage + +```hcl +resource "tencentcloud_kms_cloud_resource_attachment" "example" { + key_id = "72688f39-1fe8-11ee-9f1a-525400cf25a4" + product_id = "mysql" + resource_id = "cdb-fitq5t9h" +} +``` + +Import + +kms cloud_resource_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_kms_cloud_resource_attachment.example 72688f39-1fe8-11ee-9f1a-525400cf25a4#mysql#cdb-fitq5t9h +``` \ No newline at end of file diff --git a/tencentcloud/kms/resource_tc_kms_external_key.md b/tencentcloud/kms/resource_tc_kms_external_key.md new file mode 100644 index 0000000000..8a4e43a636 --- /dev/null +++ b/tencentcloud/kms/resource_tc_kms_external_key.md @@ -0,0 +1,56 @@ +Provide a resource to create a KMS external key. + +Example Usage + +Create a basic instance. + +```hcl +resource "tencentcloud_kms_external_key" "example" { + alias = "tf-example-kms-externalkey" + description = "example of kms external key" + + tags = { + "createdBy" = "terraform" + } +} +``` + +Specify the encryption algorithm and public key. + +```hcl +resource "tencentcloud_kms_external_key" "example" { + alias = "tf-example-kms-externalkey" + description = "example of kms external key" + wrapping_algorithm = "RSAES_PKCS1_V1_5" + key_material_base64 = "your_public_key_base64_encoded" + is_enabled = true + + tags = { + "createdBy" = "terraform" + } +} +``` + +Disable the external kms key. + +```hcl +resource "tencentcloud_kms_external_key" "example" { + alias = "tf-example-kms-externalkey" + description = "example of kms external key" + wrapping_algorithm = "RSAES_PKCS1_V1_5" + key_material_base64 = "your_public_key_base64_encoded" + is_enabled = false + + tags = { + "test-tag" = "unit-test" + } +} +``` + +Import + +KMS external keys can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_kms_external_key.example 287e8f40-7cbb-11eb-9a3a-xxxxx +``` \ No newline at end of file diff --git a/tencentcloud/kms/resource_tc_kms_key.md b/tencentcloud/kms/resource_tc_kms_key.md new file mode 100644 index 0000000000..6f660e3d3b --- /dev/null +++ b/tencentcloud/kms/resource_tc_kms_key.md @@ -0,0 +1,52 @@ +Provide a resource to create a KMS key. + +Example Usage + +Create and enable a instance. + +```hcl +resource "tencentcloud_kms_key" "example" { + alias = "tf-example-kms-key" + description = "example of kms key" + key_rotation_enabled = false + is_enabled = true + + tags = { + "createdBy" = "terraform" + } +} +``` + +Specify the Key Usage as an asymmetry method. + +```hcl +resource "tencentcloud_kms_key" "example2" { + alias = "tf-example-kms-key" + description = "example of kms key" + key_usage = "ASYMMETRIC_DECRYPT_RSA_2048" + is_enabled = false +} +``` + +Disable the kms key instance. + +```hcl +resource "tencentcloud_kms_key" "example3" { + alias = "tf-example-kms-key" + description = "example of kms key" + key_rotation_enabled = false + is_enabled = false + + tags = { + "test-tag" = "unit-test" + } +} +``` + +Import + +KMS keys can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_kms_key.foo 287e8f40-7cbb-11eb-9a3a-5254004f7f94 +``` \ No newline at end of file diff --git a/tencentcloud/kms/resource_tc_kms_overwrite_white_box_device_fingerprints.md b/tencentcloud/kms/resource_tc_kms_overwrite_white_box_device_fingerprints.md new file mode 100644 index 0000000000..c38613748b --- /dev/null +++ b/tencentcloud/kms/resource_tc_kms_overwrite_white_box_device_fingerprints.md @@ -0,0 +1,9 @@ +Provides a resource to create a kms overwrite_white_box_device_fingerprints + +Example Usage + +```hcl +resource "tencentcloud_kms_overwrite_white_box_device_fingerprints" "example" { + key_id = "23e80852-1e38-11e9-b129-5cb9019b4b01" +} +``` \ No newline at end of file diff --git a/tencentcloud/kms/resource_tc_kms_white_box_key.md b/tencentcloud/kms/resource_tc_kms_white_box_key.md new file mode 100644 index 0000000000..12862675d5 --- /dev/null +++ b/tencentcloud/kms/resource_tc_kms_white_box_key.md @@ -0,0 +1,23 @@ +Provides a resource to create a kms white_box_key + +Example Usage + +```hcl +resource "tencentcloud_kms_white_box_key" "example" { + alias = "tf_example" + description = "test desc." + algorithm = "SM4" + status = "Enabled" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +kms white_box_key can be imported using the id, e.g. + +``` +terraform import tencentcloud_kms_white_box_key.example 244dab8c-6dad-11ea-80c6-5254006d0810 +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_all_scene.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_all_scene.md new file mode 100644 index 0000000000..f36d740307 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_all_scene.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of all region lighthouse scene + +Example Usage + +```hcl +data "tencentcloud_lighthouse_all_scene" "scene" { + offset = 0 + limit = 20 +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_bundle.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_bundle.md new file mode 100644 index 0000000000..ac0d35317e --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_bundle.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of lighthouse bundle + +Example Usage + +```hcl +data "tencentcloud_lighthouse_bundle" "bundle" { +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_disk_config.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_disk_config.md new file mode 100644 index 0000000000..2781df9e01 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_disk_config.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of lighthouse disk_config + +Example Usage + +```hcl +data "tencentcloud_lighthouse_disk_config" "disk_config" { + filters { + name = "zone" + values = ["ap-guangzhou-3"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_disks.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_disks.md new file mode 100644 index 0000000000..8495c38003 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_disks.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of lighthouse disk + +Example Usage + +```hcl +data "tencentcloud_lighthouse_disks" "disks" { + disk_ids = ["lhdisk-xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_firewall_rules_template.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_firewall_rules_template.md new file mode 100644 index 0000000000..a62b4ca27a --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_firewall_rules_template.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of lighthouse firewall_rules_template + +Example Usage + +```hcl +data "tencentcloud_lighthouse_firewall_rules_template" "firewall_rules_template" { +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_blueprint.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_blueprint.md new file mode 100644 index 0000000000..56cbcc579a --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_blueprint.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of lighthouse instance_blueprint + +Example Usage + +```hcl +data "tencentcloud_lighthouse_instance_blueprint" "instance_blueprint" { + instance_ids = ["lhins-xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_disk_num.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_disk_num.md new file mode 100644 index 0000000000..468fcce98b --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_disk_num.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of lighthouse instance_disk_num + +Example Usage + +```hcl +data "tencentcloud_lighthouse_instance_disk_num" "instance_disk_num" { + instance_ids = ["lhins-xxxxxx"] +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_traffic_package.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_traffic_package.md new file mode 100644 index 0000000000..7066f545ef --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_traffic_package.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of lighthouse instance_traffic_package + +Example Usage + +```hcl +data "tencentcloud_lighthouse_instance_traffic_package" "instance_traffic_package" { +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_vnc_url.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_vnc_url.md new file mode 100644 index 0000000000..cb626e4222 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_instance_vnc_url.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of lighthouse instance_vnc_url + +Example Usage + +```hcl +data "tencentcloud_lighthouse_instance_vnc_url" "instance_vnc_url" { + instance_id = "lhins-123456" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_modify_instance_bundle.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_modify_instance_bundle.md new file mode 100644 index 0000000000..6191a34cf7 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_modify_instance_bundle.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of lighthouse modify_instance_bundle + +Example Usage + +```hcl +data "tencentcloud_lighthouse_modify_instance_bundle" "modify_instance_bundle" { + instance_id = "lhins-xxxxxx" + filters { + name = "bundle-id" + values = ["bundle_gen_mc_med2_02"] + + } +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_region.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_region.md new file mode 100644 index 0000000000..294e4bc678 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_region.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of lighthouse region + +Example Usage + +```hcl +data "tencentcloud_lighthouse_region" "region" { +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_reset_instance_blueprint.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_reset_instance_blueprint.md new file mode 100644 index 0000000000..1f9586ae07 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_reset_instance_blueprint.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of lighthouse reset_instance_blueprint + +Example Usage + +```hcl +data "tencentcloud_lighthouse_reset_instance_blueprint" "reset_instance_blueprint" { + instance_id = "lhins-123456" + offset = 0 + limit = 20 +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_scene.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_scene.md new file mode 100644 index 0000000000..c3656102cd --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_scene.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of lighthouse scene with region + +Example Usage + +```hcl +data "tencentcloud_lighthouse_scene" "scene" { + offset = 0 + limit = 20 +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/data_source_tc_lighthouse_zone.md b/tencentcloud/lighthouse/data_source_tc_lighthouse_zone.md new file mode 100644 index 0000000000..410cb86372 --- /dev/null +++ b/tencentcloud/lighthouse/data_source_tc_lighthouse_zone.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of lighthouse zone + +Example Usage + +```hcl +data "tencentcloud_lighthouse_zone" "zone" { + order_field = "ZONE" + order = "ASC" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_apply_disk_backup.md b/tencentcloud/lighthouse/resource_tc_lighthouse_apply_disk_backup.md new file mode 100644 index 0000000000..cc90597096 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_apply_disk_backup.md @@ -0,0 +1,10 @@ +Provides a resource to create a lighthouse apply_disk_backup + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_apply_disk_backup" "apply_disk_backup" { + disk_id = "lhdisk-xxxxxx" + disk_backup_id = "lhbak-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_apply_instance_snapshot.md b/tencentcloud/lighthouse/resource_tc_lighthouse_apply_instance_snapshot.md new file mode 100644 index 0000000000..375e05e655 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_apply_instance_snapshot.md @@ -0,0 +1,10 @@ +Provides a resource to create a lighthouse apply_instance_snapshot + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_apply_instance_snapshot" "apply_instance_snapshot" { + instance_id = "lhins-123456" + snapshot_id = "lhsnap-123456" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_blueprint.md b/tencentcloud/lighthouse/resource_tc_lighthouse_blueprint.md new file mode 100644 index 0000000000..7fe7745ad6 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_blueprint.md @@ -0,0 +1,19 @@ +Provides a resource to create a lighthouse blueprint + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_blueprint" "blueprint" { + blueprint_name = "blueprint_name_test" + description = "blueprint_description_test" + instance_id = "lhins-xxxxxx" +} +``` + +Import + +lighthouse blueprint can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_blueprint.blueprint blueprint_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_disk.md b/tencentcloud/lighthouse/resource_tc_lighthouse_disk.md new file mode 100644 index 0000000000..028c714f70 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_disk.md @@ -0,0 +1,18 @@ +Provides a resource to create a lighthouse disk + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_disk" "disk" { + zone = "ap-hongkong-2" + disk_size = 20 + disk_type = "CLOUD_SSD" + disk_charge_prepaid { + period = 1 + renew_flag = "NOTIFY_AND_AUTO_RENEW" + time_unit = "m" + + } + disk_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_disk_attachment.md b/tencentcloud/lighthouse/resource_tc_lighthouse_disk_attachment.md new file mode 100644 index 0000000000..48de72ca5d --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_disk_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a lighthouse disk_attachment + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_disk_attachment" "disk_attachment" { + disk_id = "lhdisk-xxxxxx" + instance_id = "lhins-xxxxxx" +} +``` + +Import + +lighthouse disk_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_disk_attachment.disk_attachment disk_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_disk_backup.md b/tencentcloud/lighthouse/resource_tc_lighthouse_disk_backup.md new file mode 100644 index 0000000000..60fe84b237 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_disk_backup.md @@ -0,0 +1,18 @@ +Provides a resource to create a lighthouse disk_backup + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_disk_backup" "disk_backup" { + disk_id = "lhdisk-xxxxx" + disk_backup_name = "disk-backup" +} +``` + +Import + +lighthouse disk_backup can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_disk_backup.disk_backup disk_backup_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_firewall_rule.md b/tencentcloud/lighthouse/resource_tc_lighthouse_firewall_rule.md new file mode 100644 index 0000000000..d18200e833 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_firewall_rule.md @@ -0,0 +1,33 @@ +Provides a resource to create a lighthouse firewall rule + +~> **NOTE:** Use an empty template to clean up the default rules before using this resource manage firewall rules. + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_firewall_rule" "firewall_rule" { + instance_id = "lhins-xxxxxxx" + firewall_rules { + protocol = "TCP" + port = "80" + cidr_block = "10.0.0.1" + action = "ACCEPT" + firewall_rule_description = "description 1" + } + firewall_rules { + protocol = "TCP" + port = "80" + cidr_block = "10.0.0.2" + action = "ACCEPT" + firewall_rule_description = "description 2" + } +} +``` + +Import + +lighthouse firewall_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_firewall_rule.firewall_rule lighthouse_instance_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_firewall_template.md b/tencentcloud/lighthouse/resource_tc_lighthouse_firewall_template.md new file mode 100644 index 0000000000..6a9f730fbc --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_firewall_template.md @@ -0,0 +1,31 @@ +Provides a resource to create a lighthouse firewall template + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_firewall_template" "firewall_template" { + template_name = "firewall-template-test" + template_rules { + protocol = "TCP" + port = "8080" + cidr_block = "127.0.0.1" + action = "ACCEPT" + firewall_rule_description = "test description" + } + template_rules { + protocol = "TCP" + port = "8090" + cidr_block = "127.0.0.0/24" + action = "DROP" + firewall_rule_description = "test description" + } +} +``` + +Import + +lighthouse firewall_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_firewall_template.firewall_template firewall_template_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_instance.md b/tencentcloud/lighthouse/resource_tc_lighthouse_instance.md new file mode 100644 index 0000000000..25e09924e4 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_instance.md @@ -0,0 +1,76 @@ +Provides a resource to create a lighthouse instance. + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_firewall_template" "firewall_template" { + template_name="empty-template" +} + +resource "tencentcloud_lighthouse_instance" "lighthouse" { + bundle_id = "bundle2022_gen_01" + blueprint_id = "lhbp-f1lkcd41" + + period = 1 + renew_flag = "NOTIFY_AND_AUTO_RENEW" + + instance_name = "hello world" + zone = "ap-guangzhou-3" + + containers { + container_image = "ccr.ccs.tencentyun.com/qcloud/nginx" + container_name = "nginx" + envs { + key = "key" + value = "value" + } + envs { + key = "key2" + value = "value2" + } + publish_ports { + host_port = 80 + container_port = 80 + ip = "127.0.0.1" + protocol = "tcp" + } + publish_ports { + host_port = 36000 + container_port = 36000 + ip = "127.0.0.1" + protocol = "tcp" + } + volumes { + container_path = "/data" + host_path = "/tmp" + } + volumes { + container_path = "/var" + host_path = "/tmp" + } + command = "ls -l" + } + + containers { + container_image = "ccr.ccs.tencentyun.com/qcloud/resty" + container_name = "resty" + envs { + key = "key2" + value = "value2" + } + publish_ports { + host_port = 80 + container_port = 80 + ip = "127.0.0.1" + protocol = "udp" + } + + volumes { + container_path = "/var" + host_path = "/tmp" + } + command = "echo \"hello\"" + } + firewall_template_id = tencentcloud_lighthouse_firewall_template.firewall_template.id +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_key_pair.md b/tencentcloud/lighthouse/resource_tc_lighthouse_key_pair.md new file mode 100644 index 0000000000..b378bf64b5 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_key_pair.md @@ -0,0 +1,17 @@ +Provides a resource to create a lighthouse key_pair + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_key_pair" "key_pair" { + key_name = "key_name_test" +} +``` + +Import + +lighthouse key_pair can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_key_pair.key_pair key_pair_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_key_pair_attachment.md b/tencentcloud/lighthouse/resource_tc_lighthouse_key_pair_attachment.md new file mode 100644 index 0000000000..d1e8855d1d --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_key_pair_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a lighthouse key_pair_attachment + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_key_pair_attachment" "key_pair_attachment" { + key_id = "lhkp-xxxxxx" + instance_id = "lhins-xxxxxx" +} +``` + +Import + +lighthouse key_pair_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_lighthouse_key_pair_attachment.key_pair_attachment key_pair_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_reboot_instance.md b/tencentcloud/lighthouse/resource_tc_lighthouse_reboot_instance.md new file mode 100644 index 0000000000..620ffe06c2 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_reboot_instance.md @@ -0,0 +1,9 @@ +Provides a resource to create a lighthouse reboot_instance + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_reboot_instance" "reboot_instance" { + instance_id = "lhins-xxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_renew_disk.md b/tencentcloud/lighthouse/resource_tc_lighthouse_renew_disk.md new file mode 100644 index 0000000000..0827b579f4 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_renew_disk.md @@ -0,0 +1,15 @@ +Provides a resource to create a lighthouse renew_disk + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_renew_disk" "renew_disk" { + disk_id = "lhdisk-xxxxxx" + renew_disk_charge_prepaid { + period = 1 + renew_flag = "NOTIFY_AND_AUTO_RENEW" + time_unit = "m" + } + auto_voucher = true +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_renew_instance.md b/tencentcloud/lighthouse/resource_tc_lighthouse_renew_instance.md new file mode 100644 index 0000000000..6d22aad31d --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_renew_instance.md @@ -0,0 +1,16 @@ +Provides a resource to create a lighthouse renew_instance + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_renew_instance" "renew_instance" { + instance_id = + instance_charge_prepaid { + period = 1 + renew_flag = "NOTIFY_AND_MANUAL_RENEW" + + } + renew_data_disk = true + auto_voucher = false +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_snapshot.md b/tencentcloud/lighthouse/resource_tc_lighthouse_snapshot.md new file mode 100644 index 0000000000..0e6dcd97cb --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_snapshot.md @@ -0,0 +1,10 @@ +Provides a resource to create a lighthouse snapshot + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_snapshot" "snapshot" { + instance_id = "lhins-acd1234" + snapshot_name = "snap_20200903" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_start_instance.md b/tencentcloud/lighthouse/resource_tc_lighthouse_start_instance.md new file mode 100644 index 0000000000..d26e6074f7 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_start_instance.md @@ -0,0 +1,9 @@ +Provides a resource to create a lighthouse start_instance + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_start_instance" "start_instance" { + instance_id = "lhins-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/lighthouse/resource_tc_lighthouse_stop_instance.md b/tencentcloud/lighthouse/resource_tc_lighthouse_stop_instance.md new file mode 100644 index 0000000000..b673385289 --- /dev/null +++ b/tencentcloud/lighthouse/resource_tc_lighthouse_stop_instance.md @@ -0,0 +1,9 @@ +Provides a resource to create a lighthouse stop_instance + +Example Usage + +```hcl +resource "tencentcloud_lighthouse_stop_instance" "stop_instance" { + instance_id = "lhins-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_accounts.md b/tencentcloud/mariadb/data_source_tc_mariadb_accounts.md new file mode 100644 index 0000000000..a7cba9b4ce --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_accounts.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mariadb accounts + +Example Usage + +```hcl +data "tencentcloud_mariadb_accounts" "accounts" { + instance_id = "tdsql-4pzs5b67" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_database_objects.md b/tencentcloud/mariadb/data_source_tc_mariadb_database_objects.md new file mode 100644 index 0000000000..d2c477f60c --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_database_objects.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mariadb database_objects + +Example Usage + +```hcl +data "tencentcloud_mariadb_database_objects" "database_objects" { + instance_id = "tdsql-n2fw7pn3" + db_name = "mysql" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_database_table.md b/tencentcloud/mariadb/data_source_tc_mariadb_database_table.md new file mode 100644 index 0000000000..4dd81b912b --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_database_table.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of mariadb database_table + +Example Usage + +```hcl +data "tencentcloud_mariadb_database_table" "database_table" { + instance_id = "tdsql-e9tklsgz" + db_name = "mysql" + table = "server_cost" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_databases.md b/tencentcloud/mariadb/data_source_tc_mariadb_databases.md new file mode 100644 index 0000000000..963c63af0f --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_databases.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mariadb databases + +Example Usage + +```hcl +data "tencentcloud_mariadb_databases" "databases" { + instance_id = "tdsql-e9tklsgz" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_db_instances.md b/tencentcloud/mariadb/data_source_tc_mariadb_db_instances.md new file mode 100644 index 0000000000..2c18c27def --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_db_instances.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of mariadb dbInstances + +Example Usage + +```hcl +data "tencentcloud_mariadb_db_instances" "dbInstances" { + instance_ids = ["tdsql-ijxtqk5p"] + project_ids = ["0"] + vpc_id = "5556791" + subnet_id = "3454730" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_dcn_detail.md b/tencentcloud/mariadb/data_source_tc_mariadb_dcn_detail.md new file mode 100644 index 0000000000..08ae03379c --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_dcn_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mariadb dcn_detail + +Example Usage + +```hcl +data "tencentcloud_mariadb_dcn_detail" "dcn_detail" { + instance_id = "tdsql-9vqvls95" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_file_download_url.md b/tencentcloud/mariadb/data_source_tc_mariadb_file_download_url.md new file mode 100644 index 0000000000..473e6f27b7 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_file_download_url.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mariadb file_download_url + +Example Usage + +```hcl +data "tencentcloud_mariadb_file_download_url" "file_download_url" { + instance_id = "tdsql-9vqvls95" + file_path = "/cos_backup/test.txt" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_flow.md b/tencentcloud/mariadb/data_source_tc_mariadb_flow.md new file mode 100644 index 0000000000..16c13811de --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_flow.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mariadb flow + +Example Usage + +```hcl +data "tencentcloud_mariadb_flow" "flow" { + flow_id = 1307 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_instance_specs.md b/tencentcloud/mariadb/data_source_tc_mariadb_instance_specs.md new file mode 100644 index 0000000000..2037921ab3 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_instance_specs.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of mariadb instance_specs + +Example Usage + +```hcl +data "tencentcloud_mariadb_instance_specs" "instance_specs" { +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_log_files.md b/tencentcloud/mariadb/data_source_tc_mariadb_log_files.md new file mode 100644 index 0000000000..7f1fecf935 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_log_files.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mariadb log_files + +Example Usage + +```hcl +data "tencentcloud_mariadb_log_files" "log_files" { + instance_id = "tdsql-9vqvls95" + type = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_orders.md b/tencentcloud/mariadb/data_source_tc_mariadb_orders.md new file mode 100644 index 0000000000..6414b6f8bd --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_orders.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mariadb orders + +Example Usage + +```hcl +data "tencentcloud_mariadb_orders" "orders" { + deal_name = "20230607164033835942781" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_price.md b/tencentcloud/mariadb/data_source_tc_mariadb_price.md new file mode 100644 index 0000000000..f7f0b65415 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_price.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of mariadb price + +Example Usage + +```hcl +data "tencentcloud_mariadb_price" "price" { + zone = "ap-guangzhou-3" + node_count = 2 + memory = 2 + storage = 20 + buy_count = 1 + period = 1 + paymode = "prepaid" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_project_security_groups.md b/tencentcloud/mariadb/data_source_tc_mariadb_project_security_groups.md new file mode 100644 index 0000000000..c50da96aaa --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_project_security_groups.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mariadb project_security_groups + +Example Usage + +```hcl +data "tencentcloud_mariadb_project_security_groups" "project_security_groups" { + product = "mariadb" + project_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_renewal_price.md b/tencentcloud/mariadb/data_source_tc_mariadb_renewal_price.md new file mode 100644 index 0000000000..54a53c32ef --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_renewal_price.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mariadb renewal_price + +Example Usage + +```hcl +data "tencentcloud_mariadb_renewal_price" "renewal_price" { + instance_id = "tdsql-9vqvls95" + period = 2 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_sale_info.md b/tencentcloud/mariadb/data_source_tc_mariadb_sale_info.md new file mode 100644 index 0000000000..786a07ffbf --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_sale_info.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of mariadb sale_info + +Example Usage + +```hcl +data "tencentcloud_mariadb_sale_info" "sale_info" { +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_security_groups.md b/tencentcloud/mariadb/data_source_tc_mariadb_security_groups.md new file mode 100644 index 0000000000..0d25607bb7 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_security_groups.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mariadb securityGroups + +Example Usage + +```hcl +data "tencentcloud_mariadb_security_groups" "securityGroups" { + instance_id = "tdsql-4pzs5b67" + product = "mariadb" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_slow_logs.md b/tencentcloud/mariadb/data_source_tc_mariadb_slow_logs.md new file mode 100644 index 0000000000..2f6faa3097 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_slow_logs.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of mariadb slow_logs + +Example Usage + +```hcl +data "tencentcloud_mariadb_slow_logs" "slow_logs" { + instance_id = "tdsql-9vqvls95" + start_time = "2023-06-01 14:55:20" + order_by = "query_time_sum" + order_by_type = "desc" + slave = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/data_source_tc_mariadb_upgrade_price.md b/tencentcloud/mariadb/data_source_tc_mariadb_upgrade_price.md new file mode 100644 index 0000000000..7c322c0f25 --- /dev/null +++ b/tencentcloud/mariadb/data_source_tc_mariadb_upgrade_price.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of mariadb upgrade_price + +Example Usage + +```hcl +data "tencentcloud_mariadb_upgrade_price" "upgrade_price" { + instance_id = "tdsql-9vqvls95" + memory = 4 + storage = 40 + node_count = 2 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_account.md b/tencentcloud/mariadb/resource_tc_mariadb_account.md new file mode 100644 index 0000000000..163d1f1f26 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_account.md @@ -0,0 +1,21 @@ +Provides a resource to create a mariadb account + +Example Usage + +```hcl +resource "tencentcloud_mariadb_account" "account" { + instance_id = "tdsql-4pzs5b67" + user_name = "account-test" + host = "10.101.202.22" + password = "Password123." + read_only = 0 + description = "desc" +} + +``` +Import + +mariadb account can be imported using the instance_id#user_name#host, e.g. +``` +$ terraform import tencentcloud_mariadb_account.account tdsql-4pzs5b67#account-test#10.101.202.22 +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_account_privileges.md b/tencentcloud/mariadb/resource_tc_mariadb_account_privileges.md new file mode 100644 index 0000000000..ac50e7dec6 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_account_privileges.md @@ -0,0 +1,22 @@ +Provides a resource to create a mariadb account_privileges + +Example Usage + +```hcl +resource "tencentcloud_mariadb_account_privileges" "account_privileges" { + instance_id = "tdsql-9vqvls95" + accounts { + user = "keep-modify-privileges" + host = "127.0.0.1" + } + global_privileges = ["ALTER", "CREATE", "DELETE", "SELECT", "UPDATE", "DROP"] +} +``` + +Import + +mariadb account_privileges can be imported using the id, e.g. + +``` +terraform import tencentcloud_mariadb_account_privileges.account_privileges account_privileges_id +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_backup_time.md b/tencentcloud/mariadb/resource_tc_mariadb_backup_time.md new file mode 100644 index 0000000000..3334aa0222 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_backup_time.md @@ -0,0 +1,19 @@ +Provides a resource to create a mariadb backup_time + +Example Usage + +```hcl +resource "tencentcloud_mariadb_backup_time" "backup_time" { + instance_id = "tdsql-9vqvls95" + start_backup_time = "01:00" + end_backup_time = "04:00" +} +``` + +Import + +mariadb backup_time can be imported using the id, e.g. + +``` +terraform import tencentcloud_mariadb_backup_time.backup_time backup_time_id +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_cancel_dcn_job.md b/tencentcloud/mariadb/resource_tc_mariadb_cancel_dcn_job.md new file mode 100644 index 0000000000..c0a6b06443 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_cancel_dcn_job.md @@ -0,0 +1,9 @@ +Provides a resource to create a mariadb cancel_dcn_job + +Example Usage + +```hcl +resource "tencentcloud_mariadb_cancel_dcn_job" "cancel_dcn_job" { + instance_id = "tdsql-9vqvls95" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_dedicatedcluster_db_instance.md b/tencentcloud/mariadb/resource_tc_mariadb_dedicatedcluster_db_instance.md new file mode 100644 index 0000000000..80e6c3337b --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_dedicatedcluster_db_instance.md @@ -0,0 +1,23 @@ +Provides a resource to create a mariadb dedicatedcluster_db_instance + +Example Usage + +```hcl +resource "tencentcloud_mariadb_dedicatedcluster_db_instance" "dedicatedcluster_db_instance" { + goods_num = 1 + memory = 2 + storage = 10 + cluster_id = "dbdc-24odnuhr" + vpc_id = "vpc-ii1jfbhl" + subnet_id = "subnet-3ku415by" + db_version_id = "8.0" + instance_name = "cluster-mariadb-test-1" +} + +``` +Import + +mariadb dedicatedcluster_db_instance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_mariadb_dedicatedcluster_db_instance.dedicatedcluster_db_instance tdsql-050g3fmv +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_flush_binlog.md b/tencentcloud/mariadb/resource_tc_mariadb_flush_binlog.md new file mode 100644 index 0000000000..1f8bfc98fc --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_flush_binlog.md @@ -0,0 +1,9 @@ +Provides a resource to create a mariadb flush_binlog + +Example Usage + +```hcl +resource "tencentcloud_mariadb_flush_binlog" "flush_binlog" { + instance_id = "tdsql-9vqvls95" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_hour_db_instance.md b/tencentcloud/mariadb/resource_tc_mariadb_hour_db_instance.md new file mode 100644 index 0000000000..393d2c90f4 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_hour_db_instance.md @@ -0,0 +1,30 @@ +Provides a resource to create a mariadb hour_db_instance + +Example Usage + +```hcl +resource "tencentcloud_mariadb_hour_db_instance" "basic" { + db_version_id = "10.0" + instance_name = "db-test-del" + memory = 2 + node_count = 2 + storage = 10 + subnet_id = "subnet-jdi5xn22" + vpc_id = "vpc-k1t8ickr" + vip = "10.0.0.197" + zones = [ + "ap-guangzhou-6", + "ap-guangzhou-7", + ] + tags = { + createdBy = "terraform" + } +} + +``` +Import + +mariadb hour_db_instance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_mariadb_hour_db_instance.hour_db_instance tdsql-kjqih9nn +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_instance.md b/tencentcloud/mariadb/resource_tc_mariadb_instance.md new file mode 100644 index 0000000000..a2f8d664f3 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_instance.md @@ -0,0 +1,50 @@ +Provides a resource to create a mariadb instance + +Example Usage + +```hcl +resource "tencentcloud_mariadb_instance" "instance" { + zones = ["ap-guangzhou-3",] + node_count = 2 + memory = 8 + storage = 10 + period = 1 + # auto_voucher = + # voucher_ids = + vpc_id = "vpc-ii1jfbhl" + subnet_id = "subnet-3ku415by" + # project_id = "" + db_version_id = "8.0" + instance_name = "terraform-test" + # security_group_ids = "" + auto_renew_flag = 1 + ipv6_flag = 0 + tags = { + "createby" = "terrafrom-2" + } + init_params { + param = "character_set_server" + value = "utf8mb4" + } + init_params { + param = "lower_case_table_names" + value = "0" + } + init_params { + param = "innodb_page_size" + value = "16384" + } + init_params { + param = "sync_mode" + value = "1" + } + dcn_region = "" + dcn_instance_id = "" +} +``` +Import + +mariadb tencentcloud_mariadb_instance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_mariadb_instance.instance tdsql-4pzs5b67 +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_instance_config.md b/tencentcloud/mariadb/resource_tc_mariadb_instance_config.md new file mode 100644 index 0000000000..6e282d2512 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_instance_config.md @@ -0,0 +1,22 @@ +Provides a resource to create a mariadb instance_config + +Example Usage + +```hcl +resource "tencentcloud_mariadb_instance_config" "test" { + instance_id = "tdsql-9vqvls95" + vpc_id = "vpc-ii1jfbhl" + subnet_id = "subnet-3ku415by" + rs_access_strategy = 1 + extranet_access = 0 + vip = "127.0.0.1" +} +``` + +Import + +mariadb instance_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_mariadb_instance_config.test id +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_log_file_retention_period.md b/tencentcloud/mariadb/resource_tc_mariadb_log_file_retention_period.md new file mode 100644 index 0000000000..390d75b580 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_log_file_retention_period.md @@ -0,0 +1,17 @@ +Provides a resource to create a mariadb log_file_retention_period + +Example Usage + +```hcl +resource "tencentcloud_mariadb_log_file_retention_period" "log_file_retention_period" { + instance_id = "tdsql-4pzs5b67" + days = "8" +} + +``` +Import + +mariadb log_file_retention_period can be imported using the id, e.g. +``` +$ terraform import tencentcloud_mariadb_log_file_retention_period.log_file_retention_period tdsql-4pzs5b67 +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_operate_hour_db_instance.md b/tencentcloud/mariadb/resource_tc_mariadb_operate_hour_db_instance.md new file mode 100644 index 0000000000..9863376391 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_operate_hour_db_instance.md @@ -0,0 +1,10 @@ +Provides a resource to create a mariadb activate_hour_db_instance + +Example Usage + +```hcl +resource "tencentcloud_mariadb_operate_hour_db_instance" "activate_hour_db_instance" { + instance_id = "tdsql-9vqvls95" + operate = "activate" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_parameters.md b/tencentcloud/mariadb/resource_tc_mariadb_parameters.md new file mode 100644 index 0000000000..98510171bc --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_parameters.md @@ -0,0 +1,277 @@ +Provides a resource to create a mariadb parameters + +Example Usage + +```hcl +resource "tencentcloud_mariadb_parameters" "parameters" { + instance_id = "tdsql-4pzs5b67" + + params { + param = "auto_increment_increment" + value = "1" + } + params { + param = "auto_increment_offset" + value = "1" + } + params { + param = "autocommit" + value = "ON" + } + params { + param = "character_set_server" + value = "utf8mb4" + } + params { + param = "collation_connection" + value = "utf8mb4_general_ci" + } + params { + param = "collation_database" + value = "utf8mb4_general_ci" + } + params { + param = "collation_server" + value = "utf8mb4_general_ci" + } + params { + param = "connect_timeout" + value = "10" + } + params { + param = "default_collation_for_utf8mb4" + value = "utf8mb4_general_ci" + } + params { + param = "default_week_format" + value = "0" + } + params { + param = "delay_key_write" + value = "ON" + } + params { + param = "delayed_insert_limit" + value = "100" + } + params { + param = "delayed_insert_timeout" + value = "300" + } + params { + param = "delayed_queue_size" + value = "1000" + } + params { + param = "div_precision_increment" + value = "4" + } + params { + param = "event_scheduler" + value = "ON" + } + params { + param = "group_concat_max_len" + value = "1024" + } + params { + param = "innodb_concurrency_tickets" + value = "5000" + } + params { + param = "innodb_flush_log_at_trx_commit" + value = "1" + } + params { + param = "innodb_lock_wait_timeout" + value = "20" + } + params { + param = "innodb_max_dirty_pages_pct" + value = "70.000000" + } + params { + param = "innodb_old_blocks_pct" + value = "37" + } + params { + param = "innodb_old_blocks_time" + value = "1000" + } + params { + param = "innodb_purge_batch_size" + value = "1000" + } + params { + param = "innodb_read_ahead_threshold" + value = "56" + } + params { + param = "innodb_stats_method" + value = "nulls_equal" + } + params { + param = "innodb_stats_on_metadata" + value = "OFF" + } + params { + param = "innodb_strict_mode" + value = "OFF" + } + params { + param = "innodb_table_locks" + value = "ON" + } + params { + param = "innodb_thread_concurrency" + value = "0" + } + params { + param = "interactive_timeout" + value = "28800" + } + params { + param = "key_cache_age_threshold" + value = "300" + } + params { + param = "key_cache_block_size" + value = "1024" + } + params { + param = "key_cache_division_limit" + value = "100" + } + params { + param = "local_infile" + value = "OFF" + } + params { + param = "lock_wait_timeout" + value = "5" + } + params { + param = "log_queries_not_using_indexes" + value = "OFF" + } + params { + param = "long_query_time" + value = "1.000000" + } + params { + param = "low_priority_updates" + value = "OFF" + } + params { + param = "max_allowed_packet" + value = "1073741824" + } + params { + param = "max_binlog_size" + value = "536870912" + } + params { + param = "max_connect_errors" + value = "2000" + } + params { + param = "max_connections" + value = "10000" + } + params { + param = "max_execution_time" + value = "0" + } + params { + param = "max_prepared_stmt_count" + value = "200000" + } + params { + param = "myisam_sort_buffer_size" + value = "4194304" + } + params { + param = "net_buffer_length" + value = "16384" + } + params { + param = "net_read_timeout" + value = "150" + } + params { + param = "net_retry_count" + value = "10" + } + params { + param = "net_write_timeout" + value = "300" + } + params { + param = "query_alloc_block_size" + value = "16384" + } + params { + param = "query_prealloc_size" + value = "24576" + } + params { + param = "slow_launch_time" + value = "2" + } + params { + param = "sort_buffer_size" + value = "2097152" + } + params { + param = "sql_mode" + value = "NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" + } + params { + param = "sql_require_primary_key" + value = "ON" + } + params { + param = "sql_safe_updates" + value = "OFF" + } + params { + param = "sqlasyntimeout" + value = "30" + } + params { + param = "sync_binlog" + value = "1" + } + params { + param = "table_definition_cache" + value = "10240" + } + params { + param = "table_open_cache" + value = "20480" + } + params { + param = "time_zone" + value = "+08:00" + } + params { + param = "tmp_table_size" + value = "33554432" + } + params { + param = "tx_isolation" + value = "READ-COMMITTED" + } + params { + param = "wait_timeout" + value = "28800" + } +} + +``` +Import + +mariadb parameters can be imported using the id, e.g. +``` +$ terraform import tencentcloud_mariadb_parameters.parameters tdsql-4pzs5b67 +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_renew_instance.md b/tencentcloud/mariadb/resource_tc_mariadb_renew_instance.md new file mode 100644 index 0000000000..fd4c1a2435 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_renew_instance.md @@ -0,0 +1,10 @@ +Provides a resource to create a mariadb renew_instance + +Example Usage + +```hcl +resource "tencentcloud_mariadb_renew_instance" "renew_instance" { + instance_id = "tdsql-9vqvls95" + period = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_restart_instance.md b/tencentcloud/mariadb/resource_tc_mariadb_restart_instance.md new file mode 100644 index 0000000000..a94e90f951 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_restart_instance.md @@ -0,0 +1,9 @@ +Provides a resource to create a mariadb restart_instance + +Example Usage + +```hcl +resource "tencentcloud_mariadb_restart_instance" "restart_instance" { + instance_id = "tdsql-9vqvls95" +} +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_security_groups.md b/tencentcloud/mariadb/resource_tc_mariadb_security_groups.md new file mode 100644 index 0000000000..3d40ddf695 --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_security_groups.md @@ -0,0 +1,20 @@ +Provides a resource to create a mariadb security_groups + +~> **NOTE:** If you use this resource, please do not use security_group_ids in tencentcloud_mariadb_instance resource + +Example Usage + +```hcl +resource "tencentcloud_mariadb_security_groups" "security_groups" { + instance_id = "tdsql-4pzs5b67" + security_group_id = "sg-7kpsbxdb" + product = "mariadb" +} + +``` +Import + +mariadb security_groups can be imported using the id, e.g. +``` +$ terraform import tencentcloud_mariadb_security_groups.security_groups tdsql-4pzs5b67#sg-7kpsbxdb#mariadb +``` \ No newline at end of file diff --git a/tencentcloud/mariadb/resource_tc_mariadb_switch_ha.md b/tencentcloud/mariadb/resource_tc_mariadb_switch_ha.md new file mode 100644 index 0000000000..7fab1bf96a --- /dev/null +++ b/tencentcloud/mariadb/resource_tc_mariadb_switch_ha.md @@ -0,0 +1,10 @@ +Provides a resource to create a mariadb switch_h_a + +Example Usage + +```hcl +resource "tencentcloud_mariadb_switch_ha" "switch_ha" { + instance_id = "tdsql-9vqvls95" + zone = "ap-guangzhou-2" +} +``` \ No newline at end of file diff --git a/tencentcloud/mdl/resource_tc_mdl_stream_live_input.md b/tencentcloud/mdl/resource_tc_mdl_stream_live_input.md new file mode 100644 index 0000000000..47a96c2853 --- /dev/null +++ b/tencentcloud/mdl/resource_tc_mdl_stream_live_input.md @@ -0,0 +1,21 @@ +Provides a resource to create a mdl streamlive_input + +Example Usage + +```hcl +resource "tencentcloud_mdl_stream_live_input" "stream_live_input" { + name = "terraform_test" + type = "RTP_PUSH" + security_group_ids = [ + "6405DF9D000007DFB4EC" + ] +} +``` + +Import + +mdl stream_live_input can be imported using the id, e.g. + +``` +terraform import tencentcloud_mdl_stream_live_input.stream_live_input id +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_instance_backups.md b/tencentcloud/mongodb/data_source_tc_mongodb_instance_backups.md new file mode 100644 index 0000000000..a50a029b15 --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_instance_backups.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mongodb instance_backups + +Example Usage + +```hcl +data "tencentcloud_mongodb_instance_backups" "instance_backups" { + instance_id = "cmgo-9d0p6umb" + backup_method = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_instance_connections.md b/tencentcloud/mongodb/data_source_tc_mongodb_instance_connections.md new file mode 100644 index 0000000000..3131c379ee --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_instance_connections.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mongodb instance_connections + +Example Usage + +```hcl +data "tencentcloud_mongodb_instance_connections" "instance_connections" { + instance_id = "cmgo-9d0p6umb" + } +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_instance_current_op.md b/tencentcloud/mongodb/data_source_tc_mongodb_instance_current_op.md new file mode 100644 index 0000000000..b7a31d2266 --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_instance_current_op.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of mongodb instance_current_op + +Example Usage + +```hcl +data "tencentcloud_mongodb_instance_current_op" "instance_current_op" { + instance_id = "cmgo-b43i3wkj" + op = "command" + order_by_type = "desc" +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_instance_params.md b/tencentcloud/mongodb/data_source_tc_mongodb_instance_params.md new file mode 100644 index 0000000000..82ae2af82c --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_instance_params.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mongodb instance_params + +Example Usage + +```hcl +data "tencentcloud_mongodb_instance_params" "instance_params" { + instance_id = "cmgo-gwqk8669" +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_instance_slow_log.md b/tencentcloud/mongodb/data_source_tc_mongodb_instance_slow_log.md new file mode 100644 index 0000000000..b792285273 --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_instance_slow_log.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of mongodb instance_slow_log + +Example Usage + +```hcl +data "tencentcloud_mongodb_instance_slow_log" "instance_slow_log" { + instance_id = "cmgo-9d0p6umb" + start_time = "2019-06-01 10:00:00" + end_time = "2019-06-02 12:00:00" + slow_m_s = 100 + format = "json" +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_instances.md b/tencentcloud/mongodb/data_source_tc_mongodb_instances.md new file mode 100644 index 0000000000..7439011e41 --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_instances.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of Mongodb instances. + +Example Usage + +```hcl +data "tencentcloud_mongodb_instances" "mongodb" { + instance_id = "cmgo-l6lwdsel" + cluster_type = "REPLSET" +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/data_source_tc_mongodb_zone_config.md b/tencentcloud/mongodb/data_source_tc_mongodb_zone_config.md new file mode 100644 index 0000000000..90fab0cac7 --- /dev/null +++ b/tencentcloud/mongodb/data_source_tc_mongodb_zone_config.md @@ -0,0 +1,9 @@ +Use this data source to query the available mongodb specifications for different zone. + +Example Usage + +```hcl +data "tencentcloud_mongodb_zone_config" "mongodb" { + available_zone = "ap-guangzhou-2" +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/resource_tc_mongodb_instance.md b/tencentcloud/mongodb/resource_tc_mongodb_instance.md new file mode 100644 index 0000000000..0e3c916d5c --- /dev/null +++ b/tencentcloud/mongodb/resource_tc_mongodb_instance.md @@ -0,0 +1,26 @@ +Provide a resource to create a Mongodb instance. + +Example Usage + +```hcl +resource "tencentcloud_mongodb_instance" "mongodb" { + instance_name = "mongodb" + memory = 4 + volume = 100 + engine_version = "MONGO_36_WT" + machine_type = "HIO10G" + available_zone = "ap-guangzhou-2" + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxxx" + project_id = 0 + password = "password1234" +} +``` + +Import + +Mongodb instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_mongodb_instance.mongodb cmgo-41s6jwy4 +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/resource_tc_mongodb_instance_account.md b/tencentcloud/mongodb/resource_tc_mongodb_instance_account.md new file mode 100644 index 0000000000..eef57ec79a --- /dev/null +++ b/tencentcloud/mongodb/resource_tc_mongodb_instance_account.md @@ -0,0 +1,17 @@ +Provides a resource to create a mongodb instance_account + +Example Usage + +```hcl +resource "tencentcloud_mongodb_instance_account" "instance_account" { + instance_id = "cmgo-lxaz2c9b" + user_name = "test_account" + password = "xxxxxxxx" + mongo_user_password = "xxxxxxxxx" + user_desc = "test account" + auth_role { + mask = 0 + namespace = "*" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/resource_tc_mongodb_instance_backup.md b/tencentcloud/mongodb/resource_tc_mongodb_instance_backup.md new file mode 100644 index 0000000000..3c1e6d2585 --- /dev/null +++ b/tencentcloud/mongodb/resource_tc_mongodb_instance_backup.md @@ -0,0 +1,11 @@ +Provides a resource to create a mongodb instance_backup + +Example Usage + +```hcl +resource "tencentcloud_mongodb_instance_backup" "instance_backup" { + instance_id = "cmgo-9d0p6umb" + backup_method = 0 + backup_remark = "my backup" +} +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/resource_tc_mongodb_sharding_instance.md b/tencentcloud/mongodb/resource_tc_mongodb_sharding_instance.md new file mode 100644 index 0000000000..086a2605c8 --- /dev/null +++ b/tencentcloud/mongodb/resource_tc_mongodb_sharding_instance.md @@ -0,0 +1,31 @@ +Provide a resource to create a Mongodb sharding instance. + +Example Usage + +```hcl +resource "tencentcloud_mongodb_sharding_instance" "mongodb" { + instance_name = "mongodb" + shard_quantity = 2 + nodes_per_shard = 3 + memory = 4 + volume = 100 + engine_version = "MONGO_36_WT" + machine_type = "HIO10G" + available_zone = "ap-guangzhou-3" + vpc_id = "vpc-mz3efvbw" + subnet_id = "subnet-lk0svi3p" + project_id = 0 + password = "password1234" + mongos_cpu = 1 + mongos_memory = 2 + mongos_node_num = 3 +} +``` + +Import + +Mongodb sharding instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_mongodb_sharding_instance.mongodb cmgo-41s6jwy4 +``` \ No newline at end of file diff --git a/tencentcloud/mongodb/resource_tc_mongodb_standby_instance.md b/tencentcloud/mongodb/resource_tc_mongodb_standby_instance.md new file mode 100644 index 0000000000..e8a995303d --- /dev/null +++ b/tencentcloud/mongodb/resource_tc_mongodb_standby_instance.md @@ -0,0 +1,52 @@ +Provide a resource to create a Mongodb standby instance. + +Example Usage + +```hcl +provider "tencentcloud" { + region = "ap-guangzhou" +} + +provider "tencentcloud" { + alias = "shanghai" + region = "ap-shanghai" +} + +resource "tencentcloud_mongodb_instance" "mongodb" { + instance_name = "tf-mongodb-test" + memory = 4 + volume = 100 + engine_version = "MONGO_40_WT" + machine_type = "HIO10G" + available_zone = var.availability_zone + project_id = 0 + password = "test1234" + + tags = { + test = "test" + } +} + +resource "tencentcloud_mongodb_standby_instance" "mongodb" { + provider = tencentcloud.shanghai + instance_name = "tf-mongodb-standby-test" + memory = 4 + volume = 100 + available_zone = "ap-shanghai-2" + project_id = 0 + father_instance_id = tencentcloud_mongodb_instance.mongodb.id + father_instance_region = "ap-guangzhou" + + tags = { + test = "test" + } +} +``` + +Import + +Mongodb instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_mongodb_standby_instance.mongodb cmgo-41s6jwy4 +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_all_namespaces.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_all_namespaces.md new file mode 100644 index 0000000000..0f4d1cf025 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_all_namespaces.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of monitor alarm_all_namespaces + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_all_namespaces" "alarm_all_namespaces" { + scene_type = "ST_ALARM" + module = "monitor" + monitor_types = ["MT_QCE"] + ids = ["qaap_tunnel_l4_listeners"] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_basic_alarms.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_basic_alarms.md new file mode 100644 index 0000000000..161d2e0ecf --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_basic_alarms.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of monitor basic_alarms + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_basic_alarms" "alarms" { + module = "monitor" + start_time = 1696990903 + end_time = 1697098903 + occur_time_order = "DESC" + project_ids = [0] + view_names = ["cvm_device"] + alarm_status = [1] + instance_group_ids = [5497073] + metric_names = ["cpu_usage"] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_basic_metric.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_basic_metric.md new file mode 100644 index 0000000000..d3a7914439 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_basic_metric.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of monitor basic_metric + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_basic_metric" "alarm_metric" { + namespace = "qce/cvm" + metric_name = "WanOuttraffic" + dimensions = ["uuid"] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_conditions_template.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_conditions_template.md new file mode 100644 index 0000000000..e20650667d --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_conditions_template.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of monitor alarm_conditions_template + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_conditions_template" "alarm_conditions_template" { + module = "monitor" + view_name = "cvm_device" + group_name = "keep-template" + group_id = "7803070" + update_time_order = "desc=descending" + policy_count_order = "asc=ascending" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_history.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_history.md new file mode 100644 index 0000000000..6a2c024f5a --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_history.md @@ -0,0 +1,21 @@ +Use this data source to query detailed information of monitor alarm_history + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_history" "alarm_history" { + module = "monitor" + order = "DESC" + start_time = 1696608000 + end_time = 1697212799 + monitor_types = ["MT_QCE"] + project_ids = [0] + namespaces { + monitor_type = "CpuUsage" + namespace = "cvm_device" + } + policy_name = "terraform_test" + content = "CPU利用率 > 3%" + policy_ids = ["policy-iejtp4ue"] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_metric.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_metric.md new file mode 100644 index 0000000000..537dc50377 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_metric.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of monitor alarm_metric + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_metric" "alarm_metric" { + module = "monitor" + monitor_type = "Monitoring" + namespace = "cvm_device" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_monitor_type.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_monitor_type.md new file mode 100644 index 0000000000..07e4f28fbc --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_monitor_type.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of monitor alarm_monitor_type + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_monitor_type" "alarm_monitor_type" { +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_notice_callbacks.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_notice_callbacks.md new file mode 100644 index 0000000000..15eed7eb84 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_notice_callbacks.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of monitor alarm_notice_callbacks + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_notice_callbacks" "alarm_notice_callbacks" { +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_notices.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_notices.md new file mode 100644 index 0000000000..7242ea8855 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_notices.md @@ -0,0 +1,15 @@ +Use this data source to Interlude notification list. + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_notices" "notices" { + order = "DESC" + owner_uid = 1 + name = "" + receiver_type = "" + user_ids = [] + group_ids = [] + notice_ids = [] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_alarm_policy.md b/tencentcloud/monitor/data_source_tc_monitor_alarm_policy.md new file mode 100644 index 0000000000..2efdc679dd --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_alarm_policy.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of monitor alarm_policy + +Example Usage + +```hcl +data "tencentcloud_monitor_alarm_policy" "alarm_policy" { + module = "monitor" + policy_name = "terraform" + monitor_types = ["MT_QCE"] + namespaces = ["cvm_device"] + project_ids = [0] + notice_ids = ["notice-f2svbu3w"] + rule_types = ["STATIC"] + enable = [1] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_binding_objects.md b/tencentcloud/monitor/data_source_tc_monitor_binding_objects.md new file mode 100644 index 0000000000..4f2f37efc2 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_binding_objects.md @@ -0,0 +1,13 @@ +Use this data source to query policy group binding objects. + +Example Usage + +```hcl +data "tencentcloud_monitor_policy_groups" "name" { + name = "test" +} + +data "tencentcloud_monitor_binding_objects" "objects" { + group_id = data.tencentcloud_monitor_policy_groups.name.list[0].group_id +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_data.md b/tencentcloud/monitor/data_source_tc_monitor_data.md new file mode 100644 index 0000000000..b721ec24e0 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_data.md @@ -0,0 +1,39 @@ +Use this data source to query monitor data. for complex queries, use (https://github.com/tencentyun/tencentcloud-exporter) + +Example Usage + +```hcl +data "tencentcloud_instances" "instances" { +} + +#cvm +data "tencentcloud_monitor_data" "cvm_monitor_data" { + namespace = "QCE/CVM" + metric_name = "CPUUsage" + dimensions { + name = "InstanceId" + value = data.tencentcloud_instances.instances.instance_list[0].instance_id + } + period = 300 + start_time = "2020-04-28T18:45:00+08:00" + end_time = "2020-04-28T19:00:00+08:00" +} + +#cos +data "tencentcloud_monitor_data" "cos_monitor_data" { + namespace = "QCE/COS" + metric_name = "InternetTraffic" + dimensions { + name = "appid" + value = "1258798060" + } + dimensions { + name = "bucket" + value = "test-1258798060" + } + + period = 300 + start_time = "2020-04-28T18:30:00+08:00" + end_time = "2020-04-28T19:00:00+08:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_policy_conditions.md b/tencentcloud/monitor/data_source_tc_monitor_policy_conditions.md new file mode 100644 index 0000000000..cedde46809 --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_policy_conditions.md @@ -0,0 +1,10 @@ +Use this data source to query monitor policy conditions(There is a lot of data and it is recommended to output to a file) + +Example Usage + +```hcl +data "tencentcloud_monitor_policy_conditions" "monitor_policy_conditions" { + name = "Cloud Virtual Machine" + result_output_file = "./tencentcloud_monitor_policy_conditions.txt" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_policy_groups.md b/tencentcloud/monitor/data_source_tc_monitor_policy_groups.md new file mode 100644 index 0000000000..cfbda5524b --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_policy_groups.md @@ -0,0 +1,13 @@ +Use this data source to query monitor policy groups (There is a lot of data and it is recommended to output to a file) + +Example Usage + +```hcl +data "tencentcloud_monitor_policy_groups" "groups" { + policy_view_names = ["REDIS-CLUSTER", "cvm_device"] +} + +data "tencentcloud_monitor_policy_groups" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_product_event.md b/tencentcloud/monitor/data_source_tc_monitor_product_event.md new file mode 100644 index 0000000000..d42ca1700a --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_product_event.md @@ -0,0 +1,11 @@ +Use this data source to query monitor events(There is a lot of data and it is recommended to output to a file) + +Example Usage + +```hcl +data "tencentcloud_monitor_product_event" "cvm_event_data" { + start_time = 1588700283 + is_alarm_config = 0 + product_name = ["cvm"] +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/data_source_tc_monitor_product_namespace.md b/tencentcloud/monitor/data_source_tc_monitor_product_namespace.md new file mode 100644 index 0000000000..65c819f76c --- /dev/null +++ b/tencentcloud/monitor/data_source_tc_monitor_product_namespace.md @@ -0,0 +1,9 @@ +Use this data source to query product namespace in monitor) + +Example Usage + +```hcl +data "tencentcloud_monitor_product_namespace" "instances" { + name = "Redis" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/resource_tc_monitor_alarm_notice.md b/tencentcloud/monitor/resource_tc_monitor_alarm_notice.md new file mode 100644 index 0000000000..d15bb1b008 --- /dev/null +++ b/tencentcloud/monitor/resource_tc_monitor_alarm_notice.md @@ -0,0 +1,65 @@ +Provides a alarm notice resource for monitor. + +Example Usage + +```hcl +resource "tencentcloud_monitor_alarm_notice" "example" { + name = "test_alarm_notice" + notice_language = "zh-CN" + notice_type = "ALL" + + url_notices { + end_time = 86399 + is_valid = 0 + start_time = 0 + url = "https://www.mytest.com/validate" + weekday = [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + ] + } + + user_notices { + end_time = 86399 + group_ids = [] + need_phone_arrive_notice = 1 + notice_way = [ + "EMAIL", + "SMS", + ] + phone_call_type = "CIRCLE" + phone_circle_interval = 180 + phone_circle_times = 2 + phone_inner_interval = 180 + phone_order = [] + receiver_type = "USER" + start_time = 0 + user_ids = [ + 11082189, + 11082190, + ] + weekday = [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + ] + } +} +``` + +Import + +Monitor Alarm Notice can be imported, e.g. + +``` +$ terraform import tencentcloud_monitor_alarm_notice.import-test noticeId +``` \ No newline at end of file diff --git a/tencentcloud/monitor/resource_tc_monitor_alarm_policy.md b/tencentcloud/monitor/resource_tc_monitor_alarm_policy.md new file mode 100644 index 0000000000..8b23be5146 --- /dev/null +++ b/tencentcloud/monitor/resource_tc_monitor_alarm_policy.md @@ -0,0 +1,250 @@ +Provides a alarm policy resource for monitor. + +Example Usage + +cvm_device alarm policy + +```hcl +resource "tencentcloud_monitor_alarm_notice" "foo" { + name = "tf-alarm_notice" + notice_type = "ALL" + notice_language = "zh-CN" + + user_notices { + receiver_type = "USER" + start_time = 0 + end_time = 1 + notice_way = ["SMS","EMAIL"] + user_ids = [10001] + group_ids = [] + phone_order = [10001] + phone_circle_times = 2 + phone_circle_interval = 50 + phone_inner_interval = 60 + need_phone_arrive_notice = 1 + phone_call_type = "CIRCLE" + weekday =[1,2,3,4,5,6,7] + } + + url_notices { + url = "https://www.mytest.com/validate" + end_time = 0 + start_time = 1 + weekday = [1,2,3,4,5,6,7] + } + +} + +resource "tencentcloud_monitor_alarm_policy" "foo" { + policy_name = "tf-policy" + monitor_type = "MT_QCE" + enable = 1 + project_id = 0 + namespace = "cvm_device" + conditions { + is_union_rule = 1 + rules { + metric_name = "CpuUsage" + period = 60 + operator = "ge" + value = "89.9" + continue_period = 1 + notice_frequency = 3600 + is_power_notice = 0 + } + } + event_conditions { + metric_name = "ping_unreachable" + } + event_conditions { + metric_name = "guest_reboot" + } + notice_ids = [tencentcloud_monitor_alarm_notice.foo.id] + + trigger_tasks { + type = "AS" + task_config = "{\"Region\":\"ap-guangzhou\",\"Group\":\"asg-0z312312x\",\"Policy\":\"asp-ganig28\"}" + } +} +``` + +k8s_cluster alarm policy + +```hcl +resource "tencentcloud_monitor_alarm_policy" "policy" { + enable = 1 + monitor_type = "MT_QCE" + namespace = "k8s_cluster" + notice_ids = [ + "notice-l9ziyxw6", + ] + policy_name = "TkeClusterNew" + project_id = 1244035 + + conditions { + is_union_rule = 0 + + rules { + continue_period = 3 + description = "Allocatable Pods" + is_power_notice = 0 + metric_name = "K8sClusterAllocatablePodsTotal" + notice_frequency = 3600 + operator = "gt" + period = 60 + rule_type = "STATIC" + unit = "Count" + value = "10" + + filter { + dimensions = jsonencode( + [ + [ + { + Key = "region" + Operator = "eq" + Value = [ + "ap-guangzhou", + ] + }, + { + Key = "tke_cluster_instance_id" + Operator = "in" + Value = [ + "cls-czhtobea", + ] + }, + ], + ] + ) + type = "DIMENSION" + } + } + rules { + continue_period = 3 + description = "Total CPU Cores" + is_power_notice = 0 + metric_name = "K8sClusterCpuCoreTotal" + notice_frequency = 3600 + operator = "gt" + period = 60 + rule_type = "STATIC" + unit = "Core" + value = "2" + + filter { + dimensions = jsonencode( + [ + [ + { + Key = "region" + Operator = "eq" + Value = [ + "ap-guangzhou", + ] + }, + { + Key = "tke_cluster_instance_id" + Operator = "in" + Value = [ + "cls-czhtobea", + ] + }, + ], + ] + ) + type = "DIMENSION" + } + } + } +} +``` + +cvm_device alarm policy binding cvm by tag +``` +resource "tencentcloud_monitor_alarm_policy" "policy" { + enable = 1 + monitor_type = "MT_QCE" + namespace = "cvm_device" + notice_ids = [ + "notice-l9ziyxw6", + ] + policy_name = "policy" + project_id = 0 + + conditions { + is_union_rule = 0 + + rules { + continue_period = 5 + description = "CPUUtilization" + is_power_notice = 0 + metric_name = "CpuUsage" + notice_frequency = 7200 + operator = "gt" + period = 60 + rule_type = "STATIC" + unit = "%" + value = "95" + } + rules { + continue_period = 5 + description = "PublicBandwidthUtilization" + is_power_notice = 0 + metric_name = "Outratio" + notice_frequency = 7200 + operator = "gt" + period = 60 + rule_type = "STATIC" + unit = "%" + value = "95" + } + rules { + continue_period = 5 + description = "MemoryUtilization" + is_power_notice = 0 + metric_name = "MemUsage" + notice_frequency = 7200 + operator = "gt" + period = 60 + rule_type = "STATIC" + unit = "%" + value = "95" + } + rules { + continue_period = 5 + description = "DiskUtilization" + is_power_notice = 0 + metric_name = "CvmDiskUsage" + notice_frequency = 7200 + operator = "gt" + period = 60 + rule_type = "STATIC" + unit = "%" + value = "95" + } + } + + event_conditions { + continue_period = 0 + description = "DiskReadonly" + is_power_notice = 0 + metric_name = "disk_readonly" + notice_frequency = 0 + period = 0 + } + + policy_tag { + key = "test-tag" + value = "unit-test" + } +} +``` + +Import + +Alarm policy instance can be imported, e.g. + +``` +$ terraform import tencentcloud_monitor_alarm_policy.policy policy-id +``` \ No newline at end of file diff --git a/tencentcloud/monitor/resource_tc_monitor_alarm_policy_set_default.md b/tencentcloud/monitor/resource_tc_monitor_alarm_policy_set_default.md new file mode 100644 index 0000000000..c6be1b44e1 --- /dev/null +++ b/tencentcloud/monitor/resource_tc_monitor_alarm_policy_set_default.md @@ -0,0 +1,10 @@ +Provides a resource to create a monitor policy_set_default + +Example Usage + +```hcl +resource "tencentcloud_monitor_alarm_policy_set_default" "policy_set_default" { + module = "monitor" + policy_id = "policy-u4iykjkt" +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/resource_tc_monitor_binding_object.md b/tencentcloud/monitor/resource_tc_monitor_binding_object.md new file mode 100644 index 0000000000..8e5830eb3c --- /dev/null +++ b/tencentcloud/monitor/resource_tc_monitor_binding_object.md @@ -0,0 +1,33 @@ +Provides a resource for bind objects to a policy group resource. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_monitor_policy_binding_object. + +Example Usage + +```hcl +data "tencentcloud_instances" "instances" { +} +resource "tencentcloud_monitor_policy_group" "group" { + group_name = "terraform_test" + policy_view_name = "cvm_device" + remark = "this is a test policy group" + is_union_rule = 1 + conditions { + metric_id = 33 + alarm_notify_type = 1 + alarm_notify_period = 600 + calc_type = 1 + calc_value = 3 + calc_period = 300 + continue_period = 2 + } +} + +#for cvm +resource "tencentcloud_monitor_binding_object" "binding" { + group_id = tencentcloud_monitor_policy_group.group.id + dimensions { + dimensions_json = "{\"unInstanceId\":\"${data.tencentcloud_instances.instances.instance_list[0].instance_id}\"}" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/resource_tc_monitor_binding_receiver.md b/tencentcloud/monitor/resource_tc_monitor_binding_receiver.md new file mode 100644 index 0000000000..38ae314768 --- /dev/null +++ b/tencentcloud/monitor/resource_tc_monitor_binding_receiver.md @@ -0,0 +1,36 @@ +Provides a resource for bind receivers to a policy group resource. + +Example Usage + +```hcl +data "tencentcloud_cam_groups" "groups" { + //You should first create a user group with CAM +} + +resource "tencentcloud_monitor_policy_group" "group" { + group_name = "nice_group" + policy_view_name = "cvm_device" + remark = "this is a test policy group" + conditions { + metric_id = 33 + alarm_notify_type = 1 + alarm_notify_period = 600 + calc_type = 1 + calc_value = 3 + calc_period = 300 + continue_period = 2 + } +} + +resource "tencentcloud_monitor_binding_receiver" "receiver" { + group_id = tencentcloud_monitor_policy_group.group.id + receivers { + start_time = 0 + end_time = 86399 + notify_way = ["SMS"] + receiver_type = "group" + receiver_group_list = [data.tencentcloud_cam_groups.groups.group_list[0].group_id] + receive_language = "en-US" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/monitor/resource_tc_monitor_policy_binding_object.md b/tencentcloud/monitor/resource_tc_monitor_policy_binding_object.md new file mode 100644 index 0000000000..ad7788c748 --- /dev/null +++ b/tencentcloud/monitor/resource_tc_monitor_policy_binding_object.md @@ -0,0 +1,61 @@ +Provides a resource for bind objects to a alarm policy resource. + +Example Usage + +```hcl +data "tencentcloud_instances" "instances" { +} +resource "tencentcloud_monitor_alarm_policy" "policy" { + policy_name = "hello" + monitor_type = "MT_QCE" + enable = 1 + project_id = 1244035 + namespace = "cvm_device" + + conditions { + is_union_rule = 1 + rules { + metric_name = "CpuUsage" + period = 60 + operator = "ge" + value = "89.9" + continue_period = 1 + notice_frequency = 3600 + is_power_notice = 0 + } + } + + event_conditions { + metric_name = "ping_unreachable" + } + + event_conditions { + metric_name = "guest_reboot" + } + + notice_ids = ["notice-l9ziyxw6"] + + trigger_tasks { + type = "AS" + task_config = "{\"Region\":\"ap-guangzhou\",\"Group\":\"asg-0z312312x\",\"Policy\":\"asp-ganig28\"}" + } + +} + +#for cvm +resource "tencentcloud_monitor_policy_binding_object" "binding" { + policy_id = tencentcloud_monitor_alarm_policy.policy.id + + dimensions { + dimensions_json = "{\"unInstanceId\":\"${data.tencentcloud_instances.instances.instance_list[0].instance_id}\"}" + } +} + +``` +Import + +Monitor Policy Binding Object can be imported, e.g. + +``` +$ terraform import tencentcloud_monitor_policy_binding_object.binding policyId +``` \ No newline at end of file diff --git a/tencentcloud/mps/data_source_tc_mps_media_meta_data.md b/tencentcloud/mps/data_source_tc_mps_media_meta_data.md new file mode 100644 index 0000000000..7db7a368d6 --- /dev/null +++ b/tencentcloud/mps/data_source_tc_mps_media_meta_data.md @@ -0,0 +1,23 @@ +Use this data source to query detailed information of mps media_meta_data + +Example Usage + +Query the mps media meta data through COS + +```hcl +data "tencentcloud_cos_bucket_object" "object" { + bucket = "keep-bucket-${local.app_id}" + key = "/mps-test/test.mov" +} + +data "tencentcloud_mps_media_meta_data" "metadata" { + input_info { + type = "COS" + cos_input_info { + bucket = data.tencentcloud_cos_bucket_object.object.bucket + region = "%s" + object = data.tencentcloud_cos_bucket_object.object.key + } + } +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/data_source_tc_mps_parse_live_stream_process_notification.md b/tencentcloud/mps/data_source_tc_mps_parse_live_stream_process_notification.md new file mode 100644 index 0000000000..8f08d75644 --- /dev/null +++ b/tencentcloud/mps/data_source_tc_mps_parse_live_stream_process_notification.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mps parse_live_stream_process_notification + +Example Usage + +```hcl +data "tencentcloud_mps_parse_live_stream_process_notification" "parse_live_stream_process_notification" { + content = "your_content" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/data_source_tc_mps_parse_notification.md b/tencentcloud/mps/data_source_tc_mps_parse_notification.md new file mode 100644 index 0000000000..8f60448cba --- /dev/null +++ b/tencentcloud/mps/data_source_tc_mps_parse_notification.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of mps parse_notification + +Example Usage + +```hcl +data "tencentcloud_mps_parse_notification" "parse_notification" { + content = "your_content" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/data_source_tc_mps_schedules.md b/tencentcloud/mps/data_source_tc_mps_schedules.md new file mode 100644 index 0000000000..d5ba13b433 --- /dev/null +++ b/tencentcloud/mps/data_source_tc_mps_schedules.md @@ -0,0 +1,21 @@ +Use this data source to query detailed information of mps schedules + +Example Usage + +Query the enabled schedules. + +```hcl +data "tencentcloud_mps_schedules" "schedules" { + status = "Enabled" +} +``` + +Query the specified one. + +```hcl +data "tencentcloud_mps_schedules" "schedules" { + schedule_ids = [%d] + trigger_type = "CosFileUpload" + status = "Enabled" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/data_source_tc_mps_tasks.md b/tencentcloud/mps/data_source_tc_mps_tasks.md new file mode 100644 index 0000000000..59369247eb --- /dev/null +++ b/tencentcloud/mps/data_source_tc_mps_tasks.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of mps tasks + +Example Usage + +```hcl +data "tencentcloud_mps_tasks" "tasks" { + status = "FINISH" + limit = 20 +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_adaptive_dynamic_streaming_template.md b/tencentcloud/mps/resource_tc_mps_adaptive_dynamic_streaming_template.md new file mode 100644 index 0000000000..ca7cd2083e --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_adaptive_dynamic_streaming_template.md @@ -0,0 +1,69 @@ +Provides a resource to create a mps adaptive_dynamic_streaming_template + +Example Usage + +```hcl +resource "tencentcloud_mps_adaptive_dynamic_streaming_template" "adaptive_dynamic_streaming_template" { + comment = "terrraform test" + disable_higher_video_bitrate = 0 + disable_higher_video_resolution = 1 + format = "HLS" + name = "terrraform-test" + + stream_infos { + remove_audio = 0 + remove_video = 0 + + audio { + audio_channel = 1 + bitrate = 55 + codec = "libmp3lame" + sample_rate = 32000 + } + + video { + bitrate = 245 + codec = "libx264" + fill_type = "black" + fps = 30 + gop = 0 + height = 135 + resolution_adaptive = "open" + vcrf = 0 + width = 145 + } + } + stream_infos { + remove_audio = 0 + remove_video = 0 + + audio { + audio_channel = 2 + bitrate = 60 + codec = "libfdk_aac" + sample_rate = 32000 + } + + video { + bitrate = 400 + codec = "libx264" + fill_type = "black" + fps = 40 + gop = 0 + height = 150 + resolution_adaptive = "open" + vcrf = 0 + width = 160 + } + } +} + +``` + +Import + +mps adaptive_dynamic_streaming_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_adaptive_dynamic_streaming_template.adaptive_dynamic_streaming_template adaptive_dynamic_streaming_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_ai_analysis_template.md b/tencentcloud/mps/resource_tc_mps_ai_analysis_template.md new file mode 100644 index 0000000000..79b52777dc --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_ai_analysis_template.md @@ -0,0 +1,34 @@ +Provides a resource to create a mps ai_analysis_template + +Example Usage + +```hcl +resource "tencentcloud_mps_ai_analysis_template" "ai_analysis_template" { + name = "terraform-test" + + classification_configure { + switch = "OFF" + } + + cover_configure { + switch = "ON" + } + + frame_tag_configure { + switch = "ON" + } + + tag_configure { + switch = "ON" + } +} + +``` + +Import + +mps ai_analysis_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_ai_analysis_template.ai_analysis_template ai_analysis_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_ai_recognition_template.md b/tencentcloud/mps/resource_tc_mps_ai_recognition_template.md new file mode 100644 index 0000000000..fc1babe6d9 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_ai_recognition_template.md @@ -0,0 +1,46 @@ +Provides a resource to create a mps ai_recognition_template + +Example Usage + +```hcl +resource "tencentcloud_mps_ai_recognition_template" "ai_recognition_template" { + name = "terraform-test" + + asr_full_text_configure { + switch = "OFF" + } + + asr_words_configure { + label_set = [] + switch = "OFF" + } + + face_configure { + default_library_label_set = [ + "entertainment", + "sport", + ] + face_library = "All" + score = 85 + switch = "ON" + user_define_library_label_set = [] + } + + ocr_full_text_configure { + switch = "OFF" + } + + ocr_words_configure { + label_set = [] + switch = "OFF" + } +} +``` + +Import + +mps ai_recognition_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_ai_recognition_template.ai_recognition_template ai_recognition_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_animated_graphics_template.md b/tencentcloud/mps/resource_tc_mps_animated_graphics_template.md new file mode 100644 index 0000000000..44b6340931 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_animated_graphics_template.md @@ -0,0 +1,23 @@ +Provides a resource to create a mps animated_graphics_template + +Example Usage + +```hcl +resource "tencentcloud_mps_animated_graphics_template" "animated_graphics_template" { + format = "gif" + fps = 20 + height = 130 + name = "terraform-test" + quality = 75 + resolution_adaptive = "open" + width = 140 +} +``` + +Import + +mps animated_graphics_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_animated_graphics_template.animated_graphics_template animated_graphics_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_content_review_template.md b/tencentcloud/mps/resource_tc_mps_content_review_template.md new file mode 100644 index 0000000000..97b4c22ca0 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_content_review_template.md @@ -0,0 +1,103 @@ +Provides a resource to create a mps content_review_template + +Example Usage + +```hcl +resource "tencentcloud_mps_content_review_template" "template" { + name = "tf_test_content_review_temp" + comment = "tf test content review temp" + porn_configure { + img_review_info { + switch = "ON" + label_set = ["porn", "vulgar"] + block_confidence = 60 + review_confidence = 100 + } + asr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + ocr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + + } + terrorism_configure { + img_review_info { + switch = "ON" + label_set = ["guns", "crowd"] + block_confidence = 60 + review_confidence = 100 + } + ocr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + + } + political_configure { + img_review_info { + switch = "ON" + label_set = ["violation_photo", "politician"] + block_confidence = 60 + review_confidence = 100 + } + asr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + ocr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + + } + prohibited_configure { + asr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + ocr_review_info { + switch = "ON" + block_confidence = 60 + review_confidence = 100 + } + + } + user_define_configure { + face_review_info { + switch = "ON" + label_set = ["FACE_1", "FACE_2"] + block_confidence = 60 + review_confidence = 100 + } + asr_review_info { + switch = "ON" + label_set = ["VOICE_1", "VOICE_2"] + block_confidence = 60 + review_confidence = 100 + } + ocr_review_info { + switch = "ON" + label_set = ["VIDEO_1", "VIDEO_2"] + block_confidence = 60 + review_confidence = 100 + } + } +} +``` + +Import + +mps content_review_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_content_review_template.content_review_template definition +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_edit_media_operation.md b/tencentcloud/mps/resource_tc_mps_edit_media_operation.md new file mode 100644 index 0000000000..5cfc1ab850 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_edit_media_operation.md @@ -0,0 +1,39 @@ +Provides a resource to create a mps edit_media_operation + +Example Usage + +Operation through COS + +```hcl +resource "tencentcloud_cos_bucket" "output" { + bucket = "tf-bucket-mps-output-${local.app_id}" + } + +data "tencentcloud_cos_bucket_object" "object" { + bucket = "keep-bucket-${local.app_id}" + key = "/mps-test/test.mov" +} + +resource "tencentcloud_mps_edit_media_operation" "operation" { + file_infos { + input_info { + type = "COS" + cos_input_info { + bucket = data.tencentcloud_cos_bucket_object.object.bucket + region = "%s" + object = data.tencentcloud_cos_bucket_object.object.key + } + } + start_time_offset = 60 + end_time_offset = 120 + } + output_storage { + type = "COS" + cos_output_storage { + bucket = tencentcloud_cos_bucket.output.bucket + region = "%s" + } + } + output_object_path = "/output" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_enable_schedule_config.md b/tencentcloud/mps/resource_tc_mps_enable_schedule_config.md new file mode 100644 index 0000000000..bb42389fdb --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_enable_schedule_config.md @@ -0,0 +1,164 @@ +Provides a resource to create a mps enable_schedule_config + +Example Usage + +Enable the mps schedule + +```hcl +data "tencentcloud_cos_bucket_object" "object" { + bucket = "keep-bucket-${local.app_id}" + key = "/mps-test/test.mov" +} + +resource "tencentcloud_cos_bucket" "output" { + bucket = "tf-bucket-mps-schedule-config-output1-${local.app_id}" + force_clean = true + acl = "public-read" +} + +resource "tencentcloud_mps_schedule" "example" { + schedule_name = "tf_test_mps_schedule_config" + + trigger { + type = "CosFileUpload" + cos_file_upload_trigger { + bucket = data.tencentcloud_cos_bucket_object.object.bucket + region = "%s" + dir = "/upload/" + formats = ["flv", "mov"] + } + } + + activities { + activity_type = "input" + reardrive_index = [1, 2] + } + + activities { + activity_type = "action-trans" + reardrive_index = [3] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [6, 7] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [4, 5] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [8] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [9] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "output" + } + + output_storage { + type = "COS" + cos_output_storage { + bucket = tencentcloud_cos_bucket.output.bucket + region = "%s" + } + } + + output_dir = "output/" +} + +resource "tencentcloud_mps_enable_schedule_config" "config" { + schedule_id = tencentcloud_mps_schedule.example.id + enabled = true +} +``` + +Disable the mps schedule + +```hcl +resource "tencentcloud_mps_enable_schedule_config" "config" { + schedule_id = tencentcloud_mps_schedule.example.id + enabled = false +} + +``` + +Import + +mps enable_schedule_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_enable_schedule_config.enable_schedule_config enable_schedule_config_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_enable_workflow_config.md b/tencentcloud/mps/resource_tc_mps_enable_workflow_config.md new file mode 100644 index 0000000000..c1bec0900a --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_enable_workflow_config.md @@ -0,0 +1,120 @@ +Provides a resource to create a mps enable_workflow_config + +Example Usage + +Enable the mps workflow + +```hcl +resource "tencentcloud_mps_workflow" "example" { + output_dir = "/" + task_priority = 0 + workflow_name = "tf-workflow-enable-config" + + media_process_task { + adaptive_dynamic_streaming_task_set { + definition = 12 + output_object_path = "/out" + segment_object_name = "/out" + sub_stream_object_name = "/out/out/" + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + } + + snapshot_by_time_offset_task_set { + definition = 10 + ext_time_offset_set = [ + "1s", + ] + output_object_path = "/snapshot/" + time_offset_set = [] + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + } + + animated_graphic_task_set { + definition = 20000 + end_time_offset = 0 + output_object_path = "/test/" + start_time_offset = 0 + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + } + } + + ai_analysis_task { + definition = 20 + } + + ai_content_review_task { + definition = 20 + } + + ai_recognition_task { + definition = 20 + } + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + + trigger { + type = "CosFileUpload" + + cos_file_upload_trigger { + bucket = "cos-lock-1308919341" + dir = "/" + region = "ap-guangzhou" + } + } +} + +resource "tencentcloud_mps_enable_workflow_config" "config" { + workflow_id = tencentcloud_mps_workflow.example.id + enabled = true +} + +``` + +Disable the mps workflow + +```hcl +resource "tencentcloud_mps_enable_workflow_config" "config" { + workflow_id = tencentcloud_mps_workflow.example.id + enabled = false +} + +``` + +Import + +mps enable_workflow_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_enable_workflow_config.enable_workflow_config enable_workflow_config_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_event.md b/tencentcloud/mps/resource_tc_mps_event.md new file mode 100644 index 0000000000..dc8dbc79f9 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_event.md @@ -0,0 +1,18 @@ +Provides a resource to create a mps event + +Example Usage + +```hcl +resource "tencentcloud_mps_event" "event" { + event_name = "you-event-name" + description = "event description" +} +``` + +Import + +mps event can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_event.event event_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_execute_function_operation.md b/tencentcloud/mps/resource_tc_mps_execute_function_operation.md new file mode 100644 index 0000000000..27a66651e7 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_execute_function_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a mps execute_function_operation + +Example Usage + +```hcl +resource "tencentcloud_mps_execute_function_operation" "operation" { + function_name = "ExampleFunc" + function_arg = "arg1" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_flow.md b/tencentcloud/mps/resource_tc_mps_flow.md new file mode 100644 index 0000000000..08424778cb --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_flow.md @@ -0,0 +1,116 @@ +Provides a resource to create a mps flow + +Example Usage + +Create a mps RTP flow + +```hcl +resource "tencentcloud_mps_event" "event" { + event_name = "tf_test_event_srt_%d" + description = "tf test mps event description" + } + +resource "tencentcloud_mps_flow" "flow" { + flow_name = "tf_test_mps_flow_srt_%d" + max_bandwidth = 10000000 + input_group { + input_name = "test_inputname" + protocol = "SRT" + description = "input name Description" + allow_ip_list = ["0.0.0.0/0"] + srt_settings { + mode = "LISTENER" + stream_id = "#!::u=johnny,r=resource,h=xxx.com,t=stream,m=play" + latency = 1000 + recv_latency = 1000 + peer_latency = 1000 + peer_idle_timeout = 1000 + } + } + event_id = tencentcloud_mps_event.event.id +} +``` + +Create a mps RTP flow + +```hcl +resource "tencentcloud_mps_event" "event_rtp" { + event_name = "tf_test_event_rtp_%d" + description = "tf test mps event description" + } + +resource "tencentcloud_mps_flow" "flow_rtp" { + flow_name = "tf_test_mps_flow_rtp_%d" + max_bandwidth = 10000000 + input_group { + input_name = "test_inputname" + protocol = "RTP" + description = "input name Description" + allow_ip_list = ["0.0.0.0/0"] + rtp_settings { + fec = "none" + idle_timeout = 1000 + } + } + event_id = tencentcloud_mps_event.event_rtp.id +} +``` + +Create a mps RTP flow and start it + +Before you start a mps flow, you need to create a output first. + +```hcl +resource "tencentcloud_mps_event" "event_rtp" { + event_name = "your_event_name" + description = "tf test mps event description" +} + +resource "tencentcloud_mps_flow" "flow_rtp" { + flow_name = "your_flow_name" + max_bandwidth = 10000000 + input_group { + input_name = "test_inputname" + protocol = "RTP" + description = "input name Description" + allow_ip_list = ["0.0.0.0/0"] + rtp_settings { + fec = "none" + idle_timeout = 1000 + } + } + event_id = tencentcloud_mps_event.event_rtp.id +} + +resource "tencentcloud_mps_output" "output" { + flow_id = tencentcloud_mps_flow.flow_rtp.id + output { + output_name = "your_output_name" + description = "tf mps output group" + protocol = "RTP" + output_region = "ap-guangzhou" + rtp_settings { + destinations { + ip = "203.205.141.84" + port = 65535 + } + fec = "none" + idle_timeout = 1000 + } + } +} + +resource "tencentcloud_mps_start_flow_operation" "operation" { + flow_id = tencentcloud_mps_flow.flow_rtp.id + start = true + depends_on = [tencentcloud_mps_output.output] +} +``` + +Import + +mps flow can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_flow.flow flow_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_image_sprite_template.md b/tencentcloud/mps/resource_tc_mps_image_sprite_template.md new file mode 100644 index 0000000000..7cc9289cf3 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_image_sprite_template.md @@ -0,0 +1,26 @@ +Provides a resource to create a mps image_sprite_template + +Example Usage + +```hcl +resource "tencentcloud_mps_image_sprite_template" "image_sprite_template" { + column_count = 10 + fill_type = "stretch" + format = "jpg" + height = 143 + name = "terraform-test" + resolution_adaptive = "open" + row_count = 10 + sample_interval = 10 + sample_type = "Time" + width = 182 +} +``` + +Import + +mps image_sprite_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_image_sprite_template.image_sprite_template image_sprite_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_input.md b/tencentcloud/mps/resource_tc_mps_input.md new file mode 100644 index 0000000000..6ce3fefaa2 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_input.md @@ -0,0 +1,33 @@ +Provides a resource to create a mps input + +Example Usage + +Create mps input group with SRT + +```hcl +resource "tencentcloud_mps_input" "input" { + flow_id = tencentcloud_mps_flow.flow.id + input_group { + input_name = "your_input_name" + protocol = "SRT" + description = "input name Description" + allow_ip_list = ["0.0.0.0/0"] + srt_settings { + mode = "LISTENER" + stream_id = "#!::u=johnny,r=resource,h=xxx.com,t=stream,m=play" + latency = 1000 + recv_latency = 1000 + peer_latency = 1000 + peer_idle_timeout = 1000 + } + } +} +``` + +Import + +mps input can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_input.input input_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_manage_task_operation.md b/tencentcloud/mps/resource_tc_mps_manage_task_operation.md new file mode 100644 index 0000000000..adc4bdd8af --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_manage_task_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a mps manage_task_operation + +Example Usage + +```hcl +resource "tencentcloud_mps_manage_task_operation" "operation" { + operation_type = "Abort" + task_id = "2600010949-LiveScheduleTask-xxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_output.md b/tencentcloud/mps/resource_tc_mps_output.md new file mode 100644 index 0000000000..45c178cb11 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_output.md @@ -0,0 +1,33 @@ +Provides a resource to create a mps output + +Example Usage + +Create a output group with RTP + +```hcl +resource "tencentcloud_mps_output" "output" { + flow_id = "your_flow_id" + output { + output_name = "your_output_name" + description = "tf mps output group" + protocol = "RTP" + output_region = "ap-guangzhou" + rtp_settings { + destinations { + ip = "203.205.141.84" + port = 65535 + } + fec = "none" + idle_timeout = 1000 + } + } +} +``` + +Import + +mps output can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_output.output flow_id#output_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_person_sample.md b/tencentcloud/mps/resource_tc_mps_person_sample.md new file mode 100644 index 0000000000..fba11e212e --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_person_sample.md @@ -0,0 +1,24 @@ +Provides a resource to create a mps person_sample + +Example Usage + +```hcl +resource "tencentcloud_mps_person_sample" "person_sample" { + name = "test" + usages = [ + "Review.Face" + ] + description = "test" + face_contents = [ + filebase64("./person.png") + ] +} +``` + +Import + +mps person_sample can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_person_sample.person_sample person_sample_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_process_live_stream_operation.md b/tencentcloud/mps/resource_tc_mps_process_live_stream_operation.md new file mode 100644 index 0000000000..a75fee149e --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_process_live_stream_operation.md @@ -0,0 +1,42 @@ +Provides a resource to create a mps process_live_stream_operation + +Example Usage + +Process mps live stream through CMQ + +```hcl +resource "tencentcloud_cos_bucket" "output" { + bucket = "tf-bucket-mps-process-live-stream-output-${local.app_id}" + force_clean = true + acl = "public-read" +} + +resource "tencentcloud_mps_process_live_stream_operation" "operation" { + url = "http://www.abc.com/abc.m3u8" + task_notify_config { + cmq_model = "Queue" + cmq_region = "gz" + queue_name = "test" + topic_name = "test" + notify_type = "CMQ" + } + + output_storage { + type = "COS" + cos_output_storage { + bucket = tencentcloud_cos_bucket.output.bucket + region = "%s" + } + } + + output_dir = "/output/" + + ai_content_review_task { + definition = 10 + } + + ai_recognition_task { + definition = 10 + } +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_process_media_operation.md b/tencentcloud/mps/resource_tc_mps_process_media_operation.md new file mode 100644 index 0000000000..62bd7adcf6 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_process_media_operation.md @@ -0,0 +1,53 @@ +Provides a resource to create a mps process_media_operation + +Example Usage + +Process mps media through CMQ + +```hcl +resource "tencentcloud_cos_bucket" "output" { + bucket = "tf-bucket-mps-edit-media-output-${local.app_id}" + force_clean = true + acl = "public-read" +} + +data "tencentcloud_cos_bucket_object" "object" { + bucket = "keep-bucket-${local.app_id}" + key = "/mps-test/test.mov" +} + +resource "tencentcloud_mps_process_media_operation" "operation" { + input_info { + type = "COS" + cos_input_info { + bucket = data.tencentcloud_cos_bucket_object.object.bucket + region = "%s" + object = data.tencentcloud_cos_bucket_object.object.key + } + } + output_storage { + type = "COS" + cos_output_storage { + bucket = tencentcloud_cos_bucket.output.bucket + region = "%s" + } + } + output_dir = "output/" + + ai_content_review_task { + definition = 10 + } + + ai_recognition_task { + definition = 10 + } + + task_notify_config { + cmq_model = "Queue" + cmq_region = "gz" + queue_name = "test" + topic_name = "test" + notify_type = "CMQ" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_sample_snapshot_template.md b/tencentcloud/mps/resource_tc_mps_sample_snapshot_template.md new file mode 100644 index 0000000000..7a1a3633fb --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_sample_snapshot_template.md @@ -0,0 +1,24 @@ +Provides a resource to create a mps sample_snapshot_template + +Example Usage + +```hcl +resource "tencentcloud_mps_sample_snapshot_template" "sample_snapshot_template" { + fill_type = "stretch" + format = "jpg" + height = 128 + name = "terraform-test-for" + resolution_adaptive = "open" + sample_interval = 10 + sample_type = "Percent" + width = 140 +} +``` + +Import + +mps sample_snapshot_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_sample_snapshot_template.sample_snapshot_template sample_snapshot_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_schedule.md b/tencentcloud/mps/resource_tc_mps_schedule.md new file mode 100644 index 0000000000..ca41334cb1 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_schedule.md @@ -0,0 +1,150 @@ +Provides a resource to create a mps schedule + +Example Usage + +Create a schedule through COS bucket + +```hcl +data "tencentcloud_cos_bucket_object" "object" { + bucket = "keep-bucket-${local.app_id}" + key = "/mps-test/test.mov" +} + +resource "tencentcloud_cos_bucket" "output" { + bucket = "tf-bucket-mps-schedule-output-${local.app_id}" + force_clean = true + acl = "public-read" +} + +resource "tencentcloud_mps_schedule" "schedule" { + schedule_name = "tf_test_mps_schedule_%d" + + trigger { + type = "CosFileUpload" + cos_file_upload_trigger { + bucket = data.tencentcloud_cos_bucket_object.object.bucket + region = "%s" + dir = "/upload/" + formats = ["flv", "mov"] + } + } + + activities { + activity_type = "input" + reardrive_index = [1, 2] + } + + activities { + activity_type = "action-trans" + reardrive_index = [3] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [6, 7] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [4, 5] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [8] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [9] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "action-trans" + reardrive_index = [10] + activity_para { + transcode_task { + definition = 10 + } + } + } + + activities { + activity_type = "output" + } + + output_storage { + type = "COS" + cos_output_storage { + bucket = tencentcloud_cos_bucket.output.bucket + region = "%s" + } + } + + output_dir = "output/" +} + +``` + +Import + +mps schedule can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_schedule.schedule schedule_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_snapshot_by_timeoffset_template.md b/tencentcloud/mps/resource_tc_mps_snapshot_by_timeoffset_template.md new file mode 100644 index 0000000000..6cd878b9a7 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_snapshot_by_timeoffset_template.md @@ -0,0 +1,22 @@ +Provides a resource to create a mps snapshot_by_timeoffset_template + +Example Usage + +```hcl +resource "tencentcloud_mps_snapshot_by_timeoffset_template" "snapshot_by_timeoffset_template" { + fill_type = "stretch" + format = "jpg" + height = 128 + name = "terraform-test" + resolution_adaptive = "open" + width = 140 +} +``` + +Import + +mps snapshot_by_timeoffset_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_snapshot_by_timeoffset_template.snapshot_by_timeoffset_template snapshot_by_timeoffset_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_start_flow_operation.md b/tencentcloud/mps/resource_tc_mps_start_flow_operation.md new file mode 100644 index 0000000000..c4136d18a2 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_start_flow_operation.md @@ -0,0 +1,21 @@ +Provides a resource to create a mps start_flow_operation + +Example Usage + +Start flow + +```hcl +resource "tencentcloud_mps_start_flow_operation" "operation" { + flow_id = tencentcloud_mps_flow.flow_rtp.id + start = true +} +``` + +Stop flow + +```hcl +resource "tencentcloud_mps_start_flow_operation" "operation" { + flow_id = tencentcloud_mps_flow.flow_rtp.id + start = false +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_transcode_template.md b/tencentcloud/mps/resource_tc_mps_transcode_template.md new file mode 100644 index 0000000000..9cddee2386 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_transcode_template.md @@ -0,0 +1,39 @@ +Provides a resource to create a mps transcode_template + +Example Usage + +```hcl +resource "tencentcloud_mps_transcode_template" "transcode_template" { + container = "mp4" + name = "tf_transcode_template" + remove_audio = 0 + remove_video = 0 + + audio_template { + audio_channel = 2 + bitrate = 27 + codec = "libfdk_aac" + sample_rate = 32000 + } + + video_template { + bitrate = 130 + codec = "libx264" + fill_type = "black" + fps = 20 + gop = 0 + height = 4096 + resolution_adaptive = "close" + vcrf = 0 + width = 128 + } +} +``` + +Import + +mps transcode_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_transcode_template.transcode_template transcode_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_watermark_template.md b/tencentcloud/mps/resource_tc_mps_watermark_template.md new file mode 100644 index 0000000000..e9f0867e88 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_watermark_template.md @@ -0,0 +1,28 @@ +Provides a resource to create a mps watermark_template + +Example Usage + +```hcl +resource "tencentcloud_mps_watermark_template" "watermark_template" { + coordinate_origin = "TopLeft" + name = "xZxasd" + type = "image" + x_pos = "12%" + y_pos = "21%" + + image_template { + height = "17px" + image_content = filebase64("./logo.png") + repeat_type = "repeat" + width = "12px" + } +} +``` + +Import + +mps watermark_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_watermark_template.watermark_template watermark_template_id +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_withdraws_watermark_operation.md b/tencentcloud/mps/resource_tc_mps_withdraws_watermark_operation.md new file mode 100644 index 0000000000..95b71d351e --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_withdraws_watermark_operation.md @@ -0,0 +1,31 @@ +Provides a resource to create a mps withdraws_watermark_operation + +Example Usage + +Withdraw the watermark from COS + +```hcl +resource "tencentcloud_cos_bucket" "example" { + bucket = "tf-test-mps-wm-${local.app_id}" + acl = "public-read" +} + +resource "tencentcloud_cos_bucket_object" "example" { + bucket = tencentcloud_cos_bucket.example.bucket + key = "/test-file/test.mov" + source = "/Users/luoyin/Downloads/file_example_MOV_480_700kB.mov" +} + +resource "tencentcloud_mps_withdraws_watermark_operation" "operation" { + input_info { + type = "COS" + cos_input_info { + bucket = tencentcloud_cos_bucket_object.example.bucket + region = "%s" + object = tencentcloud_cos_bucket_object.example.key + } + } + + session_context = "this is a example session context" +} +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_word_sample.md b/tencentcloud/mps/resource_tc_mps_word_sample.md new file mode 100644 index 0000000000..6f7e900323 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_word_sample.md @@ -0,0 +1,19 @@ +Provides a resource to create a mps word_sample + +Example Usage + +```hcl +resource "tencentcloud_mps_word_sample" "word_sample" { + usages = ["Recognition.Ocr","Review.Ocr","Review.Asr"] + keyword = "tf_test_kw_1" + tags = ["tags_1", "tags_2"] +} +``` + +Import + +mps word_sample can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_word_sample.word_sample keyword +``` \ No newline at end of file diff --git a/tencentcloud/mps/resource_tc_mps_workflow.md b/tencentcloud/mps/resource_tc_mps_workflow.md new file mode 100644 index 0000000000..313a41b0b3 --- /dev/null +++ b/tencentcloud/mps/resource_tc_mps_workflow.md @@ -0,0 +1,103 @@ +Provides a resource to create a mps workflow + +Example Usage + +```hcl +resource "tencentcloud_mps_workflow" "workflow" { + output_dir = "/" + task_priority = 0 + workflow_name = "tf-workflow" + + media_process_task { + adaptive_dynamic_streaming_task_set { + definition = 12 + output_object_path = "/out" + segment_object_name = "/out" + sub_stream_object_name = "/out/out/" + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + } + + snapshot_by_time_offset_task_set { + definition = 10 + ext_time_offset_set = [ + "1s", + ] + output_object_path = "/snapshot/" + time_offset_set = [] + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + } + + animated_graphic_task_set { + definition = 20000 + end_time_offset = 0 + output_object_path = "/test/" + start_time_offset = 0 + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + } + } + + ai_analysis_task { + definition = 20 + } + + ai_content_review_task { + definition = 20 + } + + ai_recognition_task { + definition = 20 + } + + output_storage { + type = "COS" + + cos_output_storage { + bucket = "cos-lock-1308919341" + region = "ap-guangzhou" + } + } + + trigger { + type = "CosFileUpload" + + cos_file_upload_trigger { + bucket = "cos-lock-1308919341" + dir = "/" + region = "ap-guangzhou" + } + } +} + +``` + +Import + +mps workflow can be imported using the id, e.g. + +``` +terraform import tencentcloud_mps_workflow.workflow workflow_id +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_check_savepoint.md b/tencentcloud/oceanus/data_source_tc_oceanus_check_savepoint.md new file mode 100644 index 0000000000..15c518e4c0 --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_check_savepoint.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of oceanus check_savepoint + +Example Usage + +```hcl +data "tencentcloud_oceanus_check_savepoint" "example" { + job_id = "cql-314rw6w0" + serial_id = "svp-52xkpymp" + record_type = 1 + savepoint_path = "cosn://52xkpymp-12345/12345/10000/cql-12345/2/flink-savepoints/savepoint-000000-12334" + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_clusters.md b/tencentcloud/oceanus/data_source_tc_oceanus_clusters.md new file mode 100644 index 0000000000..ef59f57243 --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_clusters.md @@ -0,0 +1,23 @@ +Use this data source to query detailed information of oceanus clusters + +Example Usage + +Query all clusters + +```hcl +data "tencentcloud_oceanus_clusters" "example" {} +``` + +Query the specified cluster + +```hcl +data "tencentcloud_oceanus_clusters" "example" { + cluster_ids = ["cluster-5c42n3a5"] + order_type = 1 + filters { + name = "name" + values = ["tf_example"] + } + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_job_submission_log.md b/tencentcloud/oceanus/data_source_tc_oceanus_job_submission_log.md new file mode 100644 index 0000000000..206b39c295 --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_job_submission_log.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of oceanus job_submission_log + +Example Usage + +```hcl +data "tencentcloud_oceanus_job_submission_log" "example" { + job_id = "cql-314rw6w0" + start_time = 1696130964345 + end_time = 1698118169241 + running_order_id = 0 + order_type = "desc" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_resource_related_job.md b/tencentcloud/oceanus/data_source_tc_oceanus_resource_related_job.md new file mode 100644 index 0000000000..3036b8c62f --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_resource_related_job.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of oceanus resource_related_job + +Example Usage + +```hcl +data "tencentcloud_oceanus_resource_related_job" "example" { + resource_id = "resource-8y9lzcuz" + desc_by_job_config_create_time = 0 + resource_config_version = 1 + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_savepoint_list.md b/tencentcloud/oceanus/data_source_tc_oceanus_savepoint_list.md new file mode 100644 index 0000000000..8b5ddaf29e --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_savepoint_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of oceanus savepoint_list + +Example Usage + +```hcl +data "tencentcloud_oceanus_savepoint_list" "example" { + job_id = "cql-314rw6w0" + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_system_resource.md b/tencentcloud/oceanus/data_source_tc_oceanus_system_resource.md new file mode 100644 index 0000000000..9014a324e2 --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_system_resource.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of oceanus system_resource + +Example Usage + +```hcl +data "tencentcloud_oceanus_system_resource" "example" { + resource_ids = ["resource-abd503yt"] + filters { + name = "Name" + values = ["tf_example"] + } + cluster_id = "cluster-n8yaia0p" + flink_version = "Flink-1.11" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_tree_jobs.md b/tencentcloud/oceanus/data_source_tc_oceanus_tree_jobs.md new file mode 100644 index 0000000000..56526aab21 --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_tree_jobs.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of oceanus tree_jobs + +Example Usage + +```hcl +data "tencentcloud_oceanus_tree_jobs" "example" { + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_tree_resources.md b/tencentcloud/oceanus/data_source_tc_oceanus_tree_resources.md new file mode 100644 index 0000000000..f1b65bd97d --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_tree_resources.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of oceanus tree_resources + +Example Usage + +```hcl +data "tencentcloud_oceanus_tree_resources" "example" { + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/data_source_tc_oceanus_work_spaces.md b/tencentcloud/oceanus/data_source_tc_oceanus_work_spaces.md new file mode 100644 index 0000000000..a9f8514560 --- /dev/null +++ b/tencentcloud/oceanus/data_source_tc_oceanus_work_spaces.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of oceanus work_spaces + +Example Usage + +```hcl +data "tencentcloud_oceanus_work_spaces" "example" { + order_type = 1 + filters { + name = "WorkSpaceName" + values = ["tf_example"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_folder.md b/tencentcloud/oceanus/resource_tc_oceanus_folder.md new file mode 100644 index 0000000000..6bf2179d37 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_folder.md @@ -0,0 +1,20 @@ +Provides a resource to create a oceanus folder + +Example Usage + +```hcl +resource "tencentcloud_oceanus_folder" "example" { + folder_name = "tf_example" + parent_id = "folder-lfqkt11s" + folder_type = 0 + work_space_id = "space-125703345ap-shenzhen-fsi" +} +``` + +Import + +oceanus folder can be imported using the id, e.g. + +``` +terraform import tencentcloud_oceanus_folder.example space-125703345ap-shenzhen-fsi#folder-f40fq79g#0 +``` diff --git a/tencentcloud/oceanus/resource_tc_oceanus_job.md b/tencentcloud/oceanus/resource_tc_oceanus_job.md new file mode 100644 index 0000000000..b768a8c12e --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_job.md @@ -0,0 +1,17 @@ +Provides a resource to create a oceanus job + +Example Usage + +```hcl +resource "tencentcloud_oceanus_job" "example" { + name = "tf_example_job" + job_type = 1 + cluster_type = 2 + cluster_id = "cluster-1kcd524h" + cu_mem = 4 + remark = "remark." + folder_id = "folder-7ctl246z" + flink_version = "Flink-1.16" + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_job_config.md b/tencentcloud/oceanus/resource_tc_oceanus_job_config.md new file mode 100644 index 0000000000..a6a4352032 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_job_config.md @@ -0,0 +1,66 @@ +Provides a resource to create a oceanus job_config + +Example Usage + +If `log_collect_type` is 2 + +```hcl +resource "tencentcloud_oceanus_job_config" "example" { + job_id = "cql-4xwincyn" + entrypoint_class = "tf_example" + program_args = "--conf Key=Value" + remark = "remark." + resource_refs { + resource_id = "resource-q22ntswy" + version = 1 + type = 1 + } + default_parallelism = 1 + properties { + key = "pipeline.max-parallelism" + value = "2048" + } + log_collect = true + job_manager_spec = "1" + task_manager_spec = "1" + cls_logset_id = "cd9adbb5-6b7d-48d2-9870-77658959c7a4" + cls_topic_id = "cec4c2f1-0bf3-470e-b1a5-b1c451e88838" + log_collect_type = 2 + work_space_id = "space-2idq8wbr" + log_level = "INFO" + auto_recover = 1 + expert_mode_on = false +} +``` + +If `log_collect_type` is 3 + +```hcl +resource "tencentcloud_oceanus_job_config" "example" { + job_id = "cql-4xwincyn" + entrypoint_class = "tf_example" + program_args = "--conf Key=Value" + remark = "remark." + resource_refs { + resource_id = "resource-q22ntswy" + version = 1 + type = 1 + } + default_parallelism = 1 + properties { + key = "pipeline.max-parallelism" + value = "2048" + } + log_collect = true + job_manager_spec = "1" + task_manager_spec = "1" + cls_logset_id = "cd9adbb5-6b7d-48d2-9870-77658959c7a4" + cls_topic_id = "cec4c2f1-0bf3-470e-b1a5-b1c451e88838" + log_collect_type = 3 + work_space_id = "space-2idq8wbr" + log_level = "INFO" + auto_recover = 1 + expert_mode_on = false + cos_bucket = "autotest-gz-bucket-1257058945" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_job_copy.md b/tencentcloud/oceanus/resource_tc_oceanus_job_copy.md new file mode 100644 index 0000000000..032fc1f684 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_job_copy.md @@ -0,0 +1,15 @@ +Provides a resource to create a oceanus job_copy + +Example Usage + +```hcl +resource "tencentcloud_oceanus_job_copy" "example" { + source_id = "cql-0nob2hx8" + target_cluster_id = "cluster-1kcd524h" + source_name = "keep_jar" + target_name = "tf_copy_example" + target_folder_id = "folder-7ctl246z" + job_type = 2 + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_resource.md b/tencentcloud/oceanus/resource_tc_oceanus_resource.md new file mode 100644 index 0000000000..18212fa2c3 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_resource.md @@ -0,0 +1,23 @@ +Provides a resource to create a oceanus resource + +Example Usage + +```hcl +resource "tencentcloud_oceanus_resource" "example" { + resource_loc { + storage_type = 1 + param { + bucket = "keep-terraform-1257058945" + path = "OceanusResource/junit-4.13.2.jar" + region = "ap-guangzhou" + } + } + + resource_type = 1 + remark = "remark." + name = "tf_example" + resource_config_remark = "config remark." + folder_id = "folder-7ctl246z" + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_resource_config.md b/tencentcloud/oceanus/resource_tc_oceanus_resource_config.md new file mode 100644 index 0000000000..53387eb2b7 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_resource_config.md @@ -0,0 +1,38 @@ +Provides a resource to create a oceanus resource_config + +Example Usage + +```hcl +resource "tencentcloud_oceanus_resource" "example" { + resource_loc { + storage_type = 1 + param { + bucket = "keep-terraform-1257058945" + path = "OceanusResource/junit-4.13.1.jar" + region = "ap-guangzhou" + } + } + + resource_type = 1 + remark = "remark." + name = "tf_example" + resource_config_remark = "config remark." + folder_id = "folder-7ctl246z" + work_space_id = "space-2idq8wbr" +} + +resource "tencentcloud_oceanus_resource_config" "example" { + resource_id = tencentcloud_oceanus_resource.example.resource_id + resource_loc { + storage_type = 1 + param { + bucket = "keep-terraform-1257058945" + path = "OceanusResource/junit-4.13.2.jar" + region = "ap-guangzhou" + } + } + + remark = "config remark." + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_run_job.md b/tencentcloud/oceanus/resource_tc_oceanus_run_job.md new file mode 100644 index 0000000000..bd970788ba --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_run_job.md @@ -0,0 +1,16 @@ +Provides a resource to create a oceanus run_job + +Example Usage + +```hcl +resource "tencentcloud_oceanus_run_job" "example" { + run_job_descriptions { + job_id = "cql-4xwincyn" + run_type = 1 + start_mode = "LATEST" + job_config_version = 10 + use_old_system_connector = false + } + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_stop_job.md b/tencentcloud/oceanus/resource_tc_oceanus_stop_job.md new file mode 100644 index 0000000000..f9269ef439 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_stop_job.md @@ -0,0 +1,13 @@ +Provides a resource to create a oceanus stop_job + +Example Usage + +```hcl +resource "tencentcloud_oceanus_stop_job" "example" { + stop_job_descriptions { + job_id = "cql-4xwincyn" + stop_type = 1 + } + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_trigger_job_savepoint.md b/tencentcloud/oceanus/resource_tc_oceanus_trigger_job_savepoint.md new file mode 100644 index 0000000000..827980cbee --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_trigger_job_savepoint.md @@ -0,0 +1,11 @@ +Provides a resource to create a oceanus trigger_job_savepoint + +Example Usage + +```hcl +resource "tencentcloud_oceanus_trigger_job_savepoint" "example" { + job_id = "cql-4xwincyn" + description = "description." + work_space_id = "space-2idq8wbr" +} +``` \ No newline at end of file diff --git a/tencentcloud/oceanus/resource_tc_oceanus_work_space.md b/tencentcloud/oceanus/resource_tc_oceanus_work_space.md new file mode 100644 index 0000000000..18d1ace6b0 --- /dev/null +++ b/tencentcloud/oceanus/resource_tc_oceanus_work_space.md @@ -0,0 +1,18 @@ +Provides a resource to create a oceanus work_space + +Example Usage + +```hcl +resource "tencentcloud_oceanus_work_space" "example" { + work_space_name = "tf_example" + description = "example description." +} +``` + +Import + +oceanus work_space can be imported using the id, e.g. + +``` +terraform import tencentcloud_oceanus_work_space.example space-0dan3yux#tf_example +``` \ No newline at end of file diff --git a/tencentcloud/pls/resource_tc_vpc_enable_end_point_connect.md b/tencentcloud/pls/resource_tc_vpc_enable_end_point_connect.md new file mode 100644 index 0000000000..8805799530 --- /dev/null +++ b/tencentcloud/pls/resource_tc_vpc_enable_end_point_connect.md @@ -0,0 +1,11 @@ +Provides a resource to create a vpc enable_end_point_connect + +Example Usage + +```hcl +resource "tencentcloud_vpc_enable_end_point_connect" "enable_end_point_connect" { + end_point_service_id = "vpcsvc-98jddhcz" + end_point_id = ["vpce-6q0ftmke"] + accept_flag = true +} +``` \ No newline at end of file diff --git a/tencentcloud/pls/resource_tc_vpc_end_point.md b/tencentcloud/pls/resource_tc_vpc_end_point.md new file mode 100644 index 0000000000..11c7de07cf --- /dev/null +++ b/tencentcloud/pls/resource_tc_vpc_end_point.md @@ -0,0 +1,21 @@ +Provides a resource to create a vpc end_point + +Example Usage + +```hcl +resource "tencentcloud_vpc_end_point" "end_point" { + vpc_id = "vpc-391sv4w3" + subnet_id = "subnet-ljyn7h30" + end_point_name = "terraform-test" + end_point_service_id = "vpcsvc-69y13tdb" + end_point_vip = "10.0.2.1" +} +``` + +Import + +vpc end_point can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_end_point.end_point end_point_id +``` \ No newline at end of file diff --git a/tencentcloud/pls/resource_tc_vpc_end_point_service.md b/tencentcloud/pls/resource_tc_vpc_end_point_service.md new file mode 100644 index 0000000000..e657f58ca7 --- /dev/null +++ b/tencentcloud/pls/resource_tc_vpc_end_point_service.md @@ -0,0 +1,21 @@ +Provides a resource to create a vpc end_point_service + +Example Usage + +```hcl +resource "tencentcloud_vpc_end_point_service" "end_point_service" { + vpc_id = "vpc-391sv4w3" + end_point_service_name = "terraform-endpoint-service" + auto_accept_flag = false + service_instance_id = "lb-o5f6x7ke" + service_type = "CLB" +} +``` + +Import + +vpc end_point_service can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_end_point_service.end_point_service end_point_service_id +``` \ No newline at end of file diff --git a/tencentcloud/pls/resource_tc_vpc_end_point_service_white_list.md b/tencentcloud/pls/resource_tc_vpc_end_point_service_white_list.md new file mode 100644 index 0000000000..cf9c0c6b9e --- /dev/null +++ b/tencentcloud/pls/resource_tc_vpc_end_point_service_white_list.md @@ -0,0 +1,19 @@ +Provides a resource to create a vpc end_point_service_white_list + +Example Usage + +```hcl +resource "tencentcloud_vpc_end_point_service_white_list" "end_point_service_white_list" { + user_uin = "100020512675" + end_point_service_id = "vpcsvc-69y13tdb" + description = "terraform for test" +} +``` + +Import + +vpc end_point_service_white_list can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_end_point_service_white_list.end_point_service_white_list end_point_service_white_list_id +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_backup_download_urls.md b/tencentcloud/postgresql/data_source_tc_postgresql_backup_download_urls.md new file mode 100644 index 0000000000..2e3d2ac474 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_backup_download_urls.md @@ -0,0 +1,31 @@ +Use this data source to query detailed information of postgresql backup_download_urls + +Example Usage + +```hcl +data "tencentcloud_postgresql_log_backups" "log_backups" { + min_finish_time = "%s" + max_finish_time = "%s" + filters { + name = "db-instance-id" + values = [local.pgsql_id] + } + order_by = "StartTime" + order_by_type = "desc" + + } + +data "tencentcloud_postgresql_backup_download_urls" "backup_download_urls" { + db_instance_id = local.pgsql_id + backup_type = "LogBackup" + backup_id = data.tencentcloud_postgresql_log_backups.log_backups.log_backup_set.0.id + url_expire_time = 12 + backup_download_restriction { + restriction_type = "NONE" + vpc_restriction_effect = "ALLOW" + vpc_id_set = [local.vpc_id] + ip_restriction_effect = "ALLOW" + ip_set = ["0.0.0.0"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_base_backups.md b/tencentcloud/postgresql/data_source_tc_postgresql_base_backups.md new file mode 100644 index 0000000000..b727f179c6 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_base_backups.md @@ -0,0 +1,23 @@ +Use this data source to query detailed information of postgresql base_backups + +Example Usage + +```hcl +data "tencentcloud_postgresql_base_backups" "base_backups" { + min_finish_time = "%s" + max_finish_time = "%s" + + order_by = "StartTime" + order_by_type = "asc" +} + +data "tencentcloud_postgresql_base_backups" "base_backups" { + filters { + name = "db-instance-id" + values = [local.pgsql_id] + } + + order_by = "Size" + order_by_type = "asc" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_db_instance_classes.md b/tencentcloud/postgresql/data_source_tc_postgresql_db_instance_classes.md new file mode 100644 index 0000000000..26cabaf431 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_db_instance_classes.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of postgresql db_instance_classes + +Example Usage + +```hcl +data "tencentcloud_postgresql_db_instance_classes" "db_instance_classes" { + zone = "ap-guangzhou-7" + db_engine = "postgresql" + db_major_version = "13" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_db_instance_versions.md b/tencentcloud/postgresql/data_source_tc_postgresql_db_instance_versions.md new file mode 100644 index 0000000000..5a770126b5 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_db_instance_versions.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of postgresql db_instance_versions + +Example Usage + +```hcl +data "tencentcloud_postgresql_db_instance_versions" "db_instance_versions" {} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_default_parameters.md b/tencentcloud/postgresql/data_source_tc_postgresql_default_parameters.md new file mode 100644 index 0000000000..cf05089fd0 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_default_parameters.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of postgresql default_parameters + +Example Usage + +```hcl +data "tencentcloud_postgresql_default_parameters" "default_parameters" { + db_major_version = "13" + db_engine = "postgresql" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_instances.md b/tencentcloud/postgresql/data_source_tc_postgresql_instances.md new file mode 100644 index 0000000000..967298305d --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_instances.md @@ -0,0 +1,17 @@ +Use this data source to query postgresql instances + +Example Usage + +```hcl +data "tencentcloud_postgresql_instances" "name" { + name = "test" +} + +data "tencentcloud_postgresql_instances" "project" { + project_id = 0 +} + +data "tencentcloud_postgresql_instances" "id" { + id = "postgres-h9t4fde1" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_log_backups.md b/tencentcloud/postgresql/data_source_tc_postgresql_log_backups.md new file mode 100644 index 0000000000..51d62efc86 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_log_backups.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of postgresql log_backups + +Example Usage + +```hcl +data "tencentcloud_postgresql_log_backups" "log_backups" { + min_finish_time = "%s" + max_finish_time = "%s" + filters { + name = "db-instance-id" + values = [local.pgsql_id] + } + order_by = "StartTime" + order_by_type = "desc" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_parameter_templates.md b/tencentcloud/postgresql/data_source_tc_postgresql_parameter_templates.md new file mode 100644 index 0000000000..b0af623c3d --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_parameter_templates.md @@ -0,0 +1,18 @@ +Use this data source to query detailed information of postgresql parameter_templates + +Example Usage + +```hcl +data "tencentcloud_postgresql_parameter_templates" "parameter_templates" { + filters { + name = "TemplateName" + values = ["temp_name"] + } + filters { + name = "DBEngine" + values = ["postgresql"] + } + order_by = "CreateTime" + order_by_type = "desc" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_readonly_groups.md b/tencentcloud/postgresql/data_source_tc_postgresql_readonly_groups.md new file mode 100644 index 0000000000..27a12835ea --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_readonly_groups.md @@ -0,0 +1,27 @@ +Use this data source to query detailed information of postgresql read_only_groups + +Example Usage + +```hcl +resource "tencentcloud_postgresql_readonly_group" "group" { + master_db_instance_id = "postgres-gzg9jb2n" + name = "test-datasource" + project_id = 0 + vpc_id = "vpc-86v957zb" + subnet_id = "subnet-enm92y0m" + replay_lag_eliminate = 1 + replay_latency_eliminate = 1 + max_replay_lag = 100 + max_replay_latency = 512 + min_delay_eliminate_reserve = 1 +} + +data "tencentcloud_postgresql_readonly_groups" "read_only_groups" { + filters { + name = "db-master-instance-id" + values = [tencentcloud_postgresql_readonly_group.group.master_db_instance_id] + } + order_by = "CreateTime" + order_by_type = "asc" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_recovery_time.md b/tencentcloud/postgresql/data_source_tc_postgresql_recovery_time.md new file mode 100644 index 0000000000..0117016c11 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_recovery_time.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of postgresql recovery_time + +Example Usage + +```hcl +data "tencentcloud_postgresql_recovery_time" "recovery_time" { + db_instance_id = local.pgsql_id +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_regions.md b/tencentcloud/postgresql/data_source_tc_postgresql_regions.md new file mode 100644 index 0000000000..6af2671986 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_regions.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of postgresql regions + +Example Usage + +```hcl +data "tencentcloud_postgresql_regions" "regions" {} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_specinfos.md b/tencentcloud/postgresql/data_source_tc_postgresql_specinfos.md new file mode 100644 index 0000000000..24c401842a --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_specinfos.md @@ -0,0 +1,9 @@ +Use this data source to get the available product configs of the postgresql instance. + +Example Usage + +```hcl +data "tencentcloud_postgresql_specinfos" "foo" { + availability_zone = "ap-shanghai-2" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_xlogs.md b/tencentcloud/postgresql/data_source_tc_postgresql_xlogs.md new file mode 100644 index 0000000000..59e1f4be05 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_xlogs.md @@ -0,0 +1,11 @@ +Provide a datasource to query PostgreSQL Xlogs. + +Example Usage + +```hcl +data "tencentcloud_postgresql_xlogs" "foo" { + instance_id = "postgres-xxxxxxxx" + start_time = "2022-01-01 00:00:00" + end_time = "2022-01-07 01:02:03" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/data_source_tc_postgresql_zones.md b/tencentcloud/postgresql/data_source_tc_postgresql_zones.md new file mode 100644 index 0000000000..213b4cccc4 --- /dev/null +++ b/tencentcloud/postgresql/data_source_tc_postgresql_zones.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of postgresql zones + +Example Usage + +```hcl +data "tencentcloud_postgresql_zones" "zones" {} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_backup_download_restriction_config.md b/tencentcloud/postgresql/resource_tc_postgresql_backup_download_restriction_config.md new file mode 100644 index 0000000000..c294e47986 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_backup_download_restriction_config.md @@ -0,0 +1,41 @@ +Provides a resource to create a postgresql backup_download_restriction_config + +Example Usage + +Unlimit the restriction of the backup file download. +```hcl +resource "tencentcloud_postgresql_backup_download_restriction_config" "backup_download_restriction_config" { + restriction_type = "NONE" +} +``` + +Set the download only to allow the intranet downloads. +```hcl +resource "tencentcloud_postgresql_backup_download_restriction_config" "backup_download_restriction_config" { + restriction_type = "INTRANET" +} +``` + +Restrict the backup file download by customizing. +```hcl +resource "tencentcloud_vpc" "pg_vpc" { + name = var.instance_name + cidr_block = var.vpc_cidr +} + +resource "tencentcloud_postgresql_backup_download_restriction_config" "backup_download_restriction_config" { + restriction_type = "CUSTOMIZE" + vpc_restriction_effect = "DENY" + vpc_id_set = [tencentcloud_vpc.pg_vpc2.id] + ip_restriction_effect = "DENY" + ip_set = ["192.168.0.0"] +} +``` + +Import + +postgresql backup_download_restriction_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_postgresql_backup_download_restriction_config.backup_download_restriction_config backup_download_restriction_config_id +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_backup_plan_config.md b/tencentcloud/postgresql/resource_tc_postgresql_backup_plan_config.md new file mode 100644 index 0000000000..fe48655d02 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_backup_plan_config.md @@ -0,0 +1,21 @@ +Provides a resource to create a postgres backup_plan_config + +Example Usage + +```hcl +resource "tencentcloud_postgresql_backup_plan_config" "backup_plan_config" { + db_instance_id = local.pgsql_id + min_backup_start_time = "01:00:00" + max_backup_start_time = "02:00:00" + base_backup_retention_period = 7 + backup_period = ["monday","wednesday","friday"] +} +``` + +Import + +postgres backup_plan_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_postgresql_backup_plan_config.backup_plan_config backup_plan_config_id +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_base_backup.md b/tencentcloud/postgresql/resource_tc_postgresql_base_backup.md new file mode 100644 index 0000000000..fc57f5e464 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_base_backup.md @@ -0,0 +1,12 @@ +Provides a resource to create a postgresql base_backup + +Example Usage + +```hcl +resource "tencentcloud_postgresql_base_backup" "base_backup" { + db_instance_id = local.pgsql_id + tags = { + "createdBy" = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_delete_log_backup_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_delete_log_backup_operation.md new file mode 100644 index 0000000000..88071cbc14 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_delete_log_backup_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a postgresql delete_log_backup_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_delete_log_backup_operation" "delete_log_backup_operation" { + db_instance_id = "local.pg_id" + log_backup_id = "local.pg_log_backup_id" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_disisolate_db_instance_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_disisolate_db_instance_operation.md new file mode 100644 index 0000000000..b1a47bffa8 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_disisolate_db_instance_operation.md @@ -0,0 +1,11 @@ +Provides a resource to create a postgresql disisolate_db_instance_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_disisolate_db_instance_operation" "disisolate_db_instance_operation" { + db_instance_id_set = [local.pgsql_id] + period = 1 + auto_voucher = false +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_instance.md b/tencentcloud/postgresql/resource_tc_postgresql_instance.md new file mode 100644 index 0000000000..cfab83836b --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_instance.md @@ -0,0 +1,173 @@ +Use this resource to create postgresql instance. + +-> **Note:** To update the charge type, please update the `charge_type` and specify the `period` for the charging period. It only supports updating from `POSTPAID_BY_HOUR` to `PREPAID`, and the `period` field only valid in that upgrading case. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-1" +} + +# create vpc +resource "tencentcloud_vpc" "vpc" { + name = "guagua_vpc_instance_test" + cidr_block = "10.0.0.0/16" +} + +# create vpc subnet +resource "tencentcloud_subnet" "subnet" { + availability_zone = var.availability_zone + name = "guagua_vpc_subnet_test" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.20.0/28" + is_multicast = false +} + +# create postgresql +resource "tencentcloud_postgresql_instance" "foo" { + name = "example" + availability_zone = var.availability_zone + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + engine_version = "10.4" + root_user = "root123" + root_password = "Root123$" + charset = "UTF8" + project_id = 0 + memory = 2 + storage = 10 + + tags = { + test = "tf" + } +} +``` + +Create a multi available zone bucket + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-6" +} + +variable "standby_availability_zone" { + default = "ap-guangzhou-7" +} + +# create vpc +resource "tencentcloud_vpc" "vpc" { + name = "guagua_vpc_instance_test" + cidr_block = "10.0.0.0/16" +} + +# create vpc subnet +resource "tencentcloud_subnet" "subnet" { + availability_zone = var.availability_zone + name = "guagua_vpc_subnet_test" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.20.0/28" + is_multicast = false +} + +# create postgresql +resource "tencentcloud_postgresql_instance" "foo" { + name = "example" + availability_zone = var.availability_zone + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + engine_version = "10.4" + root_user = "root123" + root_password = "Root123$" + charset = "UTF8" + project_id = 0 + memory = 2 + storage = 10 + + db_node_set { + role = "Primary" + zone = var.availability_zone + } + db_node_set { + zone = var.standby_availability_zone + } + + tags = { + test = "tf" + } +} +``` + +create pgsql with kms key +``` +resource "tencentcloud_postgresql_instance" "pg" { + name = "tf_postsql_instance" + availability_zone = "ap-guangzhou-6" + charge_type = "POSTPAID_BY_HOUR" + vpc_id = "vpc-86v957zb" + subnet_id = "subnet-enm92y0m" + engine_version = "11.12" + # db_major_vesion = "11" + db_kernel_version = "v11.12_r1.3" + need_support_tde = 1 + kms_key_id = "788c606a-c7b7-11ec-82d1-5254001e5c4e" + kms_region = "ap-guangzhou" + root_password = "xxxxxxxxxx" + charset = "LATIN1" + project_id = 0 + memory = 4 + storage = 100 + + backup_plan { + min_backup_start_time = "00:10:11" + max_backup_start_time = "01:10:11" + base_backup_retention_period = 7 + backup_period = ["tuesday", "wednesday"] + } + + tags = { + tf = "test" + } +} +``` + +upgrade kernel version +``` +resource "tencentcloud_postgresql_instance" "test" { + name = "tf_postsql_instance_update" + availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[5].name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + engine_version = "13.3" + root_password = "*" + charset = "LATIN1" + project_id = 0 + public_access_switch = false + security_groups = [local.sg_id] + memory = 4 + storage = 250 + backup_plan { + min_backup_start_time = "01:10:11" + max_backup_start_time = "02:10:11" + base_backup_retention_period = 5 + backup_period = ["monday", "thursday", "sunday"] + } + + db_kernel_version = "v13.3_r1.4" # eg:from v13.3_r1.1 to v13.3_r1.4 + + tags = { + tf = "teest" + } +} +``` + +Import + +postgresql instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_postgresql_instance.foo postgres-cda1iex1 +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_isolate_db_instance_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_isolate_db_instance_operation.md new file mode 100644 index 0000000000..03bbd0ede8 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_isolate_db_instance_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a postgresql isolate_db_instance_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_isolate_db_instance_operation" "isolate_db_instance_operation" { + db_instance_id_set = [local.pgsql_id] +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_modify_account_remark_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_modify_account_remark_operation.md new file mode 100644 index 0000000000..b5d30be486 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_modify_account_remark_operation.md @@ -0,0 +1,11 @@ +Provides a resource to create a postgresql modify_account_remark_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_modify_account_remark_operation" "modify_account_remark_operation" { + db_instance_id = local.pgsql_id + user_name = "root" + remark = "hello_world" +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_modify_switch_time_period_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_modify_switch_time_period_operation.md new file mode 100644 index 0000000000..01f2b818f9 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_modify_switch_time_period_operation.md @@ -0,0 +1,10 @@ +Provides a resource to create a postgresql modify_switch_time_period_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_modify_switch_time_period_operation" "modify_switch_time_period_operation" { + db_instance_id = local.pgsql_id + switch_tag = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_parameter_template.md b/tencentcloud/postgresql/resource_tc_postgresql_parameter_template.md new file mode 100644 index 0000000000..284abcb80b --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_parameter_template.md @@ -0,0 +1,33 @@ +Provides a resource to create a postgresql parameter_template + +Example Usage + +```hcl +resource "tencentcloud_postgresql_parameter_template" "parameter_template" { + template_name = "your_temp_name" + db_major_version = "13" + db_engine = "postgresql" + template_description = "For_tf_test" + + modify_param_entry_set { + name = "timezone" + expected_value = "UTC" + } + modify_param_entry_set { + name = "lock_timeout" + expected_value = "123" + } + + delete_param_set = ["lc_time"] +} +``` + +Import + +postgresql parameter_template can be imported using the id, e.g. + +Notice: `modify_param_entry_set` and `delete_param_set` do not support import. + +``` +terraform import tencentcloud_postgresql_parameter_template.parameter_template parameter_template_id +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_readonly_attachment.md b/tencentcloud/postgresql/resource_tc_postgresql_readonly_attachment.md new file mode 100644 index 0000000000..951aeab358 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_readonly_attachment.md @@ -0,0 +1,10 @@ +Use this resource to create postgresql readonly attachment. + +Example Usage + +```hcl +resource "tencentcloud_postgresql_readonly_attachment" "attach" { + db_instance_id = tencentcloud_postgresql_readonly_instance.foo.id + read_only_group_id = tencentcloud_postgresql_readonly_group.group.id +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_readonly_group.md b/tencentcloud/postgresql/resource_tc_postgresql_readonly_group.md new file mode 100644 index 0000000000..13045aed2a --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_readonly_group.md @@ -0,0 +1,19 @@ +Use this resource to create postgresql readonly group. + +Example Usage + +```hcl +resource "tencentcloud_postgresql_readonly_group" "group" { + master_db_instance_id = "postgres-gzg9jb2n" + name = "world" + project_id = 0 + vpc_id = "vpc-86v957zb" + subnet_id = "subnet-enm92y0m" + replay_lag_eliminate = 1 + replay_latency_eliminate = 1 + max_replay_lag = 100 + max_replay_latency = 512 + min_delay_eliminate_reserve = 1 +# security_groups_ids = [] +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_readonly_instance.md b/tencentcloud/postgresql/resource_tc_postgresql_readonly_instance.md new file mode 100644 index 0000000000..8f9b396dba --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_readonly_instance.md @@ -0,0 +1,44 @@ +Use this resource to create postgresql readonly instance. + +Example Usage + +```hcl +resource "tencentcloud_postgresql_readonly_instance" "foo" { + auto_renew_flag = 0 + db_version = "10.4" + instance_charge_type = "POSTPAID_BY_HOUR" + master_db_instance_id = "postgres-j4pm65id" + memory = 4 + name = "hello" + need_support_ipv6 = 0 + project_id = 0 + security_groups_ids = [ + "sg-fefj5n6r", + ] + storage = 250 + subnet_id = "subnet-enm92y0m" + vpc_id = "vpc-86v957zb" + read_only_group_id = tencentcloud_postgresql_readonly_group.new_ro_group.id +} + + resource "tencentcloud_postgresql_readonly_group" "new_ro_group" { + master_db_instance_id = local.pgsql_id + name = "tf_ro_group_test_new" + project_id = 0 + vpc_id = local.vpc_id + subnet_id = local.subnet_id + replay_lag_eliminate = 1 + replay_latency_eliminate = 1 + max_replay_lag = 100 + max_replay_latency = 512 + min_delay_eliminate_reserve = 1 + } +``` + +Import + +postgresql readonly instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_postgresql_readonly_instance.foo instance_id +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_rebalance_readonly_group_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_rebalance_readonly_group_operation.md new file mode 100644 index 0000000000..5627341e36 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_rebalance_readonly_group_operation.md @@ -0,0 +1,22 @@ +Provides a resource to create a postgresql rebalance_readonly_group_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_readonly_group" "group_rebalance" { + master_db_instance_id = local.pgsql_id + name = "test-pg-readonly-group-rebalance" + project_id = 0 + vpc_id = "vpc-86v957zb" + subnet_id = "subnet-enm92y0m" + replay_lag_eliminate = 1 + replay_latency_eliminate = 1 + max_replay_lag = 100 + max_replay_latency = 512 + min_delay_eliminate_reserve = 1 +} + +resource "tencentcloud_postgresql_rebalance_readonly_group_operation" "rebalance_readonly_group_operation" { + read_only_group_id = tencentcloud_postgresql_readonly_group.group_rebalance.id +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_renew_db_instance_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_renew_db_instance_operation.md new file mode 100644 index 0000000000..2196d985ff --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_renew_db_instance_operation.md @@ -0,0 +1,11 @@ +Provides a resource to create a postgresql renew_db_instance_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_renew_db_instance_operation" "renew_db_instance_operation" { + db_instance_id = tencentcloud_postgresql_instance.oper_test_PREPAID.id + period = 1 + auto_voucher = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_restart_db_instance_operation.md b/tencentcloud/postgresql/resource_tc_postgresql_restart_db_instance_operation.md new file mode 100644 index 0000000000..a38955983a --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_restart_db_instance_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a postgresql restart_db_instance_operation + +Example Usage + +```hcl +resource "tencentcloud_postgresql_restart_db_instance_operation" "restart_db_instance_operation" { + db_instance_id = local.pgsql_id +} +``` \ No newline at end of file diff --git a/tencentcloud/postgresql/resource_tc_postgresql_security_group_config.md b/tencentcloud/postgresql/resource_tc_postgresql_security_group_config.md new file mode 100644 index 0000000000..77afd9dd63 --- /dev/null +++ b/tencentcloud/postgresql/resource_tc_postgresql_security_group_config.md @@ -0,0 +1,32 @@ +Provides a resource to create a postgresql security_group_config + +Example Usage + +Set security group for the sepcified postgres instance +```hcl +resource "tencentcloud_postgresql_security_group_config" "security_group_config" { + security_group_id_set = [local.sg_id, local.sg_id2] + db_instance_id = local.pgsql_id +} +``` + +Set security group for the specified readonly group +```hcl +resource "tencentcloud_postgresql_readonly_group" "group" { + master_db_instance_id = local.pgsql_id + name = "tf_test_ro_sg" + project_id = 0 + subnet_id = local.subnet_id + vpc_id = local.vpc_id + replay_lag_eliminate = 1 + replay_latency_eliminate = 1 + max_replay_lag = 100 + max_replay_latency = 512 + min_delay_eliminate_reserve = 1 + } + +resource "tencentcloud_postgresql_security_group_config" "security_group_config" { + security_group_id_set = [local.sg_id, local.sg_id2] + read_only_group_id = tencentcloud_postgresql_readonly_group.group.id +} +``` \ No newline at end of file diff --git a/tencentcloud/privatedns/data_source_tc_private_dns_records.md b/tencentcloud/privatedns/data_source_tc_private_dns_records.md new file mode 100644 index 0000000000..6e5818525d --- /dev/null +++ b/tencentcloud/privatedns/data_source_tc_private_dns_records.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of private dns records + +Example Usage + +```hcl +data "tencentcloud_private_dns_records" "private_dns_record" { + zone_id = "zone-xxxxxx" + filters { + name = "Value" + values = ["8.8.8.8"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/privatedns/resource_tc_private_dns_record.md b/tencentcloud/privatedns/resource_tc_private_dns_record.md new file mode 100644 index 0000000000..8d354a0ef5 --- /dev/null +++ b/tencentcloud/privatedns/resource_tc_private_dns_record.md @@ -0,0 +1,23 @@ +Provide a resource to create a Private Dns Record. + +Example Usage + +```hcl +resource "tencentcloud_private_dns_record" "foo" { + zone_id = "zone-rqndjnki" + record_type = "A" + record_value = "192.168.1.2" + sub_domain = "www" + ttl = 300 + weight = 1 + mx = 0 +} +``` + +Import + +Private Dns Record can be imported, e.g. + +``` +$ terraform import tencentcloud_private_dns_zone.foo zone_id#record_id +``` \ No newline at end of file diff --git a/tencentcloud/privatedns/resource_tc_private_dns_zone.md b/tencentcloud/privatedns/resource_tc_private_dns_zone.md new file mode 100644 index 0000000000..219167f832 --- /dev/null +++ b/tencentcloud/privatedns/resource_tc_private_dns_zone.md @@ -0,0 +1,65 @@ +Provide a resource to create a Private Dns Zone. + +Example Usage + +Create a basic Private Dns Zone + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_private_dns_zone" "example" { + domain = "domain.com" + remark = "remark." + + vpc_set { + region = "ap-guangzhou" + uniq_vpc_id = tencentcloud_vpc.vpc.id + } + + dns_forward_status = "DISABLED" + cname_speedup_status = "ENABLED" + + tags = { + createdBy : "terraform" + } +} +``` + +Create a Private Dns Zone domain and bind associated accounts'VPC + +```hcl +resource "tencentcloud_private_dns_zone" "example" { + domain = "domain.com" + remark = "remark." + + vpc_set { + region = "ap-guangzhou" + uniq_vpc_id = tencentcloud_vpc.vpc.id + } + + account_vpc_set { + uin = "123456789" + uniq_vpc_id = "vpc-adsebmya" + region = "ap-guangzhou" + vpc_name = "vpc-name" + } + + dns_forward_status = "DISABLED" + cname_speedup_status = "ENABLED" + + tags = { + createdBy : "terraform" + } +} +``` + +Import + +Private Dns Zone can be imported, e.g. + +``` +$ terraform import tencentcloud_private_dns_zone.foo zone_id +``` \ No newline at end of file diff --git a/tencentcloud/privatedns/resource_tc_private_dns_zone_vpc_attachment.md b/tencentcloud/privatedns/resource_tc_private_dns_zone_vpc_attachment.md new file mode 100644 index 0000000000..8fc3ffa86b --- /dev/null +++ b/tencentcloud/privatedns/resource_tc_private_dns_zone_vpc_attachment.md @@ -0,0 +1,57 @@ +Provides a resource to create a PrivateDns zone_vpc_attachment + +~> **NOTE:** If you need to bind account A to account B's VPC resources, you need to first grant role authorization to account A. + +Example Usage + +Append VPC associated with private dns zone + +```hcl +resource "tencentcloud_private_dns_zone" "example" { + domain = "domain.com" + remark = "remark." + + dns_forward_status = "DISABLED" + cname_speedup_status = "ENABLED" + + tags = { + createdBy : "terraform" + } +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_private_dns_zone_vpc_attachment" "example" { + zone_id = tencentcloud_private_dns_zone.example.id + + vpc_set { + uniq_vpc_id = tencentcloud_vpc.vpc.id + region = "ap-guangzhou" + } +} +``` + +Add VPC information for associated accounts in the private dns zone + +```hcl +resource "tencentcloud_private_dns_zone_vpc_attachment" "example" { + zone_id = tencentcloud_private_dns_zone.example.id + + account_vpc_set { + uniq_vpc_id = "vpc-82znjzn3" + region = "ap-guangzhou" + uin = "100017155920" + } +} +``` + +Import + +PrivateDns zone_vpc_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_private_dns_zone_vpc_attachment.example zone-6t11lof0#vpc-jdx11z0t +``` \ No newline at end of file diff --git a/tencentcloud/project/data_source_tc_projects.md b/tencentcloud/project/data_source_tc_projects.md new file mode 100644 index 0000000000..6f42bece6c --- /dev/null +++ b/tencentcloud/project/data_source_tc_projects.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tag project + +Example Usage + +```hcl +data "tencentcloud_projects" "project" { + all_list = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/project/resource_tc_project.md b/tencentcloud/project/resource_tc_project.md new file mode 100644 index 0000000000..7210a3e5e2 --- /dev/null +++ b/tencentcloud/project/resource_tc_project.md @@ -0,0 +1,20 @@ +Provides a resource to create a project + +~> **NOTE:** Project can not be destroyed. If run `terraform destroy`, project will be set invisible. + +Example Usage + +```hcl +resource "tencentcloud_project" "project" { + project_name = "terraform-test" + info = "for terraform test" +} +``` + +Import + +tag project can be imported using the id, e.g. + +``` +terraform import tencentcloud_project.project project_id +``` \ No newline at end of file diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 4184c9dbfa..9226d21f5e 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -1,2098 +1,3 @@ -/* -The TencentCloud provider is used to interact with many resources supported by [TencentCloud](https://intl.cloud.tencent.com). -The provider needs to be configured with the proper credentials before it can be used. - -Use the navigation on the left to read about the available resources. - --> **Note:** From version 1.9.0 (June 18, 2019), the provider start to support Terraform 0.12.x. - -Example Usage - -```hcl -terraform { - required_providers { - tencentcloud = { - source = "tencentcloudstack/tencentcloud" - } - } -} - -# Configure the TencentCloud Provider -provider "tencentcloud" { - secret_id = var.secret_id - secret_key = var.secret_key - region = var.region -} - -#Configure the TencentCloud Provider with STS -provider "tencentcloud" { - secret_id = var.secret_id - secret_key = var.secret_key - region = var.region - assume_role { - role_arn = var.assume_role_arn - session_name = var.session_name - session_duration = var.session_duration - policy = var.policy - } -} -``` - -Resources List - -Provider Data Sources - tencentcloud_availability_regions - tencentcloud_availability_zones_by_product - tencentcloud_availability_zones - -Project - Data Source - tencentcloud_projects - - Resource - tencentcloud_project - -Anti-DDoS - Data Source - tencentcloud_antiddos_basic_device_status - tencentcloud_antiddos_bgp_biz_trend - tencentcloud_antiddos_list_listener - tencentcloud_antiddos_overview_attack_trend - -Anti-DDoS(DayuV2) - Data Source - tencentcloud_dayu_eip - tencentcloud_dayu_l4_rules_v2 - tencentcloud_dayu_l7_rules_v2 - tencentcloud_antiddos_pending_risk_info - tencentcloud_antiddos_overview_index - tencentcloud_antiddos_overview_ddos_trend - tencentcloud_antiddos_overview_ddos_event_list - tencentcloud_antiddos_overview_cc_trend - - Resource - tencentcloud_dayu_eip - tencentcloud_dayu_l4_rule - tencentcloud_dayu_l7_rule_v2 - tencentcloud_dayu_ddos_policy_v2 - tencentcloud_dayu_cc_policy_v2 - tencentcloud_dayu_ddos_ip_attachment_v2 - tencentcloud_antiddos_ddos_black_white_ip - tencentcloud_antiddos_ddos_geo_ip_block_config - tencentcloud_antiddos_ddos_speed_limit_config - tencentcloud_antiddos_default_alarm_threshold - tencentcloud_antiddos_scheduling_domain_user_name - tencentcloud_antiddos_ip_alarm_threshold_config - tencentcloud_antiddos_packet_filter_config - tencentcloud_antiddos_port_acl_config - tencentcloud_antiddos_cc_black_white_ip - tencentcloud_antiddos_cc_precision_policy - -Anti-DDoS(Dayu) - Data Source - tencentcloud_dayu_cc_http_policies - tencentcloud_dayu_cc_https_policies - tencentcloud_dayu_ddos_policies - tencentcloud_dayu_ddos_policy_attachments - tencentcloud_dayu_ddos_policy_cases - tencentcloud_dayu_l4_rules - tencentcloud_dayu_l7_rules - - Resource - tencentcloud_dayu_cc_http_policy - tencentcloud_dayu_cc_https_policy - tencentcloud_dayu_ddos_policy - tencentcloud_dayu_ddos_policy_attachment - tencentcloud_dayu_ddos_policy_case - tencentcloud_dayu_l4_rule - tencentcloud_dayu_l7_rule - -API GateWay - Data Source - tencentcloud_api_gateway_apis - tencentcloud_api_gateway_services - tencentcloud_api_gateway_throttling_services - tencentcloud_api_gateway_throttling_apis - tencentcloud_api_gateway_usage_plans - tencentcloud_api_gateway_ip_strategies - tencentcloud_api_gateway_customer_domains - tencentcloud_api_gateway_usage_plan_environments - tencentcloud_api_gateway_api_keys - tencentcloud_api_gateway_api_docs - tencentcloud_api_gateway_api_apps - tencentcloud_api_gateway_plugins - tencentcloud_api_gateway_upstreams - tencentcloud_api_gateway_api_usage_plans - tencentcloud_api_gateway_api_app_service - tencentcloud_api_gateway_bind_api_apps_status - tencentcloud_api_gateway_api_app_api - tencentcloud_api_gateway_api_plugins - tencentcloud_api_gateway_service_release_versions - tencentcloud_api_gateway_service_environment_list - - Resource - tencentcloud_api_gateway_api - tencentcloud_api_gateway_service - tencentcloud_api_gateway_custom_domain - tencentcloud_api_gateway_usage_plan - tencentcloud_api_gateway_usage_plan_attachment - tencentcloud_api_gateway_ip_strategy - tencentcloud_api_gateway_strategy_attachment - tencentcloud_api_gateway_api_key - tencentcloud_api_gateway_api_key_attachment - tencentcloud_api_gateway_service_release - tencentcloud_api_gateway_plugin - tencentcloud_api_gateway_plugin_attachment - tencentcloud_api_gateway_api_doc - tencentcloud_api_gateway_api_app - tencentcloud_api_gateway_upstream - tencentcloud_api_gateway_api_app_attachment - tencentcloud_api_gateway_update_api_app_key - tencentcloud_api_gateway_import_open_api - -Cloud Audit(Audit) - Data Source - tencentcloud_audit_cos_regions - tencentcloud_audit_key_alias - tencentcloud_audits - - Resource - tencentcloud_audit - tencentcloud_audit_track - -Auto Scaling(AS) - Data Source - tencentcloud_as_scaling_configs - tencentcloud_as_scaling_groups - tencentcloud_as_scaling_policies - tencentcloud_as_instances - tencentcloud_as_advices - tencentcloud_as_limits - tencentcloud_as_last_activity - - Resource - tencentcloud_as_scaling_config - tencentcloud_as_scaling_group - tencentcloud_as_scaling_group_status - tencentcloud_as_attachment - tencentcloud_as_scaling_policy - tencentcloud_as_schedule - tencentcloud_as_lifecycle_hook - tencentcloud_as_notification - tencentcloud_as_remove_instances - tencentcloud_as_protect_instances - tencentcloud_as_start_instances - tencentcloud_as_stop_instances - tencentcloud_as_scale_in_instances - tencentcloud_as_scale_out_instances - tencentcloud_as_execute_scaling_policy - tencentcloud_as_complete_lifecycle - -Content Delivery Network(CDN) - Data Source - tencentcloud_cdn_domains - tencentcloud_cdn_domain_verifier - - Resource - tencentcloud_cdn_domain - tencentcloud_cdn_url_push - tencentcloud_cdn_url_purge - -Cloud Kafka(ckafka) - Data Source - tencentcloud_ckafka_users - tencentcloud_ckafka_acls - tencentcloud_ckafka_topics - tencentcloud_ckafka_instances - tencentcloud_ckafka_connect_resource - tencentcloud_ckafka_region - tencentcloud_ckafka_datahub_topic - tencentcloud_ckafka_datahub_group_offsets - tencentcloud_ckafka_datahub_task - tencentcloud_ckafka_group - tencentcloud_ckafka_group_offsets - tencentcloud_ckafka_group_info - tencentcloud_ckafka_task_status - tencentcloud_ckafka_topic_flow_ranking - tencentcloud_ckafka_topic_produce_connection - tencentcloud_ckafka_topic_subscribe_group - tencentcloud_ckafka_topic_sync_replica - tencentcloud_ckafka_zone - - Resource - tencentcloud_ckafka_instance - tencentcloud_ckafka_user - tencentcloud_ckafka_acl - tencentcloud_ckafka_topic - tencentcloud_ckafka_datahub_topic - tencentcloud_ckafka_connect_resource - tencentcloud_ckafka_renew_instance - tencentcloud_ckafka_acl_rule - tencentcloud_ckafka_consumer_group - tencentcloud_ckafka_consumer_group_modify_offset - tencentcloud_ckafka_datahub_task - tencentcloud_ckafka_route - -Cloud Access Management(CAM) - Data Source - tencentcloud_cam_group_memberships - tencentcloud_cam_group_policy_attachments - tencentcloud_cam_groups - tencentcloud_cam_policies - tencentcloud_cam_role_policy_attachments - tencentcloud_cam_roles - tencentcloud_cam_saml_providers - tencentcloud_cam_user_policy_attachments - tencentcloud_cam_users - tencentcloud_user_info - tencentcloud_cam_list_entities_for_policy - tencentcloud_cam_secret_last_used_time - tencentcloud_cam_account_summary - tencentcloud_cam_policy_granting_service_access - tencentcloud_cam_oidc_config - tencentcloud_cam_group_user_account - - Resource - tencentcloud_cam_role - tencentcloud_cam_role_by_name - tencentcloud_cam_role_policy_attachment - tencentcloud_cam_role_policy_attachment_by_name - tencentcloud_cam_policy - tencentcloud_cam_policy_by_name - tencentcloud_cam_user - tencentcloud_cam_user_policy_attachment - tencentcloud_cam_group - tencentcloud_cam_group_policy_attachment - tencentcloud_cam_group_membership - tencentcloud_cam_saml_provider - tencentcloud_cam_oidc_sso - tencentcloud_cam_role_sso - tencentcloud_cam_service_linked_role - tencentcloud_cam_mfa_flag - tencentcloud_cam_access_key - tencentcloud_cam_user_saml_config - tencentcloud_cam_tag_role_attachment - tencentcloud_cam_policy_version - tencentcloud_cam_set_policy_version_config - tencentcloud_cam_user_permission_boundary_attachment - tencentcloud_cam_role_permission_boundary_attachment - -Customer Identity and Access Management(CIAM) - Resource - tencentcloud_ciam_user_store - tencentcloud_ciam_user_group - -Cloud Block Storage(CBS) - Data Source - tencentcloud_cbs_snapshots - tencentcloud_cbs_storages - tencentcloud_cbs_storages_set - tencentcloud_cbs_snapshot_policies - - Resource - tencentcloud_cbs_storage - tencentcloud_cbs_storage_set - tencentcloud_cbs_storage_attachment - tencentcloud_cbs_storage_set_attachment - tencentcloud_cbs_snapshot - tencentcloud_cbs_snapshot_policy - tencentcloud_cbs_snapshot_policy_attachment - tencentcloud_cbs_snapshot_share_permission - tencentcloud_cbs_disk_backup - tencentcloud_cbs_disk_backup_rollback_operation - -Cloud Connect Network(CCN) - Data Source - tencentcloud_ccn_bandwidth_limits - tencentcloud_ccn_instances - tencentcloud_ccn_cross_border_compliance - tencentcloud_ccn_tenant_instances - tencentcloud_ccn_cross_border_flow_monitor - tencentcloud_ccn_cross_border_region_bandwidth_limits - - Resource - tencentcloud_ccn - tencentcloud_ccn_attachment - tencentcloud_ccn_bandwidth_limit - tencentcloud_ccn_routes - tencentcloud_ccn_instances_accept_attach - tencentcloud_ccn_instances_reject_attach - tencentcloud_ccn_instances_reset_attach - -CVM Dedicated Host(CDH) - Data Source - tencentcloud_cdh_instances - - Resource - tencentcloud_cdh_instance - -Cloud File Storage(CFS) - Data Source - tencentcloud_cfs_access_groups - tencentcloud_cfs_access_rules - tencentcloud_cfs_file_systems - tencentcloud_cfs_mount_targets - tencentcloud_cfs_file_system_clients - tencentcloud_cfs_available_zone - - Resource - tencentcloud_cfs_file_system - tencentcloud_cfs_access_group - tencentcloud_cfs_access_rule - tencentcloud_cfs_auto_snapshot_policy - tencentcloud_cfs_auto_snapshot_policy_attachment - tencentcloud_cfs_snapshot - tencentcloud_cfs_sign_up_cfs_service - -Container Cluster - Data Source - tencentcloud_container_cluster_instances - tencentcloud_container_clusters - - Resource - tencentcloud_container_cluster - tencentcloud_container_cluster_instance - -Cloud Load Balancer(CLB) - Data Source - tencentcloud_clb_attachments - tencentcloud_clb_instances - tencentcloud_clb_listener_rules - tencentcloud_clb_listeners - tencentcloud_clb_redirections - tencentcloud_clb_target_groups - tencentcloud_clb_cluster_resources - tencentcloud_clb_cross_targets - tencentcloud_clb_exclusive_clusters - tencentcloud_clb_idle_instances - tencentcloud_clb_listeners_by_targets - tencentcloud_clb_instance_by_cert_id - tencentcloud_clb_instance_traffic - tencentcloud_clb_instance_detail - tencentcloud_clb_resources - tencentcloud_clb_target_group_list - tencentcloud_clb_target_health - - Resource - tencentcloud_clb_instance - tencentcloud_clb_listener - tencentcloud_clb_listener_rule - tencentcloud_clb_attachment - tencentcloud_clb_redirection - tencentcloud_lb - tencentcloud_alb_server_attachment - tencentcloud_clb_target_group - tencentcloud_clb_target_group_instance_attachment - tencentcloud_clb_target_group_attachment - tencentcloud_clb_log_set - tencentcloud_clb_log_topic - tencentcloud_clb_customized_config - tencentcloud_clb_snat_ip - tencentcloud_clb_function_targets_attachment - tencentcloud_clb_instance_sla_config - tencentcloud_clb_instance_mix_ip_target_config - tencentcloud_clb_replace_cert_for_lbs - tencentcloud_clb_security_group_attachment - -Cloud Object Storage(COS) - Data Source - tencentcloud_cos_bucket_object - tencentcloud_cos_buckets - tencentcloud_cos_batchs - tencentcloud_cos_bucket_inventorys - tencentcloud_cos_bucket_multipart_uploads - - Resource - tencentcloud_cos_bucket - tencentcloud_cos_bucket_object - tencentcloud_cos_bucket_policy - tencentcloud_cos_bucket_referer - tencentcloud_cos_bucket_version - tencentcloud_cos_bucket_domain_certificate_attachment - tencentcloud_cos_bucket_inventory - tencentcloud_cos_batch - tencentcloud_cos_object_abort_multipart_upload_operation - tencentcloud_cos_object_copy_operation - tencentcloud_cos_object_restore_operation - tencentcloud_cos_bucket_generate_inventory_immediately_operation - tencentcloud_cos_object_download_operation - -Cloud Virtual Machine(CVM) - Data Source - tencentcloud_image - tencentcloud_images - tencentcloud_instance_types - tencentcloud_instances - tencentcloud_instances_set - tencentcloud_key_pairs - tencentcloud_eip - tencentcloud_eips - tencentcloud_eip_address_quota - tencentcloud_eip_network_account_type - tencentcloud_placement_groups - tencentcloud_reserved_instance_configs - tencentcloud_reserved_instances - tencentcloud_cvm_instances_modification - tencentcloud_cvm_instance_vnc_url - tencentcloud_cvm_disaster_recover_group_quota - tencentcloud_cvm_chc_hosts - tencentcloud_cvm_chc_denied_actions - tencentcloud_cvm_image_quota - tencentcloud_cvm_image_share_permission - tencentcloud_cvm_import_image_os - - Resource - tencentcloud_instance - tencentcloud_instance_set - tencentcloud_eip - tencentcloud_eip_association - tencentcloud_eip_address_transform - tencentcloud_eip_public_address_adjust - tencentcloud_eip_normal_address_return - tencentcloud_key_pair - tencentcloud_placement_group - tencentcloud_reserved_instance - tencentcloud_image - tencentcloud_cvm_hpc_cluster - tencentcloud_cvm_launch_template - tencentcloud_cvm_launch_template_version - tencentcloud_cvm_launch_template_default_version - tencentcloud_cvm_security_group_attachment - tencentcloud_cvm_reboot_instance - tencentcloud_cvm_chc_config - tencentcloud_cvm_renew_instance - tencentcloud_cvm_sync_image - tencentcloud_cvm_export_images - tencentcloud_cvm_image_share_permission - -TDSQL-C MySQL(CynosDB) - Data Source - tencentcloud_cynosdb_clusters - tencentcloud_cynosdb_instances - tencentcloud_cynosdb_zone_config - tencentcloud_cynosdb_accounts - tencentcloud_cynosdb_cluster_instance_groups - tencentcloud_cynosdb_cluster_params - tencentcloud_cynosdb_param_templates - tencentcloud_cynosdb_audit_logs - tencentcloud_cynosdb_binlog_download_url - tencentcloud_cynosdb_cluster_detail_databases - tencentcloud_cynosdb_cluster_param_logs - tencentcloud_cynosdb_cluster - tencentcloud_cynosdb_describe_instance_slow_queries - tencentcloud_cynosdb_describe_instance_error_logs - tencentcloud_cynosdb_account_all_grant_privileges - tencentcloud_cynosdb_resource_package_list - tencentcloud_cynosdb_project_security_groups - tencentcloud_cynosdb_resource_package_sale_specs - tencentcloud_cynosdb_rollback_time_range - tencentcloud_cynosdb_zone - tencentcloud_cynosdb_instance_slow_queries - tencentcloud_cynosdb_proxy_node - tencentcloud_cynosdb_proxy_version - - Resource - tencentcloud_cynosdb_cluster_resource_packages_attachment - tencentcloud_cynosdb_cluster - tencentcloud_cynosdb_readonly_instance - tencentcloud_cynosdb_security_group - tencentcloud_cynosdb_audit_log_file - tencentcloud_cynosdb_cluster_password_complexity - tencentcloud_cynosdb_export_instance_error_logs - tencentcloud_cynosdb_export_instance_slow_queries - tencentcloud_cynosdb_account_privileges - tencentcloud_cynosdb_account - tencentcloud_cynosdb_binlog_save_days - tencentcloud_cynosdb_cluster_databases - tencentcloud_cynosdb_instance_param - tencentcloud_cynosdb_isolate_instance - tencentcloud_cynosdb_param_template - tencentcloud_cynosdb_restart_instance - tencentcloud_cynosdb_roll_back_cluster - tencentcloud_cynosdb_wan - tencentcloud_cynosdb_proxy - tencentcloud_cynosdb_reload_proxy_node - tencentcloud_cynosdb_cluster_slave_zone - tencentcloud_cynosdb_read_only_instance_exclusive_access - tencentcloud_cynosdb_proxy_end_point - tencentcloud_cynosdb_upgrade_proxy_version - -Direct Connect(DC) - Data Source - tencentcloud_dc_instances - tencentcloud_dc_access_points - tencentcloud_dcx_instances - tencentcloud_dc_internet_address_quota - tencentcloud_dc_internet_address_statistics - tencentcloud_dc_public_direct_connect_tunnel_routes - - Resource - tencentcloud_dc_instance - tencentcloud_dcx - tencentcloud_dcx_extra_config - tencentcloud_dc_share_dcx_config - tencentcloud_dc_internet_address - tencentcloud_dc_internet_address_config - -Direct Connect Gateway(DCG) - Data Source - tencentcloud_dc_gateway_ccn_routes - tencentcloud_dc_gateway_instances - - Resource - tencentcloud_dc_gateway - tencentcloud_dc_gateway_ccn_route - tencentcloud_dc_gateway_attachment - -Domain - Data Source - tencentcloud_domains - -Elasticsearch Service(ES) - Data Source - tencentcloud_elasticsearch_instances - tencentcloud_elasticsearch_instance_logs - tencentcloud_elasticsearch_instance_operations - tencentcloud_elasticsearch_logstash_instance_logs - tencentcloud_elasticsearch_logstash_instance_operations - tencentcloud_elasticsearch_views - tencentcloud_elasticsearch_diagnose - tencentcloud_elasticsearch_instance_plugin_list - tencentcloud_elasticsearch_describe_index_list - - Resource - tencentcloud_elasticsearch_instance - tencentcloud_elasticsearch_security_group - tencentcloud_elasticsearch_logstash - tencentcloud_elasticsearch_logstash_pipeline - tencentcloud_elasticsearch_restart_logstash_instance_operation - tencentcloud_elasticsearch_start_logstash_pipeline_operation - tencentcloud_elasticsearch_stop_logstash_pipeline_operation - tencentcloud_elasticsearch_index - tencentcloud_elasticsearch_restart_instance_operation - tencentcloud_elasticsearch_restart_nodes_operation - tencentcloud_elasticsearch_restart_kibana_operation - tencentcloud_elasticsearch_diagnose - tencentcloud_elasticsearch_diagnose_instance - tencentcloud_elasticsearch_update_plugins_operation - -Global Application Acceleration(GAAP) - Data Source - tencentcloud_gaap_certificates - tencentcloud_gaap_http_domains - tencentcloud_gaap_http_rules - tencentcloud_gaap_layer4_listeners - tencentcloud_gaap_layer7_listeners - tencentcloud_gaap_proxies - tencentcloud_gaap_realservers - tencentcloud_gaap_security_policies - tencentcloud_gaap_security_rules - tencentcloud_gaap_domain_error_pages - tencentcloud_gaap_access_regions - tencentcloud_gaap_access_regions_by_dest_region - tencentcloud_gaap_black_header - tencentcloud_gaap_country_area_mapping - tencentcloud_gaap_custom_header - tencentcloud_gaap_dest_regions - tencentcloud_gaap_proxy_detail - tencentcloud_gaap_proxy_groups - tencentcloud_gaap_proxy_statistics - tencentcloud_gaap_proxy_group_statistics - tencentcloud_gaap_real_servers_status - tencentcloud_gaap_rule_real_servers - tencentcloud_gaap_resources_by_tag - tencentcloud_gaap_region_and_price - tencentcloud_gaap_proxy_and_statistics_listeners - tencentcloud_gaap_proxies_status - tencentcloud_gaap_listener_statistics - tencentcloud_gaap_listener_real_servers - tencentcloud_gaap_group_and_statistics_proxy - tencentcloud_gaap_domain_error_page_infos - tencentcloud_gaap_check_proxy_create - - Resource - tencentcloud_gaap_proxy - tencentcloud_gaap_realserver - tencentcloud_gaap_layer4_listener - tencentcloud_gaap_layer7_listener - tencentcloud_gaap_http_domain - tencentcloud_gaap_http_rule - tencentcloud_gaap_certificate - tencentcloud_gaap_security_policy - tencentcloud_gaap_security_rule - tencentcloud_gaap_domain_error_page - tencentcloud_gaap_global_domain_dns - tencentcloud_gaap_global_domain - -Key Management Service(KMS) - Data Source - tencentcloud_kms_keys - tencentcloud_kms_public_key - tencentcloud_kms_get_parameters_for_import - tencentcloud_kms_describe_keys - tencentcloud_kms_white_box_key_details - tencentcloud_kms_list_keys - tencentcloud_kms_white_box_decrypt_key - tencentcloud_kms_white_box_device_fingerprints - tencentcloud_kms_list_algorithms - - Resource - tencentcloud_kms_key - tencentcloud_kms_external_key - tencentcloud_kms_white_box_key - tencentcloud_kms_cloud_resource_attachment - tencentcloud_kms_overwrite_white_box_device_fingerprints - -Tencent Kubernetes Engine(TKE) - Data Source - tencentcloud_kubernetes_clusters - tencentcloud_kubernetes_cluster_levels - tencentcloud_kubernetes_charts - tencentcloud_kubernetes_cluster_common_names - tencentcloud_kubernetes_available_cluster_versions - tencentcloud_kubernetes_cluster_authentication_options - tencentcloud_kubernetes_cluster_instances - tencentcloud_kubernetes_cluster_node_pools - - Resource - tencentcloud_kubernetes_cluster - tencentcloud_kubernetes_scale_worker - tencentcloud_kubernetes_cluster_attachment - tencentcloud_kubernetes_node_pool - tencentcloud_kubernetes_serverless_node_pool - tencentcloud_kubernetes_backup_storage_location - tencentcloud_kubernetes_encryption_protection - tencentcloud_kubernetes_auth_attachment - tencentcloud_kubernetes_addon_attachment - tencentcloud_kubernetes_cluster_endpoint - -TDMQ for Pulsar(tpulsar) - Data Source - tencentcloud_tdmq_environment_attributes - tencentcloud_tdmq_publisher_summary - tencentcloud_tdmq_publishers - tencentcloud_tdmq_pro_instances - tencentcloud_tdmq_pro_instance_detail - - Resource - tencentcloud_tdmq_instance - tencentcloud_tdmq_namespace - tencentcloud_tdmq_topic - tencentcloud_tdmq_role - tencentcloud_tdmq_namespace_role_attachment - -TencentDB for MongoDB(mongodb) - Data Source - tencentcloud_mongodb_instances - tencentcloud_mongodb_zone_config - tencentcloud_mongodb_instance_backups - tencentcloud_mongodb_instance_connections - tencentcloud_mongodb_instance_current_op - tencentcloud_mongodb_instance_params - tencentcloud_mongodb_instance_slow_log - - Resource - tencentcloud_mongodb_instance - tencentcloud_mongodb_sharding_instance - tencentcloud_mongodb_standby_instance - tencentcloud_mongodb_instance_account - tencentcloud_mongodb_instance_backup - -TencentDB for MySQL(cdb) - Data Source - tencentcloud_mysql_backup_list - tencentcloud_mysql_instance - tencentcloud_mysql_parameter_list - tencentcloud_mysql_default_params - tencentcloud_mysql_zone_config - tencentcloud_mysql_backup_overview - tencentcloud_mysql_backup_summaries - tencentcloud_mysql_bin_log - tencentcloud_mysql_binlog_backup_overview - tencentcloud_mysql_clone_list - tencentcloud_mysql_data_backup_overview - tencentcloud_mysql_db_features - tencentcloud_mysql_inst_tables - tencentcloud_mysql_instance_charset - tencentcloud_mysql_instance_info - tencentcloud_mysql_instance_param_record - tencentcloud_mysql_instance_reboot_time - tencentcloud_mysql_rollback_range_time - tencentcloud_mysql_slow_log - tencentcloud_mysql_slow_log_data - tencentcloud_mysql_supported_privileges - tencentcloud_mysql_switch_record - tencentcloud_mysql_user_task - tencentcloud_mysql_databases - tencentcloud_mysql_error_log - tencentcloud_mysql_project_security_group - tencentcloud_mysql_ro_min_scale - - Resource - tencentcloud_mysql_instance - tencentcloud_mysql_database - tencentcloud_mysql_readonly_instance - tencentcloud_mysql_account - tencentcloud_mysql_privilege - tencentcloud_mysql_account_privilege - tencentcloud_mysql_backup_policy - tencentcloud_mysql_time_window - tencentcloud_mysql_param_template - tencentcloud_mysql_deploy_group - tencentcloud_mysql_security_groups_attachment - tencentcloud_mysql_local_binlog_config - tencentcloud_mysql_audit_log_file - tencentcloud_mysql_backup_download_restriction - tencentcloud_mysql_renew_db_instance_operation - tencentcloud_mysql_backup_encryption_status - tencentcloud_mysql_dr_instance_to_mater - tencentcloud_mysql_instance_encryption_operation - tencentcloud_mysql_password_complexity - tencentcloud_mysql_remote_backup_config - tencentcloud_mysql_restart_db_instances_operation - tencentcloud_mysql_switch_for_upgrade - tencentcloud_mysql_rollback - tencentcloud_mysql_rollback_stop - tencentcloud_mysql_ro_group - tencentcloud_mysql_ro_instance_ip - tencentcloud_mysql_ro_group_load_operation - tencentcloud_mysql_switch_master_slave_operation - tencentcloud_mysql_proxy - tencentcloud_mysql_reset_root_account - tencentcloud_mysql_verify_root_account - tencentcloud_mysql_reload_balance_proxy_node - tencentcloud_mysql_ro_start_replication - tencentcloud_mysql_ro_stop_replication - tencentcloud_mysql_isolate_instance - -Cloud Monitor(Monitor) - Data Source - tencentcloud_monitor_policy_conditions - tencentcloud_monitor_data - tencentcloud_monitor_product_event - tencentcloud_monitor_binding_objects - tencentcloud_monitor_policy_groups - tencentcloud_monitor_product_namespace - tencentcloud_monitor_alarm_notices - tencentcloud_monitor_alarm_history - tencentcloud_monitor_alarm_metric - tencentcloud_monitor_alarm_policy - tencentcloud_monitor_alarm_basic_alarms - tencentcloud_monitor_alarm_basic_metric - tencentcloud_monitor_alarm_conditions_template - tencentcloud_monitor_alarm_notice_callbacks - tencentcloud_monitor_alarm_all_namespaces - tencentcloud_monitor_alarm_monitor_type - - Resource - tencentcloud_monitor_binding_object - tencentcloud_monitor_policy_binding_object - tencentcloud_monitor_binding_receiver - tencentcloud_monitor_alarm_policy - tencentcloud_monitor_alarm_notice - tencentcloud_monitor_alarm_policy_set_default - - -Managed Service for Prometheus(TMP) - Data Source - tencentcloud_monitor_tmp_regions - - Resource - tencentcloud_monitor_tmp_instance - tencentcloud_monitor_tmp_alert_rule - tencentcloud_monitor_tmp_exporter_integration - tencentcloud_monitor_tmp_cvm_agent - tencentcloud_monitor_tmp_scrape_job - tencentcloud_monitor_tmp_recording_rule - tencentcloud_monitor_tmp_manage_grafana_attachment - tencentcloud_monitor_tmp_tke_template - tencentcloud_monitor_tmp_tke_template_attachment - tencentcloud_monitor_tmp_tke_alert_policy - tencentcloud_monitor_tmp_tke_config - tencentcloud_monitor_tmp_tke_record_rule_yaml - tencentcloud_monitor_tmp_tke_global_notification - tencentcloud_monitor_tmp_tke_cluster_agent - tencentcloud_monitor_tmp_tke_basic_config - -TencentCloud Managed Service for Grafana(TCMG) - Data Source - tencentcloud_monitor_grafana_plugin_overviews - - Resource - tencentcloud_monitor_grafana_instance - tencentcloud_monitor_grafana_integration - tencentcloud_monitor_grafana_notification_channel - tencentcloud_monitor_grafana_plugin - tencentcloud_monitor_grafana_sso_account - tencentcloud_monitor_tmp_grafana_config - tencentcloud_monitor_grafana_dns_config - tencentcloud_monitor_grafana_env_config - tencentcloud_monitor_grafana_whitelist_config - tencentcloud_monitor_grafana_sso_cam_config - tencentcloud_monitor_grafana_sso_config - tencentcloud_monitor_grafana_version_upgrade - -TencentDB for PostgreSQL(PostgreSQL) - Data Source - tencentcloud_postgresql_instances - tencentcloud_postgresql_specinfos - tencentcloud_postgresql_xlogs - tencentcloud_postgresql_parameter_templates - tencentcloud_postgresql_readonly_groups - tencentcloud_postgresql_base_backups - tencentcloud_postgresql_log_backups - tencentcloud_postgresql_backup_download_urls - tencentcloud_postgresql_db_instance_classes - tencentcloud_postgresql_default_parameters - tencentcloud_postgresql_recovery_time - tencentcloud_postgresql_regions - tencentcloud_postgresql_db_instance_versions - tencentcloud_postgresql_zones - - Resource - tencentcloud_postgresql_instance - tencentcloud_postgresql_readonly_instance - tencentcloud_postgresql_readonly_group - tencentcloud_postgresql_readonly_attachment - tencentcloud_postgresql_parameter_template - tencentcloud_postgresql_backup_plan_config - tencentcloud_postgresql_security_group_config - tencentcloud_postgresql_backup_download_restriction_config - tencentcloud_postgresql_restart_db_instance_operation - tencentcloud_postgresql_renew_db_instance_operation - tencentcloud_postgresql_isolate_db_instance_operation - tencentcloud_postgresql_disisolate_db_instance_operation - tencentcloud_postgresql_rebalance_readonly_group_operation - tencentcloud_postgresql_delete_log_backup_operation - tencentcloud_postgresql_modify_account_remark_operation - tencentcloud_postgresql_modify_switch_time_period_operation - tencentcloud_postgresql_base_backup - -TencentDB for Redis(crs) - Data Source - tencentcloud_redis_zone_config - tencentcloud_redis_instances - tencentcloud_redis_backup - tencentcloud_redis_backup_download_info - tencentcloud_redis_param_records - tencentcloud_redis_instance_shards - tencentcloud_redis_instance_zone_info - tencentcloud_redis_instance_task_list - tencentcloud_redis_instance_node_info - - Resource - tencentcloud_redis_instance - tencentcloud_redis_backup_config - tencentcloud_redis_param_template - tencentcloud_redis_account - tencentcloud_redis_read_only - tencentcloud_redis_ssl - tencentcloud_redis_backup_download_restriction - tencentcloud_redis_clear_instance_operation - tencentcloud_redis_renew_instance_operation - tencentcloud_redis_startup_instance_operation - tencentcloud_redis_upgrade_cache_version_operation - tencentcloud_redis_upgrade_multi_zone_operation - tencentcloud_redis_upgrade_proxy_version_operation - tencentcloud_redis_maintenance_window - tencentcloud_redis_replica_readonly - tencentcloud_redis_switch_master - tencentcloud_redis_replicate_attachment - tencentcloud_redis_backup_operation - tencentcloud_redis_security_group_attachment - tencentcloud_redis_connection_config - -Serverless Cloud Function(SCF) - Data Source - tencentcloud_scf_functions - tencentcloud_scf_logs - tencentcloud_scf_namespaces - tencentcloud_scf_account_info - tencentcloud_scf_async_event_management - tencentcloud_scf_triggers - tencentcloud_scf_async_event_status - tencentcloud_scf_function_address - tencentcloud_scf_request_status - tencentcloud_scf_function_aliases - tencentcloud_scf_layer_versions - tencentcloud_scf_layers - tencentcloud_scf_function_versions - - Resource - tencentcloud_scf_function - tencentcloud_scf_function_version - tencentcloud_scf_function_event_invoke_config - tencentcloud_scf_reserved_concurrency_config - tencentcloud_scf_provisioned_concurrency_config - tencentcloud_scf_invoke_function - tencentcloud_scf_sync_invoke_function - tencentcloud_scf_terminate_async_event - tencentcloud_scf_namespace - tencentcloud_scf_layer - tencentcloud_scf_function_alias - tencentcloud_scf_trigger_config - -SQLServer - Data Source - tencentcloud_sqlserver_zone_config - tencentcloud_sqlserver_instances - tencentcloud_sqlserver_dbs - tencentcloud_sqlserver_accounts - tencentcloud_sqlserver_account_db_attachments - tencentcloud_sqlserver_readonly_groups - tencentcloud_sqlserver_publish_subscribes - tencentcloud_sqlserver_basic_instances - tencentcloud_sqlserver_backup_commands - tencentcloud_sqlserver_backup_by_flow_id - tencentcloud_sqlserver_backup_upload_size - tencentcloud_sqlserver_cross_region_zone - tencentcloud_sqlserver_db_charsets - tencentcloud_sqlserver_instance_param_records - tencentcloud_sqlserver_project_security_groups - tencentcloud_sqlserver_regions - tencentcloud_sqlserver_rollback_time - tencentcloud_sqlserver_slowlogs - tencentcloud_sqlserver_upload_backup_info - tencentcloud_sqlserver_upload_incremental_info - tencentcloud_sqlserver_query_xevent - tencentcloud_sqlserver_ins_attribute - - Resource - tencentcloud_sqlserver_instance - tencentcloud_sqlserver_readonly_instance - tencentcloud_sqlserver_db - tencentcloud_sqlserver_account - tencentcloud_sqlserver_account_db_attachment - tencentcloud_sqlserver_publish_subscribe - tencentcloud_sqlserver_basic_instance - tencentcloud_sqlserver_migration - tencentcloud_sqlserver_config_backup_strategy - tencentcloud_sqlserver_general_backup - tencentcloud_sqlserver_general_clone - tencentcloud_sqlserver_full_backup_migration - tencentcloud_sqlserver_incre_backup_migration - tencentcloud_sqlserver_business_intelligence_file - tencentcloud_sqlserver_business_intelligence_instance - tencentcloud_sqlserver_general_communication - tencentcloud_sqlserver_general_cloud_instance - tencentcloud_sqlserver_complete_expansion - tencentcloud_sqlserver_config_database_cdc - tencentcloud_sqlserver_config_database_ct - tencentcloud_sqlserver_config_database_mdf - tencentcloud_sqlserver_config_instance_param - tencentcloud_sqlserver_config_instance_ro_group - tencentcloud_sqlserver_renew_db_instance - tencentcloud_sqlserver_renew_postpaid_db_instance - tencentcloud_sqlserver_restart_db_instance - tencentcloud_sqlserver_config_terminate_db_instance - tencentcloud_sqlserver_restore_instance - tencentcloud_sqlserver_rollback_instance - tencentcloud_sqlserver_start_backup_full_migration - tencentcloud_sqlserver_start_backup_incremental_migration - tencentcloud_sqlserver_start_xevent - tencentcloud_sqlserver_instance_tde - tencentcloud_sqlserver_database_tde - tencentcloud_sqlserver_general_cloud_ro_instance - -SSL Certificates - Data Source - tencentcloud_ssl_certificates - tencentcloud_ssl_describe_certificate - tencentcloud_ssl_describe_companies - tencentcloud_ssl_describe_host_api_gateway_instance_list - tencentcloud_ssl_describe_host_cdn_instance_list - tencentcloud_ssl_describe_host_clb_instance_list - tencentcloud_ssl_describe_host_cos_instance_list - tencentcloud_ssl_describe_host_ddos_instance_list - tencentcloud_ssl_describe_host_lighthouse_instance_list - tencentcloud_ssl_describe_host_live_instance_list - tencentcloud_ssl_describe_host_teo_instance_list - tencentcloud_ssl_describe_host_tke_instance_list - tencentcloud_ssl_describe_host_vod_instance_list - tencentcloud_ssl_describe_host_waf_instance_list - tencentcloud_ssl_describe_host_deploy_record - tencentcloud_ssl_describe_host_deploy_record_detail - tencentcloud_ssl_describe_host_update_record - tencentcloud_ssl_describe_host_update_record_detail - tencentcloud_ssl_describe_managers - tencentcloud_ssl_describe_manager_detail - - Resource - tencentcloud_ssl_certificate - tencentcloud_ssl_pay_certificate - tencentcloud_ssl_free_certificate - tencentcloud_ssl_replace_certificate_operation - tencentcloud_ssl_revoke_certificate_operation - tencentcloud_ssl_update_certificate_instance_operation - tencentcloud_ssl_update_certificate_record_retry_operation - tencentcloud_ssl_update_certificate_record_rollback_operation - tencentcloud_ssl_upload_revoke_letter_operation - tencentcloud_ssl_complete_certificate_operation - tencentcloud_ssl_check_certificate_chain_operation - tencentcloud_ssl_deploy_certificate_instance_operation - tencentcloud_ssl_deploy_certificate_record_retry_operation - tencentcloud_ssl_deploy_certificate_record_rollback_operation - tencentcloud_ssl_download_certificate_operation - -Secrets Manager(SSM) - Data Source - tencentcloud_ssm_products - tencentcloud_ssm_secrets - tencentcloud_ssm_secret_versions - tencentcloud_ssm_rotation_detail - tencentcloud_ssm_rotation_history - tencentcloud_ssm_service_status - tencentcloud_ssm_ssh_key_pair_value - - Resource - tencentcloud_ssm_secret - tencentcloud_ssm_secret_version - tencentcloud_ssm_product_secret - tencentcloud_ssm_ssh_key_pair_secret - tencentcloud_ssm_rotate_product_secret - -TcaplusDB - Data Source - tencentcloud_tcaplus_clusters - tencentcloud_tcaplus_idls - tencentcloud_tcaplus_tables - tencentcloud_tcaplus_tablegroups - - Resource - tencentcloud_tcaplus_cluster - tencentcloud_tcaplus_tablegroup - tencentcloud_tcaplus_idl - tencentcloud_tcaplus_table - -Tencent Container Registry(TCR) - Data Source - tencentcloud_tcr_instances - tencentcloud_tcr_namespaces - tencentcloud_tcr_repositories - tencentcloud_tcr_tokens - tencentcloud_tcr_vpc_attachments - tencentcloud_tcr_webhook_trigger_logs - tencentcloud_tcr_images - tencentcloud_tcr_image_manifests - tencentcloud_tcr_tag_retention_execution_tasks - tencentcloud_tcr_tag_retention_executions - tencentcloud_tcr_replication_instance_create_tasks - tencentcloud_tcr_replication_instance_sync_status - - Resource - tencentcloud_tcr_instance - tencentcloud_tcr_namespace - tencentcloud_tcr_repository - tencentcloud_tcr_token - tencentcloud_tcr_vpc_attachment - tencentcloud_tcr_tag_retention_rule - tencentcloud_tcr_webhook_trigger - tencentcloud_tcr_manage_replication_operation - tencentcloud_tcr_customized_domain - tencentcloud_tcr_immutable_tag_rule - tencentcloud_tcr_delete_image_operation - tencentcloud_tcr_create_image_signature_operation - tencentcloud_tcr_tag_retention_execution_config - tencentcloud_tcr_service_account - -Video on Demand(VOD) - Data Source - tencentcloud_vod_adaptive_dynamic_streaming_templates - tencentcloud_vod_snapshot_by_time_offset_templates - tencentcloud_vod_super_player_configs - tencentcloud_vod_image_sprite_templates - tencentcloud_vod_procedure_templates - - - Resource - tencentcloud_vod_adaptive_dynamic_streaming_template - tencentcloud_vod_procedure_template - tencentcloud_vod_snapshot_by_time_offset_template - tencentcloud_vod_image_sprite_template - tencentcloud_vod_super_player_config - tencentcloud_vod_sub_application - -Oceanus - Data Source - tencentcloud_oceanus_resource_related_job - tencentcloud_oceanus_savepoint_list - tencentcloud_oceanus_system_resource - tencentcloud_oceanus_work_spaces - tencentcloud_oceanus_clusters - tencentcloud_oceanus_tree_jobs - tencentcloud_oceanus_tree_resources - tencentcloud_oceanus_job_submission_log - tencentcloud_oceanus_check_savepoint - - Resource - tencentcloud_oceanus_job - tencentcloud_oceanus_job_config - tencentcloud_oceanus_job_copy - tencentcloud_oceanus_run_job - tencentcloud_oceanus_stop_job - tencentcloud_oceanus_trigger_job_savepoint - tencentcloud_oceanus_resource - tencentcloud_oceanus_resource_config - tencentcloud_oceanus_work_space - tencentcloud_oceanus_folder - -Virtual Private Cloud(VPC) - Data Source - tencentcloud_route_table - tencentcloud_security_group - tencentcloud_security_groups - tencentcloud_address_templates - tencentcloud_address_template_groups - tencentcloud_protocol_templates - tencentcloud_protocol_template_groups - tencentcloud_subnet - tencentcloud_vpc - tencentcloud_vpc_acls - tencentcloud_vpc_account_attributes - tencentcloud_vpc_classic_link_instances - tencentcloud_vpc_gateway_flow_monitor_detail - tencentcloud_vpc_gateway_flow_qos - tencentcloud_vpc_cvm_instances - tencentcloud_vpc_net_detect_states - tencentcloud_vpc_net_detect_state_check - tencentcloud_vpc_network_interface_limit - tencentcloud_vpc_private_ip_addresses - tencentcloud_vpc_product_quota - tencentcloud_vpc_resource_dashboard - tencentcloud_vpc_route_conflicts - tencentcloud_vpc_security_group_limits - tencentcloud_vpc_security_group_references - tencentcloud_vpc_sg_snapshot_file_content - tencentcloud_vpc_snapshot_files - tencentcloud_vpc_subnet_resource_dashboard - tencentcloud_vpc_template_limits - tencentcloud_vpc_used_ip_address - tencentcloud_vpc_limits - tencentcloud_vpc_instances - tencentcloud_vpc_route_tables - tencentcloud_vpc_subnets - tencentcloud_dnats - tencentcloud_enis - tencentcloud_ha_vip_eip_attachments - tencentcloud_ha_vips - tencentcloud_nat_gateways - tencentcloud_nat_gateway_snats - tencentcloud_nats - tencentcloud_nat_dc_route - tencentcloud_vpc_bandwidth_package_quota - tencentcloud_vpc_bandwidth_package_bill_usage - - Resource - tencentcloud_eni - tencentcloud_eni_attachment - tencentcloud_eni_sg_attachment - tencentcloud_vpc - tencentcloud_vpc_acl - tencentcloud_vpc_acl_attachment - tencentcloud_vpc_traffic_package - tencentcloud_vpc_snapshot_policy - tencentcloud_vpc_snapshot_policy_attachment - tencentcloud_vpc_snapshot_policy_config - tencentcloud_vpc_net_detect - tencentcloud_vpc_dhcp_ip - tencentcloud_vpc_ipv6_cidr_block - tencentcloud_vpc_ipv6_subnet_cidr_block - tencentcloud_vpc_ipv6_eni_address - tencentcloud_vpc_local_gateway - tencentcloud_vpc_resume_snapshot_instance - tencentcloud_subnet - tencentcloud_security_group - tencentcloud_security_group_rule - tencentcloud_security_group_rule_set - tencentcloud_security_group_lite_rule - tencentcloud_address_template - tencentcloud_address_template_group - tencentcloud_protocol_template - tencentcloud_protocol_template_group - tencentcloud_route_table - tencentcloud_route_table_association - tencentcloud_route_entry - tencentcloud_route_table_entry - tencentcloud_dnat - tencentcloud_nat_gateway - tencentcloud_nat_gateway_snat - tencentcloud_nat_refresh_nat_dc_route - tencentcloud_ha_vip - tencentcloud_ha_vip_eip_attachment - tencentcloud_vpc_bandwidth_package - tencentcloud_vpc_bandwidth_package_attachment - tencentcloud_ipv6_address_bandwidth - -Private Link(PLS) - Resource - tencentcloud_vpc_end_point_service - tencentcloud_vpc_end_point - tencentcloud_vpc_enable_end_point_connect - tencentcloud_vpc_end_point_service_white_list - -Flow Logs(FL) - Resource - tencentcloud_vpc_flow_log - tencentcloud_vpc_flow_log_config - -VPN Connections(VPN) - Data Source - tencentcloud_vpn_connections - tencentcloud_vpn_customer_gateways - tencentcloud_vpn_gateways - tencentcloud_vpn_gateway_routes - tencentcloud_vpn_customer_gateway_vendors - tencentcloud_vpn_default_health_check_ip - - Resource - tencentcloud_vpn_customer_gateway - tencentcloud_vpn_gateway - tencentcloud_vpn_gateway_route - tencentcloud_vpn_connection - tencentcloud_vpn_ssl_server - tencentcloud_vpn_ssl_client - tencentcloud_vpn_connection_reset - tencentcloud_vpn_customer_gateway_configuration_download - tencentcloud_vpn_gateway_ssl_client_cert - tencentcloud_vpn_gateway_ccn_routes - -MapReduce(EMR) - Data Source - tencentcloud_emr - tencentcloud_emr_nodes - tencentcloud_emr_cvm_quota - tencentcloud_emr_auto_scale_records - - Resource - tencentcloud_emr_cluster - tencentcloud_emr_user_manager - -DNSPOD - Resource - tencentcloud_dnspod_domain_instance - tencentcloud_dnspod_domain_alias - tencentcloud_dnspod_record - tencentcloud_dnspod_record_group - tencentcloud_dnspod_modify_record_group_operation - tencentcloud_dnspod_modify_domain_owner_operation - tencentcloud_dnspod_download_snapshot_operation - tencentcloud_dnspod_custom_line - tencentcloud_dnspod_snapshot_config - tencentcloud_dnspod_domain_lock - - Data Source - tencentcloud_dnspod_records - tencentcloud_dnspod_domain_list - tencentcloud_dnspod_domain_analytics - tencentcloud_dnspod_domain_log_list - tencentcloud_dnspod_record_analytics - tencentcloud_dnspod_record_line_list - tencentcloud_dnspod_record_list - tencentcloud_dnspod_record_type - -PrivateDNS - Resource - tencentcloud_private_dns_zone - tencentcloud_private_dns_record - tencentcloud_private_dns_zone_vpc_attachment - Data Source - tencentcloud_private_dns_records - -Cloud Log Service(CLS) - Resource - tencentcloud_cls_logset - tencentcloud_cls_topic - tencentcloud_cls_config - tencentcloud_cls_config_extra - tencentcloud_cls_config_attachment - tencentcloud_cls_machine_group - tencentcloud_cls_cos_shipper - tencentcloud_cls_index - tencentcloud_cls_alarm - tencentcloud_cls_alarm_notice - tencentcloud_cls_ckafka_consumer - tencentcloud_cls_kafka_recharge - tencentcloud_cls_cos_recharge - tencentcloud_cls_export - tencentcloud_cls_scheduled_sql - tencentcloud_cls_data_transform - - Data Source - tencentcloud_cls_shipper_tasks - tencentcloud_cls_machines - tencentcloud_cls_machine_group_configs - -TencentCloud Lighthouse(Lighthouse) - Resource - tencentcloud_lighthouse_instance - tencentcloud_lighthouse_blueprint - tencentcloud_lighthouse_firewall_rule - tencentcloud_lighthouse_disk_backup - tencentcloud_lighthouse_apply_disk_backup - tencentcloud_lighthouse_disk_attachment - tencentcloud_lighthouse_key_pair - tencentcloud_lighthouse_snapshot - tencentcloud_lighthouse_apply_instance_snapshot - tencentcloud_lighthouse_start_instance - tencentcloud_lighthouse_stop_instance - tencentcloud_lighthouse_reboot_instance - tencentcloud_lighthouse_key_pair_attachment - tencentcloud_lighthouse_disk - tencentcloud_lighthouse_renew_disk - tencentcloud_lighthouse_renew_instance - tencentcloud_lighthouse_firewall_template - - Data Source - tencentcloud_lighthouse_firewall_rules_template - tencentcloud_lighthouse_bundle - tencentcloud_lighthouse_zone - tencentcloud_lighthouse_scene - tencentcloud_lighthouse_reset_instance_blueprint - tencentcloud_lighthouse_region - tencentcloud_lighthouse_instance_vnc_url - tencentcloud_lighthouse_instance_traffic_package - tencentcloud_lighthouse_instance_disk_num - tencentcloud_lighthouse_instance_blueprint - tencentcloud_lighthouse_disk_config - tencentcloud_lighthouse_all_scene - tencentcloud_lighthouse_modify_instance_bundle - tencentcloud_lighthouse_disks - -TencentCloud Elastic Microservice(TEM) - Resource - tencentcloud_tem_environment - tencentcloud_tem_application - tencentcloud_tem_workload - tencentcloud_tem_app_config - tencentcloud_tem_log_config - tencentcloud_tem_scale_rule - tencentcloud_tem_gateway - tencentcloud_tem_application_service - -TencentCloud EdgeOne(TEO) - Data Source - tencentcloud_teo_zone_available_plans - tencentcloud_teo_rule_engine_settings - - Resource - tencentcloud_teo_zone - tencentcloud_teo_zone_setting - tencentcloud_teo_origin_group - tencentcloud_teo_rule_engine - tencentcloud_teo_application_proxy_rule - tencentcloud_teo_ownership_verify - tencentcloud_teo_certificate_config - tencentcloud_teo_acceleration_domain - -TencentCloud ServiceMesh(TCM) - Data Source - tencentcloud_tcm_mesh - Resource - tencentcloud_tcm_mesh - tencentcloud_tcm_cluster_attachment - tencentcloud_tcm_prometheus_attachment - tencentcloud_tcm_tracing_config - tencentcloud_tcm_access_log_config - -Simple Email Service(SES) - Data Source - tencentcloud_ses_receivers - tencentcloud_ses_send_tasks - tencentcloud_ses_email_identities - tencentcloud_ses_black_email_address - tencentcloud_ses_statistics_report - tencentcloud_ses_send_email_status - - Resource - tencentcloud_ses_domain - tencentcloud_ses_template - tencentcloud_ses_email_address - tencentcloud_ses_receiver - tencentcloud_ses_send_email - tencentcloud_ses_batch_send_email - tencentcloud_ses_verify_domain - tencentcloud_ses_black_list_delete - -Security Token Service(STS) - Data Source - tencentcloud_sts_caller_identity - -TDSQL for MySQL(DCDB) - Data Source - tencentcloud_dcdb_instances - tencentcloud_dcdb_accounts - tencentcloud_dcdb_databases - tencentcloud_dcdb_parameters - tencentcloud_dcdb_shards - tencentcloud_dcdb_security_groups - tencentcloud_dcdb_database_objects - tencentcloud_dcdb_database_tables - tencentcloud_dcdb_file_download_url - tencentcloud_dcdb_log_files - tencentcloud_dcdb_instance_node_info - tencentcloud_dcdb_orders - tencentcloud_dcdb_price - tencentcloud_dcdb_project_security_groups - tencentcloud_dcdb_projects - tencentcloud_dcdb_renewal_price - tencentcloud_dcdb_sale_info - tencentcloud_dcdb_shard_spec - tencentcloud_dcdb_slow_logs - tencentcloud_dcdb_upgrade_price - - Resource - tencentcloud_dcdb_account - tencentcloud_dcdb_hourdb_instance - tencentcloud_dcdb_security_group_attachment - tencentcloud_dcdb_account_privileges - tencentcloud_dcdb_db_parameters - tencentcloud_dcdb_db_sync_mode_config - tencentcloud_dcdb_encrypt_attributes_config - tencentcloud_dcdb_instance_config - tencentcloud_dcdb_cancel_dcn_job_operation - tencentcloud_dcdb_activate_hour_instance_operation - tencentcloud_dcdb_isolate_hour_instance_operation - tencentcloud_dcdb_flush_binlog_operation - tencentcloud_dcdb_switch_db_instance_ha_operation - -Short Message Service(SMS) - Resource - tencentcloud_sms_sign - tencentcloud_sms_template - -Cloud Automated Testing(CAT) - Data Source - tencentcloud_cat_probe_data - tencentcloud_cat_node - tencentcloud_cat_metric_data - - Resource - tencentcloud_cat_task_set - -TencentDB for MariaDB(MariaDB) - Data Source - tencentcloud_mariadb_db_instances - tencentcloud_mariadb_accounts - tencentcloud_mariadb_security_groups - tencentcloud_mariadb_database_objects - tencentcloud_mariadb_databases - tencentcloud_mariadb_database_table - tencentcloud_mariadb_dcn_detail - tencentcloud_mariadb_file_download_url - tencentcloud_mariadb_flow - tencentcloud_mariadb_instance_specs - tencentcloud_mariadb_log_files - tencentcloud_mariadb_orders - tencentcloud_mariadb_price - tencentcloud_mariadb_project_security_groups - tencentcloud_mariadb_renewal_price - tencentcloud_mariadb_sale_info - tencentcloud_mariadb_slow_logs - tencentcloud_mariadb_upgrade_price - - Resource - tencentcloud_mariadb_dedicatedcluster_db_instance - tencentcloud_mariadb_instance - tencentcloud_mariadb_hour_db_instance - tencentcloud_mariadb_account - tencentcloud_mariadb_parameters - tencentcloud_mariadb_log_file_retention_period - tencentcloud_mariadb_security_groups - tencentcloud_mariadb_account_privileges - tencentcloud_mariadb_operate_hour_db_instance - tencentcloud_mariadb_backup_time - tencentcloud_mariadb_cancel_dcn_job - tencentcloud_mariadb_flush_binlog - tencentcloud_mariadb_switch_ha - tencentcloud_mariadb_restart_instance - tencentcloud_mariadb_renew_instance - tencentcloud_mariadb_instance_config - -Real User Monitoring(RUM) - Data Source - tencentcloud_rum_project - tencentcloud_rum_offline_log_config - tencentcloud_rum_whitelist - tencentcloud_rum_taw_instance - tencentcloud_rum_custom_url - tencentcloud_rum_event_url - tencentcloud_rum_fetch_url_info - tencentcloud_rum_fetch_url - tencentcloud_rum_group_log - tencentcloud_rum_log_url_statistics - tencentcloud_rum_performance_page - tencentcloud_rum_pv_url_info - tencentcloud_rum_pv_url_statistics - tencentcloud_rum_report_count - tencentcloud_rum_scores - tencentcloud_rum_set_url_statistics - tencentcloud_rum_sign - tencentcloud_rum_static_project - tencentcloud_rum_static_resource - tencentcloud_rum_static_url - tencentcloud_rum_web_vitals_page - tencentcloud_rum_log_export_list - - Resource - tencentcloud_rum_project - tencentcloud_rum_taw_instance - tencentcloud_rum_whitelist - tencentcloud_rum_offline_log_config_attachment - tencentcloud_rum_instance_status_config - tencentcloud_rum_project_status_config - -Cloud Streaming Services(CSS) - Resource - tencentcloud_css_watermark - tencentcloud_css_watermark_rule_attachment - tencentcloud_css_pull_stream_task - tencentcloud_css_live_transcode_template - tencentcloud_css_live_transcode_rule_attachment - tencentcloud_css_domain - tencentcloud_css_authenticate_domain_owner_operation - tencentcloud_css_play_domain_cert_attachment - tencentcloud_css_play_auth_key_config - tencentcloud_css_push_auth_key_config - tencentcloud_css_backup_stream - tencentcloud_css_callback_rule_attachment - tencentcloud_css_callback_template - tencentcloud_css_domain_referer - tencentcloud_css_enable_optimal_switching - tencentcloud_css_record_rule_attachment - tencentcloud_css_snapshot_rule_attachment - tencentcloud_css_snapshot_template - tencentcloud_css_pad_template - tencentcloud_css_pad_rule_attachment - tencentcloud_css_timeshift_template - tencentcloud_css_timeshift_rule_attachment - tencentcloud_css_stream_monitor - tencentcloud_css_start_stream_monitor - tencentcloud_css_pull_stream_task_restart - - Data Source - tencentcloud_css_domains - tencentcloud_css_backup_stream - tencentcloud_css_monitor_report - tencentcloud_css_pad_templates - tencentcloud_css_pull_stream_task_status - tencentcloud_css_stream_monitor_list - tencentcloud_css_time_shift_record_detail - tencentcloud_css_time_shift_stream_list - tencentcloud_css_watermarks - tencentcloud_css_xp2p_detail_info_list - -Performance Testing Service(PTS) - Data Source - tencentcloud_pts_scenario_with_jobs - - Resource - tencentcloud_pts_project - tencentcloud_pts_alert_channel - tencentcloud_pts_scenario - tencentcloud_pts_file - tencentcloud_pts_job - tencentcloud_pts_cron_job - tencentcloud_pts_tmp_key_generate - tencentcloud_pts_cron_job_restart - tencentcloud_pts_job_abort - tencentcloud_pts_cron_job_abort - -TencentCloud Automation Tools(TAT) - Data Source - tencentcloud_tat_command - tencentcloud_tat_invoker - tencentcloud_tat_invoker_records - tencentcloud_tat_agent - tencentcloud_tat_invocation_task - Resource - tencentcloud_tat_command - tencentcloud_tat_invoker - tencentcloud_tat_invoker_config - tencentcloud_tat_invocation_invoke_attachment - tencentcloud_tat_invocation_command_attachment - -Tencent Cloud Organization (TCO) - Data Source - tencentcloud_organization_org_auth_node - tencentcloud_organization_org_financial_by_member - tencentcloud_organization_org_financial_by_month - tencentcloud_organization_org_financial_by_product - tencentcloud_organization_members - Resource - tencentcloud_organization_instance - tencentcloud_organization_org_node - tencentcloud_organization_org_member - tencentcloud_organization_org_identity - tencentcloud_organization_org_member_email - tencentcloud_organization_org_member_auth_identity_attachment - tencentcloud_organization_org_member_policy_attachment - tencentcloud_organization_policy_sub_account_attachment - tencentcloud_organization_quit_organization_operation - -TDSQL-C for PostgreSQL(TDCPG) - Data Source - tencentcloud_tdcpg_clusters - tencentcloud_tdcpg_instances - Resource - tencentcloud_tdcpg_cluster - tencentcloud_tdcpg_instance - -TencentDB for DBbrain(dbbrain) - Data Source - tencentcloud_dbbrain_sql_filters - tencentcloud_dbbrain_security_audit_log_export_tasks - tencentcloud_dbbrain_diag_event - tencentcloud_dbbrain_diag_events - tencentcloud_dbbrain_diag_history - tencentcloud_dbbrain_security_audit_log_download_urls - tencentcloud_dbbrain_slow_log_time_series_stats - tencentcloud_dbbrain_slow_log_top_sqls - tencentcloud_dbbrain_slow_log_user_host_stats - tencentcloud_dbbrain_slow_log_user_sql_advice - tencentcloud_dbbrain_slow_logs - tencentcloud_dbbrain_health_scores - tencentcloud_dbbrain_sql_templates - tencentcloud_dbbrain_db_space_status - tencentcloud_dbbrain_top_space_schemas - tencentcloud_dbbrain_top_space_tables - tencentcloud_dbbrain_top_space_schema_time_series - tencentcloud_dbbrain_top_space_table_time_series - tencentcloud_dbbrain_diag_db_instances - tencentcloud_dbbrain_mysql_process_list - tencentcloud_dbbrain_no_primary_key_tables - tencentcloud_dbbrain_redis_top_big_keys - tencentcloud_dbbrain_redis_top_key_prefix_list - - Resource - tencentcloud_dbbrain_sql_filter - tencentcloud_dbbrain_security_audit_log_export_task - tencentcloud_dbbrain_db_diag_report_task - tencentcloud_dbbrain_modify_diag_db_instance_operation - tencentcloud_dbbrain_tdsql_audit_log - -Data Transmission Service(DTS) - Data Source - tencentcloud_dts_sync_jobs - tencentcloud_dts_migrate_jobs - tencentcloud_dts_compare_tasks - tencentcloud_dts_migrate_db_instances - - Resource - tencentcloud_dts_sync_job - tencentcloud_dts_sync_config - tencentcloud_dts_sync_check_job_operation - tencentcloud_dts_sync_job_resume_operation - tencentcloud_dts_sync_job_start_operation - tencentcloud_dts_sync_job_stop_operation - tencentcloud_dts_sync_job_resize_operation - tencentcloud_dts_sync_job_recover_operation - tencentcloud_dts_sync_job_isolate_operation - tencentcloud_dts_sync_job_continue_operation - tencentcloud_dts_sync_job_pause_operation - tencentcloud_dts_migrate_service - tencentcloud_dts_migrate_job - tencentcloud_dts_migrate_job_config - tencentcloud_dts_migrate_job_start_operation - tencentcloud_dts_migrate_job_resume_operation - tencentcloud_dts_compare_task_stop_operation - tencentcloud_dts_compare_task - -TDMQ for RocketMQ(trocket) - Data Source - tencentcloud_tdmq_rocketmq_cluster - tencentcloud_tdmq_rocketmq_namespace - tencentcloud_tdmq_rocketmq_topic - tencentcloud_tdmq_rocketmq_role - tencentcloud_tdmq_rocketmq_group - tencentcloud_tdmq_rocketmq_messages - - Resource - tencentcloud_tdmq_rocketmq_cluster - tencentcloud_tdmq_rocketmq_namespace - tencentcloud_tdmq_rocketmq_role - tencentcloud_tdmq_rocketmq_topic - tencentcloud_tdmq_rocketmq_group - tencentcloud_tdmq_rocketmq_environment_role - tencentcloud_tdmq_send_rocketmq_message - tencentcloud_tdmq_rocketmq_vip_instance - tencentcloud_trocket_rocketmq_instance - tencentcloud_trocket_rocketmq_topic - tencentcloud_trocket_rocketmq_consumer_group - tencentcloud_trocket_rocketmq_role - -TDMQ for RabbitMQ(trabbit) - Resource - tencentcloud_tdmq_rabbitmq_user - tencentcloud_tdmq_rabbitmq_virtual_host - tencentcloud_tdmq_rabbitmq_vip_instance - - -Cloud Infinite(CI) - Resource - tencentcloud_ci_bucket_attachment - tencentcloud_ci_bucket_pic_style - tencentcloud_ci_hot_link - tencentcloud_ci_media_snapshot_template - tencentcloud_ci_media_transcode_template - tencentcloud_ci_media_animation_template - tencentcloud_ci_media_concat_template - tencentcloud_ci_media_video_process_template - tencentcloud_ci_media_video_montage_template - tencentcloud_ci_media_voice_separate_template - tencentcloud_ci_media_super_resolution_template - tencentcloud_ci_media_pic_process_template - tencentcloud_ci_media_watermark_template - tencentcloud_ci_media_tts_template - tencentcloud_ci_media_transcode_pro_template - tencentcloud_ci_media_smart_cover_template - tencentcloud_ci_media_speech_recognition_template - tencentcloud_ci_guetzli - tencentcloud_ci_original_image_protection - -TDMQ for CMQ - Data Source - tencentcloud_tcmq_queue - tencentcloud_tcmq_topic - tencentcloud_tcmq_subscribe - - Resource - tencentcloud_tcmq_queue - tencentcloud_tcmq_topic - tencentcloud_tcmq_subscribe - -Tencent Service Framework(TSF) - Data Source - tencentcloud_tsf_application - tencentcloud_tsf_application_config - tencentcloud_tsf_application_file_config - tencentcloud_tsf_application_public_config - tencentcloud_tsf_cluster - tencentcloud_tsf_microservice - tencentcloud_tsf_unit_rules - tencentcloud_tsf_config_summary - tencentcloud_tsf_delivery_config_by_group_id - tencentcloud_tsf_delivery_configs - tencentcloud_tsf_public_config_summary - tencentcloud_tsf_api_group - tencentcloud_tsf_application_attribute - tencentcloud_tsf_business_log_configs - tencentcloud_tsf_api_detail - tencentcloud_tsf_microservice_api_version - tencentcloud_tsf_repository - tencentcloud_tsf_pod_instances - tencentcloud_tsf_gateway_all_group_apis - tencentcloud_tsf_group_gateways - tencentcloud_tsf_usable_unit_namespaces - tencentcloud_tsf_group_instances - tencentcloud_tsf_group_config_release - tencentcloud_tsf_container_group - tencentcloud_tsf_groups - tencentcloud_tsf_ms_api_list - - Resource - tencentcloud_tsf_cluster - tencentcloud_tsf_microservice - tencentcloud_tsf_application_config - tencentcloud_tsf_api_group - tencentcloud_tsf_namespace - tencentcloud_tsf_path_rewrite - tencentcloud_tsf_unit_rule - tencentcloud_tsf_task - tencentcloud_tsf_config_template - tencentcloud_tsf_api_rate_limit_rule - tencentcloud_tsf_application_release_config - tencentcloud_tsf_lane - tencentcloud_tsf_lane_rule - tencentcloud_tsf_group - tencentcloud_tsf_application - tencentcloud_tsf_application_public_config_release - tencentcloud_tsf_application_public_config - tencentcloud_tsf_application_file_config_release - tencentcloud_tsf_instances_attachment - tencentcloud_tsf_bind_api_group - tencentcloud_tsf_application_file_config - tencentcloud_tsf_enable_unit_rule - tencentcloud_tsf_deploy_container_group - tencentcloud_tsf_deploy_vm_group - tencentcloud_tsf_release_api_group - tencentcloud_tsf_operate_container_group - tencentcloud_tsf_operate_group - tencentcloud_tsf_unit_namespace - -Media Processing Service(MPS) - Data Source - tencentcloud_mps_schedules - tencentcloud_mps_tasks - tencentcloud_mps_parse_live_stream_process_notification - tencentcloud_mps_parse_notification - tencentcloud_mps_media_meta_data - - Resource - tencentcloud_mps_workflow - tencentcloud_mps_enable_workflow_config - tencentcloud_mps_transcode_template - tencentcloud_mps_watermark_template - tencentcloud_mps_image_sprite_template - tencentcloud_mps_snapshot_by_timeoffset_template - tencentcloud_mps_sample_snapshot_template - tencentcloud_mps_animated_graphics_template - tencentcloud_mps_ai_recognition_template - tencentcloud_mps_ai_analysis_template - tencentcloud_mps_adaptive_dynamic_streaming_template - tencentcloud_mps_person_sample - tencentcloud_mps_withdraws_watermark_operation - tencentcloud_mps_process_live_stream_operation - tencentcloud_mps_edit_media_operation - tencentcloud_mps_word_sample - tencentcloud_mps_schedule - tencentcloud_mps_enable_schedule_config - tencentcloud_mps_flow - tencentcloud_mps_input - tencentcloud_mps_output - tencentcloud_mps_content_review_template - tencentcloud_mps_start_flow_operation - tencentcloud_mps_event - tencentcloud_mps_manage_task_operation - tencentcloud_mps_execute_function_operation - tencentcloud_mps_process_media_operation - -Cloud HDFS(CHDFS) - Data Source - tencentcloud_chdfs_access_groups - tencentcloud_chdfs_mount_points - tencentcloud_chdfs_file_systems - - Resource - tencentcloud_chdfs_access_group - tencentcloud_chdfs_access_rule - tencentcloud_chdfs_file_system - tencentcloud_chdfs_life_cycle_rule - tencentcloud_chdfs_mount_point - tencentcloud_chdfs_mount_point_attachment - -StreamLive(MDL) - Resource - tencentcloud_mdl_stream_live_input - -Application Performance Management(APM) - Resource - tencentcloud_apm_instance - -Tencent Cloud Service Engine(TSE) - Data Source - tencentcloud_tse_access_address - tencentcloud_tse_nacos_replicas - tencentcloud_tse_zookeeper_replicas - tencentcloud_tse_zookeeper_server_interfaces - tencentcloud_tse_nacos_server_interfaces - tencentcloud_tse_groups - tencentcloud_tse_gateways - tencentcloud_tse_gateway_nodes - tencentcloud_tse_gateway_routes - tencentcloud_tse_gateway_canary_rules - tencentcloud_tse_gateway_services - tencentcloud_tse_gateway_certificates - - Resource - tencentcloud_tse_instance - tencentcloud_tse_cngw_service - tencentcloud_tse_cngw_canary_rule - tencentcloud_tse_cngw_gateway - tencentcloud_tse_cngw_group - tencentcloud_tse_cngw_service_rate_limit - tencentcloud_tse_cngw_route - tencentcloud_tse_cngw_route_rate_limit - tencentcloud_tse_cngw_certificate - tencentcloud_tse_waf_protection - tencentcloud_tse_waf_domains - -ClickHouse(CDWCH) - Data Source - tencentcloud_clickhouse_backup_jobs - tencentcloud_clickhouse_backup_job_detail - tencentcloud_clickhouse_backup_tables - - Resource - tencentcloud_clickhouse_instance - tencentcloud_clickhouse_backup - tencentcloud_clickhouse_backup_strategy - tencentcloud_clickhouse_recover_backup_job - tencentcloud_clickhouse_delete_backup_data - tencentcloud_clickhouse_account - tencentcloud_clickhouse_account_permission - -Tag - Resource - tencentcloud_tag - tencentcloud_tag_attachment - -EventBridge(EB) - Data Source - tencentcloud_eb_bus - tencentcloud_eb_event_rules - tencentcloud_eb_platform_event_names - tencentcloud_eb_platform_event_patterns - tencentcloud_eb_platform_products - tencentcloud_eb_plateform_event_template - - Resource - tencentcloud_eb_event_transform - tencentcloud_eb_event_bus - tencentcloud_eb_event_rule - tencentcloud_eb_event_target - tencentcloud_eb_put_events - tencentcloud_eb_event_connector - -Data Lake Compute(DLC) - Data Source - tencentcloud_dlc_describe_user_type - tencentcloud_dlc_describe_user_info - tencentcloud_dlc_describe_user_roles - tencentcloud_dlc_describe_data_engine - tencentcloud_dlc_describe_data_engine_image_versions - tencentcloud_dlc_describe_data_engine_python_spark_images - tencentcloud_dlc_describe_engine_usage_info - tencentcloud_dlc_describe_work_group_info - tencentcloud_dlc_check_data_engine_image_can_be_rollback - tencentcloud_dlc_check_data_engine_image_can_be_upgrade - tencentcloud_dlc_check_data_engine_config_pairs_validity - tencentcloud_dlc_describe_updatable_data_engines - - Resource - tencentcloud_dlc_work_group - tencentcloud_dlc_user - tencentcloud_dlc_data_engine - tencentcloud_dlc_rollback_data_engine_image_operation - tencentcloud_dlc_add_users_to_work_group_attachment - tencentcloud_dlc_store_location_config - tencentcloud_dlc_suspend_resume_data_engine - tencentcloud_dlc_modify_data_engine_description_operation - tencentcloud_dlc_modify_user_typ_operation - tencentcloud_dlc_renew_data_engine_operation - tencentcloud_dlc_restart_data_engine_operation - tencentcloud_dlc_switch_data_engine_image_operation - tencentcloud_dlc_update_data_engine_config_operation - tencentcloud_dlc_upgrade_data_engine_image_operation - tencentcloud_dlc_user_data_engine_config - tencentcloud_dlc_update_row_filter_operation - tencentcloud_dlc_bind_work_groups_to_user_attachment - -Web Application Firewall(WAF) - Data Source - tencentcloud_waf_ciphers - tencentcloud_waf_tls_versions - tencentcloud_waf_domains - tencentcloud_waf_find_domains - tencentcloud_waf_ports - tencentcloud_waf_user_domains - tencentcloud_waf_attack_log_histogram - tencentcloud_waf_attack_log_list - tencentcloud_waf_attack_overview - tencentcloud_waf_attack_total_count - tencentcloud_waf_peak_points - tencentcloud_waf_instance_qps_limit - tencentcloud_waf_user_clb_regions - - Resource - tencentcloud_waf_custom_rule - tencentcloud_waf_custom_white_rule - tencentcloud_waf_clb_domain - tencentcloud_waf_saas_domain - tencentcloud_waf_clb_instance - tencentcloud_waf_saas_instance - tencentcloud_waf_anti_fake - tencentcloud_waf_anti_info_leak - tencentcloud_waf_auto_deny_rules - tencentcloud_waf_module_status - tencentcloud_waf_protection_mode - tencentcloud_waf_web_shell - tencentcloud_waf_cc - tencentcloud_waf_cc_auto_status - tencentcloud_waf_cc_session - tencentcloud_waf_ip_access_control - tencentcloud_waf_modify_access_period - -Wedata - Data Source - tencentcloud_wedata_rule_templates - tencentcloud_wedata_data_source_list - tencentcloud_wedata_data_source_without_info - - Resource - tencentcloud_wedata_datasource - tencentcloud_wedata_function - tencentcloud_wedata_resource - tencentcloud_wedata_script - tencentcloud_wedata_dq_rule - tencentcloud_wedata_rule_template - tencentcloud_wedata_baseline - tencentcloud_wedata_integration_offline_task - tencentcloud_wedata_integration_realtime_task - tencentcloud_wedata_integration_task_node - -Cloud Firewall(CFW) - Data Source - tencentcloud_cfw_nat_fw_switches - tencentcloud_cfw_vpc_fw_switches - tencentcloud_cfw_edge_fw_switches - - Resource - tencentcloud_cfw_address_template - tencentcloud_cfw_block_ignore - tencentcloud_cfw_edge_policy - tencentcloud_cfw_nat_instance - tencentcloud_cfw_nat_policy - tencentcloud_cfw_vpc_instance - tencentcloud_cfw_vpc_policy - tencentcloud_cfw_sync_asset - tencentcloud_cfw_sync_route - tencentcloud_cfw_nat_firewall_switch - tencentcloud_cfw_vpc_firewall_switch - tencentcloud_cfw_edge_firewall_switch - -Bastion Host(BH) - Resource - tencentcloud_dasb_acl - tencentcloud_dasb_cmd_template - tencentcloud_dasb_device_group - tencentcloud_dasb_user - tencentcloud_dasb_device_account - tencentcloud_dasb_device_group_members - tencentcloud_dasb_user_group_members - tencentcloud_dasb_bind_device_resource - tencentcloud_dasb_resource - tencentcloud_dasb_device - tencentcloud_dasb_user_group - tencentcloud_dasb_reset_user - tencentcloud_dasb_bind_device_account_private_key - tencentcloud_dasb_bind_device_account_password - -Cwp - Data Source - tencentcloud_cwp_machines_simple - - Resource - tencentcloud_cwp_license_order - tencentcloud_cwp_license_bind_attachment - -Business Intelligence(BI) - Data Source - tencentcloud_bi_project - tencentcloud_bi_user_project - - Resource - tencentcloud_bi_project - tencentcloud_bi_user_role - tencentcloud_bi_project_user_role - tencentcloud_bi_datasource - tencentcloud_bi_datasource_cloud - tencentcloud_bi_embed_token_apply - tencentcloud_bi_embed_interval_apply - -CDWPG - Resource - tencentcloud_cdwpg_instance -*/ package tencentcloud import ( diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md new file mode 100644 index 0000000000..f41de282aa --- /dev/null +++ b/tencentcloud/provider.md @@ -0,0 +1,2094 @@ +The TencentCloud provider is used to interact with many resources supported by [TencentCloud](https://intl.cloud.tencent.com). +The provider needs to be configured with the proper credentials before it can be used. + +Use the navigation on the left to read about the available resources. + +-> **Note:** From version 1.9.0 (June 18, 2019), the provider start to support Terraform 0.12.x. + +Example Usage + +```hcl +terraform { + required_providers { + tencentcloud = { + source = "tencentcloudstack/tencentcloud" + } + } +} + +# Configure the TencentCloud Provider +provider "tencentcloud" { + secret_id = var.secret_id + secret_key = var.secret_key + region = var.region +} + +#Configure the TencentCloud Provider with STS +provider "tencentcloud" { + secret_id = var.secret_id + secret_key = var.secret_key + region = var.region + assume_role { + role_arn = var.assume_role_arn + session_name = var.session_name + session_duration = var.session_duration + policy = var.policy + } +} +``` + +Resources List + +Provider Data Sources + tencentcloud_availability_regions + tencentcloud_availability_zones_by_product + tencentcloud_availability_zones + +Project + Data Source + tencentcloud_projects + + Resource + tencentcloud_project + +Anti-DDoS(antiddos) + Data Source + tencentcloud_antiddos_basic_device_status + tencentcloud_antiddos_bgp_biz_trend + tencentcloud_antiddos_list_listener + tencentcloud_antiddos_overview_attack_trend + +Anti-DDoS(DayuV2) + Data Source + tencentcloud_dayu_eip + tencentcloud_dayu_l4_rules_v2 + tencentcloud_dayu_l7_rules_v2 + tencentcloud_antiddos_pending_risk_info + tencentcloud_antiddos_overview_index + tencentcloud_antiddos_overview_ddos_trend + tencentcloud_antiddos_overview_ddos_event_list + tencentcloud_antiddos_overview_cc_trend + + Resource + tencentcloud_dayu_eip + tencentcloud_dayu_l4_rule + tencentcloud_dayu_l7_rule_v2 + tencentcloud_dayu_ddos_policy_v2 + tencentcloud_dayu_cc_policy_v2 + tencentcloud_dayu_ddos_ip_attachment_v2 + tencentcloud_antiddos_ddos_black_white_ip + tencentcloud_antiddos_ddos_geo_ip_block_config + tencentcloud_antiddos_ddos_speed_limit_config + tencentcloud_antiddos_default_alarm_threshold + tencentcloud_antiddos_scheduling_domain_user_name + tencentcloud_antiddos_ip_alarm_threshold_config + tencentcloud_antiddos_packet_filter_config + tencentcloud_antiddos_port_acl_config + tencentcloud_antiddos_cc_black_white_ip + tencentcloud_antiddos_cc_precision_policy + +Anti-DDoS(Dayu) + Data Source + tencentcloud_dayu_cc_http_policies + tencentcloud_dayu_cc_https_policies + tencentcloud_dayu_ddos_policies + tencentcloud_dayu_ddos_policy_attachments + tencentcloud_dayu_ddos_policy_cases + tencentcloud_dayu_l4_rules + tencentcloud_dayu_l7_rules + + Resource + tencentcloud_dayu_cc_http_policy + tencentcloud_dayu_cc_https_policy + tencentcloud_dayu_ddos_policy + tencentcloud_dayu_ddos_policy_attachment + tencentcloud_dayu_ddos_policy_case + tencentcloud_dayu_l4_rule + tencentcloud_dayu_l7_rule + +API GateWay(apigateway) + Data Source + tencentcloud_api_gateway_apis + tencentcloud_api_gateway_services + tencentcloud_api_gateway_throttling_services + tencentcloud_api_gateway_throttling_apis + tencentcloud_api_gateway_usage_plans + tencentcloud_api_gateway_ip_strategies + tencentcloud_api_gateway_customer_domains + tencentcloud_api_gateway_usage_plan_environments + tencentcloud_api_gateway_api_keys + tencentcloud_api_gateway_api_docs + tencentcloud_api_gateway_api_apps + tencentcloud_api_gateway_plugins + tencentcloud_api_gateway_upstreams + tencentcloud_api_gateway_api_usage_plans + tencentcloud_api_gateway_api_app_service + tencentcloud_api_gateway_bind_api_apps_status + tencentcloud_api_gateway_api_app_api + tencentcloud_api_gateway_api_plugins + tencentcloud_api_gateway_service_release_versions + tencentcloud_api_gateway_service_environment_list + + Resource + tencentcloud_api_gateway_api + tencentcloud_api_gateway_service + tencentcloud_api_gateway_custom_domain + tencentcloud_api_gateway_usage_plan + tencentcloud_api_gateway_usage_plan_attachment + tencentcloud_api_gateway_ip_strategy + tencentcloud_api_gateway_strategy_attachment + tencentcloud_api_gateway_api_key + tencentcloud_api_gateway_api_key_attachment + tencentcloud_api_gateway_service_release + tencentcloud_api_gateway_plugin + tencentcloud_api_gateway_plugin_attachment + tencentcloud_api_gateway_api_doc + tencentcloud_api_gateway_api_app + tencentcloud_api_gateway_upstream + tencentcloud_api_gateway_api_app_attachment + tencentcloud_api_gateway_update_api_app_key + tencentcloud_api_gateway_import_open_api + +Cloud Audit(Audit) + Data Source + tencentcloud_audit_cos_regions + tencentcloud_audit_key_alias + tencentcloud_audits + + Resource + tencentcloud_audit + tencentcloud_audit_track + +Auto Scaling(AS) + Data Source + tencentcloud_as_scaling_configs + tencentcloud_as_scaling_groups + tencentcloud_as_scaling_policies + tencentcloud_as_instances + tencentcloud_as_advices + tencentcloud_as_limits + tencentcloud_as_last_activity + + Resource + tencentcloud_as_scaling_config + tencentcloud_as_scaling_group + tencentcloud_as_scaling_group_status + tencentcloud_as_attachment + tencentcloud_as_scaling_policy + tencentcloud_as_schedule + tencentcloud_as_lifecycle_hook + tencentcloud_as_notification + tencentcloud_as_remove_instances + tencentcloud_as_protect_instances + tencentcloud_as_start_instances + tencentcloud_as_stop_instances + tencentcloud_as_scale_in_instances + tencentcloud_as_scale_out_instances + tencentcloud_as_execute_scaling_policy + tencentcloud_as_complete_lifecycle + +Content Delivery Network(CDN) + Data Source + tencentcloud_cdn_domains + tencentcloud_cdn_domain_verifier + + Resource + tencentcloud_cdn_domain + tencentcloud_cdn_url_push + tencentcloud_cdn_url_purge + +Cloud Kafka(ckafka) + Data Source + tencentcloud_ckafka_users + tencentcloud_ckafka_acls + tencentcloud_ckafka_topics + tencentcloud_ckafka_instances + tencentcloud_ckafka_connect_resource + tencentcloud_ckafka_region + tencentcloud_ckafka_datahub_topic + tencentcloud_ckafka_datahub_group_offsets + tencentcloud_ckafka_datahub_task + tencentcloud_ckafka_group + tencentcloud_ckafka_group_offsets + tencentcloud_ckafka_group_info + tencentcloud_ckafka_task_status + tencentcloud_ckafka_topic_flow_ranking + tencentcloud_ckafka_topic_produce_connection + tencentcloud_ckafka_topic_subscribe_group + tencentcloud_ckafka_topic_sync_replica + tencentcloud_ckafka_zone + + Resource + tencentcloud_ckafka_instance + tencentcloud_ckafka_user + tencentcloud_ckafka_acl + tencentcloud_ckafka_topic + tencentcloud_ckafka_datahub_topic + tencentcloud_ckafka_connect_resource + tencentcloud_ckafka_renew_instance + tencentcloud_ckafka_acl_rule + tencentcloud_ckafka_consumer_group + tencentcloud_ckafka_consumer_group_modify_offset + tencentcloud_ckafka_datahub_task + tencentcloud_ckafka_route + +Cloud Access Management(CAM) + Data Source + tencentcloud_cam_group_memberships + tencentcloud_cam_group_policy_attachments + tencentcloud_cam_groups + tencentcloud_cam_policies + tencentcloud_cam_role_policy_attachments + tencentcloud_cam_roles + tencentcloud_cam_saml_providers + tencentcloud_cam_user_policy_attachments + tencentcloud_cam_users + tencentcloud_user_info + tencentcloud_cam_list_entities_for_policy + tencentcloud_cam_secret_last_used_time + tencentcloud_cam_account_summary + tencentcloud_cam_policy_granting_service_access + tencentcloud_cam_oidc_config + tencentcloud_cam_group_user_account + + Resource + tencentcloud_cam_role + tencentcloud_cam_role_by_name + tencentcloud_cam_role_policy_attachment + tencentcloud_cam_role_policy_attachment_by_name + tencentcloud_cam_policy + tencentcloud_cam_policy_by_name + tencentcloud_cam_user + tencentcloud_cam_user_policy_attachment + tencentcloud_cam_group + tencentcloud_cam_group_policy_attachment + tencentcloud_cam_group_membership + tencentcloud_cam_saml_provider + tencentcloud_cam_oidc_sso + tencentcloud_cam_role_sso + tencentcloud_cam_service_linked_role + tencentcloud_cam_mfa_flag + tencentcloud_cam_access_key + tencentcloud_cam_user_saml_config + tencentcloud_cam_tag_role_attachment + tencentcloud_cam_policy_version + tencentcloud_cam_set_policy_version_config + tencentcloud_cam_user_permission_boundary_attachment + tencentcloud_cam_role_permission_boundary_attachment + +Customer Identity and Access Management(CIAM) + Resource + tencentcloud_ciam_user_store + tencentcloud_ciam_user_group + +Cloud Block Storage(CBS) + Data Source + tencentcloud_cbs_snapshots + tencentcloud_cbs_storages + tencentcloud_cbs_storages_set + tencentcloud_cbs_snapshot_policies + + Resource + tencentcloud_cbs_storage + tencentcloud_cbs_storage_set + tencentcloud_cbs_storage_attachment + tencentcloud_cbs_storage_set_attachment + tencentcloud_cbs_snapshot + tencentcloud_cbs_snapshot_policy + tencentcloud_cbs_snapshot_policy_attachment + tencentcloud_cbs_snapshot_share_permission + tencentcloud_cbs_disk_backup + tencentcloud_cbs_disk_backup_rollback_operation + +Cloud Connect Network(CCN) + Data Source + tencentcloud_ccn_bandwidth_limits + tencentcloud_ccn_instances + tencentcloud_ccn_cross_border_compliance + tencentcloud_ccn_tenant_instances + tencentcloud_ccn_cross_border_flow_monitor + tencentcloud_ccn_cross_border_region_bandwidth_limits + + Resource + tencentcloud_ccn + tencentcloud_ccn_attachment + tencentcloud_ccn_bandwidth_limit + tencentcloud_ccn_routes + tencentcloud_ccn_instances_accept_attach + tencentcloud_ccn_instances_reject_attach + tencentcloud_ccn_instances_reset_attach + +CVM Dedicated Host(CDH) + Data Source + tencentcloud_cdh_instances + + Resource + tencentcloud_cdh_instance + +Cloud File Storage(CFS) + Data Source + tencentcloud_cfs_access_groups + tencentcloud_cfs_access_rules + tencentcloud_cfs_file_systems + tencentcloud_cfs_mount_targets + tencentcloud_cfs_file_system_clients + tencentcloud_cfs_available_zone + + Resource + tencentcloud_cfs_file_system + tencentcloud_cfs_access_group + tencentcloud_cfs_access_rule + tencentcloud_cfs_auto_snapshot_policy + tencentcloud_cfs_auto_snapshot_policy_attachment + tencentcloud_cfs_snapshot + tencentcloud_cfs_sign_up_cfs_service + +Container Cluster(tke) + Data Source + tencentcloud_container_cluster_instances + tencentcloud_container_clusters + + Resource + tencentcloud_container_cluster + tencentcloud_container_cluster_instance + +Cloud Load Balancer(CLB) + Data Source + tencentcloud_clb_attachments + tencentcloud_clb_instances + tencentcloud_clb_listener_rules + tencentcloud_clb_listeners + tencentcloud_clb_redirections + tencentcloud_clb_target_groups + tencentcloud_clb_cluster_resources + tencentcloud_clb_cross_targets + tencentcloud_clb_exclusive_clusters + tencentcloud_clb_idle_instances + tencentcloud_clb_listeners_by_targets + tencentcloud_clb_instance_by_cert_id + tencentcloud_clb_instance_traffic + tencentcloud_clb_instance_detail + tencentcloud_clb_resources + tencentcloud_clb_target_group_list + tencentcloud_clb_target_health + + Resource + tencentcloud_clb_instance + tencentcloud_clb_listener + tencentcloud_clb_listener_rule + tencentcloud_clb_attachment + tencentcloud_clb_redirection + tencentcloud_lb + tencentcloud_alb_server_attachment + tencentcloud_clb_target_group + tencentcloud_clb_target_group_instance_attachment + tencentcloud_clb_target_group_attachment + tencentcloud_clb_log_set + tencentcloud_clb_log_topic + tencentcloud_clb_customized_config + tencentcloud_clb_snat_ip + tencentcloud_clb_function_targets_attachment + tencentcloud_clb_instance_sla_config + tencentcloud_clb_instance_mix_ip_target_config + tencentcloud_clb_replace_cert_for_lbs + tencentcloud_clb_security_group_attachment + +Cloud Object Storage(COS) + Data Source + tencentcloud_cos_bucket_object + tencentcloud_cos_buckets + tencentcloud_cos_batchs + tencentcloud_cos_bucket_inventorys + tencentcloud_cos_bucket_multipart_uploads + + Resource + tencentcloud_cos_bucket + tencentcloud_cos_bucket_object + tencentcloud_cos_bucket_policy + tencentcloud_cos_bucket_referer + tencentcloud_cos_bucket_version + tencentcloud_cos_bucket_domain_certificate_attachment + tencentcloud_cos_bucket_inventory + tencentcloud_cos_batch + tencentcloud_cos_object_abort_multipart_upload_operation + tencentcloud_cos_object_copy_operation + tencentcloud_cos_object_restore_operation + tencentcloud_cos_bucket_generate_inventory_immediately_operation + tencentcloud_cos_object_download_operation + +Cloud Virtual Machine(CVM) + Data Source + tencentcloud_image + tencentcloud_images + tencentcloud_instance_types + tencentcloud_instances + tencentcloud_instances_set + tencentcloud_key_pairs + tencentcloud_eip + tencentcloud_eips + tencentcloud_eip_address_quota + tencentcloud_eip_network_account_type + tencentcloud_placement_groups + tencentcloud_reserved_instance_configs + tencentcloud_reserved_instances + tencentcloud_cvm_instances_modification + tencentcloud_cvm_instance_vnc_url + tencentcloud_cvm_disaster_recover_group_quota + tencentcloud_cvm_chc_hosts + tencentcloud_cvm_chc_denied_actions + tencentcloud_cvm_image_quota + tencentcloud_cvm_image_share_permission + tencentcloud_cvm_import_image_os + + Resource + tencentcloud_instance + tencentcloud_instance_set + tencentcloud_eip + tencentcloud_eip_association + tencentcloud_eip_address_transform + tencentcloud_eip_public_address_adjust + tencentcloud_eip_normal_address_return + tencentcloud_key_pair + tencentcloud_placement_group + tencentcloud_reserved_instance + tencentcloud_image + tencentcloud_cvm_hpc_cluster + tencentcloud_cvm_launch_template + tencentcloud_cvm_launch_template_version + tencentcloud_cvm_launch_template_default_version + tencentcloud_cvm_security_group_attachment + tencentcloud_cvm_reboot_instance + tencentcloud_cvm_chc_config + tencentcloud_cvm_renew_instance + tencentcloud_cvm_sync_image + tencentcloud_cvm_export_images + tencentcloud_cvm_image_share_permission + +TDSQL-C MySQL(CynosDB) + Data Source + tencentcloud_cynosdb_clusters + tencentcloud_cynosdb_instances + tencentcloud_cynosdb_zone_config + tencentcloud_cynosdb_accounts + tencentcloud_cynosdb_cluster_instance_groups + tencentcloud_cynosdb_cluster_params + tencentcloud_cynosdb_param_templates + tencentcloud_cynosdb_audit_logs + tencentcloud_cynosdb_binlog_download_url + tencentcloud_cynosdb_cluster_detail_databases + tencentcloud_cynosdb_cluster_param_logs + tencentcloud_cynosdb_cluster + tencentcloud_cynosdb_describe_instance_slow_queries + tencentcloud_cynosdb_describe_instance_error_logs + tencentcloud_cynosdb_account_all_grant_privileges + tencentcloud_cynosdb_resource_package_list + tencentcloud_cynosdb_project_security_groups + tencentcloud_cynosdb_resource_package_sale_specs + tencentcloud_cynosdb_rollback_time_range + tencentcloud_cynosdb_zone + tencentcloud_cynosdb_instance_slow_queries + tencentcloud_cynosdb_proxy_node + tencentcloud_cynosdb_proxy_version + + Resource + tencentcloud_cynosdb_cluster_resource_packages_attachment + tencentcloud_cynosdb_cluster + tencentcloud_cynosdb_readonly_instance + tencentcloud_cynosdb_security_group + tencentcloud_cynosdb_audit_log_file + tencentcloud_cynosdb_cluster_password_complexity + tencentcloud_cynosdb_export_instance_error_logs + tencentcloud_cynosdb_export_instance_slow_queries + tencentcloud_cynosdb_account_privileges + tencentcloud_cynosdb_account + tencentcloud_cynosdb_binlog_save_days + tencentcloud_cynosdb_cluster_databases + tencentcloud_cynosdb_instance_param + tencentcloud_cynosdb_isolate_instance + tencentcloud_cynosdb_param_template + tencentcloud_cynosdb_restart_instance + tencentcloud_cynosdb_roll_back_cluster + tencentcloud_cynosdb_wan + tencentcloud_cynosdb_proxy + tencentcloud_cynosdb_reload_proxy_node + tencentcloud_cynosdb_cluster_slave_zone + tencentcloud_cynosdb_read_only_instance_exclusive_access + tencentcloud_cynosdb_proxy_end_point + tencentcloud_cynosdb_upgrade_proxy_version + +Direct Connect(DC) + Data Source + tencentcloud_dc_instances + tencentcloud_dc_access_points + tencentcloud_dcx_instances + tencentcloud_dc_internet_address_quota + tencentcloud_dc_internet_address_statistics + tencentcloud_dc_public_direct_connect_tunnel_routes + + Resource + tencentcloud_dc_instance + tencentcloud_dcx + tencentcloud_dcx_extra_config + tencentcloud_dc_share_dcx_config + tencentcloud_dc_internet_address + tencentcloud_dc_internet_address_config + +Direct Connect Gateway(DCG) + Data Source + tencentcloud_dc_gateway_ccn_routes + tencentcloud_dc_gateway_instances + + Resource + tencentcloud_dc_gateway + tencentcloud_dc_gateway_ccn_route + tencentcloud_dc_gateway_attachment + +Domain + Data Source + tencentcloud_domains + +Elasticsearch Service(ES) + Data Source + tencentcloud_elasticsearch_describe_index_list + tencentcloud_elasticsearch_instances + tencentcloud_elasticsearch_instance_logs + tencentcloud_elasticsearch_instance_operations + tencentcloud_elasticsearch_logstash_instance_logs + tencentcloud_elasticsearch_logstash_instance_operations + tencentcloud_elasticsearch_views + tencentcloud_elasticsearch_diagnose + tencentcloud_elasticsearch_instance_plugin_list + + Resource + tencentcloud_elasticsearch_instance + tencentcloud_elasticsearch_security_group + tencentcloud_elasticsearch_logstash + tencentcloud_elasticsearch_logstash_pipeline + tencentcloud_elasticsearch_restart_logstash_instance_operation + tencentcloud_elasticsearch_start_logstash_pipeline_operation + tencentcloud_elasticsearch_stop_logstash_pipeline_operation + tencentcloud_elasticsearch_index + tencentcloud_elasticsearch_restart_instance_operation + tencentcloud_elasticsearch_restart_nodes_operation + tencentcloud_elasticsearch_restart_kibana_operation + tencentcloud_elasticsearch_diagnose + tencentcloud_elasticsearch_diagnose_instance + tencentcloud_elasticsearch_update_plugins_operation + +Global Application Acceleration(GAAP) + Data Source + tencentcloud_gaap_certificates + tencentcloud_gaap_http_domains + tencentcloud_gaap_http_rules + tencentcloud_gaap_layer4_listeners + tencentcloud_gaap_layer7_listeners + tencentcloud_gaap_proxies + tencentcloud_gaap_realservers + tencentcloud_gaap_security_policies + tencentcloud_gaap_security_rules + tencentcloud_gaap_domain_error_pages + tencentcloud_gaap_access_regions + tencentcloud_gaap_access_regions_by_dest_region + tencentcloud_gaap_black_header + tencentcloud_gaap_country_area_mapping + tencentcloud_gaap_custom_header + tencentcloud_gaap_dest_regions + tencentcloud_gaap_proxy_detail + tencentcloud_gaap_proxy_groups + tencentcloud_gaap_proxy_statistics + tencentcloud_gaap_proxy_group_statistics + tencentcloud_gaap_real_servers_status + tencentcloud_gaap_rule_real_servers + tencentcloud_gaap_resources_by_tag + tencentcloud_gaap_region_and_price + tencentcloud_gaap_proxy_and_statistics_listeners + tencentcloud_gaap_proxies_status + tencentcloud_gaap_listener_statistics + tencentcloud_gaap_listener_real_servers + tencentcloud_gaap_group_and_statistics_proxy + tencentcloud_gaap_domain_error_page_infos + tencentcloud_gaap_check_proxy_create + + Resource + tencentcloud_gaap_proxy + tencentcloud_gaap_realserver + tencentcloud_gaap_layer4_listener + tencentcloud_gaap_layer7_listener + tencentcloud_gaap_http_domain + tencentcloud_gaap_http_rule + tencentcloud_gaap_certificate + tencentcloud_gaap_security_policy + tencentcloud_gaap_security_rule + tencentcloud_gaap_domain_error_page + tencentcloud_gaap_global_domain_dns + tencentcloud_gaap_global_domain + +Key Management Service(KMS) + Data Source + tencentcloud_kms_keys + tencentcloud_kms_public_key + tencentcloud_kms_get_parameters_for_import + tencentcloud_kms_describe_keys + tencentcloud_kms_white_box_key_details + tencentcloud_kms_list_keys + tencentcloud_kms_white_box_decrypt_key + tencentcloud_kms_white_box_device_fingerprints + tencentcloud_kms_list_algorithms + + Resource + tencentcloud_kms_key + tencentcloud_kms_external_key + tencentcloud_kms_white_box_key + tencentcloud_kms_cloud_resource_attachment + tencentcloud_kms_overwrite_white_box_device_fingerprints + +Tencent Kubernetes Engine(TKE) + Data Source + tencentcloud_kubernetes_clusters + tencentcloud_kubernetes_cluster_levels + tencentcloud_kubernetes_charts + tencentcloud_kubernetes_cluster_common_names + tencentcloud_kubernetes_available_cluster_versions + tencentcloud_kubernetes_cluster_authentication_options + tencentcloud_kubernetes_cluster_node_pools + tencentcloud_kubernetes_cluster_instances + tencentcloud_kubernetes_cluster_node_pools + + Resource + tencentcloud_kubernetes_cluster + tencentcloud_kubernetes_scale_worker + tencentcloud_kubernetes_cluster_attachment + tencentcloud_kubernetes_node_pool + tencentcloud_kubernetes_serverless_node_pool + tencentcloud_kubernetes_backup_storage_location + tencentcloud_kubernetes_encryption_protection + tencentcloud_kubernetes_auth_attachment + tencentcloud_kubernetes_addon_attachment + tencentcloud_kubernetes_cluster_endpoint + +TDMQ for Pulsar(tpulsar) + Data Source + tencentcloud_tdmq_environment_attributes + tencentcloud_tdmq_publisher_summary + tencentcloud_tdmq_publishers + tencentcloud_tdmq_pro_instances + tencentcloud_tdmq_pro_instance_detail + + Resource + tencentcloud_tdmq_instance + tencentcloud_tdmq_namespace + tencentcloud_tdmq_topic + tencentcloud_tdmq_role + tencentcloud_tdmq_namespace_role_attachment + +TencentDB for MongoDB(mongodb) + Data Source + tencentcloud_mongodb_instances + tencentcloud_mongodb_zone_config + tencentcloud_mongodb_instance_backups + tencentcloud_mongodb_instance_connections + tencentcloud_mongodb_instance_current_op + tencentcloud_mongodb_instance_params + tencentcloud_mongodb_instance_slow_log + + Resource + tencentcloud_mongodb_instance + tencentcloud_mongodb_sharding_instance + tencentcloud_mongodb_standby_instance + tencentcloud_mongodb_instance_account + tencentcloud_mongodb_instance_backup + +TencentDB for MySQL(cdb) + Data Source + tencentcloud_mysql_backup_list + tencentcloud_mysql_instance + tencentcloud_mysql_parameter_list + tencentcloud_mysql_default_params + tencentcloud_mysql_zone_config + tencentcloud_mysql_backup_overview + tencentcloud_mysql_backup_summaries + tencentcloud_mysql_bin_log + tencentcloud_mysql_binlog_backup_overview + tencentcloud_mysql_clone_list + tencentcloud_mysql_data_backup_overview + tencentcloud_mysql_db_features + tencentcloud_mysql_inst_tables + tencentcloud_mysql_instance_charset + tencentcloud_mysql_instance_info + tencentcloud_mysql_instance_param_record + tencentcloud_mysql_instance_reboot_time + tencentcloud_mysql_rollback_range_time + tencentcloud_mysql_slow_log + tencentcloud_mysql_slow_log_data + tencentcloud_mysql_supported_privileges + tencentcloud_mysql_switch_record + tencentcloud_mysql_user_task + tencentcloud_mysql_databases + tencentcloud_mysql_error_log + tencentcloud_mysql_project_security_group + tencentcloud_mysql_ro_min_scale + + Resource + tencentcloud_mysql_instance + tencentcloud_mysql_database + tencentcloud_mysql_readonly_instance + tencentcloud_mysql_account + tencentcloud_mysql_privilege + tencentcloud_mysql_account_privilege + tencentcloud_mysql_backup_policy + tencentcloud_mysql_time_window + tencentcloud_mysql_param_template + tencentcloud_mysql_deploy_group + tencentcloud_mysql_security_groups_attachment + tencentcloud_mysql_local_binlog_config + tencentcloud_mysql_audit_log_file + tencentcloud_mysql_backup_download_restriction + tencentcloud_mysql_renew_db_instance_operation + tencentcloud_mysql_backup_encryption_status + tencentcloud_mysql_dr_instance_to_mater + tencentcloud_mysql_instance_encryption_operation + tencentcloud_mysql_password_complexity + tencentcloud_mysql_remote_backup_config + tencentcloud_mysql_restart_db_instances_operation + tencentcloud_mysql_switch_for_upgrade + tencentcloud_mysql_rollback + tencentcloud_mysql_rollback_stop + tencentcloud_mysql_ro_group + tencentcloud_mysql_ro_instance_ip + tencentcloud_mysql_ro_group_load_operation + tencentcloud_mysql_switch_master_slave_operation + tencentcloud_mysql_proxy + tencentcloud_mysql_reset_root_account + tencentcloud_mysql_verify_root_account + tencentcloud_mysql_reload_balance_proxy_node + tencentcloud_mysql_ro_start_replication + tencentcloud_mysql_ro_stop_replication + tencentcloud_mysql_isolate_instance + +Cloud Monitor(Monitor) + Data Source + tencentcloud_monitor_policy_conditions + tencentcloud_monitor_data + tencentcloud_monitor_product_event + tencentcloud_monitor_binding_objects + tencentcloud_monitor_policy_groups + tencentcloud_monitor_product_namespace + tencentcloud_monitor_alarm_notices + tencentcloud_monitor_alarm_history + tencentcloud_monitor_alarm_metric + tencentcloud_monitor_alarm_policy + tencentcloud_monitor_alarm_basic_alarms + tencentcloud_monitor_alarm_basic_metric + tencentcloud_monitor_alarm_conditions_template + tencentcloud_monitor_alarm_notice_callbacks + tencentcloud_monitor_alarm_all_namespaces + tencentcloud_monitor_alarm_monitor_type + + Resource + tencentcloud_monitor_binding_object + tencentcloud_monitor_policy_binding_object + tencentcloud_monitor_binding_receiver + tencentcloud_monitor_alarm_policy + tencentcloud_monitor_alarm_notice + tencentcloud_monitor_alarm_policy_set_default + + +Managed Service for Prometheus(TMP) + Data Source + tencentcloud_monitor_tmp_regions + + Resource + tencentcloud_monitor_tmp_instance + tencentcloud_monitor_tmp_alert_rule + tencentcloud_monitor_tmp_exporter_integration + tencentcloud_monitor_tmp_cvm_agent + tencentcloud_monitor_tmp_scrape_job + tencentcloud_monitor_tmp_recording_rule + tencentcloud_monitor_tmp_manage_grafana_attachment + tencentcloud_monitor_tmp_tke_template + tencentcloud_monitor_tmp_tke_template_attachment + tencentcloud_monitor_tmp_tke_alert_policy + tencentcloud_monitor_tmp_tke_config + tencentcloud_monitor_tmp_tke_record_rule_yaml + tencentcloud_monitor_tmp_tke_global_notification + tencentcloud_monitor_tmp_tke_cluster_agent + tencentcloud_monitor_tmp_tke_basic_config + +TencentCloud Managed Service for Grafana(TCMG) + Data Source + tencentcloud_monitor_grafana_plugin_overviews + + Resource + tencentcloud_monitor_grafana_instance + tencentcloud_monitor_grafana_integration + tencentcloud_monitor_grafana_notification_channel + tencentcloud_monitor_grafana_plugin + tencentcloud_monitor_grafana_sso_account + tencentcloud_monitor_tmp_grafana_config + tencentcloud_monitor_grafana_dns_config + tencentcloud_monitor_grafana_env_config + tencentcloud_monitor_grafana_whitelist_config + tencentcloud_monitor_grafana_sso_cam_config + tencentcloud_monitor_grafana_sso_config + tencentcloud_monitor_grafana_version_upgrade + +TencentDB for PostgreSQL(PostgreSQL) + Data Source + tencentcloud_postgresql_instances + tencentcloud_postgresql_specinfos + tencentcloud_postgresql_xlogs + tencentcloud_postgresql_parameter_templates + tencentcloud_postgresql_readonly_groups + tencentcloud_postgresql_base_backups + tencentcloud_postgresql_log_backups + tencentcloud_postgresql_backup_download_urls + tencentcloud_postgresql_db_instance_classes + tencentcloud_postgresql_default_parameters + tencentcloud_postgresql_recovery_time + tencentcloud_postgresql_regions + tencentcloud_postgresql_db_instance_versions + tencentcloud_postgresql_zones + + Resource + tencentcloud_postgresql_instance + tencentcloud_postgresql_readonly_instance + tencentcloud_postgresql_readonly_group + tencentcloud_postgresql_readonly_attachment + tencentcloud_postgresql_parameter_template + tencentcloud_postgresql_backup_plan_config + tencentcloud_postgresql_security_group_config + tencentcloud_postgresql_backup_download_restriction_config + tencentcloud_postgresql_restart_db_instance_operation + tencentcloud_postgresql_renew_db_instance_operation + tencentcloud_postgresql_isolate_db_instance_operation + tencentcloud_postgresql_disisolate_db_instance_operation + tencentcloud_postgresql_rebalance_readonly_group_operation + tencentcloud_postgresql_delete_log_backup_operation + tencentcloud_postgresql_modify_account_remark_operation + tencentcloud_postgresql_modify_switch_time_period_operation + tencentcloud_postgresql_base_backup + +TencentDB for Redis(crs) + Data Source + tencentcloud_redis_zone_config + tencentcloud_redis_instances + tencentcloud_redis_backup + tencentcloud_redis_backup_download_info + tencentcloud_redis_param_records + tencentcloud_redis_instance_shards + tencentcloud_redis_instance_zone_info + tencentcloud_redis_instance_task_list + tencentcloud_redis_instance_node_info + + Resource + tencentcloud_redis_instance + tencentcloud_redis_backup_config + tencentcloud_redis_param_template + tencentcloud_redis_account + tencentcloud_redis_read_only + tencentcloud_redis_ssl + tencentcloud_redis_backup_download_restriction + tencentcloud_redis_clear_instance_operation + tencentcloud_redis_renew_instance_operation + tencentcloud_redis_startup_instance_operation + tencentcloud_redis_upgrade_cache_version_operation + tencentcloud_redis_upgrade_multi_zone_operation + tencentcloud_redis_upgrade_proxy_version_operation + tencentcloud_redis_maintenance_window + tencentcloud_redis_replica_readonly + tencentcloud_redis_switch_master + tencentcloud_redis_replicate_attachment + tencentcloud_redis_backup_operation + tencentcloud_redis_security_group_attachment + tencentcloud_redis_connection_config + +Serverless Cloud Function(SCF) + Data Source + tencentcloud_scf_functions + tencentcloud_scf_logs + tencentcloud_scf_namespaces + tencentcloud_scf_account_info + tencentcloud_scf_async_event_management + tencentcloud_scf_triggers + tencentcloud_scf_async_event_status + tencentcloud_scf_function_address + tencentcloud_scf_request_status + tencentcloud_scf_function_aliases + tencentcloud_scf_layer_versions + tencentcloud_scf_layers + tencentcloud_scf_function_versions + + Resource + tencentcloud_scf_function + tencentcloud_scf_function_version + tencentcloud_scf_function_event_invoke_config + tencentcloud_scf_reserved_concurrency_config + tencentcloud_scf_provisioned_concurrency_config + tencentcloud_scf_invoke_function + tencentcloud_scf_sync_invoke_function + tencentcloud_scf_terminate_async_event + tencentcloud_scf_namespace + tencentcloud_scf_layer + tencentcloud_scf_function_alias + tencentcloud_scf_trigger_config + +SQLServer + Data Source + tencentcloud_sqlserver_zone_config + tencentcloud_sqlserver_instances + tencentcloud_sqlserver_dbs + tencentcloud_sqlserver_accounts + tencentcloud_sqlserver_account_db_attachments + tencentcloud_sqlserver_readonly_groups + tencentcloud_sqlserver_publish_subscribes + tencentcloud_sqlserver_basic_instances + tencentcloud_sqlserver_backup_commands + tencentcloud_sqlserver_backup_by_flow_id + tencentcloud_sqlserver_backup_upload_size + tencentcloud_sqlserver_cross_region_zone + tencentcloud_sqlserver_db_charsets + tencentcloud_sqlserver_instance_param_records + tencentcloud_sqlserver_project_security_groups + tencentcloud_sqlserver_regions + tencentcloud_sqlserver_rollback_time + tencentcloud_sqlserver_slowlogs + tencentcloud_sqlserver_upload_backup_info + tencentcloud_sqlserver_upload_incremental_info + tencentcloud_sqlserver_query_xevent + tencentcloud_sqlserver_ins_attribute + + Resource + tencentcloud_sqlserver_instance + tencentcloud_sqlserver_readonly_instance + tencentcloud_sqlserver_db + tencentcloud_sqlserver_account + tencentcloud_sqlserver_account_db_attachment + tencentcloud_sqlserver_publish_subscribe + tencentcloud_sqlserver_basic_instance + tencentcloud_sqlserver_migration + tencentcloud_sqlserver_config_backup_strategy + tencentcloud_sqlserver_general_backup + tencentcloud_sqlserver_general_clone + tencentcloud_sqlserver_full_backup_migration + tencentcloud_sqlserver_incre_backup_migration + tencentcloud_sqlserver_business_intelligence_file + tencentcloud_sqlserver_business_intelligence_instance + tencentcloud_sqlserver_general_communication + tencentcloud_sqlserver_general_cloud_instance + tencentcloud_sqlserver_complete_expansion + tencentcloud_sqlserver_config_database_cdc + tencentcloud_sqlserver_config_database_ct + tencentcloud_sqlserver_config_database_mdf + tencentcloud_sqlserver_config_instance_param + tencentcloud_sqlserver_config_instance_ro_group + tencentcloud_sqlserver_renew_db_instance + tencentcloud_sqlserver_renew_postpaid_db_instance + tencentcloud_sqlserver_restart_db_instance + tencentcloud_sqlserver_config_terminate_db_instance + tencentcloud_sqlserver_restore_instance + tencentcloud_sqlserver_rollback_instance + tencentcloud_sqlserver_start_backup_full_migration + tencentcloud_sqlserver_start_backup_incremental_migration + tencentcloud_sqlserver_start_xevent + tencentcloud_sqlserver_instance_tde + tencentcloud_sqlserver_database_tde + tencentcloud_sqlserver_general_cloud_ro_instance + +SSL Certificates(ssl) + Data Source + tencentcloud_ssl_certificates + tencentcloud_ssl_describe_certificate + tencentcloud_ssl_describe_companies + tencentcloud_ssl_describe_host_api_gateway_instance_list + tencentcloud_ssl_describe_host_cdn_instance_list + tencentcloud_ssl_describe_host_clb_instance_list + tencentcloud_ssl_describe_host_cos_instance_list + tencentcloud_ssl_describe_host_ddos_instance_list + tencentcloud_ssl_describe_host_lighthouse_instance_list + tencentcloud_ssl_describe_host_live_instance_list + tencentcloud_ssl_describe_host_teo_instance_list + tencentcloud_ssl_describe_host_tke_instance_list + tencentcloud_ssl_describe_host_vod_instance_list + tencentcloud_ssl_describe_host_waf_instance_list + tencentcloud_ssl_describe_host_deploy_record + tencentcloud_ssl_describe_host_deploy_record_detail + tencentcloud_ssl_describe_host_update_record + tencentcloud_ssl_describe_host_update_record_detail + tencentcloud_ssl_describe_managers + tencentcloud_ssl_describe_manager_detail + + Resource + tencentcloud_ssl_certificate + tencentcloud_ssl_pay_certificate + tencentcloud_ssl_free_certificate + tencentcloud_ssl_replace_certificate_operation + tencentcloud_ssl_revoke_certificate_operation + tencentcloud_ssl_update_certificate_instance_operation + tencentcloud_ssl_update_certificate_record_retry_operation + tencentcloud_ssl_update_certificate_record_rollback_operation + tencentcloud_ssl_upload_revoke_letter_operation + tencentcloud_ssl_complete_certificate_operation + tencentcloud_ssl_check_certificate_chain_operation + tencentcloud_ssl_deploy_certificate_instance_operation + tencentcloud_ssl_deploy_certificate_record_retry_operation + tencentcloud_ssl_deploy_certificate_record_rollback_operation + tencentcloud_ssl_download_certificate_operation + +Secrets Manager(SSM) + Data Source + tencentcloud_ssm_products + tencentcloud_ssm_secrets + tencentcloud_ssm_secret_versions + tencentcloud_ssm_rotation_detail + tencentcloud_ssm_rotation_history + tencentcloud_ssm_service_status + tencentcloud_ssm_ssh_key_pair_value + + Resource + tencentcloud_ssm_secret + tencentcloud_ssm_secret_version + tencentcloud_ssm_product_secret + tencentcloud_ssm_ssh_key_pair_secret + tencentcloud_ssm_rotate_product_secret + +TcaplusDB + Data Source + tencentcloud_tcaplus_clusters + tencentcloud_tcaplus_idls + tencentcloud_tcaplus_tables + tencentcloud_tcaplus_tablegroups + + Resource + tencentcloud_tcaplus_cluster + tencentcloud_tcaplus_tablegroup + tencentcloud_tcaplus_idl + tencentcloud_tcaplus_table + +Tencent Container Registry(TCR) + Data Source + tencentcloud_tcr_instances + tencentcloud_tcr_namespaces + tencentcloud_tcr_repositories + tencentcloud_tcr_tokens + tencentcloud_tcr_vpc_attachments + tencentcloud_tcr_webhook_trigger_logs + tencentcloud_tcr_images + tencentcloud_tcr_image_manifests + tencentcloud_tcr_tag_retention_execution_tasks + tencentcloud_tcr_tag_retention_executions + tencentcloud_tcr_replication_instance_create_tasks + tencentcloud_tcr_replication_instance_sync_status + + Resource + tencentcloud_tcr_instance + tencentcloud_tcr_namespace + tencentcloud_tcr_repository + tencentcloud_tcr_token + tencentcloud_tcr_vpc_attachment + tencentcloud_tcr_tag_retention_rule + tencentcloud_tcr_webhook_trigger + tencentcloud_tcr_manage_replication_operation + tencentcloud_tcr_customized_domain + tencentcloud_tcr_immutable_tag_rule + tencentcloud_tcr_delete_image_operation + tencentcloud_tcr_create_image_signature_operation + tencentcloud_tcr_tag_retention_execution_config + tencentcloud_tcr_service_account + +Video on Demand(VOD) + Data Source + tencentcloud_vod_adaptive_dynamic_streaming_templates + tencentcloud_vod_snapshot_by_time_offset_templates + tencentcloud_vod_super_player_configs + tencentcloud_vod_image_sprite_templates + tencentcloud_vod_procedure_templates + + + Resource + tencentcloud_vod_adaptive_dynamic_streaming_template + tencentcloud_vod_procedure_template + tencentcloud_vod_snapshot_by_time_offset_template + tencentcloud_vod_image_sprite_template + tencentcloud_vod_super_player_config + tencentcloud_vod_sub_application + +Oceanus + Data Source + tencentcloud_oceanus_resource_related_job + tencentcloud_oceanus_savepoint_list + tencentcloud_oceanus_system_resource + tencentcloud_oceanus_work_spaces + tencentcloud_oceanus_clusters + tencentcloud_oceanus_tree_jobs + tencentcloud_oceanus_tree_resources + tencentcloud_oceanus_job_submission_log + tencentcloud_oceanus_check_savepoint + + Resource + tencentcloud_oceanus_folder + tencentcloud_oceanus_job + tencentcloud_oceanus_job_config + tencentcloud_oceanus_job_copy + tencentcloud_oceanus_run_job + tencentcloud_oceanus_stop_job + tencentcloud_oceanus_trigger_job_savepoint + tencentcloud_oceanus_resource + tencentcloud_oceanus_resource_config + tencentcloud_oceanus_work_space + +Virtual Private Cloud(VPC) + Data Source + tencentcloud_route_table + tencentcloud_security_group + tencentcloud_security_groups + tencentcloud_address_templates + tencentcloud_address_template_groups + tencentcloud_protocol_templates + tencentcloud_protocol_template_groups + tencentcloud_subnet + tencentcloud_vpc + tencentcloud_vpc_acls + tencentcloud_vpc_account_attributes + tencentcloud_vpc_classic_link_instances + tencentcloud_vpc_gateway_flow_monitor_detail + tencentcloud_vpc_gateway_flow_qos + tencentcloud_vpc_cvm_instances + tencentcloud_vpc_net_detect_states + tencentcloud_vpc_net_detect_state_check + tencentcloud_vpc_network_interface_limit + tencentcloud_vpc_private_ip_addresses + tencentcloud_vpc_product_quota + tencentcloud_vpc_resource_dashboard + tencentcloud_vpc_route_conflicts + tencentcloud_vpc_security_group_limits + tencentcloud_vpc_security_group_references + tencentcloud_vpc_sg_snapshot_file_content + tencentcloud_vpc_snapshot_files + tencentcloud_vpc_subnet_resource_dashboard + tencentcloud_vpc_template_limits + tencentcloud_vpc_used_ip_address + tencentcloud_vpc_limits + tencentcloud_vpc_instances + tencentcloud_vpc_route_tables + tencentcloud_vpc_subnets + tencentcloud_dnats + tencentcloud_enis + tencentcloud_ha_vip_eip_attachments + tencentcloud_ha_vips + tencentcloud_nat_gateways + tencentcloud_nat_gateway_snats + tencentcloud_nats + tencentcloud_nat_dc_route + tencentcloud_vpc_bandwidth_package_quota + tencentcloud_vpc_bandwidth_package_bill_usage + + Resource + tencentcloud_eni + tencentcloud_eni_attachment + tencentcloud_eni_sg_attachment + tencentcloud_vpc + tencentcloud_vpc_acl + tencentcloud_vpc_acl_attachment + tencentcloud_vpc_traffic_package + tencentcloud_vpc_snapshot_policy + tencentcloud_vpc_snapshot_policy_attachment + tencentcloud_vpc_snapshot_policy_config + tencentcloud_vpc_net_detect + tencentcloud_vpc_dhcp_ip + tencentcloud_vpc_ipv6_cidr_block + tencentcloud_vpc_ipv6_subnet_cidr_block + tencentcloud_vpc_ipv6_eni_address + tencentcloud_vpc_local_gateway + tencentcloud_vpc_resume_snapshot_instance + tencentcloud_subnet + tencentcloud_security_group + tencentcloud_security_group_rule + tencentcloud_security_group_rule_set + tencentcloud_security_group_lite_rule + tencentcloud_address_template + tencentcloud_address_template_group + tencentcloud_protocol_template + tencentcloud_protocol_template_group + tencentcloud_route_table + tencentcloud_route_table_association + tencentcloud_route_entry + tencentcloud_route_table_entry + tencentcloud_dnat + tencentcloud_nat_gateway + tencentcloud_nat_gateway_snat + tencentcloud_nat_refresh_nat_dc_route + tencentcloud_ha_vip + tencentcloud_ha_vip_eip_attachment + tencentcloud_vpc_bandwidth_package + tencentcloud_vpc_bandwidth_package_attachment + tencentcloud_ipv6_address_bandwidth + +Private Link(PLS) + Resource + tencentcloud_vpc_end_point_service + tencentcloud_vpc_end_point + tencentcloud_vpc_enable_end_point_connect + tencentcloud_vpc_end_point_service_white_list + +Flow Logs(FL) + Resource + tencentcloud_vpc_flow_log + tencentcloud_vpc_flow_log_config + +VPN Connections(VPN) + Data Source + tencentcloud_vpn_connections + tencentcloud_vpn_customer_gateways + tencentcloud_vpn_gateways + tencentcloud_vpn_gateway_routes + tencentcloud_vpn_customer_gateway_vendors + tencentcloud_vpn_default_health_check_ip + + Resource + tencentcloud_vpn_customer_gateway + tencentcloud_vpn_gateway + tencentcloud_vpn_gateway_route + tencentcloud_vpn_connection + tencentcloud_vpn_ssl_server + tencentcloud_vpn_ssl_client + tencentcloud_vpn_connection_reset + tencentcloud_vpn_customer_gateway_configuration_download + tencentcloud_vpn_gateway_ssl_client_cert + tencentcloud_vpn_gateway_ccn_routes + +MapReduce(EMR) + Data Source + tencentcloud_emr + tencentcloud_emr_auto_scale_records + tencentcloud_emr_nodes + tencentcloud_emr_cvm_quota + + Resource + tencentcloud_emr_cluster + tencentcloud_emr_user_manager + +DNSPOD + Resource + tencentcloud_dnspod_domain_instance + tencentcloud_dnspod_domain_alias + tencentcloud_dnspod_record + tencentcloud_dnspod_record_group + tencentcloud_dnspod_modify_record_group_operation + tencentcloud_dnspod_modify_domain_owner_operation + tencentcloud_dnspod_download_snapshot_operation + tencentcloud_dnspod_custom_line + tencentcloud_dnspod_snapshot_config + tencentcloud_dnspod_domain_lock + + Data Source + tencentcloud_dnspod_records + tencentcloud_dnspod_domain_list + tencentcloud_dnspod_domain_analytics + tencentcloud_dnspod_domain_log_list + tencentcloud_dnspod_record_analytics + tencentcloud_dnspod_record_line_list + tencentcloud_dnspod_record_list + tencentcloud_dnspod_record_type + +PrivateDNS + Resource + tencentcloud_private_dns_zone + tencentcloud_private_dns_record + tencentcloud_private_dns_zone_vpc_attachment + Data Source + tencentcloud_private_dns_records + +Cloud Log Service(CLS) + Resource + tencentcloud_cls_logset + tencentcloud_cls_topic + tencentcloud_cls_config + tencentcloud_cls_config_extra + tencentcloud_cls_config_attachment + tencentcloud_cls_machine_group + tencentcloud_cls_cos_shipper + tencentcloud_cls_index + tencentcloud_cls_alarm + tencentcloud_cls_alarm_notice + tencentcloud_cls_ckafka_consumer + tencentcloud_cls_kafka_recharge + tencentcloud_cls_cos_recharge + tencentcloud_cls_export + tencentcloud_cls_scheduled_sql + tencentcloud_cls_data_transform + + Data Source + tencentcloud_cls_shipper_tasks + tencentcloud_cls_machines + tencentcloud_cls_machine_group_configs + +TencentCloud Lighthouse(Lighthouse) + Resource + tencentcloud_lighthouse_instance + tencentcloud_lighthouse_blueprint + tencentcloud_lighthouse_firewall_rule + tencentcloud_lighthouse_disk_backup + tencentcloud_lighthouse_apply_disk_backup + tencentcloud_lighthouse_disk_attachment + tencentcloud_lighthouse_key_pair + tencentcloud_lighthouse_snapshot + tencentcloud_lighthouse_apply_instance_snapshot + tencentcloud_lighthouse_start_instance + tencentcloud_lighthouse_stop_instance + tencentcloud_lighthouse_reboot_instance + tencentcloud_lighthouse_key_pair_attachment + tencentcloud_lighthouse_disk + tencentcloud_lighthouse_renew_disk + tencentcloud_lighthouse_renew_instance + tencentcloud_lighthouse_firewall_template + + Data Source + tencentcloud_lighthouse_firewall_rules_template + tencentcloud_lighthouse_bundle + tencentcloud_lighthouse_zone + tencentcloud_lighthouse_scene + tencentcloud_lighthouse_reset_instance_blueprint + tencentcloud_lighthouse_region + tencentcloud_lighthouse_instance_vnc_url + tencentcloud_lighthouse_instance_traffic_package + tencentcloud_lighthouse_instance_disk_num + tencentcloud_lighthouse_instance_blueprint + tencentcloud_lighthouse_disk_config + tencentcloud_lighthouse_all_scene + tencentcloud_lighthouse_modify_instance_bundle + tencentcloud_lighthouse_disks + +TencentCloud Elastic Microservice(TEM) + Resource + tencentcloud_tem_environment + tencentcloud_tem_application + tencentcloud_tem_workload + tencentcloud_tem_app_config + tencentcloud_tem_log_config + tencentcloud_tem_scale_rule + tencentcloud_tem_gateway + tencentcloud_tem_application_service + +TencentCloud EdgeOne(TEO) + Data Source + tencentcloud_teo_zone_available_plans + tencentcloud_teo_rule_engine_settings + + Resource + tencentcloud_teo_zone + tencentcloud_teo_zone_setting + tencentcloud_teo_origin_group + tencentcloud_teo_rule_engine + tencentcloud_teo_application_proxy_rule + tencentcloud_teo_ownership_verify + tencentcloud_teo_certificate_config + tencentcloud_teo_acceleration_domain + +TencentCloud ServiceMesh(TCM) + Data Source + tencentcloud_tcm_mesh + Resource + tencentcloud_tcm_mesh + tencentcloud_tcm_cluster_attachment + tencentcloud_tcm_prometheus_attachment + tencentcloud_tcm_tracing_config + tencentcloud_tcm_access_log_config + +Simple Email Service(SES) + Data Source + tencentcloud_ses_receivers + tencentcloud_ses_send_tasks + tencentcloud_ses_email_identities + tencentcloud_ses_black_email_address + tencentcloud_ses_statistics_report + tencentcloud_ses_send_email_status + + Resource + tencentcloud_ses_domain + tencentcloud_ses_template + tencentcloud_ses_email_address + tencentcloud_ses_receiver + tencentcloud_ses_send_email + tencentcloud_ses_batch_send_email + tencentcloud_ses_verify_domain + tencentcloud_ses_black_list_delete + +Security Token Service(STS) + Data Source + tencentcloud_sts_caller_identity + +TDSQL for MySQL(DCDB) + Data Source + tencentcloud_dcdb_instances + tencentcloud_dcdb_accounts + tencentcloud_dcdb_databases + tencentcloud_dcdb_parameters + tencentcloud_dcdb_shards + tencentcloud_dcdb_security_groups + tencentcloud_dcdb_database_objects + tencentcloud_dcdb_database_tables + tencentcloud_dcdb_file_download_url + tencentcloud_dcdb_log_files + tencentcloud_dcdb_instance_node_info + tencentcloud_dcdb_orders + tencentcloud_dcdb_price + tencentcloud_dcdb_project_security_groups + tencentcloud_dcdb_projects + tencentcloud_dcdb_renewal_price + tencentcloud_dcdb_sale_info + tencentcloud_dcdb_shard_spec + tencentcloud_dcdb_slow_logs + tencentcloud_dcdb_upgrade_price + + Resource + tencentcloud_dcdb_account + tencentcloud_dcdb_hourdb_instance + tencentcloud_dcdb_security_group_attachment + tencentcloud_dcdb_account_privileges + tencentcloud_dcdb_db_parameters + tencentcloud_dcdb_db_sync_mode_config + tencentcloud_dcdb_encrypt_attributes_config + tencentcloud_dcdb_instance_config + tencentcloud_dcdb_cancel_dcn_job_operation + tencentcloud_dcdb_activate_hour_instance_operation + tencentcloud_dcdb_isolate_hour_instance_operation + tencentcloud_dcdb_flush_binlog_operation + tencentcloud_dcdb_switch_db_instance_ha_operation + +Short Message Service(SMS) + Resource + tencentcloud_sms_sign + tencentcloud_sms_template + +Cloud Automated Testing(CAT) + Data Source + tencentcloud_cat_probe_data + tencentcloud_cat_node + tencentcloud_cat_metric_data + + Resource + tencentcloud_cat_task_set + +TencentDB for MariaDB(MariaDB) + Data Source + tencentcloud_mariadb_db_instances + tencentcloud_mariadb_accounts + tencentcloud_mariadb_security_groups + tencentcloud_mariadb_database_objects + tencentcloud_mariadb_databases + tencentcloud_mariadb_database_table + tencentcloud_mariadb_dcn_detail + tencentcloud_mariadb_file_download_url + tencentcloud_mariadb_flow + tencentcloud_mariadb_instance_specs + tencentcloud_mariadb_log_files + tencentcloud_mariadb_orders + tencentcloud_mariadb_price + tencentcloud_mariadb_project_security_groups + tencentcloud_mariadb_renewal_price + tencentcloud_mariadb_sale_info + tencentcloud_mariadb_slow_logs + tencentcloud_mariadb_upgrade_price + + Resource + tencentcloud_mariadb_dedicatedcluster_db_instance + tencentcloud_mariadb_instance + tencentcloud_mariadb_hour_db_instance + tencentcloud_mariadb_account + tencentcloud_mariadb_parameters + tencentcloud_mariadb_log_file_retention_period + tencentcloud_mariadb_security_groups + tencentcloud_mariadb_account_privileges + tencentcloud_mariadb_operate_hour_db_instance + tencentcloud_mariadb_backup_time + tencentcloud_mariadb_cancel_dcn_job + tencentcloud_mariadb_flush_binlog + tencentcloud_mariadb_switch_ha + tencentcloud_mariadb_restart_instance + tencentcloud_mariadb_renew_instance + tencentcloud_mariadb_instance_config + +Real User Monitoring(RUM) + Data Source + tencentcloud_rum_project + tencentcloud_rum_offline_log_config + tencentcloud_rum_whitelist + tencentcloud_rum_taw_instance + tencentcloud_rum_custom_url + tencentcloud_rum_event_url + tencentcloud_rum_fetch_url_info + tencentcloud_rum_fetch_url + tencentcloud_rum_group_log + tencentcloud_rum_log_url_statistics + tencentcloud_rum_performance_page + tencentcloud_rum_pv_url_info + tencentcloud_rum_pv_url_statistics + tencentcloud_rum_report_count + tencentcloud_rum_scores + tencentcloud_rum_set_url_statistics + tencentcloud_rum_sign + tencentcloud_rum_static_project + tencentcloud_rum_static_resource + tencentcloud_rum_static_url + tencentcloud_rum_web_vitals_page + tencentcloud_rum_log_export_list + + Resource + tencentcloud_rum_project + tencentcloud_rum_taw_instance + tencentcloud_rum_whitelist + tencentcloud_rum_offline_log_config_attachment + tencentcloud_rum_instance_status_config + tencentcloud_rum_project_status_config + +Cloud Streaming Services(CSS) + Resource + tencentcloud_css_watermark + tencentcloud_css_watermark_rule_attachment + tencentcloud_css_pull_stream_task + tencentcloud_css_live_transcode_template + tencentcloud_css_live_transcode_rule_attachment + tencentcloud_css_domain + tencentcloud_css_authenticate_domain_owner_operation + tencentcloud_css_play_domain_cert_attachment + tencentcloud_css_play_auth_key_config + tencentcloud_css_push_auth_key_config + tencentcloud_css_backup_stream + tencentcloud_css_callback_rule_attachment + tencentcloud_css_callback_template + tencentcloud_css_domain_referer + tencentcloud_css_enable_optimal_switching + tencentcloud_css_record_rule_attachment + tencentcloud_css_snapshot_rule_attachment + tencentcloud_css_snapshot_template + tencentcloud_css_pad_template + tencentcloud_css_pad_rule_attachment + tencentcloud_css_timeshift_template + tencentcloud_css_timeshift_rule_attachment + tencentcloud_css_stream_monitor + tencentcloud_css_start_stream_monitor + tencentcloud_css_pull_stream_task_restart + + Data Source + tencentcloud_css_domains + tencentcloud_css_backup_stream + tencentcloud_css_monitor_report + tencentcloud_css_pad_templates + tencentcloud_css_pull_stream_task_status + tencentcloud_css_stream_monitor_list + tencentcloud_css_time_shift_record_detail + tencentcloud_css_time_shift_stream_list + tencentcloud_css_watermarks + tencentcloud_css_xp2p_detail_info_list + +Performance Testing Service(PTS) + Data Source + tencentcloud_pts_scenario_with_jobs + + Resource + tencentcloud_pts_project + tencentcloud_pts_alert_channel + tencentcloud_pts_scenario + tencentcloud_pts_file + tencentcloud_pts_job + tencentcloud_pts_cron_job + tencentcloud_pts_tmp_key_generate + tencentcloud_pts_cron_job_restart + tencentcloud_pts_job_abort + tencentcloud_pts_cron_job_abort + +TencentCloud Automation Tools(TAT) + Data Source + tencentcloud_tat_command + tencentcloud_tat_invoker + tencentcloud_tat_invoker_records + tencentcloud_tat_agent + tencentcloud_tat_invocation_task + Resource + tencentcloud_tat_command + tencentcloud_tat_invoker + tencentcloud_tat_invoker_config + tencentcloud_tat_invocation_invoke_attachment + tencentcloud_tat_invocation_command_attachment + +Tencent Cloud Organization (TCO) + Data Source + tencentcloud_organization_members + tencentcloud_organization_org_auth_node + tencentcloud_organization_org_financial_by_member + tencentcloud_organization_org_financial_by_month + tencentcloud_organization_org_financial_by_product + Resource + tencentcloud_organization_instance + tencentcloud_organization_org_node + tencentcloud_organization_org_member + tencentcloud_organization_org_identity + tencentcloud_organization_org_member_email + tencentcloud_organization_org_member_auth_identity_attachment + tencentcloud_organization_org_member_policy_attachment + tencentcloud_organization_policy_sub_account_attachment + tencentcloud_organization_quit_organization_operation + +TDSQL-C for PostgreSQL(TDCPG) + Data Source + tencentcloud_tdcpg_clusters + tencentcloud_tdcpg_instances + Resource + tencentcloud_tdcpg_cluster + tencentcloud_tdcpg_instance + +TencentDB for DBbrain(dbbrain) + Data Source + tencentcloud_dbbrain_sql_filters + tencentcloud_dbbrain_security_audit_log_export_tasks + tencentcloud_dbbrain_diag_event + tencentcloud_dbbrain_diag_events + tencentcloud_dbbrain_diag_history + tencentcloud_dbbrain_security_audit_log_download_urls + tencentcloud_dbbrain_slow_log_time_series_stats + tencentcloud_dbbrain_slow_log_top_sqls + tencentcloud_dbbrain_slow_log_user_host_stats + tencentcloud_dbbrain_slow_log_user_sql_advice + tencentcloud_dbbrain_slow_logs + tencentcloud_dbbrain_health_scores + tencentcloud_dbbrain_sql_templates + tencentcloud_dbbrain_db_space_status + tencentcloud_dbbrain_top_space_schemas + tencentcloud_dbbrain_top_space_tables + tencentcloud_dbbrain_top_space_schema_time_series + tencentcloud_dbbrain_top_space_table_time_series + tencentcloud_dbbrain_diag_db_instances + tencentcloud_dbbrain_mysql_process_list + tencentcloud_dbbrain_no_primary_key_tables + tencentcloud_dbbrain_redis_top_big_keys + tencentcloud_dbbrain_redis_top_key_prefix_list + + Resource + tencentcloud_dbbrain_sql_filter + tencentcloud_dbbrain_security_audit_log_export_task + tencentcloud_dbbrain_db_diag_report_task + tencentcloud_dbbrain_modify_diag_db_instance_operation + tencentcloud_dbbrain_tdsql_audit_log + +Data Transmission Service(DTS) + Data Source + tencentcloud_dts_sync_jobs + tencentcloud_dts_migrate_jobs + tencentcloud_dts_compare_tasks + tencentcloud_dts_migrate_db_instances + + Resource + tencentcloud_dts_sync_job + tencentcloud_dts_sync_config + tencentcloud_dts_sync_check_job_operation + tencentcloud_dts_sync_job_resume_operation + tencentcloud_dts_sync_job_start_operation + tencentcloud_dts_sync_job_stop_operation + tencentcloud_dts_sync_job_resize_operation + tencentcloud_dts_sync_job_recover_operation + tencentcloud_dts_sync_job_isolate_operation + tencentcloud_dts_sync_job_continue_operation + tencentcloud_dts_sync_job_pause_operation + tencentcloud_dts_migrate_service + tencentcloud_dts_migrate_job + tencentcloud_dts_migrate_job_config + tencentcloud_dts_migrate_job_start_operation + tencentcloud_dts_migrate_job_resume_operation + tencentcloud_dts_compare_task_stop_operation + tencentcloud_dts_compare_task + +TDMQ for RocketMQ(trocket) + Data Source + tencentcloud_tdmq_rocketmq_cluster + tencentcloud_tdmq_rocketmq_namespace + tencentcloud_tdmq_rocketmq_topic + tencentcloud_tdmq_rocketmq_role + tencentcloud_tdmq_rocketmq_group + tencentcloud_tdmq_rocketmq_messages + + Resource + tencentcloud_tdmq_rocketmq_cluster + tencentcloud_tdmq_rocketmq_namespace + tencentcloud_tdmq_rocketmq_role + tencentcloud_tdmq_rocketmq_topic + tencentcloud_tdmq_rocketmq_group + tencentcloud_tdmq_rocketmq_environment_role + tencentcloud_tdmq_send_rocketmq_message + tencentcloud_tdmq_rocketmq_vip_instance + tencentcloud_trocket_rocketmq_instance + tencentcloud_trocket_rocketmq_topic + tencentcloud_trocket_rocketmq_consumer_group + tencentcloud_trocket_rocketmq_role + +TDMQ for RabbitMQ(trabbit) + Resource + tencentcloud_tdmq_rabbitmq_user + tencentcloud_tdmq_rabbitmq_virtual_host + tencentcloud_tdmq_rabbitmq_vip_instance + + +Cloud Infinite(CI) + Resource + tencentcloud_ci_bucket_attachment + tencentcloud_ci_bucket_pic_style + tencentcloud_ci_hot_link + tencentcloud_ci_media_snapshot_template + tencentcloud_ci_media_transcode_template + tencentcloud_ci_media_animation_template + tencentcloud_ci_media_concat_template + tencentcloud_ci_media_video_process_template + tencentcloud_ci_media_video_montage_template + tencentcloud_ci_media_voice_separate_template + tencentcloud_ci_media_super_resolution_template + tencentcloud_ci_media_pic_process_template + tencentcloud_ci_media_watermark_template + tencentcloud_ci_media_tts_template + tencentcloud_ci_media_transcode_pro_template + tencentcloud_ci_media_smart_cover_template + tencentcloud_ci_media_speech_recognition_template + tencentcloud_ci_guetzli + tencentcloud_ci_original_image_protection + +TDMQ for CMQ(tcmq) + Data Source + tencentcloud_tcmq_queue + tencentcloud_tcmq_topic + tencentcloud_tcmq_subscribe + + Resource + tencentcloud_tcmq_queue + tencentcloud_tcmq_topic + tencentcloud_tcmq_subscribe + +Tencent Service Framework(TSF) + Data Source + tencentcloud_tsf_application + tencentcloud_tsf_application_config + tencentcloud_tsf_application_file_config + tencentcloud_tsf_application_public_config + tencentcloud_tsf_cluster + tencentcloud_tsf_microservice + tencentcloud_tsf_unit_rules + tencentcloud_tsf_config_summary + tencentcloud_tsf_delivery_config_by_group_id + tencentcloud_tsf_delivery_configs + tencentcloud_tsf_public_config_summary + tencentcloud_tsf_api_group + tencentcloud_tsf_application_attribute + tencentcloud_tsf_business_log_configs + tencentcloud_tsf_api_detail + tencentcloud_tsf_microservice_api_version + tencentcloud_tsf_repository + tencentcloud_tsf_pod_instances + tencentcloud_tsf_gateway_all_group_apis + tencentcloud_tsf_group_gateways + tencentcloud_tsf_usable_unit_namespaces + tencentcloud_tsf_group_instances + tencentcloud_tsf_group_config_release + tencentcloud_tsf_container_group + tencentcloud_tsf_groups + tencentcloud_tsf_ms_api_list + + Resource + tencentcloud_tsf_cluster + tencentcloud_tsf_microservice + tencentcloud_tsf_application_config + tencentcloud_tsf_api_group + tencentcloud_tsf_namespace + tencentcloud_tsf_path_rewrite + tencentcloud_tsf_unit_rule + tencentcloud_tsf_task + tencentcloud_tsf_config_template + tencentcloud_tsf_api_rate_limit_rule + tencentcloud_tsf_application_release_config + tencentcloud_tsf_lane + tencentcloud_tsf_lane_rule + tencentcloud_tsf_group + tencentcloud_tsf_application + tencentcloud_tsf_application_public_config_release + tencentcloud_tsf_application_public_config + tencentcloud_tsf_application_file_config_release + tencentcloud_tsf_instances_attachment + tencentcloud_tsf_bind_api_group + tencentcloud_tsf_application_file_config + tencentcloud_tsf_enable_unit_rule + tencentcloud_tsf_deploy_container_group + tencentcloud_tsf_deploy_vm_group + tencentcloud_tsf_release_api_group + tencentcloud_tsf_operate_container_group + tencentcloud_tsf_operate_group + tencentcloud_tsf_unit_namespace + +Media Processing Service(MPS) + Data Source + tencentcloud_mps_schedules + tencentcloud_mps_tasks + tencentcloud_mps_parse_live_stream_process_notification + tencentcloud_mps_parse_notification + tencentcloud_mps_media_meta_data + + Resource + tencentcloud_mps_workflow + tencentcloud_mps_enable_workflow_config + tencentcloud_mps_transcode_template + tencentcloud_mps_watermark_template + tencentcloud_mps_image_sprite_template + tencentcloud_mps_snapshot_by_timeoffset_template + tencentcloud_mps_sample_snapshot_template + tencentcloud_mps_animated_graphics_template + tencentcloud_mps_ai_recognition_template + tencentcloud_mps_ai_analysis_template + tencentcloud_mps_adaptive_dynamic_streaming_template + tencentcloud_mps_person_sample + tencentcloud_mps_withdraws_watermark_operation + tencentcloud_mps_process_live_stream_operation + tencentcloud_mps_edit_media_operation + tencentcloud_mps_word_sample + tencentcloud_mps_schedule + tencentcloud_mps_enable_schedule_config + tencentcloud_mps_flow + tencentcloud_mps_input + tencentcloud_mps_output + tencentcloud_mps_content_review_template + tencentcloud_mps_start_flow_operation + tencentcloud_mps_event + tencentcloud_mps_manage_task_operation + tencentcloud_mps_execute_function_operation + tencentcloud_mps_process_media_operation + +Cloud HDFS(CHDFS) + Data Source + tencentcloud_chdfs_access_groups + tencentcloud_chdfs_mount_points + tencentcloud_chdfs_file_systems + + Resource + tencentcloud_chdfs_access_group + tencentcloud_chdfs_access_rule + tencentcloud_chdfs_file_system + tencentcloud_chdfs_life_cycle_rule + tencentcloud_chdfs_mount_point + tencentcloud_chdfs_mount_point_attachment + +StreamLive(MDL) + Resource + tencentcloud_mdl_stream_live_input + +Application Performance Management(APM) + Resource + tencentcloud_apm_instance + +Tencent Cloud Service Engine(TSE) + Data Source + tencentcloud_tse_access_address + tencentcloud_tse_nacos_replicas + tencentcloud_tse_zookeeper_replicas + tencentcloud_tse_zookeeper_server_interfaces + tencentcloud_tse_nacos_server_interfaces + tencentcloud_tse_groups + tencentcloud_tse_gateways + tencentcloud_tse_gateway_nodes + tencentcloud_tse_gateway_routes + tencentcloud_tse_gateway_canary_rules + tencentcloud_tse_gateway_services + tencentcloud_tse_gateway_certificates + + Resource + tencentcloud_tse_instance + tencentcloud_tse_cngw_service + tencentcloud_tse_cngw_canary_rule + tencentcloud_tse_cngw_gateway + tencentcloud_tse_cngw_group + tencentcloud_tse_cngw_service_rate_limit + tencentcloud_tse_cngw_route + tencentcloud_tse_cngw_route_rate_limit + tencentcloud_tse_cngw_certificate + tencentcloud_tse_waf_protection + tencentcloud_tse_waf_domains + +ClickHouse(CDWCH) + Data Source + tencentcloud_clickhouse_backup_jobs + tencentcloud_clickhouse_backup_job_detail + tencentcloud_clickhouse_backup_tables + + Resource + tencentcloud_clickhouse_instance + tencentcloud_clickhouse_backup + tencentcloud_clickhouse_backup_strategy + tencentcloud_clickhouse_recover_backup_job + tencentcloud_clickhouse_delete_backup_data + tencentcloud_clickhouse_account + tencentcloud_clickhouse_account_permission + +Tag + Resource + tencentcloud_tag + tencentcloud_tag_attachment + +EventBridge(EB) + Data Source + tencentcloud_eb_bus + tencentcloud_eb_event_rules + tencentcloud_eb_platform_event_names + tencentcloud_eb_platform_event_patterns + tencentcloud_eb_platform_products + tencentcloud_eb_plateform_event_template + + Resource + tencentcloud_eb_event_transform + tencentcloud_eb_event_bus + tencentcloud_eb_event_rule + tencentcloud_eb_event_target + tencentcloud_eb_put_events + tencentcloud_eb_event_connector + +Data Lake Compute(DLC) + Data Source + tencentcloud_dlc_describe_user_type + tencentcloud_dlc_describe_user_info + tencentcloud_dlc_describe_user_roles + tencentcloud_dlc_describe_data_engine + tencentcloud_dlc_describe_data_engine_image_versions + tencentcloud_dlc_describe_data_engine_python_spark_images + tencentcloud_dlc_describe_engine_usage_info + tencentcloud_dlc_describe_work_group_info + tencentcloud_dlc_check_data_engine_image_can_be_rollback + tencentcloud_dlc_check_data_engine_image_can_be_upgrade + tencentcloud_dlc_check_data_engine_config_pairs_validity + tencentcloud_dlc_describe_updatable_data_engines + + Resource + tencentcloud_dlc_work_group + tencentcloud_dlc_user + tencentcloud_dlc_data_engine + tencentcloud_dlc_rollback_data_engine_image_operation + tencentcloud_dlc_add_users_to_work_group_attachment + tencentcloud_dlc_store_location_config + tencentcloud_dlc_suspend_resume_data_engine + tencentcloud_dlc_modify_data_engine_description_operation + tencentcloud_dlc_modify_user_typ_operation + tencentcloud_dlc_renew_data_engine_operation + tencentcloud_dlc_restart_data_engine_operation + tencentcloud_dlc_switch_data_engine_image_operation + tencentcloud_dlc_update_data_engine_config_operation + tencentcloud_dlc_upgrade_data_engine_image_operation + tencentcloud_dlc_user_data_engine_config + tencentcloud_dlc_update_row_filter_operation + tencentcloud_dlc_bind_work_groups_to_user_attachment + +Web Application Firewall(WAF) + Data Source + tencentcloud_waf_ciphers + tencentcloud_waf_tls_versions + tencentcloud_waf_domains + tencentcloud_waf_find_domains + tencentcloud_waf_ports + tencentcloud_waf_user_domains + tencentcloud_waf_attack_log_histogram + tencentcloud_waf_attack_log_list + tencentcloud_waf_attack_overview + tencentcloud_waf_attack_total_count + tencentcloud_waf_peak_points + tencentcloud_waf_instance_qps_limit + tencentcloud_waf_user_clb_regions + + Resource + tencentcloud_waf_custom_rule + tencentcloud_waf_custom_white_rule + tencentcloud_waf_clb_domain + tencentcloud_waf_saas_domain + tencentcloud_waf_clb_instance + tencentcloud_waf_saas_instance + tencentcloud_waf_anti_fake + tencentcloud_waf_anti_info_leak + tencentcloud_waf_auto_deny_rules + tencentcloud_waf_module_status + tencentcloud_waf_protection_mode + tencentcloud_waf_web_shell + tencentcloud_waf_cc + tencentcloud_waf_cc_auto_status + tencentcloud_waf_cc_session + tencentcloud_waf_ip_access_control + tencentcloud_waf_modify_access_period + +Wedata + Data Source + tencentcloud_wedata_rule_templates + tencentcloud_wedata_data_source_list + tencentcloud_wedata_data_source_without_info + + Resource + tencentcloud_wedata_datasource + tencentcloud_wedata_function + tencentcloud_wedata_resource + tencentcloud_wedata_script + tencentcloud_wedata_dq_rule + tencentcloud_wedata_rule_template + tencentcloud_wedata_baseline + tencentcloud_wedata_integration_offline_task + tencentcloud_wedata_integration_realtime_task + tencentcloud_wedata_integration_task_node + +Cloud Firewall(CFW) + Data Source + tencentcloud_cfw_nat_fw_switches + tencentcloud_cfw_vpc_fw_switches + tencentcloud_cfw_edge_fw_switches + + Resource + tencentcloud_cfw_address_template + tencentcloud_cfw_block_ignore + tencentcloud_cfw_edge_policy + tencentcloud_cfw_nat_instance + tencentcloud_cfw_nat_policy + tencentcloud_cfw_vpc_instance + tencentcloud_cfw_vpc_policy + tencentcloud_cfw_sync_asset + tencentcloud_cfw_sync_route + tencentcloud_cfw_nat_firewall_switch + tencentcloud_cfw_vpc_firewall_switch + tencentcloud_cfw_edge_firewall_switch + +Bastion Host(BH) + Resource + tencentcloud_dasb_acl + tencentcloud_dasb_cmd_template + tencentcloud_dasb_device_group + tencentcloud_dasb_user + tencentcloud_dasb_device_account + tencentcloud_dasb_device_group_members + tencentcloud_dasb_user_group_members + tencentcloud_dasb_bind_device_resource + tencentcloud_dasb_resource + tencentcloud_dasb_device + tencentcloud_dasb_user_group + tencentcloud_dasb_reset_user + tencentcloud_dasb_bind_device_account_private_key + tencentcloud_dasb_bind_device_account_password + +Cwp + Data Source + tencentcloud_cwp_machines_simple + + Resource + tencentcloud_cwp_license_order + tencentcloud_cwp_license_bind_attachment + +Business Intelligence(BI) + Data Source + tencentcloud_bi_project + tencentcloud_bi_user_project + + Resource + tencentcloud_bi_project + tencentcloud_bi_user_role + tencentcloud_bi_project_user_role + tencentcloud_bi_datasource + tencentcloud_bi_datasource_cloud + tencentcloud_bi_embed_token_apply + tencentcloud_bi_embed_interval_apply + +CDWPG + Resource + tencentcloud_cdwpg_instance \ No newline at end of file diff --git a/tencentcloud/pts/data_source_tc_pts_scenario_with_jobs.md b/tencentcloud/pts/data_source_tc_pts_scenario_with_jobs.md new file mode 100644 index 0000000000..24d983b7b9 --- /dev/null +++ b/tencentcloud/pts/data_source_tc_pts_scenario_with_jobs.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of pts scenario_with_jobs + +Example Usage + +```hcl +data "tencentcloud_pts_scenario_with_jobs" "scenario_with_jobs" { + project_ids = ["project-45vw7v82"] + scenario_ids = ["scenario-koakp3h6"] + scenario_name = "pts-jmeter" + ascend = true + ignore_script = true + ignore_dataset = true + scenario_type = "pts-jmeter" +} +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_alert_channel.md b/tencentcloud/pts/resource_tc_pts_alert_channel.md new file mode 100644 index 0000000000..7e886a08e7 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_alert_channel.md @@ -0,0 +1,59 @@ +Provides a resource to create a pts alert_channel + +~> **NOTE:** Modification is not currently supported, please go to the console to modify. + +Example Usage + +```hcl +resource "tencentcloud_monitor_alarm_notice" "example" { + name = "test_alarm_notice_1" + notice_type = "ALL" + notice_language = "zh-CN" + + user_notices { + receiver_type = "USER" + start_time = 0 + end_time = 1 + notice_way = ["EMAIL", "SMS", "WECHAT"] + user_ids = [10001] + group_ids = [] + phone_order = [10001] + phone_circle_times = 2 + phone_circle_interval = 50 + phone_inner_interval = 60 + need_phone_arrive_notice = 1 + phone_call_type = "CIRCLE" + weekday =[1,2,3,4,5,6,7] + } + + url_notices { + url = "https://www.mytest.com/validate" + end_time = 0 + start_time = 1 + weekday = [1,2,3,4,5,6,7] + } + +} + +resource "tencentcloud_pts_project" "project" { + name = "ptsObjectName" + description = "desc" + tags { + tag_key = "createdBy" + tag_value = "terraform" + } +} + +resource "tencentcloud_pts_alert_channel" "alert_channel" { + notice_id = tencentcloud_monitor_alarm_notice.example.id + project_id = tencentcloud_pts_project.project.id + amp_consumer_id = "Consumer-vvy1xxxxxx" +} + +``` +Import + +pts alert_channel can be imported using the project_id#notice_id, e.g. +``` +$ terraform import tencentcloud_pts_alert_channel.alert_channel project-kww5v8se#notice-kl66t6y9 +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_cron_job.md b/tencentcloud/pts/resource_tc_pts_cron_job.md new file mode 100644 index 0000000000..e7db984d83 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_cron_job.md @@ -0,0 +1,25 @@ +Provides a resource to create a pts cron_job + +Example Usage + +```hcl +resource "tencentcloud_pts_cron_job" "cron_job" { + name = "iac-cron_job-update" + project_id = "project-7qkzxhea" + scenario_id = "scenario-c22lqb1w" + scenario_name = "pts-js(2022-11-10 21:53:53)" + frequency_type = 2 + cron_expression = "* 1 * * *" + job_owner = "userName" + # end_time = "" + notice_id = "notice-vp6i38jt" + note = "desc" +} + +``` +Import + +pts cron_job can be imported using the projectId#cronJobId, e.g. +``` +$ terraform import tencentcloud_pts_cron_job.cron_job project-7qkzxhea#scenario-c22lqb1w +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_cron_job_abort.md b/tencentcloud/pts/resource_tc_pts_cron_job_abort.md new file mode 100644 index 0000000000..958581642a --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_cron_job_abort.md @@ -0,0 +1,10 @@ +Provides a resource to create a pts cron_job_abort + +Example Usage + +```hcl +resource "tencentcloud_pts_cron_job_abort" "cron_job_abort" { + project_id = "project-abc" + cron_job_id = "job-dtm93vx0" +} +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_cron_job_restart.md b/tencentcloud/pts/resource_tc_pts_cron_job_restart.md new file mode 100644 index 0000000000..ae608c3ee7 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_cron_job_restart.md @@ -0,0 +1,10 @@ +Provides a resource to create a pts cron_job_restart, restart a scheduled task whose status is `JobAborting` + +Example Usage + +```hcl +resource "tencentcloud_pts_cron_job_restart" "cron_job_restart" { + project_id = "project-abc" + cron_job_id = "job-dtm93vx0" +} +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_file.md b/tencentcloud/pts/resource_tc_pts_file.md new file mode 100644 index 0000000000..cfb69ce4b9 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_file.md @@ -0,0 +1,32 @@ +Provides a resource to create a pts file + +~> **NOTE:** Modification is not currently supported, please go to the console to modify. + +Example Usage + +```hcl +resource "tencentcloud_pts_file" "file" { + file_id = "file-de2dbaf8" + header_in_file = false + kind = 3 + line_count = 0 + name = "iac.txt" + project_id = "project-45vw7v82" + size = 10799 + type = "text/plain" + # header_columns = "" + # file_infos { + # name = "" + # size = "" + # type = "" + # updated_at = "" + # } +} + +``` +Import + +pts file can be imported using the project_id#file_id, e.g. +``` +$ terraform import tencentcloud_pts_file.file project-45vw7v82#file-de2dbaf8 +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_job.md b/tencentcloud/pts/resource_tc_pts_job.md new file mode 100644 index 0000000000..22b43b8152 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_job.md @@ -0,0 +1,20 @@ +Provides a resource to create a pts job + +Example Usage + +```hcl +resource "tencentcloud_pts_job" "job" { + scenario_id = "scenario-22q19f3k" + job_owner = "username" + project_id = "project-45vw7v82" + # debug = "" + note = "desc" +} + +``` +Import + +pts job can be imported using the projectId#scenarioId#jobId, e.g. +``` +$ terraform import tencentcloud_pts_job.job project-45vw7v82#scenario-22q19f3k#job-dtm93vx0 +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_job_abort.md b/tencentcloud/pts/resource_tc_pts_job_abort.md new file mode 100644 index 0000000000..e014c6bc17 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_job_abort.md @@ -0,0 +1,11 @@ +Provides a resource to create a pts job_abort + +Example Usage + +```hcl +resource "tencentcloud_pts_job_abort" "job_abort" { + job_id = "job-my644ozi" + project_id = "project-45vw7v82" + scenario_id = "scenario-22q19f3k" +} +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_project.md b/tencentcloud/pts/resource_tc_pts_project.md new file mode 100644 index 0000000000..9753213241 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_project.md @@ -0,0 +1,21 @@ +Provides a resource to create a pts project + +Example Usage + +```hcl +resource "tencentcloud_pts_project" "project" { + name = "ptsObjectName-1" + description = "desc" + tags { + tag_key = "createdBy" + tag_value = "terraform" + } +} + +``` +Import + +pts project can be imported using the id, e.g. +``` +$ terraform import tencentcloud_pts_project.project project-1ep27k1m +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_scenario.md b/tencentcloud/pts/resource_tc_pts_scenario.md new file mode 100644 index 0000000000..012ee12f93 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_scenario.md @@ -0,0 +1,97 @@ +Provides a resource to create a pts scenario + +Example Usage + +```hcl +resource "tencentcloud_pts_scenario" "scenario" { + name = "pts-js" + project_id = "project-45vw7v82" + type = "pts-js" + + domain_name_config { + } + + load { + geo_regions_load_distribution { + percentage = 100 + region = "ap-guangzhou" + region_id = 1 + } + + load_spec { + concurrency { + graceful_stop_seconds = 3 + iteration_count = 0 + max_requests_per_second = 0 + + stages { + duration_seconds = 120 + target_virtual_users = 2 + } + stages { + duration_seconds = 120 + target_virtual_users = 4 + } + stages { + duration_seconds = 120 + target_virtual_users = 5 + } + stages { + duration_seconds = 240 + target_virtual_users = 5 + } + } + } + } + + sla_policy { + } + + test_scripts { + encoded_content = <<-EOT + // Send a http get request + import http from 'pts/http'; + import { check, sleep } from 'pts'; + + export default function () { + // simple get request + const resp1 = http.get('http://httpbin.org/get'); + console.log(resp1.body); + // if resp1.body is a json string, resp1.json() transfer json format body to a json object + console.log(resp1.json()); + check('status is 200', () => resp1.statusCode === 200); + + // sleep 1 second + sleep(1); + + // get request with headers and parameters + const resp2 = http.get('http://httpbin.org/get', { + headers: { + Connection: 'keep-alive', + 'User-Agent': 'pts-engine', + }, + query: { + name1: 'value1', + name2: 'value2', + }, + }); + + console.log(resp2.json().args.name1); // 'value1' + check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1'); + } + EOT + load_weight = 100 + name = "script.js" + size = 838 + type = "js" + updated_at = "2022-11-11T16:18:37+08:00" + } +} + +``` +Import + +pts scenario can be imported using the id, e.g. +``` +$ terraform import tencentcloud_pts_scenario.scenario scenario_id +``` \ No newline at end of file diff --git a/tencentcloud/pts/resource_tc_pts_tmp_key_generate.md b/tencentcloud/pts/resource_tc_pts_tmp_key_generate.md new file mode 100644 index 0000000000..b971da8995 --- /dev/null +++ b/tencentcloud/pts/resource_tc_pts_tmp_key_generate.md @@ -0,0 +1,10 @@ +Provides a resource to create a pts tmp_key + +Example Usage + +```hcl +resource "tencentcloud_pts_tmp_key_generate" "tmp_key" { + project_id = "project-1b0zqmhg" + scenario_id = "scenario-abc" +} +``` \ No newline at end of file diff --git a/tencentcloud/resource_tc_address_template.go b/tencentcloud/resource_tc_address_template.go index bf77460702..953fdd9f54 100644 --- a/tencentcloud/resource_tc_address_template.go +++ b/tencentcloud/resource_tc_address_template.go @@ -1,23 +1,3 @@ -/* -Provides a resource to manage address template. - -Example Usage - -```hcl -resource "tencentcloud_address_template" "foo" { - name = "cam-user-test" - addresses = ["10.0.0.1","10.0.1.0/24","10.0.0.1-10.0.0.100"] -} -``` - -Import - -Address template can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_address_template.foo ipm-makf7k9e" -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_address_template_group.go b/tencentcloud/resource_tc_address_template_group.go index b5e68f136c..a52958fc6a 100644 --- a/tencentcloud/resource_tc_address_template_group.go +++ b/tencentcloud/resource_tc_address_template_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to manage address template group. - -Example Usage - -```hcl -resource "tencentcloud_address_template_group" "foo" { - name = "group-test" - template_ids = ["ipl-axaf24151","ipl-axaf24152"] -} -``` - -Import - -Address template group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_address_template_group.foo ipmg-0np3u974 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_alb_server_attachment.go b/tencentcloud/resource_tc_alb_server_attachment.go index b1cae6a0e6..2a9134c4dd 100644 --- a/tencentcloud/resource_tc_alb_server_attachment.go +++ b/tencentcloud/resource_tc_alb_server_attachment.go @@ -1,33 +1,3 @@ -/* -Provides an tencentcloud application load balancer servers attachment as a resource, to attach and detach instances from load balancer. - -~> **NOTE:** It has been deprecated and replaced by `tencentcloud_clb_attachment`. - -~> **NOTE:** Currently only support existing `loadbalancer_id` `listener_id` `location_id` and Application layer 7 load balancer - -Example Usage - -```hcl -resource "tencentcloud_alb_server_attachment" "service1" { - loadbalancer_id = "lb-qk1dqox5" - listener_id = "lbl-ghoke4tl" - location_id = "loc-i858qv1l" - - backends = [ - { - instance_id = "ins-4j30i5pe" - port = 80 - weight = 50 - }, - { - instance_id = "ins-4j30i5pe" - port = 8080 - weight = 50 - }, - ] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_cc_black_white_ip.go b/tencentcloud/resource_tc_antiddos_cc_black_white_ip.go index 38e1732715..ced5b26535 100644 --- a/tencentcloud/resource_tc_antiddos_cc_black_white_ip.go +++ b/tencentcloud/resource_tc_antiddos_cc_black_white_ip.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a antiddos cc black white ip - -Example Usage - -```hcl -resource "tencentcloud_antiddos_cc_black_white_ip" "cc_black_white_ip" { - instance_id = "bgpip-xxxxxx" - black_white_ip { - ip = "1.2.3.5" - mask = 0 - - } - type = "black" - ip = "xxx.xxx.xxx.xxx" - domain = "t.baidu.com" - protocol = "http" -} -``` - -Import - -antiddos cc_black_white_ip can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_cc_black_white_ip.cc_black_white_ip ${instanceId}#${policyId}#${instanceIp}#${domain}#${protocol} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_cc_precision_policy.go b/tencentcloud/resource_tc_antiddos_cc_precision_policy.go index 7050663d57..a83694afc6 100644 --- a/tencentcloud/resource_tc_antiddos_cc_precision_policy.go +++ b/tencentcloud/resource_tc_antiddos_cc_precision_policy.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a antiddos cc_precision_policy - -Example Usage - -```hcl -resource "tencentcloud_antiddos_cc_precision_policy" "cc_precision_policy" { - instance_id = "bgpip-0000078h" - ip = "212.64.62.191" - protocol = "http" - domain = "t.baidu.com" - policy_action = "drop" - policy_list { - field_type = "value" - field_name = "cgi" - value = "a.com" - value_operator = "equal" - } - - policy_list { - field_type = "value" - field_name = "ua" - value = "test" - value_operator = "equal" - } -} -``` - -Import - -antiddos cc_precision_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_cc_precision_policy.cc_precision_policy ${instanceId}#${policyId}#${instanceIp}#${domain}#${protocol} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_ddos_black_white_ip.go b/tencentcloud/resource_tc_antiddos_ddos_black_white_ip.go index b4c7389d0e..43b1b07e79 100644 --- a/tencentcloud/resource_tc_antiddos_ddos_black_white_ip.go +++ b/tencentcloud/resource_tc_antiddos_ddos_black_white_ip.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a antiddos ddos black white ip - -Example Usage - -```hcl -resource "tencentcloud_antiddos_ddos_black_white_ip" "ddos_black_white_ip" { - instance_id = "bgp-xxxxxx" - ip = "1.2.3.5" - mask = 0 - type = "black" -} -``` - -Import - -antiddos ddos_black_white_ip can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_ddos_black_white_ip.ddos_black_white_ip ${instanceId}#${ip} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_ddos_geo_ip_block_config.go b/tencentcloud/resource_tc_antiddos_ddos_geo_ip_block_config.go index 1216bd3778..3742aa43b9 100644 --- a/tencentcloud/resource_tc_antiddos_ddos_geo_ip_block_config.go +++ b/tencentcloud/resource_tc_antiddos_ddos_geo_ip_block_config.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a antiddos ddos_geo_ip_block_config - -Example Usage - -```hcl -resource "tencentcloud_antiddos_ddos_geo_ip_block_config" "ddos_geo_ip_block_config" { - instance_id = "bgp-xxxxxx" - ddos_geo_ip_block_config { - region_type = "customized" - action = "drop" - area_list = [100002] - } -} -``` - -Import - -antiddos ddos_geo_ip_block_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_ddos_geo_ip_block_config.ddos_geo_ip_block_config ${instanceId}#${configId} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_ddos_speed_limit_config.go b/tencentcloud/resource_tc_antiddos_ddos_speed_limit_config.go index 8e1708912d..07ef055a82 100644 --- a/tencentcloud/resource_tc_antiddos_ddos_speed_limit_config.go +++ b/tencentcloud/resource_tc_antiddos_ddos_speed_limit_config.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a antiddos ddos speed limit config - -Example Usage - -```hcl -resource "tencentcloud_antiddos_ddos_speed_limit_config" "ddos_speed_limit_config" { - instance_id = "bgp-xxxxxx" - ddos_speed_limit_config { - mode = 1 - speed_values { - type = 1 - value = 1 - } - speed_values { - type = 2 - value = 2 - } - protocol_list = "ALL" - dst_port_list = "8000" - } -} -``` - -Import - -antiddos ddos_speed_limit_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_ddos_speed_limit_config.ddos_speed_limit_config ${instanceId}#${configId}s -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_default_alarm_threshold.go b/tencentcloud/resource_tc_antiddos_default_alarm_threshold.go index 641762debb..ba614e2d51 100644 --- a/tencentcloud/resource_tc_antiddos_default_alarm_threshold.go +++ b/tencentcloud/resource_tc_antiddos_default_alarm_threshold.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a antiddos default alarm threshold - -Example Usage - -```hcl -resource "tencentcloud_antiddos_default_alarm_threshold" "default_alarm_threshold" { - default_alarm_config { - alarm_type = 1 - alarm_threshold = 2000 - } - instance_type = "bgp" -} -``` - -Import - -antiddos default_alarm_threshold can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_default_alarm_threshold.default_alarm_threshold ${instanceType} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_ip_alarm_threshold_config.go b/tencentcloud/resource_tc_antiddos_ip_alarm_threshold_config.go index 022037029d..e656db972d 100644 --- a/tencentcloud/resource_tc_antiddos_ip_alarm_threshold_config.go +++ b/tencentcloud/resource_tc_antiddos_ip_alarm_threshold_config.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a antiddos ip_alarm_threshold_config - -Example Usage - -```hcl -resource "tencentcloud_antiddos_ip_alarm_threshold_config" "ip_alarm_threshold_config" { - alarm_type = 1 - alarm_threshold = 2 - instance_ip = "xxx.xxx.xxx.xxx" - instance_id = "bgp-xxxxxx" -} -``` - -Import - -antiddos ip_alarm_threshold_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_ip_alarm_threshold_config.ip_alarm_threshold_config ${instanceId}#${instanceIp}#${alarmType} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_packet_filter_config.go b/tencentcloud/resource_tc_antiddos_packet_filter_config.go index 9f9f8382a4..d2de69d481 100644 --- a/tencentcloud/resource_tc_antiddos_packet_filter_config.go +++ b/tencentcloud/resource_tc_antiddos_packet_filter_config.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a antiddos packet filter config - -Example Usage - -```hcl -resource "tencentcloud_antiddos_packet_filter_config" "packet_filter_config" { - instance_id = "bgp-00000ry7" - packet_filter_config { - action = "drop" - depth = 1 - dport_start = 80 - dport_end = 80 - is_not = 0 - match_begin = "begin_l5" - match_type = "pcre" - offset = 1 - pktlen_min = 1400 - pktlen_max = 1400 - protocol = "all" - sport_start = 8080 - sport_end = 8080 - str = "a" - } -}s -``` - -Import - -antiddos packet_filter_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_packet_filter_config.packet_filter_config packet_filter_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_port_acl_config.go b/tencentcloud/resource_tc_antiddos_port_acl_config.go index d2cedeefab..2c03805400 100644 --- a/tencentcloud/resource_tc_antiddos_port_acl_config.go +++ b/tencentcloud/resource_tc_antiddos_port_acl_config.go @@ -1,32 +1,3 @@ -/* -Provides a resource to create a antiddos port acl config - -Example Usage - -```hcl -resource "tencentcloud_antiddos_port_acl_config" "port_acl_config" { - instance_id = "bgp-xxxxxx" - acl_config { - forward_protocol = "all" - d_port_start = 22 - d_port_end = 23 - s_port_start = 22 - s_port_end = 23 - action = "drop" - priority = 2 - - } -} -``` - -Import - -antiddos port_acl_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_port_acl_config.port_acl_config ${instanceId}#${configJson} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_antiddos_scheduling_domain_user_name.go b/tencentcloud/resource_tc_antiddos_scheduling_domain_user_name.go index 25ced05201..d19dfec66b 100644 --- a/tencentcloud/resource_tc_antiddos_scheduling_domain_user_name.go +++ b/tencentcloud/resource_tc_antiddos_scheduling_domain_user_name.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a antiddos scheduling_domain_user_name - -Example Usage - -```hcl -resource "tencentcloud_antiddos_scheduling_domain_user_name" "scheduling_domain_user_name" { - domain_name = "test.com" - domain_user_name = "" -} -``` - -Import - -antiddos scheduling_domain_user_name can be imported using the id, e.g. - -``` -terraform import tencentcloud_antiddos_scheduling_domain_user_name.scheduling_domain_user_name ${domainName} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_api.go b/tencentcloud/resource_tc_api_gateway_api.go index 08e02490d1..a7ebdb4569 100644 --- a/tencentcloud/resource_tc_api_gateway_api.go +++ b/tencentcloud/resource_tc_api_gateway_api.go @@ -1,56 +1,3 @@ -/* -Use this resource to create API of API gateway. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf-example" - protocol = "http&https" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "api" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "tf-example" - api_desc = "desc." - auth_type = "NONE" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "GET" - - request_parameters { - name = "name" - position = "QUERY" - type = "string" - desc = "who are you?" - default_value = "tom" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 15 - service_config_url = "http://www.qq.com" - service_config_path = "/user" - service_config_method = "GET" - response_type = "HTML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 500 - msg = "system error" - desc = "system error code" - converted_code = 5000 - need_convert = true - } - - release_limit = 500 - pre_limit = 500 - test_limit = 500 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_api_app.go b/tencentcloud/resource_tc_api_gateway_api_app.go index 90d81cd875..76ade322e3 100644 --- a/tencentcloud/resource_tc_api_gateway_api_app.go +++ b/tencentcloud/resource_tc_api_gateway_api_app.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a APIGateway ApiApp - -Example Usage - -Create a basic apigateway api_app - -```hcl -resource "tencentcloud_api_gateway_api_app" "example" { - api_app_name = "tf_example" - api_app_desc = "app desc." -} -``` - -Bind Tag - -```hcl -resource "tencentcloud_api_gateway_api_app" "example" { - api_app_name = "tf_example" - api_app_desc = "app desc." - - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -apigateway api_app can be imported using the id, e.g. - -``` -terraform import tencentcloud_api_gateway_api_app.example app-poe0pyex -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_api_app_attachment.go b/tencentcloud/resource_tc_api_gateway_api_app_attachment.go index 7a556396c9..a6747938f3 100644 --- a/tencentcloud/resource_tc_api_gateway_api_app_attachment.go +++ b/tencentcloud/resource_tc_api_gateway_api_app_attachment.go @@ -1,75 +1,3 @@ -/* -Provides a resource to create a apigateway api_app_attachment - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_api_app" "example" { - api_app_name = "tf_example" - api_app_desc = "app desc." -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf_example_service" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "example" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "tf_example_api" - api_desc = "desc." - auth_type = "APP" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "GET" - - request_parameters { - name = "name" - position = "QUERY" - type = "string" - desc = "desc." - default_value = "terraform" - required = true - } - - service_config_type = "HTTP" - service_config_timeout = 15 - service_config_url = "https://www.qq.com" - service_config_path = "/user" - service_config_method = "GET" - response_type = "HTML" - response_success_example = "success" - response_fail_example = "fail" - - response_error_codes { - code = 400 - msg = "system error msg." - desc = "system error desc." - converted_code = 407 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_api_app_attachment" "example" { - api_app_id = tencentcloud_api_gateway_api_app.example.id - environment = "test" - service_id = tencentcloud_api_gateway_service.example.id - api_id = tencentcloud_api_gateway_api.example.id -} -``` - -Import - -apigateway api_app_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_api_gateway_api_app_attachment.example app-f2dxx0lv#test#service-h0trno8e#api-grsomg0w -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_api_doc.go b/tencentcloud/resource_tc_api_gateway_api_doc.go index 0325c1a3ec..a2ef6f5a89 100644 --- a/tencentcloud/resource_tc_api_gateway_api_doc.go +++ b/tencentcloud/resource_tc_api_gateway_api_doc.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a APIGateway ApiDoc - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_api_doc" "my_api_doc" { - api_doc_name = "doc_test1" - service_id = "service_test1" - environment = "release" - api_ids = ["api-test1", "api-test2"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_api_key.go b/tencentcloud/resource_tc_api_gateway_api_key.go index 03d898d204..6bd5f678e7 100644 --- a/tencentcloud/resource_tc_api_gateway_api_key.go +++ b/tencentcloud/resource_tc_api_gateway_api_key.go @@ -1,36 +1,3 @@ -/* -Use this resource to create API gateway access key. - -Example Usage - -Automatically generate key for API gateway access key. - -```hcl -resource "tencentcloud_api_gateway_api_key" "example_auto" { - secret_name = "tf_example_auto" - status = "on" -} -``` - -Manually generate a secret key for API gateway access key. - -```hcl -resource "tencentcloud_api_gateway_api_key" "example_manual" { - secret_name = "tf_example_manual" - status = "on" - access_key_type = "manual" - access_key_id = "28e287e340507fa147b2c8284dab542f" - access_key_secret = "0198a4b8c3105080f4acd9e507599eff" -} -``` -Import - -API gateway access key can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_api_key.test AKIDMZwceezso9ps5p8jkro8a9fwe1e7nzF2k50B -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_api_key_attachment.go b/tencentcloud/resource_tc_api_gateway_api_key_attachment.go index 10a0a8c5a4..5501d1c12e 100644 --- a/tencentcloud/resource_tc_api_gateway_api_key_attachment.go +++ b/tencentcloud/resource_tc_api_gateway_api_key_attachment.go @@ -1,35 +1,3 @@ -/* -Use this resource to API gateway attach access key to usage plan. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_api_key" "key" { - secret_name = "my_api_key" - status = "on" -} - -resource "tencentcloud_api_gateway_usage_plan" "plan" { - usage_plan_name = "my_plan" - usage_plan_desc = "nice plan" - max_request_num = 100 - max_request_num_pre_sec = 10 -} - -resource "tencentcloud_api_gateway_api_key_attachment" "attach" { - api_key_id = tencentcloud_api_gateway_api_key.key.id - usage_plan_id = tencentcloud_api_gateway_usage_plan.plan.id -} -``` - -Import - -API gateway attach access key can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_api_key_attachment.attach AKID110b8Rmuw7t0fP1N8bi809n327023Is7xN8f#usagePlan-gyeafpab -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_custom_domain.go b/tencentcloud/resource_tc_api_gateway_custom_domain.go index a67a7f512c..bcb70f90f7 100644 --- a/tencentcloud/resource_tc_api_gateway_custom_domain.go +++ b/tencentcloud/resource_tc_api_gateway_custom_domain.go @@ -1,20 +1,3 @@ -/* -Use this resource to create custom domain of API gateway. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_custom_domain" "foo" { - service_id = "service-ohxqslqe" - sub_domain = "tic-test.dnsv1.com" - protocol = "http" - net_type = "OUTER" - is_default_mapping = "false" - default_domain = "service-ohxqslqe-1259649581.gz.apigw.tencentcs.com" - path_mappings = ["/good#test","/root#release"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_import_open_api.go b/tencentcloud/resource_tc_api_gateway_import_open_api.go index e46ea6cd96..8917a1bf8b 100644 --- a/tencentcloud/resource_tc_api_gateway_import_open_api.go +++ b/tencentcloud/resource_tc_api_gateway_import_open_api.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a apiGateway import_open_api - -Example Usage - -Import open Api by YAML - -```hcl -resource "tencentcloud_api_gateway_import_open_api" "example" { - service_id = "service-nxz6yync" - content = "info:\n title: keep-service\n version: 1.0.1\nopenapi: 3.0.0\npaths:\n /api/test:\n get:\n description: desc\n operationId: test\n responses:\n '200':\n content:\n text/html:\n example: '200'\n description: '200'\n default:\n content:\n text/html:\n example: '400'\n description: '400'\n x-apigw-api-business-type: NORMAL\n x-apigw-api-type: NORMAL\n x-apigw-backend:\n ServiceConfig:\n Method: GET\n Path: /test\n Url: http://domain.com\n ServiceType: HTTP\n x-apigw-cors: false\n x-apigw-protocol: HTTP\n x-apigw-service-timeout: 15\n" - encode_type = "YAML" - content_version = "openAPI" -} -``` - -Import open Api by JSON - -```hcl -resource "tencentcloud_api_gateway_import_open_api" "example" { - service_id = "service-nxz6yync" - content = "{\"openapi\": \"3.0.0\", \"info\": {\"title\": \"keep-service\", \"version\": \"1.0.1\"}, \"paths\": {\"/api/test\": {\"get\": {\"operationId\": \"test\", \"description\": \"desc\", \"responses\": {\"200\": {\"description\": \"200\", \"content\": {\"text/html\": {\"example\": \"200\"}}}, \"default\": {\"content\": {\"text/html\": {\"example\": \"400\"}}, \"description\": \"400\"}}, \"x-apigw-api-type\": \"NORMAL\", \"x-apigw-api-business-type\": \"NORMAL\", \"x-apigw-protocol\": \"HTTP\", \"x-apigw-cors\": false, \"x-apigw-service-timeout\": 15, \"x-apigw-backend\": {\"ServiceType\": \"HTTP\", \"ServiceConfig\": {\"Url\": \"http://domain.com\", \"Path\": \"/test\", \"Method\": \"GET\"}}}}}}" - encode_type = "JSON" - content_version = "openAPI" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_ip_strategy.go b/tencentcloud/resource_tc_api_gateway_ip_strategy.go index 719ea29d3f..5bd57e6b3b 100644 --- a/tencentcloud/resource_tc_api_gateway_ip_strategy.go +++ b/tencentcloud/resource_tc_api_gateway_ip_strategy.go @@ -1,33 +1,3 @@ -/* -Use this resource to create IP strategy of API gateway. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "niceservice" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_ip_strategy" "test"{ - service_id = tencentcloud_api_gateway_service.service.id - strategy_name = "tf_test" - strategy_type = "BLACK" - strategy_data = "9.9.9.9" -} -``` - -Import - -IP strategy of API gateway can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_ip_strategy.test service-ohxqslqe#IPStrategy-q1lk8ud2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_plugin.go b/tencentcloud/resource_tc_api_gateway_plugin.go index 15e6e2f2b7..b451c8b88d 100644 --- a/tencentcloud/resource_tc_api_gateway_plugin.go +++ b/tencentcloud/resource_tc_api_gateway_plugin.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a apiGateway plugin - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_plugin" "example" { - plugin_name = "tf-example" - plugin_type = "IPControl" - plugin_data = jsonencode({ - "type" : "white_list", - "blocks" : "1.1.1.1", - }) - description = "desc." -} -``` - -Import - -apiGateway plugin can be imported using the id, e.g. - -``` -terraform import tencentcloud_api_gateway_plugin.plugin plugin_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_plugin_attachment.go b/tencentcloud/resource_tc_api_gateway_plugin_attachment.go index 1bdd934fb6..dc34eb70e9 100644 --- a/tencentcloud/resource_tc_api_gateway_plugin_attachment.go +++ b/tencentcloud/resource_tc_api_gateway_plugin_attachment.go @@ -1,86 +1,3 @@ -/* -Provides a resource to create a apiGateway plugin_attachment - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_plugin" "example" { - plugin_name = "tf-example" - plugin_type = "IPControl" - plugin_data = jsonencode({ - "type" : "white_list", - "blocks" : "1.1.1.1", - }) - description = "desc." -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf_example_service" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "example" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "tf_example_api" - api_desc = "desc." - auth_type = "APP" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "GET" - - request_parameters { - name = "name" - position = "QUERY" - type = "string" - desc = "desc." - default_value = "terraform" - required = true - } - - service_config_type = "HTTP" - service_config_timeout = 15 - service_config_url = "https://www.qq.com" - service_config_path = "/user" - service_config_method = "GET" - response_type = "HTML" - response_success_example = "success" - response_fail_example = "fail" - - response_error_codes { - code = 400 - msg = "system error msg." - desc = "system error desc." - converted_code = 407 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_service_release" "example" { - service_id = tencentcloud_api_gateway_api.example.service_id - environment_name = "release" - release_desc = "desc." -} - -resource "tencentcloud_api_gateway_plugin_attachment" "example" { - plugin_id = tencentcloud_api_gateway_plugin.example.id - service_id = tencentcloud_api_gateway_service_release.example.service_id - api_id = tencentcloud_api_gateway_api.example.id - environment_name = "release" -} -``` - -Import - -apiGateway plugin_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_api_gateway_plugin_attachment.example plugin-hnqntalp#service-q3f533ja#release#api-62ud9woa -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_service.go b/tencentcloud/resource_tc_api_gateway_service.go index 11bed9519f..3c210e96ba 100644 --- a/tencentcloud/resource_tc_api_gateway_service.go +++ b/tencentcloud/resource_tc_api_gateway_service.go @@ -1,66 +1,3 @@ -/* -Use this resource to create API gateway service. - -~> **NOTE:** After setting `uniq_vpc_id`, it cannot be modified. - -Example Usage - -Shared Service - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "example-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf-example" - protocol = "http&https" - service_desc = "desc." - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" - uniq_vpc_id = tencentcloud_vpc.vpc.id - - tags = { - createdBy = "terraform" - } - - release_limit = 500 - pre_limit = 500 - test_limit = 500 -} -``` - -Exclusive Service - -```hcl -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf-example" - protocol = "http&https" - service_desc = "desc." - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" - uniq_vpc_id = tencentcloud_vpc.vpc.id - instance_id = "instance-rc6fcv4e" - - tags = { - createdBy = "terraform" - } - - release_limit = 500 - pre_limit = 500 - test_limit = 500 -} -``` - -Import - -API gateway service can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_service.service service-pg6ud8pa -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_service_release.go b/tencentcloud/resource_tc_api_gateway_service_release.go index 8d524b5e83..a096017c64 100644 --- a/tencentcloud/resource_tc_api_gateway_service_release.go +++ b/tencentcloud/resource_tc_api_gateway_service_release.go @@ -1,66 +1,3 @@ -/* -Use this resource to create API gateway service release. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "myservice" - protocol = "http" - service_desc = "my nice service" - net_type = ["INNER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "api" { - service_id = tencentcloud_api_gateway_service.service.id - api_name = "tf_example" - api_desc = "my hello api update" - auth_type = "SECRET" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "POST" - request_parameters { - name = "email" - position = "QUERY" - type = "string" - desc = "your email please?" - default_value = "tom@qq.com" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 10 - service_config_url = "http://www.tencent.com" - service_config_path = "/user" - service_config_method = "POST" - response_type = "XML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 10 - msg = "system error" - desc = "system error code" - converted_code = -10 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_service_release" "service" { - service_id = tencentcloud_api_gateway_api.api.service.id - environment_name = "release" - release_desc = "test service release" -} -``` - -Import - -API gateway service release can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_service_release.service service-jjt3fs3s#release#20201015121916d85fb161-eaec-4dda-a7e0-659aa5f401be -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_strategy_attachment.go b/tencentcloud/resource_tc_api_gateway_strategy_attachment.go index 797e7fdf84..515caf52e9 100644 --- a/tencentcloud/resource_tc_api_gateway_strategy_attachment.go +++ b/tencentcloud/resource_tc_api_gateway_strategy_attachment.go @@ -1,80 +1,3 @@ -/* -Use this resource to create IP strategy attachment of API gateway. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_service" "service" { - service_name = "niceservice" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_ip_strategy" "test"{ - service_id = tencentcloud_api_gateway_service.service.id - strategy_name = "tf_test" - strategy_type = "BLACK" - strategy_data = "9.9.9.9" -} - -resource "tencentcloud_api_gateway_api" "api" { - service_id = tencentcloud_api_gateway_service.service.id - api_name = "tf_example" - api_desc = "my hello api update" - auth_type = "SECRET" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "POST" - request_parameters { - name = "email" - position = "QUERY" - type = "string" - desc = "your email please?" - default_value = "tom@qq.com" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 10 - service_config_url = "http://www.tencent.com" - service_config_path = "/user" - service_config_method = "POST" - response_type = "XML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 10 - msg = "system error" - desc = "system error code" - converted_code = -10 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_service_release" "service" { - service_id = tencentcloud_api_gateway_service.service.id - environment_name = "release" - release_desc = "test service release" -} - -resource "tencentcloud_api_gateway_strategy_attachment" "test"{ - service_id = tencentcloud_api_gateway_service_release.service.service_id - strategy_id = tencentcloud_api_gateway_ip_strategy.test.strategy_id - environment_name = "release" - bind_api_id = tencentcloud_api_gateway_api.api.id -} -``` - -Import - -IP strategy attachment of API gateway can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_strategy_attachment.test service-pk2r6bcc#IPStrategy-4kz2ljfi#api-h3wc5r0s#release -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_update_api_app_key.go b/tencentcloud/resource_tc_api_gateway_update_api_app_key.go index 6b254cde88..9dcd684d95 100644 --- a/tencentcloud/resource_tc_api_gateway_update_api_app_key.go +++ b/tencentcloud/resource_tc_api_gateway_update_api_app_key.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a apiGateway update_api_app_key - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_update_api_app_key" "example" { - api_app_id = "app-krljp4wn" - api_app_key = "APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_upstream.go b/tencentcloud/resource_tc_api_gateway_upstream.go index dbf0f22218..a55ad8d70c 100644 --- a/tencentcloud/resource_tc_api_gateway_upstream.go +++ b/tencentcloud/resource_tc_api_gateway_upstream.go @@ -1,137 +1,3 @@ -/* -Provides a resource to create a apigateway upstream - -Example Usage - -Create a basic VPC channel - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cvm" -} - -data "tencentcloud_images" "images" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.3.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.3.name - image_id = data.tencentcloud_images.images.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "terraform" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - - data_disks { - data_disk_type = "CLOUD_PREMIUM" - data_disk_size = 50 - encrypt = false - } - - tags = { - tagKey = "tagValue" - } -} - -resource "tencentcloud_api_gateway_upstream" "example" { - scheme = "HTTP" - algorithm = "ROUND-ROBIN" - uniq_vpc_id = tencentcloud_vpc.vpc.id - upstream_name = "tf_example" - upstream_description = "desc." - upstream_type = "IP_PORT" - retries = 5 - - nodes { - host = "1.1.1.1" - port = 9090 - weight = 10 - vm_instance_id = tencentcloud_instance.example.id - tags = ["tags"] - } - - tags = { - "createdBy" = "terraform" - } -} -``` - -Create a complete VPC channel - -```hcl -resource "tencentcloud_api_gateway_upstream" "example" { - scheme = "HTTP" - algorithm = "ROUND-ROBIN" - uniq_vpc_id = tencentcloud_vpc.vpc.id - upstream_name = "tf_example" - upstream_description = "desc." - upstream_type = "IP_PORT" - retries = 5 - - nodes { - host = "1.1.1.1" - port = 9090 - weight = 10 - vm_instance_id = tencentcloud_instance.example.id - tags = ["tags"] - } - - health_checker { - enable_active_check = true - enable_passive_check = true - healthy_http_status = "200" - unhealthy_http_status = "500" - tcp_failure_threshold = 5 - timeout_threshold = 5 - http_failure_threshold = 3 - active_check_http_path = "/" - active_check_timeout = 5 - active_check_interval = 5 - unhealthy_timeout = 30 - } - - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -apigateway upstream can be imported using the id, e.g. - -``` -terraform import tencentcloud_api_gateway_upstream.upstream upstream_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_usage_plan.go b/tencentcloud/resource_tc_api_gateway_usage_plan.go index d39fed88c0..16646167a1 100644 --- a/tencentcloud/resource_tc_api_gateway_usage_plan.go +++ b/tencentcloud/resource_tc_api_gateway_usage_plan.go @@ -1,25 +1,3 @@ -/* -Use this resource to create API gateway usage plan. - -Example Usage - -```hcl -resource "tencentcloud_api_gateway_usage_plan" "example" { - usage_plan_name = "tf_example" - usage_plan_desc = "desc." - max_request_num = 100 - max_request_num_pre_sec = 10 -} -``` - -Import - -API gateway usage plan can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_usage_plan.plan usagePlan-gyeafpab -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_api_gateway_usage_plan_attachment.go b/tencentcloud/resource_tc_api_gateway_usage_plan_attachment.go index 9a896307b1..9b8700ee47 100644 --- a/tencentcloud/resource_tc_api_gateway_usage_plan_attachment.go +++ b/tencentcloud/resource_tc_api_gateway_usage_plan_attachment.go @@ -1,98 +1,3 @@ -/* -Use this resource to attach API gateway usage plan to service. - -~> **NOTE:** If the `auth_type` parameter of API is not `SECRET`, it cannot be bound access key. - -Example Usage - -Normal creation - -```hcl -resource "tencentcloud_api_gateway_usage_plan" "example" { - usage_plan_name = "tf_example" - usage_plan_desc = "desc." - max_request_num = 100 - max_request_num_pre_sec = 10 -} - -resource "tencentcloud_api_gateway_service" "example" { - service_name = "tf_example" - protocol = "http&https" - service_desc = "desc." - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -resource "tencentcloud_api_gateway_api" "example" { - service_id = tencentcloud_api_gateway_service.example.id - api_name = "tf_example" - api_desc = "my hello api update" - auth_type = "SECRET" - protocol = "HTTP" - enable_cors = true - request_config_path = "/user/info" - request_config_method = "POST" - request_parameters { - name = "email" - position = "QUERY" - type = "string" - desc = "desc." - default_value = "test@qq.com" - required = true - } - service_config_type = "HTTP" - service_config_timeout = 10 - service_config_url = "http://www.tencent.com" - service_config_path = "/user" - service_config_method = "POST" - response_type = "XML" - response_success_example = "success" - response_fail_example = "fail" - response_error_codes { - code = 500 - msg = "system error" - desc = "system error code" - converted_code = 5000 - need_convert = true - } -} - -resource "tencentcloud_api_gateway_usage_plan_attachment" "example" { - usage_plan_id = tencentcloud_api_gateway_usage_plan.example.id - service_id = tencentcloud_api_gateway_service.example.id - environment = "release" - bind_type = "API" - api_id = tencentcloud_api_gateway_api.example.id -} -``` - -Bind the key to a usage plan - -```hcl -resource "tencentcloud_api_gateway_api_key" "example" { - secret_name = "tf_example" - status = "on" -} - -resource "tencentcloud_api_gateway_usage_plan_attachment" "example" { - usage_plan_id = tencentcloud_api_gateway_usage_plan.example.id - service_id = tencentcloud_api_gateway_service.example.id - environment = "release" - bind_type = "API" - api_id = tencentcloud_api_gateway_api.example.id - - access_key_ids = [tencentcloud_api_gateway_api_key.example.id] -} -``` - -Import - -API gateway usage plan attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_api_gateway_usage_plan_attachment.attach_service usagePlan-pe7fbdgn#service-kuqd6xqk#release#API#api-p8gtanvy -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_apm_instance.go b/tencentcloud/resource_tc_apm_instance.go index 7adfe411d4..169bad3bf3 100644 --- a/tencentcloud/resource_tc_apm_instance.go +++ b/tencentcloud/resource_tc_apm_instance.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a apm instance - -Example Usage - -```hcl -resource "tencentcloud_apm_instance" "instance" { - name = "terraform-test" - description = "for terraform test" - trace_duration = 15 - span_daily_counters = 20 - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -apm instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_apm_instance.instance instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_attachment.go b/tencentcloud/resource_tc_as_attachment.go index f73944f872..e9fc5f318e 100644 --- a/tencentcloud/resource_tc_as_attachment.go +++ b/tencentcloud/resource_tc_as_attachment.go @@ -1,82 +1,3 @@ -/* -Provides a resource to attach or detach CVM instances to a specified scaling group. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example_instance" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - allocate_public_ip = true - internet_max_bandwidth_out = 10 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_as_attachment" "attachment" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = [tencentcloud_instance.example.id] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_complete_lifecycle.go b/tencentcloud/resource_tc_as_complete_lifecycle.go index cda7a181f2..7802c3446c 100644 --- a/tencentcloud/resource_tc_as_complete_lifecycle.go +++ b/tencentcloud/resource_tc_as_complete_lifecycle.go @@ -1,92 +1,3 @@ -/* -Provides a resource to create a as complete_lifecycle - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_lifecycle_hook" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - lifecycle_hook_name = "tf-as-lifecycle-hook" - lifecycle_transition = "INSTANCE_LAUNCHING" - default_result = "CONTINUE" - heartbeat_timeout = 500 - notification_metadata = "tf test" -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_as_complete_lifecycle" "complete_lifecycle" { - lifecycle_hook_id = tencentcloud_as_lifecycle_hook.example.id - instance_id = tencentcloud_instance.example.id - lifecycle_action_result = "CONTINUE" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_execute_scaling_policy.go b/tencentcloud/resource_tc_as_execute_scaling_policy.go index d737bbfcdd..9f01f117d4 100644 --- a/tencentcloud/resource_tc_as_execute_scaling_policy.go +++ b/tencentcloud/resource_tc_as_execute_scaling_policy.go @@ -1,78 +1,3 @@ -/* -Provides a resource to create a as execute_scaling_policy - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 4 - min_size = 1 - desired_capacity = 2 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_scaling_policy" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - policy_name = "tf-as-scaling-policy" - adjustment_type = "EXACT_CAPACITY" - adjustment_value = 0 - comparison_operator = "GREATER_THAN" - metric_name = "CPU_UTILIZATION" - threshold = 80 - period = 300 - continuous_time = 10 - statistic = "AVERAGE" - cooldown = 360 -} - -resource "tencentcloud_as_execute_scaling_policy" "example" { - auto_scaling_policy_id = tencentcloud_as_scaling_policy.example.id - honor_cooldown = false - trigger_source = "API" -} -``` - -Import - -as execute_scaling_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_as_execute_scaling_policy.execute_scaling_policy execute_scaling_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_lifecycle_hook.go b/tencentcloud/resource_tc_as_lifecycle_hook.go index 963a1a5fe8..b076c203d0 100644 --- a/tencentcloud/resource_tc_as_lifecycle_hook.go +++ b/tencentcloud/resource_tc_as_lifecycle_hook.go @@ -1,91 +1,3 @@ -/* -Provides a resource for an AS (Auto scaling) lifecycle hook. - -Example Usage - -Create a basic LifecycleHook - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_lifecycle_hook" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - lifecycle_hook_name = "tf-as-lifecycle-hook" - lifecycle_transition = "INSTANCE_LAUNCHING" - default_result = "CONTINUE" - heartbeat_timeout = 500 - notification_metadata = "tf test" -} -``` - -If `notification_target_type` is `CMQ_QUEUE` - -```hcl -resource "tencentcloud_as_lifecycle_hook" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - lifecycle_hook_name = "tf-as-lifecycle-hook" - lifecycle_transition = "INSTANCE_LAUNCHING" - default_result = "CONTINUE" - heartbeat_timeout = 500 - notification_metadata = "tf test" - notification_target_type = "CMQ_QUEUE" - notification_queue_name = "lifcyclehook" -} -``` - -Or `notification_target_type` is `CMQ_TOPIC` - -```hcl -resource "tencentcloud_as_lifecycle_hook" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - lifecycle_hook_name = "tf-as-lifecycle-hook" - lifecycle_transition = "INSTANCE_LAUNCHING" - default_result = "CONTINUE" - heartbeat_timeout = 500 - notification_metadata = "tf test" - notification_target_type = "CMQ_TOPIC" - notification_topic_name = "lifcyclehook" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_notification.go b/tencentcloud/resource_tc_as_notification.go index d03b0a1688..4929d9fd86 100644 --- a/tencentcloud/resource_tc_as_notification.go +++ b/tencentcloud/resource_tc_as_notification.go @@ -1,62 +1,3 @@ -/* -Provides a resource for an AS (Auto scaling) notification. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_cam_group" "example" { - name = "tf-example" - remark = "desc." -} - -resource "tencentcloud_as_notification" "as_notification" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - notification_types = [ - "SCALE_OUT_SUCCESSFUL", "SCALE_OUT_FAILED", "SCALE_IN_FAILED", "REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL", "REPLACE_UNHEALTHY_INSTANCE_FAILED" - ] - notification_user_group_ids = [tencentcloud_cam_group.example.id] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_protect_instances.go b/tencentcloud/resource_tc_as_protect_instances.go index 404f6bf2ac..3607e6f68e 100644 --- a/tencentcloud/resource_tc_as_protect_instances.go +++ b/tencentcloud/resource_tc_as_protect_instances.go @@ -1,101 +1,3 @@ -/* -Provides a resource to create a as protect_instances - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -# Attachment Instance -resource "tencentcloud_as_attachment" "attachment" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = [tencentcloud_instance.example.id] -} - -# Set protect -resource "tencentcloud_as_protect_instances" "protect" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = tencentcloud_as_attachment.attachment.instance_ids - protected_from_scale_in = true -} -``` - -Or close protect - -```hcl -resource "tencentcloud_as_protect_instances" "protect" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = tencentcloud_as_attachment.attachment.instance_ids - protected_from_scale_in = false -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_remove_instances.go b/tencentcloud/resource_tc_as_remove_instances.go index 864ec0741a..23a6847113 100644 --- a/tencentcloud/resource_tc_as_remove_instances.go +++ b/tencentcloud/resource_tc_as_remove_instances.go @@ -1,89 +1,3 @@ -/* -Provides a resource to create a as remove_instances - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -# Attachment Instance -resource "tencentcloud_as_attachment" "attachment" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = [tencentcloud_instance.example.id] -} - -# Remove Instance -resource "tencentcloud_as_remove_instances" "remove" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = tencentcloud_as_attachment.attachment.instance_ids -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_scale_in_instances.go b/tencentcloud/resource_tc_as_scale_in_instances.go index 1b17fe3541..05e93ea7c1 100644 --- a/tencentcloud/resource_tc_as_scale_in_instances.go +++ b/tencentcloud/resource_tc_as_scale_in_instances.go @@ -1,63 +1,3 @@ -/* -Provides a resource to create a as scale_in_instances - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 4 - min_size = 1 - desired_capacity = 2 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_scale_in_instances" "scale_in_instances" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - scale_in_number = 1 -} -``` - -Import - -as scale_in_instances can be imported using the id, e.g. - -``` -terraform import tencentcloud_as_scale_in_instances.scale_in_instances scale_in_instances_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_scale_out_instances.go b/tencentcloud/resource_tc_as_scale_out_instances.go index e0f23d7647..9860b6b7b0 100644 --- a/tencentcloud/resource_tc_as_scale_out_instances.go +++ b/tencentcloud/resource_tc_as_scale_out_instances.go @@ -1,63 +1,3 @@ -/* -Provides a resource to create a as scale_out_instances - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 4 - min_size = 0 - desired_capacity = 2 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_scale_out_instances" "scale_out_instances" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - scale_out_number = 2 -} -``` - -Import - -as scale_out_instances can be imported using the id, e.g. - -``` -terraform import tencentcloud_as_scale_out_instances.scale_out_instances scale_out_instances_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_scaling_config.go b/tencentcloud/resource_tc_as_scaling_config.go index ae71e439d2..ea31f17ed1 100644 --- a/tencentcloud/resource_tc_as_scaling_config.go +++ b/tencentcloud/resource_tc_as_scaling_config.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a configuration for an AS (Auto scaling) instance. - -~> **NOTE:** In order to ensure the integrity of customer data, if the cvm instance was destroyed due to shrinking, it will keep the cbs associate with cvm by default. If you want to destroy together, please set `delete_with_instance` to `true`. - -Example Usage - -```hcl -data "tencentcloud_images" "example" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "example-launch-configuration" - image_id = data.tencentcloud_images.example.images.0.image_id - instance_types = ["SA1.SMALL1"] - project_id = 0 - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = "50" - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 10 - public_ip_assigned = true - password = "Test@123#" - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - - host_name_settings { - host_name = "host-name-test" - host_name_style = "UNIQUE" - } - - instance_tags = { - tag = "example" - } -} -``` - -Using `SPOTPAID` charge type - -``` -data "tencentcloud_images" "example" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "launch-configuration" - image_id = data.tencentcloud_images.example.images.0.image_id - instance_types = ["SA1.SMALL1"] - instance_charge_type = "SPOTPAID" - spot_instance_type = "one-time" - spot_max_price = "1000" -} -``` - -Import - -AutoScaling Configuration can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_as_scaling_config.example asc-n32ymck2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_scaling_group.go b/tencentcloud/resource_tc_as_scaling_group.go index afce21fb6a..03ac09c25c 100644 --- a/tencentcloud/resource_tc_as_scaling_group.go +++ b/tencentcloud/resource_tc_as_scaling_group.go @@ -1,118 +1,3 @@ -/* -Provides a resource to create a group of AS (Auto scaling) instances. - -Example Usage - -Create a basic Scaling Group - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} -``` - -Create a complete Scaling Group - -```hcl -resource "tencentcloud_clb_instance" "example" { - network_type = "INTERNAL" - clb_name = "clb-example" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - - tags = { - test = "tf" - } -} - -resource "tencentcloud_clb_listener" "example" { - clb_id = tencentcloud_clb_instance.example.id - listener_name = "listener-example" - port = 80 - protocol = "HTTP" -} - -resource "tencentcloud_clb_listener_rule" "example" { - listener_id = tencentcloud_clb_listener.example.listener_id - clb_id = tencentcloud_clb_instance.example.id - domain = "foo.net" - url = "/bar" -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - project_id = 0 - default_cooldown = 400 - desired_capacity = 1 - termination_policies = ["NEWEST_INSTANCE"] - retry_policy = "INCREMENTAL_INTERVALS" - - forward_balancer_ids { - load_balancer_id = tencentcloud_clb_instance.example.id - listener_id = tencentcloud_clb_listener.example.listener_id - rule_id = tencentcloud_clb_listener_rule.example.rule_id - - target_attribute { - port = 80 - weight = 90 - } - } - - tags = { - "createBy" = "tfExample" - } -} -``` - -Import - -AutoScaling Groups can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_as_scaling_group.scaling_group asg-n32ymck2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_scaling_group_status.go b/tencentcloud/resource_tc_as_scaling_group_status.go index cbd16e6755..3e5530b0ae 100644 --- a/tencentcloud/resource_tc_as_scaling_group_status.go +++ b/tencentcloud/resource_tc_as_scaling_group_status.go @@ -1,73 +1,3 @@ -/* -Provides a resource to set as scaling_group status - -Example Usage - -Deactivate Scaling Group - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_scaling_group_status" "scaling_group_status" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - enable = false -} -``` - -Enable Scaling Group - -```hcl -resource "tencentcloud_as_scaling_group_status" "scaling_group_status" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - enable = true -} -``` - -Import - -as scaling_group_status can be imported using the id, e.g. - -``` -terraform import tencentcloud_as_scaling_group_status.scaling_group_status scaling_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_scaling_policy.go b/tencentcloud/resource_tc_as_scaling_policy.go index 5e00f741eb..90d5e95b38 100644 --- a/tencentcloud/resource_tc_as_scaling_policy.go +++ b/tencentcloud/resource_tc_as_scaling_policy.go @@ -1,63 +1,3 @@ -/* -Provides a resource for an AS (Auto scaling) policy. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_scaling_policy" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - policy_name = "tf-as-scaling-policy" - adjustment_type = "EXACT_CAPACITY" - adjustment_value = 0 - comparison_operator = "GREATER_THAN" - metric_name = "CPU_UTILIZATION" - threshold = 80 - period = 300 - continuous_time = 10 - statistic = "AVERAGE" - cooldown = 360 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_schedule.go b/tencentcloud/resource_tc_as_schedule.go index d4964c5c4f..6158b029e6 100644 --- a/tencentcloud/resource_tc_as_schedule.go +++ b/tencentcloud/resource_tc_as_schedule.go @@ -1,60 +1,3 @@ -/* -Provides a resource for an AS (Auto scaling) schedule. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_as_schedule" "example" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - schedule_action_name = "tf-as-schedule" - max_size = 10 - min_size = 0 - desired_capacity = 0 - start_time = "2019-01-01T00:00:00+08:00" - end_time = "2019-12-01T00:00:00+08:00" - recurrence = "0 0 * * *" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_start_instances.go b/tencentcloud/resource_tc_as_start_instances.go index d36c78c3a1..512c35e38c 100644 --- a/tencentcloud/resource_tc_as_start_instances.go +++ b/tencentcloud/resource_tc_as_start_instances.go @@ -1,90 +1,3 @@ -/* -Provides a resource to create a as start_instances - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -# Attachment Instance -resource "tencentcloud_as_attachment" "attachment" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = [tencentcloud_instance.example.id] -} - -resource "tencentcloud_as_start_instances" "start_instances" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = tencentcloud_as_attachment.attachment.instance_ids -} - -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_as_stop_instances.go b/tencentcloud/resource_tc_as_stop_instances.go index 763da8aa7c..b14e33eb79 100644 --- a/tencentcloud/resource_tc_as_stop_instances.go +++ b/tencentcloud/resource_tc_as_stop_instances.go @@ -1,90 +1,3 @@ -/* -Provides a resource to create a as stop_instances - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "as" -} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name -} - -resource "tencentcloud_as_scaling_config" "example" { - configuration_name = "tf-example" - image_id = data.tencentcloud_images.image.images.0.image_id - instance_types = ["SA1.SMALL1", "SA2.SMALL1", "SA2.SMALL2", "SA2.SMALL4"] - instance_name_settings { - instance_name = "test-ins-name" - } -} - -resource "tencentcloud_as_scaling_group" "example" { - scaling_group_name = "tf-example" - configuration_id = tencentcloud_as_scaling_config.example.id - max_size = 1 - min_size = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -# Attachment Instance -resource "tencentcloud_as_attachment" "attachment" { - scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = [tencentcloud_instance.example.id] -} - -resource "tencentcloud_as_stop_instances" "stop_instances" { - auto_scaling_group_id = tencentcloud_as_scaling_group.example.id - instance_ids = tencentcloud_as_attachment.attachment.instance_ids - stopped_mode = "STOP_CHARGING" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_audit.go b/tencentcloud/resource_tc_audit.go index bf5d6a07e4..cfe9a579a7 100644 --- a/tencentcloud/resource_tc_audit.go +++ b/tencentcloud/resource_tc_audit.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create an audit. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_audit_track. - -Example Usage - -```hcl -resource "tencentcloud_audit" "foo" { - name = "audittest" - cos_bucket = "test" - cos_region = "ap-hongkong" - log_file_prefix = "test" - audit_switch = true - read_write_attribute = 3 -} -``` - -Import - -Audit can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_audit.foo audit-test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_audit_track.go b/tencentcloud/resource_tc_audit_track.go index 8c862baed3..5881b6f514 100644 --- a/tencentcloud/resource_tc_audit_track.go +++ b/tencentcloud/resource_tc_audit_track.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a audit track - -Example Usage - -```hcl -resource "tencentcloud_audit_track" "track" { - action_type = "Read" - event_names = [ - "*", - ] - name = "terraform_track" - resource_type = "*" - status = 1 - track_for_all_members = 0 - - storage { - storage_name = "db90b92c-91d2-46b0-94ac-debbbb21dc4e" - storage_prefix = "cloudaudit" - storage_region = "ap-guangzhou" - storage_type = "cls" - } -} - -``` -Import - -audit track can be imported using the id, e.g. -``` -$ terraform import tencentcloud_audit_track.track track_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_datasource.go b/tencentcloud/resource_tc_bi_datasource.go index f89a45dabe..daa0b58cb3 100644 --- a/tencentcloud/resource_tc_bi_datasource.go +++ b/tencentcloud/resource_tc_bi_datasource.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a bi datasource - -Example Usage - -```hcl -resource "tencentcloud_bi_datasource" "datasource" { - charset = "utf8" - db_host = "bj-cdb-1lxqg5r6.sql.tencentcdb.com" - db_name = "tf-test" - db_port = 63694 - db_type = "MYSQL" - db_pwd = "ABc123,,," - db_user = "root" - project_id = 11015030 - source_name = "tf-source-name" -} -``` - -Import - -bi datasource can be imported using the id, e.g. - -``` -terraform import tencentcloud_bi_datasource.datasource datasource_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_datasource_cloud.go b/tencentcloud/resource_tc_bi_datasource_cloud.go index 387f79043a..9721b43f52 100644 --- a/tencentcloud/resource_tc_bi_datasource_cloud.go +++ b/tencentcloud/resource_tc_bi_datasource_cloud.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a bi datasource_cloud - -Example Usage - -```hcl -resource "tencentcloud_bi_datasource_cloud" "datasource_cloud" { - charset = "utf8" - db_name = "bi_dev" - db_type = "MYSQL" - db_user = "root" - project_id = "11015056" - db_pwd = "xxxxxx" - service_type { - instance_id = "cdb-12viotu5" - region = "ap-guangzhou" - type = "Cloud" - } - source_name = "tf-test1" - vip = "10.0.0.4" - vport = "3306" - region_id = "gz" - vpc_id = 5292713 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_embed_interval_apply.go b/tencentcloud/resource_tc_bi_embed_interval_apply.go index 9b61543c3a..465b8b2ddd 100644 --- a/tencentcloud/resource_tc_bi_embed_interval_apply.go +++ b/tencentcloud/resource_tc_bi_embed_interval_apply.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a bi embed_interval - -Example Usage - -```hcl -resource "tencentcloud_bi_embed_interval_apply" "embed_interval" { - project_id = 11015030 - page_id = 10520483 - bi_token = "4192d65b-d674-4117-9a59-xxxxxxxxx" - scope = "page" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_embed_token_apply.go b/tencentcloud/resource_tc_bi_embed_token_apply.go index dab8697cfd..624f28c1db 100644 --- a/tencentcloud/resource_tc_bi_embed_token_apply.go +++ b/tencentcloud/resource_tc_bi_embed_token_apply.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a bi embed_token - -Example Usage - -```hcl -resource "tencentcloud_bi_embed_token_apply" "embed_token" { - project_id = 11015030 - page_id = 10520483 - scope = "page" - expire_time = "240" - user_corp_id = "100022975249" - user_id = "100024664626" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_project.go b/tencentcloud/resource_tc_bi_project.go index 41982f48f1..2cc99d42a3 100644 --- a/tencentcloud/resource_tc_bi_project.go +++ b/tencentcloud/resource_tc_bi_project.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a bi project - -Example Usage - -```hcl -resource "tencentcloud_bi_project" "project" { - name = "terraform_test" - color_code = "#7BD936" - logo = "TF-test" - mark = "project mark" -} -``` - -Import - -bi project can be imported using the id, e.g. - -``` -terraform import tencentcloud_bi_project.project project_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_project_user_role.go b/tencentcloud/resource_tc_bi_project_user_role.go index 0a79b474b0..4bba31b1cd 100644 --- a/tencentcloud/resource_tc_bi_project_user_role.go +++ b/tencentcloud/resource_tc_bi_project_user_role.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a bi project_user_role - -~> **NOTE:** You cannot use `tencentcloud_bi_user_role` and `tencentcloud_bi_project_user_role` at the same time to modify the `phone_number` and `email` of the same user. - -Example Usage - -```hcl -resource "tencentcloud_bi_project_user_role" "project_user_role" { - area_code = "+86" - project_id = 11015030 - role_id_list = [10629453] - email = "123456@qq.com" - phone_number = "13130001000" - user_id = "100024664626" - user_name = "keep-cam-user" -} -``` - -Import - -bi project_user_role can be imported using the id, e.g. - -``` -terraform import tencentcloud_bi_project_user_role.project_user_role projectId#userId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_bi_user_role.go b/tencentcloud/resource_tc_bi_user_role.go index f53543f830..42c1967018 100644 --- a/tencentcloud/resource_tc_bi_user_role.go +++ b/tencentcloud/resource_tc_bi_user_role.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a bi user_role - -Example Usage - -```hcl -resource "tencentcloud_bi_user_role" "user_role" { - area_code = "+83" - email = "1055000000@qq.com" - phone_number = "13470010000" - role_id_list = [ - 10629359, - ] - user_id = "100032767426" - user_name = "keep-iac-test" -} -``` - -Import - -bi user_role can be imported using the id, e.g. - -``` -terraform import tencentcloud_bi_user_role.user_role user_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_access_key.go b/tencentcloud/resource_tc_cam_access_key.go index d8ff8678f7..66d90541eb 100644 --- a/tencentcloud/resource_tc_cam_access_key.go +++ b/tencentcloud/resource_tc_cam_access_key.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a cam access_key - -Example Usage - -```hcl -resource "tencentcloud_cam_access_key" "access_key" { - target_uin = 100033690181 -} -``` -Update -```hcl -resource "tencentcloud_cam_access_key" "access_key" { - target_uin = 100033690181 - status = "Inactive" -} -``` -Encrypted -```hcl -resource "tencentcloud_cam_access_key" "access_key" { - target_uin = 100033690181 - pgp_key = "keybase:some_person_that_exists" -} -``` -Import - -cam access_key can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_access_key.access_key access_key_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_group.go b/tencentcloud/resource_tc_cam_group.go index 3c93681aa1..6294a7389d 100644 --- a/tencentcloud/resource_tc_cam_group.go +++ b/tencentcloud/resource_tc_cam_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a CAM group. - -Example Usage - -```hcl -resource "tencentcloud_cam_group" "foo" { - name = "tf_cam_group" - remark = "tf_group_remark" -} -``` - -Import - -CAM group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_group.foo 90496 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_group_membership.go b/tencentcloud/resource_tc_cam_group_membership.go index 73f763e156..8acc731af8 100644 --- a/tencentcloud/resource_tc_cam_group_membership.go +++ b/tencentcloud/resource_tc_cam_group_membership.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a CAM group membership. - -Example Usage - -```hcl -variable "cam_group_basic" { - default = "keep-cam-group" -} - -data "tencentcloud_cam_groups" "groups" { - name = var.cam_group_basic -} - -resource "tencentcloud_cam_user" "foo" { - name = "tf_cam_user" - remark = "tf_user_remark" - console_login = true - use_api = true - need_reset_password = true - password = "Gail@1234" - phone_num = "12345678910" - country_code = "86" - email = "1234@qq.com" - force_delete = true -} - - -resource "tencentcloud_cam_group_membership" "group_membership_basic" { - group_id = data.tencentcloud_cam_groups.groups.group_list.0.group_id - user_names = [tencentcloud_cam_user.foo.id] -} - -``` - -Import - -CAM group membership can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_group_membership.foo 12515263 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_group_policy_attachment.go b/tencentcloud/resource_tc_cam_group_policy_attachment.go index 2acb49c59d..db3bc09a08 100644 --- a/tencentcloud/resource_tc_cam_group_policy_attachment.go +++ b/tencentcloud/resource_tc_cam_group_policy_attachment.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a CAM group policy attachment. - -Example Usage - -```hcl -variable "cam_policy_basic" { - default = "keep-cam-policy" -} - -variable "cam_group_basic" { - default = "keep-cam-group" -} - -data "tencentcloud_cam_groups" "groups" { - name = var.cam_group_basic -} - -data "tencentcloud_cam_policies" "policy" { - name = var.cam_policy_basic -} - -resource "tencentcloud_cam_group_policy_attachment" "group_policy_attachment_basic" { - group_id = data.tencentcloud_cam_groups.groups.group_list.0.group_id - policy_id = data.tencentcloud_cam_policies.policy.policy_list.0.policy_id -} -``` - -Import - -CAM group policy attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_group_policy_attachment.foo 12515263#26800353 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_mfa_flag.go b/tencentcloud/resource_tc_cam_mfa_flag.go index e3415b2c7d..d4bb12ce7f 100644 --- a/tencentcloud/resource_tc_cam_mfa_flag.go +++ b/tencentcloud/resource_tc_cam_mfa_flag.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a cam mfa_flag - -Example Usage - -```hcl -data "tencentcloud_user_info" "info"{} - -resource "tencentcloud_cam_mfa_flag" "mfa_flag" { - op_uin = data.tencentcloud_user_info.info.uin - login_flag { - phone = 0 - stoken = 1 - wechat = 0 - } - action_flag { - phone = 0 - stoken = 1 - wechat = 0 - } -} - -``` - -Import - -cam mfa_flag can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_mfa_flag.mfa_flag mfa_flag_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_oidc_sso.go b/tencentcloud/resource_tc_cam_oidc_sso.go index 458ceeec43..69b1ce6f07 100644 --- a/tencentcloud/resource_tc_cam_oidc_sso.go +++ b/tencentcloud/resource_tc_cam_oidc_sso.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a CAM-OIDC-SSO. - -Example Usage - -```hcl -resource "tencentcloud_cam_oidc_sso" "foo" { - authorization_endpoint="https://login.microsoftonline.com/.../oauth2/v2.0/authorize" - client_id="..." - identity_key="..." - identity_url="https://login.microsoftonline.com/.../v2.0" - mapping_filed="name" - response_mode="form_post" - response_type="id_token" - scope=["openid", "email"] -} -``` - -Import - -CAM-OIDC-SSO can be imported using the client_id or any string which can identifier resource, e.g. - -``` -$ terraform import tencentcloud_cam_oidc_sso.foo xxxxxxxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_policy.go b/tencentcloud/resource_tc_cam_policy.go index 37fe10a2ba..8c77f9f1b7 100644 --- a/tencentcloud/resource_tc_cam_policy.go +++ b/tencentcloud/resource_tc_cam_policy.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a CAM policy. - -Example Usage - -```hcl -resource "tencentcloud_cam_policy" "foo" { - name = "tf_cam_policy" - document = <:uin/"] - } - } - ] -} -EOF - description = "test" - console_login = true - tags = { - test = "tf-cam-role", - } -} -``` - -Create with SAML provider - -```hcl -resource "tencentcloud_cam_role_by_name" "boo" { - name = "cam-role-test" - document = <:saml-provider/"] - } - } - ] -} -EOF - description = "test" - console_login = true -} -``` - -Import - -CAM role can be imported using the name, e.g. - -``` -$ terraform import tencentcloud_cam_role_by_name.foo cam-role-test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go b/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go index 72594af2df..dea2c0d86c 100644 --- a/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go +++ b/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cam role_permission_boundary_attachment - -Example Usage - -```hcl -resource "tencentcloud_cam_role_permission_boundary_attachment" "role_permission_boundary_attachment" { - policy_id = 1 - role_name = "test-cam-tag" -} -``` - -Import - -cam role_permission_boundary_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment role_permission_boundary_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_role_policy_attachment.go b/tencentcloud/resource_tc_cam_role_policy_attachment.go index f72426e3ab..9bb97127bb 100644 --- a/tencentcloud/resource_tc_cam_role_policy_attachment.go +++ b/tencentcloud/resource_tc_cam_role_policy_attachment.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a CAM role policy attachment. - -Example Usage - -```hcl -variable "cam_policy_basic" { - default = "keep-cam-policy" -} - -variable "cam_role_basic" { - default = "keep-cam-role" -} - -data "tencentcloud_cam_policies" "policy" { - name = var.cam_policy_basic -} - -data "tencentcloud_cam_roles" "roles" { - name = var.cam_role_basic -} - -resource "tencentcloud_cam_role_policy_attachment" "role_policy_attachment_basic" { - role_id = data.tencentcloud_cam_roles.roles.role_list.0.role_id - policy_id = data.tencentcloud_cam_policies.policy.policy_list.0.policy_id -} -``` - -Import - -CAM role policy attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_role_policy_attachment.foo 4611686018427922725#26800353 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_role_policy_attachment_by_name.go b/tencentcloud/resource_tc_cam_role_policy_attachment_by_name.go index e994f067bf..8c04cf9a06 100644 --- a/tencentcloud/resource_tc_cam_role_policy_attachment_by_name.go +++ b/tencentcloud/resource_tc_cam_role_policy_attachment_by_name.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a CAM role policy attachment. - -Example Usage - -```hcl -variable "cam_policy_basic" { - default = "keep-cam-policy" -} - -variable "cam_role_basic" { - default = "keep-cam-role" -} - -data "tencentcloud_cam_policies" "policy" { - name = var.cam_policy_basic -} - -data "tencentcloud_cam_roles" "roles" { - name = var.cam_role_basic -} - -resource "tencentcloud_cam_role_policy_attachment_by_name" "role_policy_attachment_basic" { - role_name = var.cam_role_basic - policy_name = var.cam_policy_basic -} -``` - -Import - -CAM role policy attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_role_policy_attachment_by_name.foo ${role_name}#${policy_name} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_role_sso.go b/tencentcloud/resource_tc_cam_role_sso.go index 6321c33700..1f8bdf7a9e 100644 --- a/tencentcloud/resource_tc_cam_role_sso.go +++ b/tencentcloud/resource_tc_cam_role_sso.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a CAM-ROLE-SSO (Only support OIDC). - -Example Usage - -```hcl -resource "tencentcloud_cam_role_sso" "foo" { - name="tf_cam_role_sso" - identity_url="https://login.microsoftonline.com/.../v2.0" - identity_key="..." - client_ids=["..."] - description="this is a description" -} -``` - -Import - -CAM-ROLE-SSO can be imported using the `name`, e.g. - -``` -$ terraform import tencentcloud_cam_role_sso.foo "test" -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_saml_provider.go b/tencentcloud/resource_tc_cam_saml_provider.go index 9aa54edefb..9a9f81e0d2 100644 --- a/tencentcloud/resource_tc_cam_saml_provider.go +++ b/tencentcloud/resource_tc_cam_saml_provider.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a CAM SAML provider. - -Example Usage - -```hcl -resource "tencentcloud_cam_saml_provider" "saml_provider_basic" { - name = "tf_cam_saml" - meta_data = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI+PG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIj48bWQ6S2V5RGVzY3JpcHRvciB1c2U9InNpZ25pbmciPjxkczpLZXlJbmZvIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj48ZHM6WDUwOURhdGE+PGRzOlg1MDlDZXJ0aWZpY2F0ZT5NSUlEb0RDQ0FvaWdBd0lCQWdJR0FXM0lTcExvTUEwR0NTcUdTSWIzRFFFQkN3VUFNSUdRTVFzd0NRWURWUVFHRXdKVlV6RVRNQkVHDQpBMVVFQ0F3S1EyRnNhV1p2Y201cFlURVdNQlFHQTFVRUJ3d05VMkZ1SUVaeVlXNWphWE5qYnpFTk1Bc0dBMVVFQ2d3RVQydDBZVEVVDQpNQklHQTFVRUN3d0xVMU5QVUhKdmRtbGtaWEl4RVRBUEJnTlZCQU1NQ0dsa2VIVmxkblJoTVJ3d0dnWUpLb1pJaHZjTkFRa0JGZzFwDQpibVp2UUc5cmRHRXVZMjl0TUI0WERURTVNVEF4TkRBek1qSXhNMW9YRFRJNU1UQXhOREF6TWpNeE0xb3dnWkF4Q3pBSkJnTlZCQVlUDQpBbFZUTVJNd0VRWURWUVFJREFwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFRSERBMVRZVzRnUm5KaGJtTnBjMk52TVEwd0N3WURWUVFLDQpEQVJQYTNSaE1SUXdFZ1lEVlFRTERBdFRVMDlRY205MmFXUmxjakVSTUE4R0ExVUVBd3dJYVdSNGRXVjJkR0V4SERBYUJna3Foa2lHDQo5dzBCQ1FFV0RXbHVabTlBYjJ0MFlTNWpiMjB3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQ2g4b3dqDQpZK2dQSUM3blQvNTduLzdmeXJzcDlHMXdxa2UxdXhjMHVrTndnQXozOVNpelY3QVhLMWRReTFLaThXWjJJMzFEczJkT0FNQ1FKR2pWDQpUWWNNbnA3KzhqUzNLdmxNUkRJamk5cmxuUi9vcnBvMll1RHVWby9jVzdidlRIS2h2REo1QWZRaWxzYlNPTXdUOWM2TVlYZGhBNVBwDQpzelFsK1UrdHJmcXUrdUorSER4SVQxdlhWaVI5YlY2SUFRSzZpbWZoc2wxWmVSUytjbVFVNEpjQWlYT0xtTnFVVWM2UkpxUzhrMW1mDQpBLzhmb2VyMGc3SG4xZDVXclpCc2gyUlR2Vzh1ZVdadHQ3dmh4QTlGdE5kSVlEcXJ0eElmMlZXcXhrSHM3WFZDSm5wTnJITVovT1BRDQpGY21YSGVxNlJJMlB3Q1RlOW8zZHZpM0hqeXBaOEl4dkFnTUJBQUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUFHaHk1bG9nbGtTDQoyVHg2YS90MnF5VEx0YVV5cEwrNGhySGJoMVAweVVMc0NrSnFsM2wrWG9VZDZCY2FJaFNSVGFPQk95ODViL0UzelJ4K3JzQXJwTjVVDQp5ZThuUEM4a05PYW5vTk9wWnZvYmhpTzFlMFIvYmxEcnRBL0o5UlBwMWtmdlhmS2NSTTU3TlRCWXppTURlbnFQUTRFOWN1U2lGdFFxDQpJYmpIbThaM1B1YXgwRitldkZ3U1pJMDNCWXNISGw1d1EraEJBS3hTdTJINEZRdU93Zmpnb2EveEN6Z1NKYjJ2UXdEc1MxMk9mSkNiDQpSRm1ZL1VYZXQramFhdEVORktLZStZSUJpU0J2WG1adTN0MHN5NDZTNzlPVzBacXJ0NUh2bElsT2lpTFpaN1FZamxjM1kxeG1LZ1luDQpXM2M2WGZkdmhGWHo0ZDdkbWYvTUdpNGY0enM9PC9kczpYNTA5Q2VydGlmaWNhdGU+PC9kczpYNTA5RGF0YT48L2RzOktleUluZm8+PC9tZDpLZXlEZXNjcmlwdG9yPjxtZDpOYW1lSURGb3JtYXQ+dXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6MS4xOm5hbWVpZC1mb3JtYXQ6dW5zcGVjaWZpZWQ8L21kOk5hbWVJREZvcm1hdD48bWQ6TmFtZUlERm9ybWF0PnVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMTpuYW1laWQtZm9ybWF0OmVtYWlsQWRkcmVzczwvbWQ6TmFtZUlERm9ybWF0PjxtZDpTaW5nbGVTaWduT25TZXJ2aWNlIEJpbmRpbmc9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpiaW5kaW5nczpIVFRQLVBPU1QiIExvY2F0aW9uPSJodHRwczovL2lkeHVldnRhLm9rdGEuY29tL2FwcC9pZHh1ZW9yZzYzNzM1OF90ZXN0XzEvZXhrMWtxeG1jalFtR0FETXkzNTcvc3NvL3NhbWwiLz48bWQ6U2luZ2xlU2lnbk9uU2VydmljZSBCaW5kaW5nPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YmluZGluZ3M6SFRUUC1SZWRpcmVjdCIgTG9jYXRpb249Imh0dHBzOi8vaWR4dWV2dGEub2t0YS5jb20vYXBwL2lkeHVlb3JnNjM3MzU4X3Rlc3RfMS9leGsxa3F4bWNqUW1HQURNeTM1Ny9zc28vc2FtbCIvPjwvbWQ6SURQU1NPRGVzY3JpcHRvcj48L21kOkVudGl0eURlc2NyaXB0b3I+" - description = "tf_test" -} -``` - -Import - -CAM SAML provider can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_saml_provider.foo cam-SAML-provider-test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_service_linked_role.go b/tencentcloud/resource_tc_cam_service_linked_role.go index 96c478528f..c9fe082c25 100644 --- a/tencentcloud/resource_tc_cam_service_linked_role.go +++ b/tencentcloud/resource_tc_cam_service_linked_role.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a cam service_linked_role - -Example Usage - -```hcl -resource "tencentcloud_cam_service_linked_role" "service_linked_role" { - qcs_service_name = ["cvm.qcloud.com","ekslog.tke.cloud.tencent.com"] - custom_suffix = "tf" - description = "desc cam" - tags = { - "createdBy" = "terraform" - } -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_set_policy_version_config.go b/tencentcloud/resource_tc_cam_set_policy_version_config.go index 5f5cffb928..e72cbe6fdc 100644 --- a/tencentcloud/resource_tc_cam_set_policy_version_config.go +++ b/tencentcloud/resource_tc_cam_set_policy_version_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cam set_policy_version_config - -Example Usage - -```hcl -resource "tencentcloud_cam_set_policy_version_config" "set_policy_version_config" { - policy_id = 171162811 - version_id = 2 -} -``` - -Import - -cam set_policy_version_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_set_policy_version_config.set_policy_version_config set_policy_version_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_tag_role_attachment.go b/tencentcloud/resource_tc_cam_tag_role_attachment.go index acf6e646aa..e542b12771 100644 --- a/tencentcloud/resource_tc_cam_tag_role_attachment.go +++ b/tencentcloud/resource_tc_cam_tag_role_attachment.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a cam tag_role - -Example Usage - -```hcl -resource "tencentcloud_cam_tag_role_attachment" "tag_role" { - tags { - key = "test1" - value = "test1" - } - role_id = "test-cam-tag" -} -``` - -Import - -cam tag_role can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_tag_role_attachment.tag_role tag_role_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_user.go b/tencentcloud/resource_tc_cam_user.go index bca392ce83..40c03b66f1 100644 --- a/tencentcloud/resource_tc_cam_user.go +++ b/tencentcloud/resource_tc_cam_user.go @@ -1,34 +1,3 @@ -/* -Provides a resource to manage CAM user. - -Example Usage - -```hcl -resource "tencentcloud_cam_user" "foo" { - name = "tf_cam_user" - remark = "tf_user_test" - console_login = true - use_api = true - need_reset_password = true - password = "Gail@1234" - phone_num = "12345678910" - email = "hello@test.com" - country_code = "86" - force_delete = true - tags = { - test = "tf_cam_user", - } -} -``` - -Import - -CAM user can be imported using the user name, e.g. - -``` -$ terraform import tencentcloud_cam_user.foo cam-user-test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_user_permission_boundary_attachment.go b/tencentcloud/resource_tc_cam_user_permission_boundary_attachment.go index 34e8f57c44..334f2ebfe0 100644 --- a/tencentcloud/resource_tc_cam_user_permission_boundary_attachment.go +++ b/tencentcloud/resource_tc_cam_user_permission_boundary_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cam user_permission_boundary - -Example Usage - -```hcl -resource "tencentcloud_cam_user_permission_boundary_attachment" "user_permission_boundary" { - target_uin = 100032767426 - policy_id = 151113272 -} -``` - -Import - -cam user_permission_boundary can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_user_permission_boundary_attachment.user_permission_boundary user_permission_boundary_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_user_policy_attachment.go b/tencentcloud/resource_tc_cam_user_policy_attachment.go index 3d49fa3ffe..ef483cc0a0 100644 --- a/tencentcloud/resource_tc_cam_user_policy_attachment.go +++ b/tencentcloud/resource_tc_cam_user_policy_attachment.go @@ -1,51 +1,3 @@ -/* -Provides a resource to create a CAM user policy attachment. - -Example Usage - -```hcl -variable "cam_user_basic" { - default = "keep-cam-user" -} - -resource "tencentcloud_cam_policy" "policy_basic" { - name = "tf_cam_attach_user_policy" - document =jsonencode({ - "version":"2.0", - "statement":[ - { - "action":["cos:*"], - "resource":["*"], - "effect":"allow", - }, - { - "effect":"allow", - "action":["monitor:*","cam:ListUsersForGroup","cam:ListGroups","cam:GetGroup"], - "resource":["*"], - } - ] - }) - description = "tf_test" -} - -data "tencentcloud_cam_users" "users" { - name = var.cam_user_basic -} - -resource "tencentcloud_cam_user_policy_attachment" "user_policy_attachment_basic" { - user_name = data.tencentcloud_cam_users.users.user_list.0.user_id - policy_id = tencentcloud_cam_policy.policy_basic.id -} -``` - -Import - -CAM user policy attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cam_user_policy_attachment.foo cam-test#26800353 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cam_user_saml_config.go b/tencentcloud/resource_tc_cam_user_saml_config.go index bcd43a738d..c84578a0a7 100644 --- a/tencentcloud/resource_tc_cam_user_saml_config.go +++ b/tencentcloud/resource_tc_cam_user_saml_config.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a cam user_saml_config - -Example Usage - -```hcl -resource "tencentcloud_cam_user_saml_config" "user_saml_config" { - saml_metadata_document = "./metadataDocument.xml" - # saml_metadata_document = <<-EOT - # - # EOT -} -``` - -Import - -cam user_saml_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_cam_user_saml_config.user_saml_config user_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cat_task_set.go b/tencentcloud/resource_tc_cat_task_set.go index 66470aca20..6a12f1df87 100644 --- a/tencentcloud/resource_tc_cat_task_set.go +++ b/tencentcloud/resource_tc_cat_task_set.go @@ -1,57 +1,3 @@ -/* -Provides a resource to create a cat task_set - -Example Usage - -```hcl -resource "tencentcloud_cat_task_set" "task_set" { - batch_tasks { - name = "demo" - target_address = "http://www.baidu.com" - } - task_type = 5 - nodes = ["12136", "12137", "12138", "12141", "12144"] - interval = 6 - parameters = jsonencode( - { - "ipType" = 0, - "grabBag" = 0, - "filterIp" = 0, - "netIcmpOn" = 1, - "netIcmpActivex" = 0, - "netIcmpTimeout" = 20, - "netIcmpInterval" = 0.5, - "netIcmpNum" = 20, - "netIcmpSize" = 32, - "netIcmpDataCut" = 1, - "netDnsOn" = 1, - "netDnsTimeout" = 5, - "netDnsQuerymethod" = 1, - "netDnsNs" = "", - "netDigOn" = 1, - "netDnsServer" = 2, - "netTracertOn" = 1, - "netTracertTimeout" = 60, - "netTracertNum" = 30, - "whiteList" = "", - "blackList" = "", - "netIcmpActivexStr" = "" - } - ) - task_category = 1 - cron = "* 0-6 * * *" - tags = { - "createdBy" = "terraform" - } -} -``` -Import - -cat task_set can be imported using the id, e.g. -``` -$ terraform import tencentcloud_cat_task_set.task_set taskSet_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_disk_backup.go b/tencentcloud/resource_tc_cbs_disk_backup.go index a42a5f43e8..a5f3a62f00 100644 --- a/tencentcloud/resource_tc_cbs_disk_backup.go +++ b/tencentcloud/resource_tc_cbs_disk_backup.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a cbs disk_backup. - -~> **NOTE:** Backup quota must greater than 1. - -Example Usage - -```hcl - - resource "tencentcloud_cbs_disk_backup" "disk_backup" { - disk_id = "disk-xxx" - disk_backup_name = "xxx" - } - -``` - -Import - -cbs disk_backup can be imported using the id, e.g. - -``` -terraform import tencentcloud_cbs_disk_backup.disk_backup disk_backup_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_disk_backup_rollback_operation.go b/tencentcloud/resource_tc_cbs_disk_backup_rollback_operation.go index 80827d8ebf..5b40b8f945 100644 --- a/tencentcloud/resource_tc_cbs_disk_backup_rollback_operation.go +++ b/tencentcloud/resource_tc_cbs_disk_backup_rollback_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to rollback cbs disk backup. - -Example Usage - -```hcl -resource "tencentcloud_cbs_disk_backup_rollback_operation" "operation" { - disk_backup_id = "dbp-xxx" - disk_id = "disk-xxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_snapshot.go b/tencentcloud/resource_tc_cbs_snapshot.go index 9164c7bbd7..14b77e99b3 100644 --- a/tencentcloud/resource_tc_cbs_snapshot.go +++ b/tencentcloud/resource_tc_cbs_snapshot.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a CBS snapshot. - -Example Usage - -```hcl -resource "tencentcloud_cbs_snapshot" "snapshot" { - snapshot_name = "unnamed" - storage_id = "disk-kdt0sq6m" -} -``` - -Import - -CBS snapshot can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cbs_snapshot.snapshot snap-3sa3f39b -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_snapshot_policy.go b/tencentcloud/resource_tc_cbs_snapshot_policy.go index 009cc2d187..c332659c9c 100644 --- a/tencentcloud/resource_tc_cbs_snapshot_policy.go +++ b/tencentcloud/resource_tc_cbs_snapshot_policy.go @@ -1,25 +1,3 @@ -/* -Provides a snapshot policy resource. - -Example Usage - -```hcl -resource "tencentcloud_cbs_snapshot_policy" "snapshot_policy" { - snapshot_policy_name = "mysnapshotpolicyname" - repeat_weekdays = [1, 4] - repeat_hours = [1] - retention_days = 7 -} -``` - -Import - -CBS snapshot policy can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cbs_snapshot_policy.snapshot_policy asp-jliex1tn -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_snapshot_policy_attachment.go b/tencentcloud/resource_tc_cbs_snapshot_policy_attachment.go index 99f649e16f..4645b7f7b8 100644 --- a/tencentcloud/resource_tc_cbs_snapshot_policy_attachment.go +++ b/tencentcloud/resource_tc_cbs_snapshot_policy_attachment.go @@ -1,15 +1,3 @@ -/* -Provides a CBS snapshot policy attachment resource. - -Example Usage - -```hcl -resource "tencentcloud_cbs_snapshot_policy_attachment" "foo" { - storage_id = tencentcloud_cbs_storage.foo.id - snapshot_policy_id = tencentcloud_cbs_snapshot_policy.policy.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_snapshot_share_permission.go b/tencentcloud/resource_tc_cbs_snapshot_share_permission.go index 176039aaf7..ff8aad4243 100644 --- a/tencentcloud/resource_tc_cbs_snapshot_share_permission.go +++ b/tencentcloud/resource_tc_cbs_snapshot_share_permission.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cbs snapshot_share_permission - -Example Usage - -```hcl -resource "tencentcloud_cbs_snapshot_share_permission" "snapshot_share_permission" { - account_ids = ["1xxxxxx", "2xxxxxx"] - snapshot_id = "snap-xxxxxx" -} -``` - -Import - -cbs snapshot_share_permission can be imported using the id, e.g. - -``` -terraform import tencentcloud_cbs_snapshot_share_permission.snapshot_share_permission snap-xxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_storage.go b/tencentcloud/resource_tc_cbs_storage.go index 5f22acb769..ebdff290d9 100644 --- a/tencentcloud/resource_tc_cbs_storage.go +++ b/tencentcloud/resource_tc_cbs_storage.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a CBS. - -Example Usage - -```hcl -resource "tencentcloud_cbs_storage" "storage" { - storage_name = "mystorage" - storage_type = "CLOUD_SSD" - storage_size = 100 - availability_zone = "ap-guangzhou-3" - project_id = 0 - encrypt = false - - tags = { - test = "tf" - } -} -``` - -Import - -CBS storage can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cbs_storage.storage disk-41s6jwy4 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_storage_attachment.go b/tencentcloud/resource_tc_cbs_storage_attachment.go index 13487f9aa1..9780ea1ada 100644 --- a/tencentcloud/resource_tc_cbs_storage_attachment.go +++ b/tencentcloud/resource_tc_cbs_storage_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a CBS storage attachment resource. - -Example Usage - -```hcl -resource "tencentcloud_cbs_storage_attachment" "attachment" { - storage_id = "disk-kdt0sq6m" - instance_id = "ins-jqlegd42" -} -``` - -Import - -CBS storage attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cbs_storage_attachment.attachment disk-41s6jwy4 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_storage_set.go b/tencentcloud/resource_tc_cbs_storage_set.go index 6fc25741f5..867d7f8714 100644 --- a/tencentcloud/resource_tc_cbs_storage_set.go +++ b/tencentcloud/resource_tc_cbs_storage_set.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create CBS set. - -Example Usage - -```hcl -resource "tencentcloud_cbs_storage_set" "storage" { - disk_count = 10 - storage_name = "mystorage" - storage_type = "CLOUD_SSD" - storage_size = 100 - availability_zone = "ap-guangzhou-3" - project_id = 0 - encrypt = false -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cbs_storage_set_attachment.go b/tencentcloud/resource_tc_cbs_storage_set_attachment.go index d561dd4419..376b50296c 100644 --- a/tencentcloud/resource_tc_cbs_storage_set_attachment.go +++ b/tencentcloud/resource_tc_cbs_storage_set_attachment.go @@ -1,16 +1,3 @@ -/* -Provides a CBS storage set attachment resource. - -Example Usage - -```hcl -resource "tencentcloud_cbs_storage_set_attachment" "attachment" { - storage_id = "disk-kdt0sq6m" - instance_id = "ins-jqlegd42" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn.go b/tencentcloud/resource_tc_ccn.go index 75133fc49d..28da30021a 100644 --- a/tencentcloud/resource_tc_ccn.go +++ b/tencentcloud/resource_tc_ccn.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a CCN instance. - -Example Usage - -Create a prepaid CCN - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" - charge_type = "PREPAID" - bandwidth_limit_type = "INTER_REGION_LIMIT" -} -``` - -Create a post-paid regional export speed limit type CCN - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" - charge_type = "POSTPAID" - bandwidth_limit_type = "OUTER_REGION_LIMIT" -} -``` - -Create a post-paid inter-regional rate limit type CNN - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" - charge_type = "POSTPAID" - bandwidth_limit_type = "INTER_REGION_LIMIT" -} -``` - -Import - -Ccn instance can be imported, e.g. - -``` -$ terraform import tencentcloud_ccn.test ccn-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn_attachment.go b/tencentcloud/resource_tc_ccn_attachment.go index 9b71b3af4a..7998ebd4cf 100644 --- a/tencentcloud/resource_tc_ccn_attachment.go +++ b/tencentcloud/resource_tc_ccn_attachment.go @@ -1,50 +1,3 @@ -/* -Provides a CCN attaching resource. - -Example Usage - -```hcl -variable "region" { - default = "ap-guangzhou" -} - -variable "otheruin" { - default = "123353" -} - -variable "otherccn" { - default = "ccn-151ssaga" -} - -resource "tencentcloud_vpc" "vpc" { - name = "ci-temp-test-vpc" - cidr_block = "10.0.0.0/16" - dns_servers = ["119.29.29.29", "8.8.8.8"] - is_multicast = false -} - -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -resource "tencentcloud_ccn_attachment" "attachment" { - ccn_id = tencentcloud_ccn.main.id - instance_type = "VPC" - instance_id = tencentcloud_vpc.vpc.id - instance_region = var.region -} - -resource "tencentcloud_ccn_attachment" "other_account" { - ccn_id = var.otherccn - instance_type = "VPC" - instance_id = tencentcloud_vpc.vpc.id - instance_region = var.region - ccn_uin = var.otheruin -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn_bandwidth_limit.go b/tencentcloud/resource_tc_ccn_bandwidth_limit.go index ad0fcfe7f6..a0afbd9d49 100644 --- a/tencentcloud/resource_tc_ccn_bandwidth_limit.go +++ b/tencentcloud/resource_tc_ccn_bandwidth_limit.go @@ -1,55 +1,3 @@ -/* -Provides a resource to limit CCN bandwidth. - -Example Usage - -Set the upper limit of regional outbound bandwidth - -```hcl -variable "other_region1" { - default = "ap-shanghai" -} - -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -resource "tencentcloud_ccn_bandwidth_limit" "limit1" { - ccn_id = tencentcloud_ccn.main.id - region = var.other_region1 - bandwidth_limit = 500 -} -``` - -Set the upper limit between regions - -```hcl -variable "other_region1" { - default = "ap-shanghai" -} - -variable "other_region2" { - default = "ap-nanjing" -} - -resource tencentcloud_ccn main { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" - bandwidth_limit_type = "INTER_REGION_LIMIT" -} - -resource tencentcloud_ccn_bandwidth_limit limit1 { - ccn_id = tencentcloud_ccn.main.id - region = var.other_region1 - dst_region = var.other_region2 - bandwidth_limit = 100 -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn_instances_accept_attach.go b/tencentcloud/resource_tc_ccn_instances_accept_attach.go index 0d78b7f6d4..b57c5d0987 100644 --- a/tencentcloud/resource_tc_ccn_instances_accept_attach.go +++ b/tencentcloud/resource_tc_ccn_instances_accept_attach.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a vpc ccn_instances_accept_attach, you can use this resource to approve cross-region attachment. - -Example Usage - -```hcl -resource "tencentcloud_ccn_instances_accept_attach" "ccn_instances_accept_attach" { - ccn_id = "ccn-39lqkygf" - instances { - instance_id = "vpc-j9yhbzpn" - instance_region = "ap-guangzhou" - instance_type = "VPC" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn_instances_reject_attach.go b/tencentcloud/resource_tc_ccn_instances_reject_attach.go index 65f3eb1b54..9a8491ccb6 100644 --- a/tencentcloud/resource_tc_ccn_instances_reject_attach.go +++ b/tencentcloud/resource_tc_ccn_instances_reject_attach.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a vpc ccn_instances_reject_attach, you can use this resource to approve cross-region attachment. - -Example Usage - -```hcl -resource "tencentcloud_ccn_instances_reject_attach" "ccn_instances_reject_attach" { - ccn_id = "ccn-39lqkygf" - instances { - instance_id = "vpc-j9yhbzpn" - instance_region = "ap-guangzhou" - instance_type = "VPC" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn_instances_reset_attach.go b/tencentcloud/resource_tc_ccn_instances_reset_attach.go index cf5400bb78..24f3c80fad 100644 --- a/tencentcloud/resource_tc_ccn_instances_reset_attach.go +++ b/tencentcloud/resource_tc_ccn_instances_reset_attach.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a vpc ccn_instances_reset_attach, you can use this resource to reset cross-region attachment. - -Example Usage - -```hcl -resource "tencentcloud_ccn_instances_reset_attach" "ccn_instances_reset_attach" { - ccn_id = "ccn-39lqkygf" - ccn_uin = "100022975249" - instances { - instance_id = "vpc-j9yhbzpn" - instance_region = "ap-guangzhou" - instance_type = "VPC" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ccn_routes.go b/tencentcloud/resource_tc_ccn_routes.go index 6db2273773..f81851ad15 100644 --- a/tencentcloud/resource_tc_ccn_routes.go +++ b/tencentcloud/resource_tc_ccn_routes.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a vpc ccn_routes - -Example Usage - -```hcl -resource "tencentcloud_ccn_routes" "ccn_routes" { - ccn_id = "ccn-39lqkygf" - route_id = "ccnr-3o0dfyuw" - switch = "on" -} -``` - -Import - -vpc ccn_routes can be imported using the id, e.g. - -``` -terraform import tencentcloud_ccn_routes.ccn_routes ccnId#routesId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cdh_instance.go b/tencentcloud/resource_tc_cdh_instance.go index e1196666f0..c169b6d3c7 100644 --- a/tencentcloud/resource_tc_cdh_instance.go +++ b/tencentcloud/resource_tc_cdh_instance.go @@ -1,31 +1,3 @@ -/* -Provides a resource to manage CDH instance. - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -resource "tencentcloud_cdh_instance" "foo" { - availability_zone = var.availability_zone - host_type = "HC20" - charge_type = "PREPAID" - prepaid_period = 1 - host_name = "test" - prepaid_renew_flag = "NOTIFY_AND_MANUAL_RENEW" -} -``` - -Import - -CDH instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cdh_instance.foo host-d6s7i5q4 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cdn_domain.go b/tencentcloud/resource_tc_cdn_domain.go index 1b363dddb7..165aea02a1 100644 --- a/tencentcloud/resource_tc_cdn_domain.go +++ b/tencentcloud/resource_tc_cdn_domain.go @@ -1,145 +1,3 @@ -/* -Provides a resource to create a CDN domain. - -~> **NOTE:** To disable most of configuration with switch, just modify switch argument to off instead of remove the whole block - -Example Usage - -```hcl -resource "tencentcloud_cdn_domain" "foo" { - domain = "xxxx.com" - service_type = "web" - area = "mainland" - full_url_cache = false - - origin { - origin_type = "ip" - origin_list = ["127.0.0.1"] - origin_pull_protocol = "follow" - } - - https_config { - https_switch = "off" - http2_switch = "off" - ocsp_stapling_switch = "off" - spdy_switch = "off" - verify_client = "off" - - force_redirect { - switch = "on" - redirect_type = "http" - redirect_status_code = 302 - } - } - - tags = { - hello = "world" - } -} -``` - -Example Usage of cdn uses cache and request headers - -```hcl -resource "tencentcloud_cdn_domain" "foo" { - domain = "xxxx.com" - service_type = "web" - area = "mainland" - # full_url_cache = true # Deprecated, use cache_key below. - cache_key { - full_url_cache = "on" - } - range_origin_switch = "off" - - rule_cache{ - cache_time = 10000 - no_cache_switch="on" - re_validate="on" - } - - request_header{ - switch = "on" - - header_rules { - header_mode = "add" - header_name = "tf-header-name" - header_value = "tf-header-value" - rule_type = "all" - rule_paths = ["*"] - } - } - - origin { - origin_type = "ip" - origin_list = ["127.0.0.1"] - origin_pull_protocol = "follow" - } - - https_config { - https_switch = "off" - http2_switch = "off" - ocsp_stapling_switch = "off" - spdy_switch = "off" - verify_client = "off" - - force_redirect { - switch = "on" - redirect_type = "http" - redirect_status_code = 302 - } - } - - tags = { - hello = "world" - } -} -``` - -Example Usage of COS bucket url as origin - -```hcl -resource "tencentcloud_cos_bucket" "bucket" { - # Bucket format should be [custom name]-[appid]. - bucket = "demo-bucket-1251234567" - acl = "private" -} - -# Create cdn domain -resource "tencentcloud_cdn_domain" "cdn" { - domain = "abc.com" - service_type = "web" - area = "mainland" - # full_url_cache = false # Deprecated - cache_key { - full_url_cache = "off" - } - - origin { - origin_type = "cos" - origin_list = [tencentcloud_cos_bucket.bucket.cos_bucket_url] - server_name = tencentcloud_cos_bucket.bucket.cos_bucket_url - origin_pull_protocol = "follow" - cos_private_access = "on" - } - - https_config { - https_switch = "off" - http2_switch = "off" - ocsp_stapling_switch = "off" - spdy_switch = "off" - verify_client = "off" - } -} -``` - -Import - -CDN domain can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cdn_domain.foo xxxx.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cdn_url_purge.go b/tencentcloud/resource_tc_cdn_url_purge.go index e7ff4f0b68..103cbd8d9e 100644 --- a/tencentcloud/resource_tc_cdn_url_purge.go +++ b/tencentcloud/resource_tc_cdn_url_purge.go @@ -1,28 +1,3 @@ -/* -Provide a resource to invoke a Url Purge Request. - -Example Usage - -```hcl -resource "tencentcloud_cdn_url_purge" "foo" { - urls = [ - "https://www.example.com/a" - ] -} -``` - -Change `redo` argument to request new purge task with same urls - -```hcl -resource "tencentcloud_cdn_url_purge" "foo" { - urls = [ - "https://www.example.com/a" - ] - redo = 1 -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cdn_url_push.go b/tencentcloud/resource_tc_cdn_url_push.go index d9c5373b5a..fe3e7c7ce5 100644 --- a/tencentcloud/resource_tc_cdn_url_push.go +++ b/tencentcloud/resource_tc_cdn_url_push.go @@ -1,26 +1,3 @@ -/* -Provide a resource to invoke a Url Push request. - -Example Usage - -```hcl -resource "tencentcloud_cdn_url_push" "foo" { - urls = ["https://www.example.com/b"] -} -``` - -Change `redo` argument to request new push task with same urls - -```hcl -resource "tencentcloud_cdn_url_push" "foo" { - urls = [ - "https://www.example.com/a" - ] - redo = 1 -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cdwpg_instance.go b/tencentcloud/resource_tc_cdwpg_instance.go index 6cf7518e5d..48ae38872a 100644 --- a/tencentcloud/resource_tc_cdwpg_instance.go +++ b/tencentcloud/resource_tc_cdwpg_instance.go @@ -1,58 +1,3 @@ -/* -Provides a resource to create a cdwpg instance - -Example Usage - -```hcl -resource "tencentcloud_cdwpg_instance" "instance" { - instance_name = "test_cdwpg" - zone = "ap-guangzhou-6" - user_vpc_id = "vpc-xxxxxx" - user_subnet_id = "subnet-xxxxxx" - charge_properties { - renew_flag = 0 - time_span = 1 - time_unit = "h" - charge_type = "POSTPAID_BY_HOUR" - - } - admin_password = "xxxxxx" - resources { - spec_name = "S_4_16_H_CN" - count = 2 - disk_spec { - disk_type = "CLOUD_HSSD" - disk_size = 200 - disk_count = 1 - } - type = "cn" - - } - resources { - spec_name = "S_4_16_H_CN" - count = 2 - disk_spec { - disk_type = "CLOUD_HSSD" - disk_size = 20 - disk_count = 10 - } - type = "dn" - - } - tags = { - "tagKey" = "tagValue" - } -} -``` - -Import - -cdwpg instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_cdwpg_instance.instance instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_access_group.go b/tencentcloud/resource_tc_cfs_access_group.go index f92055f296..a6254ad566 100644 --- a/tencentcloud/resource_tc_cfs_access_group.go +++ b/tencentcloud/resource_tc_cfs_access_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a CFS access group. - -Example Usage - -```hcl -resource "tencentcloud_cfs_access_group" "example" { - name = "tx_example" - description = "desc." -} -``` - -Import - -CFS access group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cfs_access_group.example pgroup-7nx89k7l -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_access_rule.go b/tencentcloud/resource_tc_cfs_access_rule.go index 6d1b7fb704..8cfa7b28f9 100644 --- a/tencentcloud/resource_tc_cfs_access_rule.go +++ b/tencentcloud/resource_tc_cfs_access_rule.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a CFS access rule. - -Example Usage - -```hcl -resource "tencentcloud_cfs_access_rule" "foo" { - access_group_id = "pgroup-7nx89k7l" - auth_client_ip = "10.10.1.0/24" - priority = 1 - rw_permission = "RO" - user_permission = "root_squash" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_auto_snapshot_policy.go b/tencentcloud/resource_tc_cfs_auto_snapshot_policy.go index ec6392e2a4..a185e271da 100644 --- a/tencentcloud/resource_tc_cfs_auto_snapshot_policy.go +++ b/tencentcloud/resource_tc_cfs_auto_snapshot_policy.go @@ -1,50 +1,3 @@ -/* -Provides a resource to create a cfs auto_snapshot_policy - -Example Usage - -use day of week - -```hcl -resource "tencentcloud_cfs_auto_snapshot_policy" "auto_snapshot_policy" { - day_of_week = "1,2" - hour = "2,3" - policy_name = "policy_name" - alive_days = 7 -} -``` - -use day of month - -```hcl -resource "tencentcloud_cfs_auto_snapshot_policy" "auto_snapshot_policy" { - hour = "2,3" - policy_name = "policy_name" - alive_days = 7 - day_of_month = "2,3,4" -} -``` - -use interval days - -```hcl -resource "tencentcloud_cfs_auto_snapshot_policy" "auto_snapshot_policy" { - hour = "2,3" - policy_name = "policy_name" - alive_days = 7 - interval_days = 1 -} -``` - - -Import - -cfs auto_snapshot_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfs_auto_snapshot_policy.auto_snapshot_policy auto_snapshot_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_auto_snapshot_policy_attachment.go b/tencentcloud/resource_tc_cfs_auto_snapshot_policy_attachment.go index 666e5b09fc..a0314b4134 100644 --- a/tencentcloud/resource_tc_cfs_auto_snapshot_policy_attachment.go +++ b/tencentcloud/resource_tc_cfs_auto_snapshot_policy_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cfs auto_snapshot_policy_attachment - -Example Usage - -```hcl -resource "tencentcloud_cfs_auto_snapshot_policy_attachment" "auto_snapshot_policy_attachment" { - auto_snapshot_policy_id = "asp-basic" - file_system_ids = "cfs-4xzkct19,cfs-iobiaxtj" -} -``` - -Import - -cfs auto_snapshot_policy_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfs_auto_snapshot_policy_attachment.auto_snapshot_policy_attachment auto_snapshot_policy_id#file_system_ids -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_file_system.go b/tencentcloud/resource_tc_cfs_file_system.go index 3b1bd7ceec..378a9df1f6 100644 --- a/tencentcloud/resource_tc_cfs_file_system.go +++ b/tencentcloud/resource_tc_cfs_file_system.go @@ -1,75 +1,3 @@ -/* -Provides a resource to create a cloud file system(CFS). - -Example Usage - -Standard Nfs CFS - -```hcl -resource "tencentcloud_cfs_file_system" "foo" { - name = "test_file_system" - availability_zone = "ap-guangzhou-3" - access_group_id = "pgroup-7nx89k7l" - protocol = "NFS" - vpc_id = "vpc-ah9fbkap" - subnet_id = "subnet-9mu2t9iw" -} -``` - -High-Performance Nfs CFS - -```hcl -resource "tencentcloud_cfs_file_system" "foo" { - name = "test_file_system" - availability_zone = "ap-guangzhou-6" - access_group_id = "pgroup-drwt29od" - protocol = "NFS" - storage_type = "HP" - vpc_id = "vpc-86v957zb" - subnet_id = "subnet-enm92y0m" -} -``` - -Standard Turbo CFS - -```hcl -resource "tencentcloud_cfs_file_system" "foo" { - name = "test_file_system" - net_interface = "CCN" - availability_zone = "ap-guangzhou-6" - access_group_id = "pgroup-drwt29od" - protocol = "TURBO" - storage_type = "TB" - capacity = 20480 - ccn_id = "ccn-39lqkygf" - cidr_block = "11.0.0.0/24" -} -``` - -High-Performance Turbo CFS - -```hcl -resource "tencentcloud_cfs_file_system" "foo" { - name = "test_file_system" - net_interface = "CCN" - availability_zone = "ap-guangzhou-6" - access_group_id = "pgroup-drwt29od" - protocol = "TURBO" - storage_type = "TP" - capacity = 10240 - ccn_id = "ccn-39lqkygf" - cidr_block = "11.0.0.0/24" -} -``` - -Import - -Cloud file system can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cfs_file_system.foo cfs-6hgquxmj -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_sign_up_cfs_service.go b/tencentcloud/resource_tc_cfs_sign_up_cfs_service.go index ba5874d2ed..3ef4a86f93 100644 --- a/tencentcloud/resource_tc_cfs_sign_up_cfs_service.go +++ b/tencentcloud/resource_tc_cfs_sign_up_cfs_service.go @@ -1,12 +1,3 @@ -/* -Provides a resource to create a cfs sign_up_cfs_service - -Example Usage - -```hcl -resource "tencentcloud_cfs_sign_up_cfs_service" "sign_up_cfs_service" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfs_snapshot.go b/tencentcloud/resource_tc_cfs_snapshot.go index 116414ddfb..30b52dec74 100644 --- a/tencentcloud/resource_tc_cfs_snapshot.go +++ b/tencentcloud/resource_tc_cfs_snapshot.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a cfs snapshot - -Example Usage - -```hcl -resource "tencentcloud_cfs_snapshot" "snapshot" { - file_system_id = "cfs-iobiaxtj" - snapshot_name = "test" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -cfs snapshot can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfs_snapshot.snapshot snapshot_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_address_template.go b/tencentcloud/resource_tc_cfw_address_template.go index 2da5958faa..bd40f142d8 100644 --- a/tencentcloud/resource_tc_cfw_address_template.go +++ b/tencentcloud/resource_tc_cfw_address_template.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a cfw address_template - -Example Usage - -If type is 1 - -```hcl -resource "tencentcloud_cfw_address_template" "example" { - name = "tf_example" - detail = "test template" - ip_string = "1.1.1.1,2.2.2.2" - type = 1 -} -``` - -If type is 5 - -```hcl -resource "tencentcloud_cfw_address_template" "example" { - name = "tf_example" - detail = "test template" - ip_string = "www.qq.com,www.tencent.com" - type = 5 -} -``` -Import - -cfw address_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_address_template.example mb_1300846651_1695611353900 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_block_ignore.go b/tencentcloud/resource_tc_cfw_block_ignore.go index 721de9af76..01a152b3f4 100644 --- a/tencentcloud/resource_tc_cfw_block_ignore.go +++ b/tencentcloud/resource_tc_cfw_block_ignore.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a cfw block_ignore - -~> **NOTE:** If create domain rule, `RuleType` not support set 2. - -Example Usage - -If create ip rule - -```hcl -resource "tencentcloud_cfw_block_ignore" "example" { - ip = "1.1.1.1" - direction = 0 - comment = "remark." - start_time = "2023-09-01 00:00:00" - end_time = "2023-10-01 00:00:00" - rule_type = 1 -} -``` - -If create domain rule - -```hcl -resource "tencentcloud_cfw_block_ignore" "example" { - domain = "domain.com" - direction = 1 - comment = "remark." - start_time = "2023-09-01 00:00:00" - end_time = "2023-10-01 00:00:00" - rule_type = 1 -} -``` - -Import - -cfw block_ignore_list can be imported using the id, e.g. - -If import ip rule - -``` -terraform import tencentcloud_cfw_block_ignore.example 1.1.1.1##0#1 -``` - -If import domain rule - -``` -terraform import tencentcloud_cfw_block_ignore.example domain.com##0#1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_edge_firewall_switch.go b/tencentcloud/resource_tc_cfw_edge_firewall_switch.go index 54efc121cf..cf382c170f 100644 --- a/tencentcloud/resource_tc_cfw_edge_firewall_switch.go +++ b/tencentcloud/resource_tc_cfw_edge_firewall_switch.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a cfw edge_firewall_switch - -Example Usage - -If not set subnet_id - -```hcl -data "tencentcloud_cfw_edge_fw_switches" "example" {} - -resource "tencentcloud_cfw_edge_firewall_switch" "example" { - public_ip = data.tencentcloud_cfw_edge_fw_switches.example.data[0].public_ip - switch_mode = 1 - enable = 0 -} -``` - -If set subnet id - -```hcl -data "tencentcloud_cfw_edge_fw_switches" "example" {} - -resource "tencentcloud_cfw_edge_firewall_switch" "example" { - public_ip = data.tencentcloud_cfw_edge_fw_switches.example.data[0].public_ip - subnet_id = "subnet-id" - switch_mode = 1 - enable = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_edge_policy.go b/tencentcloud/resource_tc_cfw_edge_policy.go index 2c9b661fa7..33730ced7c 100644 --- a/tencentcloud/resource_tc_cfw_edge_policy.go +++ b/tencentcloud/resource_tc_cfw_edge_policy.go @@ -1,50 +1,3 @@ -/* -Provides a resource to create a cfw edge_policy - -Example Usage - -```hcl -resource "tencentcloud_cfw_edge_policy" "example" { - source_content = "1.1.1.1/0" - source_type = "net" - target_content = "0.0.0.0/0" - target_type = "net" - protocol = "TCP" - rule_action = "drop" - port = "-1/-1" - direction = 1 - enable = "true" - description = "policy description." - scope = "all" -} -``` - -If target_type is tag - -```hcl -resource "tencentcloud_cfw_edge_policy" "example" { - source_content = "0.0.0.0/0" - source_type = "net" - target_content = jsonencode({"Key":"test","Value":"dddd"}) - target_type = "tag" - protocol = "TCP" - rule_action = "drop" - port = "-1/-1" - direction = 1 - enable = "true" - description = "policy description." - scope = "all" -} -``` - -Import - -cfw edge_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_edge_policy.example edge_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_nat_firewall_switch.go b/tencentcloud/resource_tc_cfw_nat_firewall_switch.go index ad1bb2e8bc..2360567919 100644 --- a/tencentcloud/resource_tc_cfw_nat_firewall_switch.go +++ b/tencentcloud/resource_tc_cfw_nat_firewall_switch.go @@ -1,44 +1,3 @@ -/* -Provides a resource to create a cfw nat_firewall_switch - -Example Usage - -Turn off switch - -```hcl -data "tencentcloud_cfw_nat_fw_switches" "example" { - nat_ins_id = "cfwnat-18d2ba18" -} - -resource "tencentcloud_cfw_nat_firewall_switch" "example" { - nat_ins_id = data.tencentcloud_cfw_nat_fw_switches.example.id - subnet_id = data.tencentcloud_cfw_nat_fw_switches.example.data[0].subnet_id - enable = 0 -} -``` - -Or turn on switch - -```hcl -data "tencentcloud_cfw_nat_fw_switches" "example" { - nat_ins_id = "cfwnat-18d2ba18" -} - -resource "tencentcloud_cfw_nat_firewall_switch" "example" { - nat_ins_id = data.tencentcloud_cfw_nat_fw_switches.example.id - subnet_id = data.tencentcloud_cfw_nat_fw_switches.example.data[0].subnet_id - enable = 1 -} -``` - -Import - -cfw nat_firewall_switch can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_nat_firewall_switch.example cfwnat-18d2ba18#subnet-ef7wyymr -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_nat_instance.go b/tencentcloud/resource_tc_cfw_nat_instance.go index 25162326bf..5dda751f09 100644 --- a/tencentcloud/resource_tc_cfw_nat_instance.go +++ b/tencentcloud/resource_tc_cfw_nat_instance.go @@ -1,57 +1,3 @@ -/* -Provides a resource to create a cfw nat_instance - -Example Usage - -If mode is 0 - -```hcl -resource "tencentcloud_cfw_nat_instance" "example" { - name = "tf_example" - width = 20 - mode = 0 - new_mode_items { - vpc_list = [ - "vpc-5063ta4i" - ] - eips = [ - "152.136.168.192" - ] - } - cross_a_zone = 0 - zone_set = [ - "ap-guangzhou-7" - ] -} -``` - -If mode is 1 - -```hcl -resource "tencentcloud_cfw_nat_instance" "example" { - name = "tf_example" - width = 20 - mode = 1 - nat_gw_list = [ - "nat-9wwkz1kr" - ] - cross_a_zone = 1 - cross_a_zone = 0 - zone_set = [ - "ap-guangzhou-6", - "ap-guangzhou-7" - ] -} -``` - -Import - -cfw nat_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_nat_instance.example cfwnat-54a21421 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_nat_policy.go b/tencentcloud/resource_tc_cfw_nat_policy.go index cb840a700e..1195cfde4f 100644 --- a/tencentcloud/resource_tc_cfw_nat_policy.go +++ b/tencentcloud/resource_tc_cfw_nat_policy.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a cfw nat_policy - -Example Usage - -```hcl -resource "tencentcloud_cfw_nat_policy" "example" { - source_content = "1.1.1.1/0" - source_type = "net" - target_content = "0.0.0.0/0" - target_type = "net" - protocol = "TCP" - rule_action = "drop" - port = "-1/-1" - direction = 1 - enable = "true" - description = "policy description." -} -``` - -Import - -cfw nat_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_nat_policy.example nat_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_sync_asset.go b/tencentcloud/resource_tc_cfw_sync_asset.go index 9d675c83ff..090fa58d22 100644 --- a/tencentcloud/resource_tc_cfw_sync_asset.go +++ b/tencentcloud/resource_tc_cfw_sync_asset.go @@ -1,12 +1,3 @@ -/* -Provides a resource to create a cfw sync_asset - -Example Usage - -```hcl -resource "tencentcloud_cfw_sync_asset" "example" {} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_sync_route.go b/tencentcloud/resource_tc_cfw_sync_route.go index 8fd6ff6efe..40b010d988 100644 --- a/tencentcloud/resource_tc_cfw_sync_route.go +++ b/tencentcloud/resource_tc_cfw_sync_route.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a cfw sync_route - -Example Usage - -```hcl -resource "tencentcloud_cfw_sync_route" "example" { - sync_type = "Route" - fw_type = "nat" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_vpc_firewall_switch.go b/tencentcloud/resource_tc_cfw_vpc_firewall_switch.go index 02eca2eff1..812cca656c 100644 --- a/tencentcloud/resource_tc_cfw_vpc_firewall_switch.go +++ b/tencentcloud/resource_tc_cfw_vpc_firewall_switch.go @@ -1,43 +1,3 @@ -/* -Provides a resource to create a cfw vpc_firewall_switch - -Example Usage - -Turn off switch - -```hcl -data "tencentcloud_cfw_vpc_fw_switches" "example" { - vpc_ins_id = "cfwg-c8c2de41" -} - -resource "tencentcloud_cfw_vpc_firewall_switch" "example" { - vpc_ins_id = data.tencentcloud_cfw_vpc_fw_switches.example.id - switch_id = data.tencentcloud_cfw_vpc_fw_switches.example.switch_list[0].switch_id - enable = 0 -} -``` - -Or turn on switch - -```hcl -data "tencentcloud_cfw_vpc_fw_switches" "example" { - vpc_ins_id = "cfwg-c8c2de41" -} - -resource "tencentcloud_cfw_vpc_firewall_switch" "example" { - vpc_ins_id = data.tencentcloud_cfw_vpc_fw_switches.example.id - switch_id = data.tencentcloud_cfw_vpc_fw_switches.example.switch_list[0].switch_id - enable = 1 -} -``` -Import - -cfw vpc_firewall_switch can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_vpc_firewall_switch.example cfwg-c8c2de41#cfws-f2c63ded84 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_vpc_instance.go b/tencentcloud/resource_tc_cfw_vpc_instance.go index b2f574876f..8737784e30 100644 --- a/tencentcloud/resource_tc_cfw_vpc_instance.go +++ b/tencentcloud/resource_tc_cfw_vpc_instance.go @@ -1,70 +1,3 @@ -/* -Provides a resource to create a cfw vpc_instance - -Example Usage - -If mode is 0 - -```hcl -resource "tencentcloud_cfw_vpc_instance" "example" { - name = "tf_example" - mode = 0 - - vpc_fw_instances { - name = "fw_ins_example" - vpc_ids = [ - "vpc-291vnoeu", - "vpc-39ixq9ci" - ] - fw_deploy { - deploy_region = "ap-guangzhou" - width = 1024 - cross_a_zone = 1 - zone_set = [ - "ap-guangzhou-6", - "ap-guangzhou-7" - ] - } - } - - switch_mode = 1 - fw_vpc_cidr = "auto" -} -``` - -If mode is 1 - -```hcl -resource "tencentcloud_cfw_vpc_instance" "example" { - name = "tf_example" - mode = 1 - - vpc_fw_instances { - name = "fw_ins_example" - fw_deploy { - deploy_region = "ap-guangzhou" - width = 1024 - cross_a_zone = 0 - zone_set = [ - "ap-guangzhou-6" - ] - } - } - - ccn_id = "ccn-peihfqo7" - switch_mode = 1 - fw_vpc_cidr = "auto" -} -``` - -Import - -cfw vpc_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_vpc_instance.example cfwg-4ee69507 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cfw_vpc_policy.go b/tencentcloud/resource_tc_cfw_vpc_policy.go index 998129d6b4..246c2d5e90 100644 --- a/tencentcloud/resource_tc_cfw_vpc_policy.go +++ b/tencentcloud/resource_tc_cfw_vpc_policy.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a cfw vpc_policy - -Example Usage - -```hcl -resource "tencentcloud_cfw_vpc_policy" "example" { - source_content = "0.0.0.0/0" - source_type = "net" - dest_content = "192.168.0.2" - dest_type = "net" - protocol = "ANY" - rule_action = "log" - port = "-1/-1" - description = "description." - enable = "true" - fw_group_id = "ALL" -} -``` - -Import - -cfw vpc_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_cfw_vpc_policy.vpc_policy vpc_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_chdfs_access_group.go b/tencentcloud/resource_tc_chdfs_access_group.go index 51ad83f016..6a81218992 100644 --- a/tencentcloud/resource_tc_chdfs_access_group.go +++ b/tencentcloud/resource_tc_chdfs_access_group.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a chdfs access_group - -Example Usage - -```hcl -resource "tencentcloud_chdfs_access_group" "access_group" { - access_group_name = "testAccessGroup" - vpc_type = 1 - vpc_id = "vpc-4owdpnwr" - description = "test access group" -} -``` - -Import - -chdfs access_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_chdfs_access_group.access_group access_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_chdfs_access_rule.go b/tencentcloud/resource_tc_chdfs_access_rule.go index 7869abc9e4..958c3e2c79 100644 --- a/tencentcloud/resource_tc_chdfs_access_rule.go +++ b/tencentcloud/resource_tc_chdfs_access_rule.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a chdfs access_rule - -Example Usage - -```hcl -resource "tencentcloud_chdfs_access_rule" "access_rule" { - access_group_id = "ag-bvmzrbsm" - - access_rule { - access_mode = 2 - address = "10.0.1.1" - priority = 12 - } -} -``` - -Import - -chdfs access_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_chdfs_access_rule.access_rule access_group_id#access_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_chdfs_file_system.go b/tencentcloud/resource_tc_chdfs_file_system.go index ec00719acd..d4c648a1d8 100644 --- a/tencentcloud/resource_tc_chdfs_file_system.go +++ b/tencentcloud/resource_tc_chdfs_file_system.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a chdfs file_system - -Example Usage - -```hcl -resource "tencentcloud_chdfs_file_system" "file_system" { - capacity_quota = 10995116277760 - description = "file system for terraform test" - enable_ranger = true - file_system_name = "terraform-test" - posix_acl = false - ranger_service_addresses = [ - "127.0.0.1:80", - "127.0.0.1:8000", - ] - super_users = [ - "terraform", - "iac", - ] -} -``` - -Import - -chdfs file_system can be imported using the id, e.g. - -``` -terraform import tencentcloud_chdfs_file_system.file_system file_system_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_chdfs_life_cycle_rule.go b/tencentcloud/resource_tc_chdfs_life_cycle_rule.go index 62b8c82c02..fd77498710 100644 --- a/tencentcloud/resource_tc_chdfs_life_cycle_rule.go +++ b/tencentcloud/resource_tc_chdfs_life_cycle_rule.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a chdfs life_cycle_rule - -Example Usage - -```hcl -resource "tencentcloud_chdfs_life_cycle_rule" "life_cycle_rule" { - file_system_id = "f14mpfy5lh4e" - - life_cycle_rule { - life_cycle_rule_name = "terraform-test" - path = "/test" - status = 1 - - transitions { - days = 30 - type = 1 - } - } -} -``` - -Import - -chdfs life_cycle_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_chdfs_life_cycle_rule.life_cycle_rule file_system_id#life_cycle_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_chdfs_mount_point.go b/tencentcloud/resource_tc_chdfs_mount_point.go index f39abcbe8d..92938b8fb2 100644 --- a/tencentcloud/resource_tc_chdfs_mount_point.go +++ b/tencentcloud/resource_tc_chdfs_mount_point.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a chdfs mount_point - -Example Usage - -```hcl -resource "tencentcloud_chdfs_mount_point" "mount_point" { - file_system_id = "f14mpfy5lh4e" - mount_point_name = "terraform-test" - mount_point_status = 1 -} -``` - -Import - -chdfs mount_point can be imported using the id, e.g. - -``` -terraform import tencentcloud_chdfs_mount_point.mount_point mount_point_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_chdfs_mount_point_attachment.go b/tencentcloud/resource_tc_chdfs_mount_point_attachment.go index 812156642a..ecde19a642 100644 --- a/tencentcloud/resource_tc_chdfs_mount_point_attachment.go +++ b/tencentcloud/resource_tc_chdfs_mount_point_attachment.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a chdfs mount_point_attachment - -Example Usage - -```hcl -resource "tencentcloud_chdfs_mount_point_attachment" "mount_point_attachment" { - access_group_ids = [ - "ag-bvmzrbsm", - "ag-lairqrgr", - ] - mount_point_id = "f14mpfy5lh4e-KuiL" -} -``` - -Import - -chdfs mount_point_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_chdfs_mount_point_attachment.mount_point_attachment mount_point_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_bucket_attachment.go b/tencentcloud/resource_tc_ci_bucket_attachment.go index a6a7eb64aa..7ec2931d56 100644 --- a/tencentcloud/resource_tc_ci_bucket_attachment.go +++ b/tencentcloud/resource_tc_ci_bucket_attachment.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ci bucket - -Example Usage - -```hcl -resource "tencentcloud_ci_bucket_attachment" "bucket_attachment" { - bucket = "terraform-ci-xxxxxx" -} -``` - -Import - -ci bucket can be imported using the id, e.g. - -``` -terraform import tencentcloud_ci_bucket_attachment.bucket_attachment terraform-ci-xxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_bucket_pic_style.go b/tencentcloud/resource_tc_ci_bucket_pic_style.go index 969e1f69b3..7e81feedfd 100644 --- a/tencentcloud/resource_tc_ci_bucket_pic_style.go +++ b/tencentcloud/resource_tc_ci_bucket_pic_style.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ci bucket_pic_style - -Example Usage - -```hcl -resource "tencentcloud_ci_bucket_pic_style" "bucket_pic_style" { - bucket = "terraform-ci-xxxxxx" - style_name = "rayscale_2" - style_body = "imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100" -} -``` - -Import - -ci bucket_pic_style can be imported using the bucket#styleName, e.g. - -``` -terraform import tencentcloud_ci_bucket_pic_style.bucket_pic_style terraform-ci-xxxxxx#rayscale_2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_guetzli.go b/tencentcloud/resource_tc_ci_guetzli.go index 6a15a9bdfa..6c31b07ba0 100644 --- a/tencentcloud/resource_tc_ci_guetzli.go +++ b/tencentcloud/resource_tc_ci_guetzli.go @@ -1,26 +1,3 @@ -/* -Manage Guetzli compression functionality - -Example Usage - -```hcl - -resource "tencentcloud_ci_guetzli" "foo" { - bucket = "examplebucket-1250000000" - status = "on" -} - -``` - -Import - -Resource guetzli can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_ci_guetzli.example examplebucket-1250000000 -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_hot_link.go b/tencentcloud/resource_tc_ci_hot_link.go index 4f8bb3ef4e..9bd97e7c00 100644 --- a/tencentcloud/resource_tc_ci_hot_link.go +++ b/tencentcloud/resource_tc_ci_hot_link.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ci hot_link - -Example Usage - -```hcl -resource "tencentcloud_ci_hot_link" "hot_link" { - bucket = "terraform-ci-xxxxxx" - url = ["10.0.0.1", "10.0.0.2"] - type = "white" -} -``` - -Import - -ci hot_link can be imported using the bucket, e.g. - -``` -terraform import tencentcloud_ci_hot_link.hot_link terraform-ci-xxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_animation_template.go b/tencentcloud/resource_tc_ci_media_animation_template.go index 0805dbd9a9..6e6df038e9 100644 --- a/tencentcloud/resource_tc_ci_media_animation_template.go +++ b/tencentcloud/resource_tc_ci_media_animation_template.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a ci media_animation_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_animation_template" "media_animation_template" { - bucket = "terraform-ci-1308919341" - name = "animation_template-002" - container { - format = "gif" - } - video { - codec = "gif" - width = "1280" - height = "" - fps = "20" - animate_only_keep_key_frame = "true" - animate_time_interval_of_frame = "" - animate_frames_per_second = "" - quality = "" - - } - time_interval { - start = "0" - duration = "60" - - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_concat_template.go b/tencentcloud/resource_tc_ci_media_concat_template.go index 728dad5884..ccb6ce1f1f 100644 --- a/tencentcloud/resource_tc_ci_media_concat_template.go +++ b/tencentcloud/resource_tc_ci_media_concat_template.go @@ -1,65 +1,3 @@ -/* -Provides a resource to create a ci media_concat_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_concat_template" "media_concat_template" { - bucket = "terraform-ci-xxxxxx" - name = "concat_templates" - concat_template { - concat_fragment { - url = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4" - mode = "Start" - } - concat_fragment { - url = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4" - mode = "End" - } - audio { - codec = "mp3" - samplerate = "" - bitrate = "" - channels = "" - } - video { - codec = "H.264" - width = "1280" - height = "" - bitrate = "1000" - fps = "25" - crf = "" - remove = "" - rotate = "" - } - container { - format = "mp4" - } - audio_mix { - audio_source = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3" - mix_mode = "Once" - replace = "true" - effect_config { - enable_start_fadein = "true" - start_fadein_time = "3" - enable_end_fadeout = "false" - end_fadeout_time = "0.1" - enable_bgm_fade = "true" - bgm_fade_time = "1.7" - } - } - } -} -``` - -Import - -ci media_concat_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_concat_template.media_concat_template id=terraform-ci-xxxxxx#t1cb115dfa1fcc414284f83b7c69bcedcf -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_pic_process_template.go b/tencentcloud/resource_tc_ci_media_pic_process_template.go index bfe1b8723f..d07ebc1e8c 100644 --- a/tencentcloud/resource_tc_ci_media_pic_process_template.go +++ b/tencentcloud/resource_tc_ci_media_pic_process_template.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a ci media_pic_process_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_pic_process_template" "media_pic_process_template" { - bucket = "terraform-ci-xxxxxx" - name = "pic_process_template" - pic_process { - is_pic_info = "true" - process_rule = "imageMogr2/rotate/90" - - } -} -``` - -Import - -ci media_pic_process_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_pic_process_template.media_pic_process_template terraform-ci-xxxxx#t184a8a26da4674c80bf260c1e34131a65 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_smart_cover_template.go b/tencentcloud/resource_tc_ci_media_smart_cover_template.go index 1d8d453b6a..4a8862a8e3 100644 --- a/tencentcloud/resource_tc_ci_media_smart_cover_template.go +++ b/tencentcloud/resource_tc_ci_media_smart_cover_template.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a ci media_smart_cover_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_smart_cover_template" "media_smart_cover_template" { - bucket = "terraform-ci-xxxxxx" - name = "smart_cover_template" - smart_cover { - format = "jpg" - width = "1280" - height = "960" - count = "10" - delete_duplicates = "true" - } -} -``` - -Import - -ci media_smart_cover_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_smart_cover_template.media_smart_cover_template terraform-ci-xxxxxx#t1ede83acc305e423799d638044d859fb7 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_snapshot_template.go b/tencentcloud/resource_tc_ci_media_snapshot_template.go index fab62f87fa..d0abfe0204 100644 --- a/tencentcloud/resource_tc_ci_media_snapshot_template.go +++ b/tencentcloud/resource_tc_ci_media_snapshot_template.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a ci media_snapshot_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_snapshot_template" "media_snapshot_template" { - bucket = "terraform-ci-xxxxxx" - name = "snapshot_template_test" - snapshot { - count = "10" - snapshot_out_mode = "SnapshotAndSprite" - sprite_snapshot_config { - color = "White" - columns = "10" - lines = "10" - margin = "10" - padding = "10" - } - } -} -``` - -Import - -ci media_snapshot_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_snapshot_template.media_snapshot_template terraform-ci-xxxxxx#t18210645f96564eaf80e86b1f58c20152 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_speech_recognition_template.go b/tencentcloud/resource_tc_ci_media_speech_recognition_template.go index 2dbd69b436..bdca735eb9 100644 --- a/tencentcloud/resource_tc_ci_media_speech_recognition_template.go +++ b/tencentcloud/resource_tc_ci_media_speech_recognition_template.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a ci media_speech_recognition_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_speech_recognition_template" "media_speech_recognition_template" { - bucket = "terraform-ci-1308919341" - name = "speech_recognition_template" - speech_recognition { - engine_model_type = "16k_zh" - channel_num = "1" - res_text_format = "1" - filter_dirty = "0" - filter_modal = "1" - convert_num_mode = "0" - speaker_diarization = "1" - speaker_number = "0" - filter_punc = "0" - output_file_type = "txt" - } -} -``` - -Import - -ci media_speech_recognition_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_speech_recognition_template.media_speech_recognition_template terraform-ci-xxxxxx#t1d794430f2f1f4350b11e905ce2c6167e -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_super_resolution_template.go b/tencentcloud/resource_tc_ci_media_super_resolution_template.go index 92f8f11d81..9d639c35d1 100644 --- a/tencentcloud/resource_tc_ci_media_super_resolution_template.go +++ b/tencentcloud/resource_tc_ci_media_super_resolution_template.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a ci media_super_resolution_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_super_resolution_template" "media_super_resolution_template" { - bucket = "terraform-ci-1308919341" - name = "super_resolution_template" - resolution = "sdtohd" - enable_scale_up = "true" - version = "Enhance" -} -``` - -Import - -ci media_super_resolution_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_super_resolution_template.media_super_resolution_template terraform-ci-xxxxxx#t1d707eb2be3294e22b47123894f85cb8f -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_transcode_pro_template.go b/tencentcloud/resource_tc_ci_media_transcode_pro_template.go index 789c03489b..ccb35e7346 100644 --- a/tencentcloud/resource_tc_ci_media_transcode_pro_template.go +++ b/tencentcloud/resource_tc_ci_media_transcode_pro_template.go @@ -1,62 +1,3 @@ -/* -Provides a resource to create a ci media_transcode_pro_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_transcode_pro_template" "media_transcode_pro_template" { - bucket = "terraform-ci-xxxxxx" - name = "transcode_pro_template" - container { - format = "mxf" - # clip_config { - # duration = "" - # } - - } - video { - codec = "xavc" - profile = "XAVC-HD_422_10bit" - width = "1920" - height = "1080" - interlaced = "true" - fps = "30000/1001" - bitrate = "50000" - # rotate = "" - - } - time_interval { - start = "" - duration = "" - - } - audio { - codec = "pcm_s24le" - remove = "true" - - } - trans_config { - adj_dar_method = "scale" - is_check_reso = "false" - reso_adj_method = "1" - is_check_video_bitrate = "false" - video_bitrate_adj_method = "0" - is_check_audio_bitrate = "false" - audio_bitrate_adj_method = "0" - delete_metadata = "false" - is_hdr2_sdr = "false" - } -} -``` - -Import - -ci media_transcode_pro_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_transcode_pro_template.media_transcode_pro_template terraform-ci-xxxxxx#t13ed9af009da0414e9c7c63456ec8f4d2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_transcode_template.go b/tencentcloud/resource_tc_ci_media_transcode_template.go index e1a84fe36d..c44489fa1c 100644 --- a/tencentcloud/resource_tc_ci_media_transcode_template.go +++ b/tencentcloud/resource_tc_ci_media_transcode_template.go @@ -1,84 +1,3 @@ -/* -Provides a resource to create a ci media_transcode_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_transcode_template" "media_transcode_template" { - bucket = "terraform-ci-1308919341" - name = "transcode_template" - container { - format = "mp4" - # clip_config { - # duration = "" - # } - } - video { - codec = "H.264" - width = "1280" - # height = "" - fps = "30" - remove = "false" - profile = "high" - bitrate = "1000" - # crf = "" - # gop = "" - preset = "medium" - # bufsize = "" - # maxrate = "" - # pixfmt = "" - long_short_mode = "false" - # rotate = "" - } - time_interval { - start = "0" - duration = "60" - } - audio { - codec = "aac" - samplerate = "44100" - bitrate = "128" - channels = "4" - remove = "false" - keep_two_tracks = "false" - switch_track = "false" - sample_format = "" - } - trans_config { - adj_dar_method = "scale" - is_check_reso = "false" - reso_adj_method = "1" - is_check_video_bitrate = "false" - video_bitrate_adj_method = "0" - is_check_audio_bitrate = "false" - audio_bitrate_adj_method = "0" - delete_metadata = "false" - is_hdr2_sdr = "false" - } - audio_mix { - audio_source = "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3" - mix_mode = "Once" - replace = "true" - effect_config { - enable_start_fadein = "true" - start_fadein_time = "3" - enable_end_fadeout = "false" - end_fadeout_time = "0" - enable_bgm_fade = "true" - bgm_fade_time = "1.7" - } - } -} -``` - -Import - -ci media_transcode_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_transcode_template.media_transcode_template media_transcode_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_tts_template.go b/tencentcloud/resource_tc_ci_media_tts_template.go index ecca74b661..2993da6e02 100644 --- a/tencentcloud/resource_tc_ci_media_tts_template.go +++ b/tencentcloud/resource_tc_ci_media_tts_template.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a ci media_tts_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_tts_template" "media_tts_template" { - bucket = "terraform-ci-xxxxxx" - name = "tts_template" - mode = "Asyc" - codec = "pcm" - voice_type = "ruxue" - volume = "0" - speed = "100" -} -``` - -Import - -ci media_tts_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_tts_template.media_tts_template terraform-ci-xxxxxx#t1ed421df8bd2140b6b73474f70f99b0f8 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_video_montage_template.go b/tencentcloud/resource_tc_ci_media_video_montage_template.go index 89d303584c..861b3154d8 100644 --- a/tencentcloud/resource_tc_ci_media_video_montage_template.go +++ b/tencentcloud/resource_tc_ci_media_video_montage_template.go @@ -1,59 +1,3 @@ -/* -Provides a resource to create a ci media_video_montage_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_video_montage_template" "media_video_montage_template" { - bucket = "terraform-ci-xxxxx" - name = "video_montage_template" - duration = "10.5" - audio { - codec = "aac" - samplerate = "44100" - bitrate = "128" - channels = "4" - remove = "false" - - } - video { - codec = "H.264" - width = "1280" - height = "" - bitrate = "1000" - fps = "25" - crf = "" - remove = "" - } - container { - format = "mp4" - - } - audio_mix { - audio_source = "https://terraform-ci-xxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3" - mix_mode = "Once" - replace = "true" - # effect_config { - # enable_start_fadein = "" - # start_fadein_time = "" - # enable_end_fadeout = "" - # end_fadeout_time = "" - # enable_bgm_fade = "" - # bgm_fade_time = "" - # } - - } -} -``` - -Import - -ci media_video_montage_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_video_montage_template.media_video_montage_template terraform-ci-xxxxxx#t193e5ecc1b8154e57a8376b4405ad9c63 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_video_process_template.go b/tencentcloud/resource_tc_ci_media_video_process_template.go index 2e34909c43..8851040582 100644 --- a/tencentcloud/resource_tc_ci_media_video_process_template.go +++ b/tencentcloud/resource_tc_ci_media_video_process_template.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a ci media_video_process_template - -Example Usage - -```hcl - -resource "tencentcloud_ci_media_video_process_template" "media_video_process_template" { - bucket = "terraform-ci-xxxxxx" - name = "video_process_template" - color_enhance { - enable = "true" - contrast = "" - correction = "" - saturation = "" - - } - ms_sharpen { - enable = "false" - sharpen_level = "" - - } -} -``` - -Import - -ci media_video_process_template can be imported using the bucket#templateId, e.g. - -``` -terraform import tencentcloud_ci_media_video_process_template.media_video_process_template terraform-ci-xxxxxx#t1d5694d87639a4593a9fd7e9025d26f52 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_voice_separate_template.go b/tencentcloud/resource_tc_ci_media_voice_separate_template.go index ccff0191f9..5bb9ba44dc 100644 --- a/tencentcloud/resource_tc_ci_media_voice_separate_template.go +++ b/tencentcloud/resource_tc_ci_media_voice_separate_template.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a ci media_voice_separate_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_voice_separate_template" "media_voice_separate_template" { - bucket = "terraform-ci-xxxxx" - name = "voice_separate_template" - audio_mode = "IsAudio" - audio_config { - codec = "aac" - samplerate = "44100" - bitrate = "128" - channels = "4" - } -} -``` - -Import - -ci media_voice_separate_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_ci_media_voice_separate_template.media_voice_separate_template terraform-ci-xxxxxx#t1c95566664530460d9bc2b6265feb7c32 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_media_watermark_template.go b/tencentcloud/resource_tc_ci_media_watermark_template.go index 30ce1964da..cb9fed7010 100644 --- a/tencentcloud/resource_tc_ci_media_watermark_template.go +++ b/tencentcloud/resource_tc_ci_media_watermark_template.go @@ -1,47 +1,3 @@ -/* -Provides a resource to create a ci media_watermark_template - -Example Usage - -```hcl -resource "tencentcloud_ci_media_watermark_template" "media_watermark_template" { - bucket = "terraform-ci-1308919341" - name = "watermark_template" - watermark { - type = "Text" - pos = "TopRight" - loc_mode = "Absolute" - dx = "128" - dy = "128" - start_time = "0" - end_time = "100.5" - # image { - # url = "" - # mode = "" - # width = "" - # height = "" - # transparency = "" - # background = "" - # } - text { - font_size = "30" - font_type = "simfang.ttf" - font_color = "0xF0F8F0" - transparency = "30" - text = "watermark-content" - } - } -} -``` - -Import - -ci media_watermark_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_ci_media_watermark_template.media_watermark_template media_watermark_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ci_original_image_protection.go b/tencentcloud/resource_tc_ci_original_image_protection.go index 2b6fc9635d..c0d580c4b1 100644 --- a/tencentcloud/resource_tc_ci_original_image_protection.go +++ b/tencentcloud/resource_tc_ci_original_image_protection.go @@ -1,26 +1,3 @@ -/* -Manage original image protection functionality - -Example Usage - -```hcl - -resource "tencentcloud_ci_original_image_protection" "foo" { - bucket = "examplebucket-1250000000" - status = "on" -} - -``` - -Import - -Resource original image protection can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_ci_original_image_protection.example examplebucket-1250000000 -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ciam_user_group.go b/tencentcloud/resource_tc_ciam_user_group.go index ec13b82212..d0e641fb86 100644 --- a/tencentcloud/resource_tc_ciam_user_group.go +++ b/tencentcloud/resource_tc_ciam_user_group.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a ciam user group - -Example Usage - -```hcl -resource "tencentcloud_ciam_user_store" "user_store" { - user_pool_name = "tf_user_store" - user_pool_desc = "for terraform test" - user_pool_logo = "https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png" -} - -resource "tencentcloud_ciam_user_group" "user_group" { - display_name = "tf_user_group" - user_store_id = tencentcloud_ciam_user_store.user_store.id - description = "for terrafrom test" -} -``` - -Import - -ciam user_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_ciam_user_group.user_group userStoreId#userGroupId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ciam_user_store.go b/tencentcloud/resource_tc_ciam_user_store.go index 0d96c57857..9716e72c90 100644 --- a/tencentcloud/resource_tc_ciam_user_store.go +++ b/tencentcloud/resource_tc_ciam_user_store.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ciam user store - -Example Usage - -```hcl -resource "tencentcloud_ciam_user_store" "user_store" { - user_pool_name = "tf_user_store" - user_pool_desc = "for terraform test 123" - user_pool_logo = "https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png" -} -``` - -Import - -ciam user_store can be imported using the id, e.g. - -``` -terraform import tencentcloud_ciam_user_store.user_store userStoreId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_acl.go b/tencentcloud/resource_tc_ckafka_acl.go index 1476d28e21..1cca4e3ce6 100644 --- a/tencentcloud/resource_tc_ckafka_acl.go +++ b/tencentcloud/resource_tc_ckafka_acl.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a Ckafka Acl. - -Example Usage - -Ckafka Acl - -```hcl -resource "tencentcloud_ckafka_acl" "foo" { - instance_id = "ckafka-f9ife4zz" - resource_type = "TOPIC" - resource_name = "topic-tf-test" - operation_type = "WRITE" - permission_type = "ALLOW" - host = "*" - principal = tencentcloud_ckafka_user.foo.account_name -} -``` - -Import - -Ckafka acl can be imported using the instance_id#permission_type#principal#host#operation_type#resource_type#resource_name, e.g. - -``` -$ terraform import tencentcloud_ckafka_acl.foo ckafka-f9ife4zz#ALLOW#test#*#WRITE#TOPIC#topic-tf-test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_acl_rule.go b/tencentcloud/resource_tc_ckafka_acl_rule.go index 1ba2ba3a9f..a4b569a6e6 100644 --- a/tencentcloud/resource_tc_ckafka_acl_rule.go +++ b/tencentcloud/resource_tc_ckafka_acl_rule.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a ckafka acl_rule - -Example Usage - -```hcl -resource "tencentcloud_ckafka_acl_rule" "acl_rule" { - instance_id = "ckafka-xxx" - resource_type = "Topic" - pattern_type = "PREFIXED" - rule_name = "RuleName" - rule_list { - operation = "All" - permission_type = "Deny" - host = "*" - principal = "User:*" - - } - pattern = "prefix" - is_applied = 1 -} -``` - -Import - -ckafka acl_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_ckafka_acl_rule.acl_rule acl_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_connect_resource.go b/tencentcloud/resource_tc_ckafka_connect_resource.go index d9a6ccfa76..12461cb41e 100644 --- a/tencentcloud/resource_tc_ckafka_connect_resource.go +++ b/tencentcloud/resource_tc_ckafka_connect_resource.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a ckafka connect_resource - -Example Usage - -```hcl -resource "tencentcloud_ckafka_connect_resource" "connect_resource" { - resource_name = "terraform-test" - type = "MYSQL" - description = "for terraform test" - - mysql_connect_param { - port = 3306 - user_name = "root" - password = "xxxxxxxxx" - resource = "cdb-fitq5t9h" - service_vip = "172.16.80.59" - uniq_vpc_id = "vpc-4owdpnwr" - self_built = false - } -} - -``` - -Import - -ckafka connect_resource can be imported using the id, e.g. - -``` -terraform import tencentcloud_ckafka_connect_resource.connect_resource connect_resource_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_consumer_group.go b/tencentcloud/resource_tc_ckafka_consumer_group.go index 04905b37ed..00f5f85084 100644 --- a/tencentcloud/resource_tc_ckafka_consumer_group.go +++ b/tencentcloud/resource_tc_ckafka_consumer_group.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ckafka consumer_group - -Example Usage - -```hcl -resource "tencentcloud_ckafka_consumer_group" "consumer_group" { - instance_id = "InstanceId" - group_name = "GroupName" - topic_name_list = ["xxxxxx"] -} -``` - -Import - -ckafka consumer_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_ckafka_consumer_group.consumer_group consumer_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_consumer_group_modify_offset.go b/tencentcloud/resource_tc_ckafka_consumer_group_modify_offset.go index 4e472b069d..a4f1e33d3a 100644 --- a/tencentcloud/resource_tc_ckafka_consumer_group_modify_offset.go +++ b/tencentcloud/resource_tc_ckafka_consumer_group_modify_offset.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a ckafka consumer_group_modify_offset - -Example Usage - -```hcl -resource "tencentcloud_ckafka_consumer_group_modify_offset" "consumer_group_modify_offset" { - instance_id = "ckafka-xxxxxx" - group = "xxxxxx" - offset = 0 - strategy = 2 - topics = ["xxxxxx"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_datahub_task.go b/tencentcloud/resource_tc_ckafka_datahub_task.go index 0d6a871b6a..9661881eae 100644 --- a/tencentcloud/resource_tc_ckafka_datahub_task.go +++ b/tencentcloud/resource_tc_ckafka_datahub_task.go @@ -1,44 +1,3 @@ -/* -Provides a resource to create a ckafka datahub_task - -Example Usage - -```hcl -resource "tencentcloud_ckafka_datahub_task" "datahub_task" { - task_name = "test-task123321" - task_type = "SOURCE" - source_resource { - type = "POSTGRESQL" - postgre_sql_param { - database = "postgres" - table = "*" - resource = "resource-y9nxnw46" - plugin_name = "decoderbufs" - snapshot_mode = "never" - is_table_regular = false - key_columns = "" - record_with_schema = false - } - } - target_resource { - type = "TOPIC" - topic_param { - compression_type = "none" - resource = "1308726196-keep-topic" - use_auto_create_topic = false - } - } -} -``` - -Import - -ckafka datahub_task can be imported using the id, e.g. - -``` -terraform import tencentcloud_ckafka_datahub_task.datahub_task datahub_task_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_datahub_topic.go b/tencentcloud/resource_tc_ckafka_datahub_topic.go index ddb49293d6..8c19a66cae 100644 --- a/tencentcloud/resource_tc_ckafka_datahub_topic.go +++ b/tencentcloud/resource_tc_ckafka_datahub_topic.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a ckafka datahub_topic - -Example Usage - -```hcl -data "tencentcloud_user_info" "user" {} - -resource "tencentcloud_ckafka_datahub_topic" "datahub_topic" { - name = format("%s-tf", data.tencentcloud_user_info.user.app_id) - partition_num = 20 - retention_ms = 60000 - note = "for test" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -ckafka datahub_topic can be imported using the id, e.g. - -``` -terraform import tencentcloud_ckafka_datahub_topic.datahub_topic datahub_topic_name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_instance.go b/tencentcloud/resource_tc_ckafka_instance.go index 6acfe92de4..fe325922ae 100644 --- a/tencentcloud/resource_tc_ckafka_instance.go +++ b/tencentcloud/resource_tc_ckafka_instance.go @@ -1,134 +1,3 @@ -/* -Use this resource to create ckafka instance. - -Example Usage - -Basic Instance -```hcl -variable "vpc_id" { - default = "vpc-68vi2d3h" -} - -variable "subnet_id" { - default = "subnet-ob6clqwk" -} - -data "tencentcloud_availability_zones_by_product" "gz" { - name = "ap-guangzhou-3" - product = "ckafka" -} - -resource "tencentcloud_ckafka_instance" "kafka_instance_prepaid" { - instance_name = "ckafka-instance-prepaid" - zone_id = data.tencentcloud_availability_zones_by_product.gz.zones.0.id - period = 1 - vpc_id = var.vpc_id - subnet_id = var.subnet_id - msg_retention_time = 1300 - renew_flag = 0 - kafka_version = "2.4.1" - disk_size = 200 - disk_type = "CLOUD_BASIC" - band_width = 20 - partition = 400 - - specifications_type = "standard" - instance_type = 2 - - config { - auto_create_topic_enable = true - default_num_partitions = 3 - default_replication_factor = 3 - } - - dynamic_retention_config { - enable = 1 - } -} - -resource "tencentcloud_ckafka_instance" "kafka_instance_postpaid" { - instance_name = "ckafka-instance-postpaid" - zone_id = data.tencentcloud_availability_zones_by_product.gz.zones.0.id - vpc_id = var.vpc_id - subnet_id = var.subnet_id - msg_retention_time = 1300 - kafka_version = "1.1.1" - disk_size = 200 - band_width = 20 - disk_type = "CLOUD_BASIC" - partition = 400 - charge_type = "POSTPAID_BY_HOUR" - - config { - auto_create_topic_enable = true - default_num_partitions = 3 - default_replication_factor = 3 - } - - dynamic_retention_config { - enable = 1 - } -} -``` - -Multi zone Instance -```hcl -variable "vpc_id" { - default = "vpc-68vi2d3h" -} - -variable "subnet_id" { - default = "subnet-ob6clqwk" -} - -data "tencentcloud_availability_zones_by_product" "gz3" { - name = "ap-guangzhou-3" - product = "ckafka" -} - -data "tencentcloud_availability_zones_by_product" "gz6" { - name = "ap-guangzhou-6" - product = "ckafka" -} - -resource "tencentcloud_ckafka_instance" "kafka_instance" { - instance_name = "ckafka-instance-maz-tf-test" - zone_id = data.tencentcloud_availability_zones_by_product.gz3.zones.0.id - multi_zone_flag = true - zone_ids = [ - data.tencentcloud_availability_zones_by_product.gz3.zones.0.id, - data.tencentcloud_availability_zones_by_product.gz6.zones.0.id - ] - period = 1 - vpc_id = var.vpc_id - subnet_id = var.subnet_id - msg_retention_time = 1300 - renew_flag = 0 - kafka_version = "1.1.1" - disk_size = 500 - disk_type = "CLOUD_BASIC" - - - config { - auto_create_topic_enable = true - default_num_partitions = 3 - default_replication_factor = 3 - } - - dynamic_retention_config { - enable = 1 - } -} -``` - -Import - -ckafka instance can be imported using the instance_id, e.g. - -``` -$ terraform import tencentcloud_ckafka_instance.foo ckafka-f9ife4zz -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_renew_instance.go b/tencentcloud/resource_tc_ckafka_renew_instance.go index f9af040071..1db6aed81b 100644 --- a/tencentcloud/resource_tc_ckafka_renew_instance.go +++ b/tencentcloud/resource_tc_ckafka_renew_instance.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a ckafka renew_instance - -Example Usage - -```hcl -resource "tencentcloud_ckafka_renew_instance" "renew_ckafka_instance" { - instance_id = "InstanceId" - time_span = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_route.go b/tencentcloud/resource_tc_ckafka_route.go index cb64647be7..79e14d667e 100644 --- a/tencentcloud/resource_tc_ckafka_route.go +++ b/tencentcloud/resource_tc_ckafka_route.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a ckafka route - -Example Usage - -```hcl -resource "tencentcloud_ckafka_route" "route" { - instance_id = "ckafka-xxxxxx" - vip_type = 3 - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxxx" - access_type = 0 - public_network = 3 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_topic.go b/tencentcloud/resource_tc_ckafka_topic.go index 8d51051caa..347d1a5f7d 100644 --- a/tencentcloud/resource_tc_ckafka_topic.go +++ b/tencentcloud/resource_tc_ckafka_topic.go @@ -1,34 +1,3 @@ -/* -Use this resource to create ckafka topic. - -Example Usage - -```hcl -resource "tencentcloud_ckafka_topic" "foo" { - instance_id = "ckafka-f9ife4zz" - topic_name = "example" - note = "topic note" - replica_num = 2 - partition_num = 1 - enable_white_list = true - ip_white_list = ["ip1","ip2"] - clean_up_policy = "delete" - sync_replica_min_num = 1 - unclean_leader_election_enable = false - segment = 3600000 - retention = 60000 - max_message_bytes = 0 -} -``` - -Import - -ckafka topic can be imported using the instance_id#topic_name, e.g. - -``` -$ terraform import tencentcloud_ckafka_topic.foo ckafka-f9ife4zz#example -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ckafka_user.go b/tencentcloud/resource_tc_ckafka_user.go index 07862e7ca6..96b73fe361 100644 --- a/tencentcloud/resource_tc_ckafka_user.go +++ b/tencentcloud/resource_tc_ckafka_user.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a Ckafka user. - -Example Usage - -Ckafka User - -```hcl -resource "tencentcloud_ckafka_user" "foo" { - instance_id = "ckafka-f9ife4zz" - account_name = "tf-test" - password = "test1234" -} -``` - -Import - -Ckafka user can be imported using the instance_id#account_name, e.g. - -``` -$ terraform import tencentcloud_ckafka_user.foo ckafka-f9ife4zz#tf-test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_attachment.go b/tencentcloud/resource_tc_clb_attachment.go index b861bbe1d9..2a2d5b9989 100644 --- a/tencentcloud/resource_tc_clb_attachment.go +++ b/tencentcloud/resource_tc_clb_attachment.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a CLB attachment. - -Example Usage - -```hcl -resource "tencentcloud_clb_attachment" "foo" { - clb_id = "lb-k2zjp9lv" - listener_id = "lbl-hh141sn9" - rule_id = "loc-4xxr2cy7" - - targets { - instance_id = "ins-1flbqyp8" - port = 80 - weight = 10 - } -} -``` - -Import - -CLB attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_attachment.foo loc-4xxr2cy7#lbl-hh141sn9#lb-7a0t6zqb -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_customized_config.go b/tencentcloud/resource_tc_clb_customized_config.go index eb29257add..c1ed280ed8 100644 --- a/tencentcloud/resource_tc_clb_customized_config.go +++ b/tencentcloud/resource_tc_clb_customized_config.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a CLB customized config. - -Example Usage - -```hcl -resource "tencentcloud_clb_customized_config" "foo" { - config_content = "client_max_body_size 224M;\r\nclient_body_timeout 60s;" - config_name = "helloWorld" - load_balancer_ids = [ - "${tencentcloud_clb_instance.internal_clb.id}", - "${tencentcloud_clb_instance.internal_clb2.id}", - ] -} -``` -Import - -CLB customized config can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_customized_config.foo pz-diowqstq -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_function_targets_attachment.go b/tencentcloud/resource_tc_clb_function_targets_attachment.go index c6a39d5de7..15bd870f63 100644 --- a/tencentcloud/resource_tc_clb_function_targets_attachment.go +++ b/tencentcloud/resource_tc_clb_function_targets_attachment.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a clb function_targets_attachment - -Example Usage - -```hcl -resource "tencentcloud_clb_function_targets_attachment" "function_targets" { - domain = "xxx.com" - listener_id = "lbl-nonkgvc2" - load_balancer_id = "lb-5dnrkgry" - url = "/" - - function_targets { - weight = 10 - - function { - function_name = "keep-tf-test-1675954233" - function_namespace = "default" - function_qualifier = "$LATEST" - function_qualifier_type = "VERSION" - } - } -} -``` - -Import - -clb function_targets_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_clb_function_targets_attachment.function_targets loadBalancerId#listenerId#locationId or loadBalancerId#listenerId#domain#rule -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_instance.go b/tencentcloud/resource_tc_clb_instance.go index df711d09a8..5b39bad207 100644 --- a/tencentcloud/resource_tc_clb_instance.go +++ b/tencentcloud/resource_tc_clb_instance.go @@ -1,229 +1,3 @@ -/* -Provides a resource to create a CLB instance. - -Example Usage - -INTERNAL CLB - -```hcl -resource "tencentcloud_clb_instance" "internal_clb" { - network_type = "INTERNAL" - clb_name = "myclb" - project_id = 0 - vpc_id = "vpc-7007ll7q" - subnet_id = "subnet-12rastkr" - - tags = { - test = "tf" - } -} -``` - -LCU-supported CLB - -```hcl -resource "tencentcloud_clb_instance" "internal_clb" { - network_type = "INTERNAL" - clb_name = "myclb" - project_id = 0 - sla_type = "clb.c3.medium" - vpc_id = "vpc-2hfyray3" - subnet_id = "subnet-o3a5nt20" - - tags = { - test = "tf" - } -} -``` - -OPEN CLB - -```hcl -resource "tencentcloud_clb_instance" "open_clb" { - network_type = "OPEN" - clb_name = "myclb" - project_id = 0 - vpc_id = "vpc-da7ffa61" - security_groups = ["sg-o0ek7r93"] - target_region_info_region = "ap-guangzhou" - target_region_info_vpc_id = "vpc-da7ffa61" - - tags = { - test = "tf" - } -} -``` - -OPNE CLB with VipIsp - -```hcl -resource "tencentcloud_vpc_bandwidth_package" "example" { - network_type = "SINGLEISP_CMCC" - charge_type = "ENHANCED95_POSTPAID_BY_MONTH" - bandwidth_package_name = "tf-example" - internet_max_bandwidth = 300 - egress = "center_egress1" - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_clb_instance" "open_clb" { - network_type = "OPEN" - clb_name = "my-open-clb" - project_id = 0 - vpc_id = "vpc-4owdpnwr" - vip_isp = "CMCC" - internet_charge_type = "BANDWIDTH_PACKAGE" - bandwidth_package_id = tencentcloud_vpc_bandwidth_package.example.id - - tags = { - test = "open" - } -} -``` - -Dynamic Vip Instance - -```hcl -resource "tencentcloud_security_group" "foo" { - name = "clb-instance-open-sg" -} - -resource "tencentcloud_vpc" "foo" { - name = "clb-instance-open-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_clb_instance" "clb_open" { - network_type = "OPEN" - clb_name = "clb-instance-open" - project_id = 0 - vpc_id = tencentcloud_vpc.foo.id - target_region_info_region = "ap-guangzhou" - target_region_info_vpc_id = tencentcloud_vpc.foo.id - security_groups = [tencentcloud_security_group.foo.id] - - dynamic_vip = true - - tags = { - test = "tf" - } -} - -output "domain" { - value = tencentcloud_clb_instance.clb_open.domain -} -``` - -Default enable - -```hcl -resource "tencentcloud_subnet" "subnet" { - availability_zone = "ap-guangzhou-1" - name = "sdk-feature-test" - vpc_id = tencentcloud_vpc.foo.id - cidr_block = "10.0.20.0/28" - is_multicast = false -} - -resource "tencentcloud_security_group" "sglab" { - name = "sg_o0ek7r93" - description = "favourite sg" - project_id = 0 -} - -resource "tencentcloud_vpc" "foo" { - name = "for-my-open-clb" - cidr_block = "10.0.0.0/16" - - tags = { - "test" = "mytest" - } -} - -resource "tencentcloud_clb_instance" "open_clb" { - network_type = "OPEN" - clb_name = "my-open-clb" - project_id = 0 - vpc_id = tencentcloud_vpc.foo.id - load_balancer_pass_to_target = true - - security_groups = [tencentcloud_security_group.sglab.id] - target_region_info_region = "ap-guangzhou" - target_region_info_vpc_id = tencentcloud_vpc.foo.id - - tags = { - test = "open" - } -} -``` - -CREATE multiple instance - -```hcl -resource "tencentcloud_clb_instance" "open_clb1" { - network_type = "OPEN" - clb_name = "hello" - master_zone_id = "ap-guangzhou-3" -} -``` - -CREATE instance with log -```hcl -resource "tencentcloud_vpc" "vpc_test" { - name = "clb-test" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_route_table" "rtb_test" { - name = "clb-test" - vpc_id = "${tencentcloud_vpc.vpc_test.id}" -} - -resource "tencentcloud_subnet" "subnet_test" { - name = "clb-test" - cidr_block = "10.0.1.0/24" - availability_zone = "ap-guangzhou-3" - vpc_id = "${tencentcloud_vpc.vpc_test.id}" - route_table_id = "${tencentcloud_route_table.rtb_test.id}" -} - -resource "tencentcloud_clb_log_set" "set" { - period = 7 -} - -resource "tencentcloud_clb_log_topic" "topic" { - log_set_id = "${tencentcloud_clb_log_set.set.id}" - topic_name = "clb-topic" -} - -resource "tencentcloud_clb_instance" "internal_clb" { - network_type = "INTERNAL" - clb_name = "myclb" - project_id = 0 - vpc_id = "${tencentcloud_vpc.vpc_test.id}" - subnet_id = "${tencentcloud_subnet.subnet_test.id}" - load_balancer_pass_to_target = true - log_set_id = "${tencentcloud_clb_log_set.set.id}" - log_topic_id = "${tencentcloud_clb_log_topic.topic.id}" - - tags = { - test = "tf" - } -} - -``` - -Import - -CLB instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_instance.foo lb-7a0t6zqb -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_instance_mix_ip_target_config.go b/tencentcloud/resource_tc_clb_instance_mix_ip_target_config.go index 4733fdba1d..9c875d3475 100644 --- a/tencentcloud/resource_tc_clb_instance_mix_ip_target_config.go +++ b/tencentcloud/resource_tc_clb_instance_mix_ip_target_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a clb instance_mix_ip_target_config - -Example Usage - -```hcl -resource "tencentcloud_clb_instance_mix_ip_target_config" "instance_mix_ip_target_config" { - load_balancer_id = "lb-5dnrkgry" - mix_ip_target = false -} -``` - -Import - -clb instance_mix_ip_target_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_clb_instance_mix_ip_target_config.instance_mix_ip_target_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_instance_sla_config.go b/tencentcloud/resource_tc_clb_instance_sla_config.go index dc8767a259..f4b8134852 100644 --- a/tencentcloud/resource_tc_clb_instance_sla_config.go +++ b/tencentcloud/resource_tc_clb_instance_sla_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a clb instance_sla_config - -Example Usage - -```hcl -resource "tencentcloud_clb_instance_sla_config" "instance_sla_config" { - load_balancer_id = "lb-5dnrkgry" - sla_type = "SLA" -} -``` - -Import - -clb instance_sla_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_clb_instance_sla_config.instance_sla_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_listener.go b/tencentcloud/resource_tc_clb_listener.go index de95ef2267..bdbee324ea 100644 --- a/tencentcloud/resource_tc_clb_listener.go +++ b/tencentcloud/resource_tc_clb_listener.go @@ -1,170 +1,3 @@ -/* -Provides a resource to create a CLB listener. - -Example Usage - -HTTP Listener - -```hcl -resource "tencentcloud_clb_listener" "HTTP_listener" { - clb_id = "lb-0lh5au7v" - listener_name = "test_listener" - port = 80 - protocol = "HTTP" -} -``` - -TCP/UDP Listener - -```hcl -resource "tencentcloud_clb_listener" "TCP_listener" { - clb_id = "lb-0lh5au7v" - listener_name = "test_listener" - port = 80 - protocol = "TCP" - health_check_switch = true - health_check_time_out = 2 - health_check_interval_time = 5 - health_check_health_num = 3 - health_check_unhealth_num = 3 - session_expire_time = 30 - scheduler = "WRR" - health_check_port = 200 - health_check_type = "HTTP" - health_check_http_code = 2 - health_check_http_version = "HTTP/1.0" - health_check_http_method = "GET" -} -``` - -TCP/UDP Listener with tcp health check -```hcl -resource "tencentcloud_clb_listener" "listener_tcp" { - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_name = "listener_tcp" - port = 44 - protocol = "TCP" - health_check_switch = true - health_check_time_out = 30 - health_check_interval_time = 100 - health_check_health_num = 2 - health_check_unhealth_num = 2 - session_expire_time = 30 - scheduler = "WRR" - health_check_type = "TCP" - health_check_port = 200 -} -``` - -TCP/UDP Listener with http health check -```hcl -resource "tencentcloud_clb_listener" "listener_tcp" { - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_name = "listener_tcp" - port = 44 - protocol = "TCP" - health_check_switch = true - health_check_time_out = 30 - health_check_interval_time = 100 - health_check_health_num = 2 - health_check_unhealth_num = 2 - session_expire_time = 30 - scheduler = "WRR" - health_check_type = "HTTP" - health_check_http_domain = "www.tencent.com" - health_check_http_code = 16 - health_check_http_version = "HTTP/1.1" - health_check_http_method = "HEAD" - health_check_http_path = "/" -} -``` - -TCP/UDP Listener with customer health check -```hcl -resource "tencentcloud_clb_listener" "listener_tcp"{ - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_name = "listener_tcp" - port = 44 - protocol = "TCP" - health_check_switch = true - health_check_time_out = 30 - health_check_interval_time = 100 - health_check_health_num = 2 - health_check_unhealth_num = 2 - session_expire_time = 30 - scheduler = "WRR" - health_check_type = "CUSTOM" - health_check_context_type = "HEX" - health_check_send_context = "0123456789ABCDEF" - health_check_recv_context = "ABCD" - target_type = "TARGETGROUP" -} -``` - -HTTPS Listener - -```hcl -resource "tencentcloud_clb_listener" "HTTPS_listener" { - clb_id = "lb-0lh5au7v" - listener_name = "test_listener" - port = "80" - protocol = "HTTPS" - certificate_ssl_mode = "MUTUAL" - certificate_id = "VjANRdz8" - certificate_ca_id = "VfqO4zkB" - sni_switch = true -} -``` - -TCP SSL Listener - -```hcl -resource "tencentcloud_clb_listener" "TCPSSL_listener" { - clb_id = "lb-0lh5au7v" - listener_name = "test_listener" - port = "80" - protocol = "TCP_SSL" - certificate_ssl_mode = "MUTUAL" - certificate_id = "VjANRdz8" - certificate_ca_id = "VfqO4zkB" - health_check_switch = true - health_check_time_out = 2 - health_check_interval_time = 5 - health_check_health_num = 3 - health_check_unhealth_num = 3 - scheduler = "WRR" - target_type = "TARGETGROUP" -} -``` - -Port Range Listener - -```hcl -resource "tencentcloud_clb_instance" "clb_basic" { - network_type = "OPEN" - clb_name = "tf-listener-test" -} - -resource "tencentcloud_clb_listener" "listener_basic" { - clb_id = tencentcloud_clb_instance.clb_basic.id - port = 1 - end_port = 6 - protocol = "TCP" - listener_name = "listener_basic" - session_expire_time = 30 - scheduler = "WRR" - target_type = "NODE" -} -``` - -Import - -CLB listener can be imported using the id (version >= 1.47.0), e.g. - -``` -$ terraform import tencentcloud_clb_listener.foo lb-7a0t6zqb#lbl-hh141sn9 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_listener_rule.go b/tencentcloud/resource_tc_clb_listener_rule.go index 4f4ca3d56d..651df0382c 100644 --- a/tencentcloud/resource_tc_clb_listener_rule.go +++ b/tencentcloud/resource_tc_clb_listener_rule.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a CLB listener rule. - --> **NOTE:** This resource only be applied to the HTTP or HTTPS listeners. - -Example Usage - -```hcl -resource "tencentcloud_clb_listener_rule" "foo" { - listener_id = "lbl-hh141sn9" - clb_id = "lb-k2zjp9lv" - domain = "foo.net" - url = "/bar" - health_check_switch = true - health_check_interval_time = 5 - health_check_health_num = 3 - health_check_unhealth_num = 3 - health_check_http_code = 2 - health_check_http_path = "Default Path" - health_check_http_domain = "Default Domain" - health_check_http_method = "GET" - certificate_ssl_mode = "MUTUAL" - certificate_id = "VjANRdz8" - certificate_ca_id = "VfqO4zkB" - session_expire_time = 30 - scheduler = "WRR" -} -``` -Import - -CLB listener rule can be imported using the id (version >= 1.47.0), e.g. - -``` -$ terraform import tencentcloud_clb_listener_rule.foo lb-7a0t6zqb#lbl-hh141sn9#loc-agg236ys -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_log_set.go b/tencentcloud/resource_tc_clb_log_set.go index 4bff765a6d..81d7a29a3b 100644 --- a/tencentcloud/resource_tc_clb_log_set.go +++ b/tencentcloud/resource_tc_clb_log_set.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create an exclusive CLB Logset. - -Example Usage - -```hcl -resource "tencentcloud_clb_log_set" "foo" { - period = 7 -} -``` - -Import - -CLB log set can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_logset.foo 4eb9e3a8-9c42-4b32-9ddf-e215e9c92764 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_log_topic.go b/tencentcloud/resource_tc_clb_log_topic.go index 5e9c84ae19..cc7ce34f2e 100644 --- a/tencentcloud/resource_tc_clb_log_topic.go +++ b/tencentcloud/resource_tc_clb_log_topic.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a CLB instance topic. - -Example Usage - -```hcl -resource "tencentcloud_clb_log_topic" "topic" { - log_set_id = "${tencentcloud_clb_log_set.set.id}" - topic_name = "clb-topic" -} -``` - -Import - -CLB log topic can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_log_topic.topic lb-7a0t6zqb -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_redirection.go b/tencentcloud/resource_tc_clb_redirection.go index 6d62f97a18..4ccb75b1da 100644 --- a/tencentcloud/resource_tc_clb_redirection.go +++ b/tencentcloud/resource_tc_clb_redirection.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a CLB redirection. - -Example Usage - -Manual Rewrite - -```hcl -resource "tencentcloud_clb_redirection" "foo" { - clb_id = "lb-p7olt9e5" - source_listener_id = "lbl-jc1dx6ju" - target_listener_id = "lbl-asj1hzuo" - source_rule_id = "loc-ft8fmngv" - target_rule_id = "loc-4xxr2cy7" -} -``` - -Auto Rewrite - -```hcl -resource "tencentcloud_clb_redirection" "foo" { - clb_id = "lb-p7olt9e5" - target_listener_id = "lbl-asj1hzuo" - target_rule_id = "loc-4xxr2cy7" - is_auto_rewrite = true -} -``` - -Import - -CLB redirection can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_redirection.foo loc-ft8fmngv#loc-4xxr2cy7#lbl-jc1dx6ju#lbl-asj1hzuo#lb-p7olt9e5 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_replace_cert_for_lbs.go b/tencentcloud/resource_tc_clb_replace_cert_for_lbs.go index 0215338c8f..f2abd89c95 100644 --- a/tencentcloud/resource_tc_clb_replace_cert_for_lbs.go +++ b/tencentcloud/resource_tc_clb_replace_cert_for_lbs.go @@ -1,61 +1,3 @@ -/* -Provides a resource to create a clb replace_cert_for_lbs - -Example Usage - -Replace Server Cert By Cert ID -```hcl -resource "tencentcloud_clb_replace_cert_for_lbs" "replace_cert_for_lbs" { - old_certificate_id = "zjUMifFK" - certificate { - cert_id = "6vcK02GC" - } -} -``` - -Replace Server Cert By Cert Content -```hcl -data "tencentcloud_ssl_certificates" "foo" { - name = "keep-ssl-ca" -} - -resource "tencentcloud_clb_replace_cert_for_lbs" "replace_cert_for_lbs" { - old_certificate_id = data.tencentcloud_ssl_certificates.foo.certificates.0.id - certificate { - cert_name = "tf-test-cert" - cert_content = <<-EOT ------BEGIN CERTIFICATE----- -xxxxxxxxxxxxxxxxxxxxxxxxxxx ------END CERTIFICATE----- -EOT - cert_key = <<-EOT ------BEGIN RSA PRIVATE KEY----- -xxxxxxxxxxxxxxxxxxxxxxxxxxxx ------END RSA PRIVATE KEY----- -EOT - } -} -``` - -Replace Client Cert By Cert Content -```hcl -resource "tencentcloud_clb_replace_cert_for_lbs" "replace_cert_for_lbs" { - old_certificate_id = "zjUMifFK" - certificate { - cert_ca_name = "tf-test-cert" - cert_ca_content = <<-EOT ------BEGIN CERTIFICATE----- -xxxxxxxxContentxxxxxxxxxxxxxx ------END CERTIFICATE----- -EOT - } -} -``` - -``` -terraform import tencentcloud_clb_replace_cert_for_lbs.replace_cert_for_lbs replace_cert_for_lbs_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_security_group_attachment.go b/tencentcloud/resource_tc_clb_security_group_attachment.go index e48a243006..99778a0d4d 100644 --- a/tencentcloud/resource_tc_clb_security_group_attachment.go +++ b/tencentcloud/resource_tc_clb_security_group_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a clb security_group_attachment - -Example Usage - -```hcl -resource "tencentcloud_clb_security_group_attachment" "security_group_attachment" { - security_group = "sg-ijato2x1" - load_balancer_ids = ["lb-5dnrkgry"] -} -``` - -Import - -clb security_group_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_clb_security_group_attachment.security_group_attachment security_group_id#clb_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_snat_ip.go b/tencentcloud/resource_tc_clb_snat_ip.go index 531a27952c..00122016eb 100644 --- a/tencentcloud/resource_tc_clb_snat_ip.go +++ b/tencentcloud/resource_tc_clb_snat_ip.go @@ -1,40 +1,3 @@ -/* -Provide a resource to create a SnatIp of CLB instance. - -~> **NOTE:** Target CLB instance must enable `snat_pro` before creating snat ips. -~> **NOTE:** Dynamic allocate IP doesn't support for now. - -Example Usage - -```hcl -resource "tencentcloud_clb_instance" "snat_test" { - network_type = "OPEN" - clb_name = "tf-clb-snat-test" -} - -resource "tencentcloud_clb_snat_ip" "foo" { - clb_id = tencentcloud_clb_instance.snat_test.id - ips { - subnet_id = "subnet-12345678" - ip = "172.16.0.1" - } - ips { - subnet_id = "subnet-12345678" - ip = "172.16.0.2" - } -} - -``` - - -Import - -ClbSnatIp instance can be imported by clb instance id, e.g. -``` -$ terraform import tencentcloud_clb_snat_ip.test clb_id -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_target_group.go b/tencentcloud/resource_tc_clb_target_group.go index 60acf2de3e..2a0bd85e5c 100644 --- a/tencentcloud/resource_tc_clb_target_group.go +++ b/tencentcloud/resource_tc_clb_target_group.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a CLB target group. - -Example Usage - -```hcl -resource "tencentcloud_clb_target_group" "test"{ - target_group_name = "test" - port = 33 -} -``` - - -Import - -CLB target group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_target_group.test lbtg-3k3io0i0 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_target_group_attachment.go b/tencentcloud/resource_tc_clb_target_group_attachment.go index ce0765af44..f626acb44b 100644 --- a/tencentcloud/resource_tc_clb_target_group_attachment.go +++ b/tencentcloud/resource_tc_clb_target_group_attachment.go @@ -1,51 +1,3 @@ -/* -Provides a resource to create a CLB target group attachment is bound to the load balancing listener or forwarding rule. - -Example Usage - -```hcl -resource "tencentcloud_clb_instance" "clb_basic" { - network_type = "OPEN" - clb_name = "tf-clb-rule-basic" -} - -resource "tencentcloud_clb_listener" "listener_basic" { - clb_id = tencentcloud_clb_instance.clb_basic.id - port = 1 - protocol = "HTTP" - listener_name = "listener_basic" -} - -resource "tencentcloud_clb_listener_rule" "rule_basic" { - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_id = tencentcloud_clb_listener.listener_basic.listener_id - domain = "abc.com" - url = "/" - session_expire_time = 30 - scheduler = "WRR" - target_type = "TARGETGROUP" -} - -resource "tencentcloud_clb_target_group" "test"{ - target_group_name = "test-target-keep-1" -} - -resource "tencentcloud_clb_target_group_attachment" "group" { - clb_id = tencentcloud_clb_instance.clb_basic.id - listener_id = tencentcloud_clb_listener.listener_basic.listener_id - rule_id = tencentcloud_clb_listener_rule.rule_basic.rule_id - target_group_id = tencentcloud_clb_target_group.test.id -} -``` - -Import - -CLB target group attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_target_group_attachment.group lbtg-odareyb2#lbl-bicjmx3i#lb-cv0iz74c#loc-ac6uk7b6 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clb_target_group_instance_attachment.go b/tencentcloud/resource_tc_clb_target_group_instance_attachment.go index 3cc11062da..ffbab08cbf 100644 --- a/tencentcloud/resource_tc_clb_target_group_instance_attachment.go +++ b/tencentcloud/resource_tc_clb_target_group_instance_attachment.go @@ -1,89 +1,3 @@ -/* -Provides a resource to create a CLB target group instance attachment. - -Example Usage - -```hcl -data "tencentcloud_images" "my_favorite_image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "centos" -} - -data "tencentcloud_instance_types" "my_favorite_instance_types" { - filter { - name = "instance-family" - values = ["S3"] - } - - cpu_core_count = 1 - memory_size = 1 -} - -data "tencentcloud_availability_zones" "default" { -} - -resource "tencentcloud_vpc" "app" { - cidr_block = "10.0.0.0/16" - name = "awesome_app_vpc" -} - -resource "tencentcloud_subnet" "app" { - vpc_id = tencentcloud_vpc.app.id - availability_zone = data.tencentcloud_availability_zones.default.zones.0.name - name = "awesome_app_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_instance" "my_awesome_app" { - instance_name = "awesome_app" - availability_zone = data.tencentcloud_availability_zones.default.zones.0.name - image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id - instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.app.id - subnet_id = tencentcloud_subnet.app.id - internet_max_bandwidth_out = 20 - - data_disks { - data_disk_type = "CLOUD_PREMIUM" - data_disk_size = 50 - encrypt = false - } - - tags = { - tagKey = "tagValue" - } -} - -data "tencentcloud_instances" "foo" { - instance_id = tencentcloud_instance.my_awesome_app.id -} - -resource "tencentcloud_clb_target_group" "test"{ - target_group_name = "test" - vpc_id = tencentcloud_vpc.app.id -} - -resource "tencentcloud_clb_target_group_instance_attachment" "test"{ - target_group_id = tencentcloud_clb_target_group.test.id - bind_ip = data.tencentcloud_instances.foo.instance_list[0].private_ip - port = 222 - weight = 3 -} - -``` - -Import - -CLB target group instance attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clb_target_group_instance_attachment.test lbtg-3k3io0i0#172.16.48.18#222 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_account.go b/tencentcloud/resource_tc_clickhouse_account.go index 0804f56dfc..59cff97e3b 100644 --- a/tencentcloud/resource_tc_clickhouse_account.go +++ b/tencentcloud/resource_tc_clickhouse_account.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a clickhouse account - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_account" "account" { - instance_id = "cdwch-xxxxxx" - user_name = "test" - password = "xxxxxx" - describe = "xxxxxx" -} -``` - -Import - -clickhouse account can be imported using the id, e.g. - -``` -terraform import tencentcloud_clickhouse_account.account ${instance_id}#${user_name} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_account_permission.go b/tencentcloud/resource_tc_clickhouse_account_permission.go index 7e8dab36a9..1504bc9be1 100644 --- a/tencentcloud/resource_tc_clickhouse_account_permission.go +++ b/tencentcloud/resource_tc_clickhouse_account_permission.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a clickhouse account_permission - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_account_permission" "account_permission_all_database" { - instance_id = "cdwch-xxxxxx" - cluster = "default_cluster" - user_name = "user1" - all_database = true - global_privileges = ["SELECT", "ALTER"] -} - -resource "tencentcloud_clickhouse_account_permission" "account_permission_not_all_database" { - instance_id = "cdwch-xxxxxx" - cluster = "default_cluster" - user_name = "user2" - all_database = false - database_privilege_list { - database_name = "xxxxxx" - database_privileges = ["SELECT", "ALTER"] - } -} -``` - -Import - -clickhouse account_permission can be imported using the id, e.g. - -``` -terraform import tencentcloud_clickhouse_account_permission.account_permission ${instanceId}#${cluster}#${userName} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_backup.go b/tencentcloud/resource_tc_clickhouse_backup.go index e11da037fb..93c1f7a36f 100644 --- a/tencentcloud/resource_tc_clickhouse_backup.go +++ b/tencentcloud/resource_tc_clickhouse_backup.go @@ -1,23 +1,3 @@ -/* -Provides a resource to open clickhouse backup - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_backup" "backup" { - instance_id = "cdwch-xxxxxx" - cos_bucket_name = "xxxxxx" -} -``` - -Import - -clickhouse backup can be imported using the id, e.g. - -``` -terraform import tencentcloud_clickhouse_backup.backup instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_backup_strategy.go b/tencentcloud/resource_tc_clickhouse_backup_strategy.go index 974b37b39a..aeb05c2664 100644 --- a/tencentcloud/resource_tc_clickhouse_backup_strategy.go +++ b/tencentcloud/resource_tc_clickhouse_backup_strategy.go @@ -1,44 +1,3 @@ -/* -Provides a resource to create a clickhouse backup strategy - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_backup" "backup" { - instance_id = "cdwch-xxxxxx" - cos_bucket_name = "xxxxxx" -} - -resource "tencentcloud_clickhouse_backup_strategy" "backup_strategy" { - instance_id = "cdwch-xxxxxx" - data_backup_strategy { - week_days = "3" - retain_days = 2 - execute_hour = 1 - back_up_tables { - database = "iac" - table = "my_table" - total_bytes = 0 - v_cluster = "default_cluster" - ips = "10.0.0.35" - } - } - meta_backup_strategy { - week_days = "1" - retain_days = 2 - execute_hour = 3 - } -} -``` - -Import - -clickhouse backup_strategy can be imported using the id, e.g. - -``` -terraform import tencentcloud_clickhouse_backup_strategy.backup_strategy instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_delete_backup_data.go b/tencentcloud/resource_tc_clickhouse_delete_backup_data.go index 5df1c0c6b5..832bd81a76 100644 --- a/tencentcloud/resource_tc_clickhouse_delete_backup_data.go +++ b/tencentcloud/resource_tc_clickhouse_delete_backup_data.go @@ -1,15 +1,3 @@ -/* -Provides a resource to delete a clickhouse back up data - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_delete_backup_data" "delete_back_up_data" { - instance_id = "cdwch-xxxxxx" - back_up_job_id = 1234 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_instance.go b/tencentcloud/resource_tc_clickhouse_instance.go index 2237e33a61..b92c1e7bd9 100644 --- a/tencentcloud/resource_tc_clickhouse_instance.go +++ b/tencentcloud/resource_tc_clickhouse_instance.go @@ -1,64 +1,3 @@ -/* -Provides a resource to create a clickhouse instance. - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_instance" "cdwch_instance" { - zone="ap-guangzhou-6" - ha_flag=true - vpc_id="vpc-xxxxxx" - subnet_id="subnet-xxxxxx" - product_version="21.8.12.29" - data_spec { - spec_name="SCH6" - count=2 - disk_size=300 - } - common_spec { - spec_name="SCH6" - count=3 - disk_size=300 - } - charge_type="POSTPAID_BY_HOUR" - instance_name="tf-test-clickhouse" -} -``` - -PREPAID instance - -```hcl -resource "tencentcloud_clickhouse_instance" "cdwch_instance_prepaid" { - zone="ap-guangzhou-6" - ha_flag=true - vpc_id="vpc-xxxxxx" - subnet_id="subnet-xxxxxx" - product_version="21.8.12.29" - data_spec { - spec_name="SCH6" - count=2 - disk_size=300 - } - common_spec { - spec_name="SCH6" - count=3 - disk_size=300 - } - charge_type="PREPAID" - renew_flag=1 - time_span=1 - instance_name="tf-test-clickhouse-prepaid" -} -``` - -Import - -Clickhouse instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_clickhouse_instance.foo cdwch-xxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_clickhouse_recover_backup_job.go b/tencentcloud/resource_tc_clickhouse_recover_backup_job.go index 3deefb42ae..98a05a4053 100644 --- a/tencentcloud/resource_tc_clickhouse_recover_backup_job.go +++ b/tencentcloud/resource_tc_clickhouse_recover_backup_job.go @@ -1,15 +1,3 @@ -/* -Provides a resource to recover a clickhouse back up - -Example Usage - -```hcl -resource "tencentcloud_clickhouse_recover_backup_job" "recover_backup_job" { - instance_id = "cdwch-xxxxxx" - back_up_job_id = 1234 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_alarm.go b/tencentcloud/resource_tc_cls_alarm.go index cafa52176d..a478b92378 100644 --- a/tencentcloud/resource_tc_cls_alarm.go +++ b/tencentcloud/resource_tc_cls_alarm.go @@ -1,58 +1,3 @@ -/* -Provides a resource to create a cls alarm - -Example Usage - -```hcl -resource "tencentcloud_cls_alarm" "alarm" { - name = "terraform-alarm-test" - alarm_notice_ids = [ - "notice-0850756b-245d-4bc7-bb27-2a58fffc780b", - ] - alarm_period = 15 - condition = "test" - message_template = "{{.Label}}" - status = true - tags = { - "createdBy" = "terraform" - } - trigger_count = 1 - - alarm_targets { - end_time_offset = 0 - logset_id = "33aaf0ae-6163-411b-a415-9f27450f68db" - number = 1 - query = "status:>500 | select count(*) as errorCounts" - start_time_offset = -15 - topic_id = "88735a07-bea4-4985-8763-e9deb6da4fad" - } - - analysis { - content = "__FILENAME__" - name = "terraform" - type = "field" - - config_info { - key = "QueryIndex" - value = "1" - } - } - - monitor_time { - time = 1 - type = "Period" - } -} -``` - -Import - -cls alarm can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_alarm.alarm alarm_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_alarm_notice.go b/tencentcloud/resource_tc_cls_alarm_notice.go index 1bf5123e44..da31771eb7 100644 --- a/tencentcloud/resource_tc_cls_alarm_notice.go +++ b/tencentcloud/resource_tc_cls_alarm_notice.go @@ -1,40 +1,3 @@ -/* -Provides a resource to create a cls alarm_notice - -Example Usage - -```hcl -resource "tencentcloud_cls_alarm_notice" "alarm_notice" { - name = "terraform-alarm-notice-test" - tags = { - "createdBy" = "terraform" - } - type = "All" - - notice_receivers { - index = 0 - receiver_channels = [ - "Sms", - ] - receiver_ids = [ - 13478043, - 15972111, - ] - receiver_type = "Uin" - start_time = "00:00:00" - end_time = "23:59:59" - } -} -``` - -Import - -cls alarm_notice can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_alarm_notice.alarm_notice alarm_notice_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_ckafka_consumer.go b/tencentcloud/resource_tc_cls_ckafka_consumer.go index df6749840b..f10fdc2b45 100644 --- a/tencentcloud/resource_tc_cls_ckafka_consumer.go +++ b/tencentcloud/resource_tc_cls_ckafka_consumer.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a cls ckafka_consumer - -Example Usage - -```hcl -resource "tencentcloud_cls_ckafka_consumer" "ckafka_consumer" { - compression = 1 - need_content = true - topic_id = "7e34a3a7-635e-4da8-9005-88106c1fde69" - - ckafka { - instance_id = "ckafka-qzoeaqx8" - instance_name = "ckafka-instance" - topic_id = "topic-c6tm4kpm" - topic_name = "name" - vip = "172.16.112.23" - vport = "9092" - } - - content { - enable_tag = true - meta_fields = [ - "__FILENAME__", - "__HOSTNAME__", - "__PKGID__", - "__SOURCE__", - "__TIMESTAMP__", - ] - tag_json_not_tiled = true - timestamp_accuracy = 2 - } -} -``` - -Import - -cls ckafka_consumer can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_ckafka_consumer.ckafka_consumer topic_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_config.go b/tencentcloud/resource_tc_cls_config.go index 60d7539e43..e0a1ae6c8a 100644 --- a/tencentcloud/resource_tc_cls_config.go +++ b/tencentcloud/resource_tc_cls_config.go @@ -1,47 +1,3 @@ -/* -Provides a resource to create a cls config - -Example Usage - -```hcl -resource "tencentcloud_cls_config" "config" { - name = "config_hello" - output = "4d07fba0-b93e-4e0b-9a7f-d58542560bbb" - path = "/var/log/kubernetes" - log_type = "json_log" - extract_rule { - filter_key_regex { - key = "key1" - regex = "value1" - } - filter_key_regex { - key = "key2" - regex = "value2" - } - un_match_up_load_switch = true - un_match_log_key = "config" - backtracking = -1 - } - exclude_paths { - type = "Path" - value = "/data" - } - exclude_paths { - type = "File" - value = "/file" - } -# user_define_rule = "" -} -``` - -Import - -cls config can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_config.config config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_config_attachment.go b/tencentcloud/resource_tc_cls_config_attachment.go index e3b1a1dcdc..00c195b63f 100644 --- a/tencentcloud/resource_tc_cls_config_attachment.go +++ b/tencentcloud/resource_tc_cls_config_attachment.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a cls config attachment - -Example Usage - -```hcl -resource "tencentcloud_cls_config_attachment" "attach" { - config_id = tencentcloud_cls_config.config.id - group_id = "27752a9b-9918-440a-8ee7-9c84a14a47ed" -} - -Import - -cls config_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_config_attachment.attach config_id#group_id -``` - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_config_extra.go b/tencentcloud/resource_tc_cls_config_extra.go index cd851fa9d1..f12de98e4f 100644 --- a/tencentcloud/resource_tc_cls_config_extra.go +++ b/tencentcloud/resource_tc_cls_config_extra.go @@ -1,78 +1,3 @@ -/* -Provides a resource to create a cls config extra - -Example Usage - -```hcl -resource "tencentcloud_cls_logset" "logset" { - logset_name = "tf-config-extra-test" - tags = { - "test" = "test" - } -} - -resource "tencentcloud_cls_topic" "topic" { - auto_split = true - logset_id = tencentcloud_cls_logset.logset.id - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test" - } - topic_name = "tf-config-extra-test" -} - -resource "tencentcloud_cls_machine_group" "group" { - group_name = "tf-config-extra-test" - service_logging = true - auto_update = true - update_end_time = "19:05:00" - update_start_time = "17:05:00" - - machine_group_type { - type = "ip" - values = [ - "192.168.1.1", - "192.168.1.2", - ] - } -} - -resource "tencentcloud_cls_config_extra" "extra" { - name = "helloworld-test" - topic_id = tencentcloud_cls_topic.topic.id - type = "container_file" - log_type = "json_log" - config_flag = "label_k8s" - logset_id = tencentcloud_cls_logset.logset.id - logset_name = tencentcloud_cls_logset.logset.logset_name - topic_name = tencentcloud_cls_topic.topic.topic_name - container_file { - container = "nginx" - file_pattern = "log" - log_path = "/nginx" - namespace = "default" - workload { - container = "nginx" - kind = "deployment" - name = "nginx" - namespace = "default" - } - } - group_id = tencentcloud_cls_machine_group.group.id -} -``` - -Import - -cls config_extra can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_config_extra.config_extra config_extra_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_cos_recharge.go b/tencentcloud/resource_tc_cls_cos_recharge.go index 1947f644a7..37cea1b698 100644 --- a/tencentcloud/resource_tc_cls_cos_recharge.go +++ b/tencentcloud/resource_tc_cls_cos_recharge.go @@ -1,44 +1,3 @@ -/* -Provides a resource to create a cls cos_recharge - -~> **NOTE:** This resource can not be deleted if you run `terraform destroy`. - -Example Usage - -```hcl -resource "tencentcloud_cls_cos_recharge" "cos_recharge" { - bucket = "cos-lock-1308919341" - bucket_region = "ap-guangzhou" - log_type = "minimalist_log" - logset_id = "dd426d1a-95bc-4bca-b8c2-baa169261812" - name = "cos_recharge_for_test" - prefix = "test" - topic_id = "7e34a3a7-635e-4da8-9005-88106c1fde69" - - extract_rule_info { - backtracking = 0 - is_gbk = 0 - json_standard = 0 - keys = [] - metadata_type = 0 - un_match_up_load_switch = false - - filter_key_regex { - key = "__CONTENT__" - regex = "dasd" - } - } -} -``` - -Import - -cls cos_recharge can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_cos_recharge.cos_recharge topic_id#cos_recharge_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_cos_shipper.go b/tencentcloud/resource_tc_cls_cos_shipper.go index 6367aee55b..4e7b425e93 100644 --- a/tencentcloud/resource_tc_cls_cos_shipper.go +++ b/tencentcloud/resource_tc_cls_cos_shipper.go @@ -1,45 +1,3 @@ -/* -Provides a resource to create a cls cos shipper. - -Example Usage - -```hcl -resource "tencentcloud_cls_cos_shipper" "shipper" { - bucket = "preset-scf-bucket-1308919341" - interval = 300 - max_size = 200 - partition = "/%Y/%m/%d/%H/" - prefix = "ap-guangzhou-fffsasad-1649734752" - shipper_name = "ap-guangzhou-fffsasad-1649734752" - topic_id = "4d07fba0-b93e-4e0b-9a7f-d58542560bbb" - - compress { - format = "lzop" - } - - content { - format = "json" - - json { - enable_tag = true - meta_fields = [ - "__FILENAME__", - "__SOURCE__", - "__TIMESTAMP__", - ] - } - } -} -``` - -Import - -cls cos shipper can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cls_cos_shipper.shipper 5d1b7b2a-c163-4c48-bb01-9ee00584d761 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_data_transform.go b/tencentcloud/resource_tc_cls_data_transform.go index c0d1adb47c..21be844e75 100644 --- a/tencentcloud/resource_tc_cls_data_transform.go +++ b/tencentcloud/resource_tc_cls_data_transform.go @@ -1,68 +1,3 @@ -/* -Provides a resource to create a cls data_transform - -Example Usage - -```hcl -resource "tencentcloud_cls_logset" "logset_src" { - logset_name = "tf-example-src" - tags = { - "createdBy" = "terraform" - } -} -resource "tencentcloud_cls_topic" "topic_src" { - topic_name = "tf-example_src" - logset_id = tencentcloud_cls_logset.logset_src.id - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} -resource "tencentcloud_cls_logset" "logset_dst" { - logset_name = "tf-example-dst" - tags = { - "createdBy" = "terraform" - } -} -resource "tencentcloud_cls_topic" "topic_dst" { - topic_name = "tf-example-dst" - logset_id = tencentcloud_cls_logset.logset_dst.id - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} -resource "tencentcloud_cls_data_transform" "data_transform" { - func_type = 1 - src_topic_id = tencentcloud_cls_topic.topic_src.id - name = "iac-test-src" - etl_content = "ext_sep(\"content\", \"f1, f2, f3\", sep=\",\", quote=\"\", restrict=False, mode=\"overwrite\")fields_drop(\"content\")" - task_type = 3 - enable_flag = 1 - dst_resources { - topic_id = tencentcloud_cls_topic.topic_dst.id - alias = "iac-test-dst" - - } -} -``` - -Import - -cls data_transform can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_data_transform.data_transform data_transform_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_export.go b/tencentcloud/resource_tc_cls_export.go index a5b318793f..e9913c5e14 100644 --- a/tencentcloud/resource_tc_cls_export.go +++ b/tencentcloud/resource_tc_cls_export.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a cls export - -Example Usage - -```hcl -resource "tencentcloud_cls_export" "export" { - topic_id = "7e34a3a7-635e-4da8-9005-88106c1fde69" - log_count = 2 - query = "select count(*) as count" - from = 1607499107000 - to = 1607499108000 - order = "desc" - format = "json" -} - -``` - -Import - -cls export can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_export.export topic_id#export_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_index.go b/tencentcloud/resource_tc_cls_index.go index e2daf8e014..a5c0d8a1bd 100644 --- a/tencentcloud/resource_tc_cls_index.go +++ b/tencentcloud/resource_tc_cls_index.go @@ -1,69 +1,3 @@ -/* -Provides a resource to create a cls index. - -Example Usage - -```hcl -resource "tencentcloud_cls_index" "index" { - topic_id = "0937e56f-4008-49d2-ad2d-69c52a9f11cc" - - rule { - full_text { - case_sensitive = true - tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" - contain_z_h = true - } - - key_value { - case_sensitive = true - key_values { - key = "hello" - value { - contain_z_h = true - sql_flag = true - tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" - type = "text" - } - } - - key_values { - key = "world" - value { - contain_z_h = true - sql_flag = true - tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" - type = "text" - } - } - } - - tag { - case_sensitive = true - key_values { - key = "terraform" - value { - contain_z_h = true - sql_flag = true - tokenizer = "@&?|#()='\",;:<>[]{}/ \n\t\r\\" - type = "text" - } - } - } - } - status = true - include_internal_fields = true - metadata_flag = 1 -} -``` - -Import - -cls cos index can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cls_index.index 0937e56f-4008-49d2-ad2d-69c52a9f11cc -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_kafka_recharge.go b/tencentcloud/resource_tc_cls_kafka_recharge.go index aa89d513f4..79cb42c2be 100644 --- a/tencentcloud/resource_tc_cls_kafka_recharge.go +++ b/tencentcloud/resource_tc_cls_kafka_recharge.go @@ -1,53 +1,3 @@ -/* -Provides a resource to create a cls kafka_recharge - -Example Usage - -```hcl -resource "tencentcloud_cls_logset" "logset" { - logset_name = "tf-example-logset" - tags = { - "createdBy" = "terraform" - } -} -resource "tencentcloud_cls_topic" "topic" { - topic_name = "tf-example-topic" - logset_id = tencentcloud_cls_logset.logset.id - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} - -resource "tencentcloud_cls_kafka_recharge" "kafka_recharge" { - topic_id = tencentcloud_cls_topic.topic.id - name = "tf-example-recharge" - kafka_type = 0 - offset = -2 - is_encryption_addr =true - user_kafka_topics = "recharge" - kafka_instance = "ckafka-qzoeaqx8" - log_recharge_rule { - recharge_type = "json_log" - encoding_format = 0 - default_time_switch = true - } -} - -``` - -Import - -cls kafka_recharge can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_kafka_recharge.kafka_recharge kafka_recharge_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_logset.go b/tencentcloud/resource_tc_cls_logset.go index bff503dc3d..2727a7f19a 100644 --- a/tencentcloud/resource_tc_cls_logset.go +++ b/tencentcloud/resource_tc_cls_logset.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a cls logset - -Example Usage - -```hcl -resource "tencentcloud_cls_logset" "logset" { - logset_name = "demo" - tags = { - "createdBy" = "terraform" - } -} - -``` -Import - -cls logset can be imported using the id, e.g. -``` -$ terraform import tencentcloud_cls_logset.logset logset_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_machine_group.go b/tencentcloud/resource_tc_cls_machine_group.go index 64764ce5a6..d8f1ba6b9a 100644 --- a/tencentcloud/resource_tc_cls_machine_group.go +++ b/tencentcloud/resource_tc_cls_machine_group.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a cls machine group. - -Example Usage - -```hcl -resource "tencentcloud_cls_machine_group" "group" { - group_name = "group" - service_logging = true - tags = { - "test" = "test1" - } - update_end_time = "19:05:40" - update_start_time = "17:05:40" - - machine_group_type { - type = "ip" - values = [ - "192.168.1.1", - "192.168.1.2", - ] - } -} -``` - -Import - -cls machine group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cls_machine_group.group caf168e7-32cd-4ac6-bf89-1950a760e09c -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_scheduled_sql.go b/tencentcloud/resource_tc_cls_scheduled_sql.go index d9dff8f6b5..2159ca8f27 100644 --- a/tencentcloud/resource_tc_cls_scheduled_sql.go +++ b/tencentcloud/resource_tc_cls_scheduled_sql.go @@ -1,58 +1,3 @@ -/* -Provides a resource to create a cls scheduled_sql - -Example Usage - -```hcl -resource "tencentcloud_cls_logset" "logset" { - logset_name = "tf-example-logset" - tags = { - "createdBy" = "terraform" - } -} -resource "tencentcloud_cls_topic" "topic" { - topic_name = "tf-example-topic" - logset_id = tencentcloud_cls_logset.logset.id - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} -resource "tencentcloud_cls_scheduled_sql" "scheduled_sql" { - src_topic_id = tencentcloud_cls_topic.topic.id - name = "tf-example-task" - enable_flag = 1 - dst_resource { - topic_id = tencentcloud_cls_topic.topic.id - region = "ap-guangzhou" - biz_type = 0 - metric_name = "test" - - } - scheduled_sql_content = "xxx" - process_start_time = 1690515360000 - process_type = 1 - process_period = 10 - process_time_window = "@m-15m,@m" - process_delay = 5 - src_topic_region = "ap-guangzhou" - process_end_time = 1690515360000 - syntax_rule = 0 -} -``` - -Import - -cls scheduled_sql can be imported using the id, e.g. - -``` -terraform import tencentcloud_cls_scheduled_sql.scheduled_sql scheduled_sql_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cls_topic.go b/tencentcloud/resource_tc_cls_topic.go index 3ac9cf9d4e..6e3ac30b78 100644 --- a/tencentcloud/resource_tc_cls_topic.go +++ b/tencentcloud/resource_tc_cls_topic.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a cls topic. - -Example Usage - -```hcl -resource "tencentcloud_cls_topic" "topic" { - topic_name = "topic" - logset_id = "5cd3a17e-fb0b-418c-afd7-77b365397426" - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} -``` - -Import - -cls topic can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cls_topic.topic 2f5764c1-c833-44c5-84c7-950979b2a278 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_container_cluster.go b/tencentcloud/resource_tc_container_cluster.go index 0266784136..35a307fbd1 100644 --- a/tencentcloud/resource_tc_container_cluster.go +++ b/tencentcloud/resource_tc_container_cluster.go @@ -1,40 +1,3 @@ -/* -Provides a TencentCloud Container Cluster resource. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_cluster. - -Example Usage - -```hcl -resource "tencentcloud_container_cluster" "foo" { - cluster_name = "terraform-acc-test" - cpu = 1 - mem = 1 - os_name = "ubuntu16.04.1 LTSx86_64" - bandwidth = 1 - bandwidth_type = "PayByHour" - require_wan_ip = 1 - subnet_id = "subnet-abcdabc" - is_vpc_gateway = 0 - storage_size = 0 - root_size = 50 - goods_num = 1 - password = "Admin12345678" - vpc_id = "vpc-abcdabc" - cluster_cidr = "10.0.2.0/24" - ignore_cluster_cidr_conflict = 0 - cvm_type = "PayByHour" - cluster_desc = "foofoofoo" - period = 1 - zone_id = 100004 - instance_type = "S2.SMALL1" - mount_target = "" - docker_graph_path = "" - instance_name = "bar-vm" - cluster_version = "1.7.8" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_container_cluster_instance.go b/tencentcloud/resource_tc_container_cluster_instance.go index 1cc487ed20..7da70012db 100644 --- a/tencentcloud/resource_tc_container_cluster_instance.go +++ b/tencentcloud/resource_tc_container_cluster_instance.go @@ -1,32 +1,3 @@ -/* -Provides a TencentCloud Container Cluster Instance resource. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_scale_worker. - -Example Usage - -```hcl -resource "tencentcloud_container_cluster_instance" "bar_instance" { - cpu = 1 - mem = 1 - bandwidth = 1 - bandwidth_type = "PayByHour" - require_wan_ip = 1 - is_vpc_gateway = 0 - storage_size = 10 - root_size = 50 - password = "Admin12345678" - cvm_type = "PayByMonth" - period = 1 - zone_id = 100004 - instance_type = "CVM.S2" - mount_target = "/data" - docker_graph_path = "" - subnet_id = "subnet-abcdedf" - cluster_id = "cls-abcdef" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_batch.go b/tencentcloud/resource_tc_cos_batch.go index 320569f6eb..e18c438598 100644 --- a/tencentcloud/resource_tc_cos_batch.go +++ b/tencentcloud/resource_tc_cos_batch.go @@ -1,53 +1,3 @@ -/* -Provides a resource to create a cos bucket batch. - -Example Usage - -```hcl -resource "tencentcloud_cos_batch" "cos_batch" { - uin = "100022975249" - appid = "1308919341" - confirmation_required = true - description = "cos_batch" - priority = 1 - status = "Cancelled" - role_arn = "qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole" - manifest { - location { - etag = "64357de8fd75a3abae2200135a2c9627" - object_arn = "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json" - } - spec { - format = "COSInventoryReport_CSV_V1" - } - } - operation { - cos_put_object_copy { - access_control_directive = "Copy" - metadata_directive = "Copy" - prefix_replace = false - storage_class = "STANDARD" - tagging_directive = "Copy" - target_resource = "qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341" - } - } - report { - bucket = "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341" - enabled = "true" - format = "Report_CSV_V1" - report_scope = "AllTasks" - } -} -``` - -Import - -cos bucket batch can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cos_batch.cos_batch ${uin}#${appid}#{job_id} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket.go b/tencentcloud/resource_tc_cos_bucket.go index b3262bea97..391c72430c 100644 --- a/tencentcloud/resource_tc_cos_bucket.go +++ b/tencentcloud/resource_tc_cos_bucket.go @@ -1,231 +1,3 @@ -/* -Provides a COS resource to create a COS bucket and set its attributes. - -Example Usage - -Private Bucket - -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id -} - -resource "tencentcloud_cos_bucket" "private_sbucket" { - bucket = "private-bucket-${local.app_id}" - acl = "private" -} -``` - -Creation of multiple available zone bucket - -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id -} - -resource "tencentcloud_cos_bucket" "multi_zone_bucket" { - bucket = "multi-zone-bucket-${local.app_id}" - acl = "private" - multi_az = true - versioning_enable = true - force_clean = true -} -``` - -Using verbose acl - -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id -} - -resource "tencentcloud_cos_bucket" "bucket_with_acl" { - bucket = "bucketwith-acl-${local.app_id}" - # NOTE: Specify the acl_body by the priority sequence of permission and user type with the following sequence: `CanonicalUser with READ`, `CanonicalUser with WRITE`, `CanonicalUser with FULL_CONTROL`, `CanonicalUser with WRITE_ACP`, `CanonicalUser with READ_ACP`, then specify the `Group` of permissions same as `CanonicalUser`. - acl_body = < - - qcs::cam::uin/100022975249:uin/100022975249 - qcs::cam::uin/100022975249:uin/100022975249 - - - - - http://cam.qcloud.com/groups/global/AllUsers - - READ - - - - qcs::cam::uin/100022975249:uin/100022975249 - qcs::cam::uin/100022975249:uin/100022975249 - - FULL_CONTROL - - - - qcs::cam::uin/100022975249:uin/100022975249 - qcs::cam::uin/100022975249:uin/100022975249 - - WRITE_ACP - - - - http://cam.qcloud.com/groups/global/AllUsers - - READ_ACP - - - - http://cam.qcloud.com/groups/global/AllUsers - - WRITE_ACP - - - - qcs::cam::uin/100022975249:uin/100022975249 - qcs::cam::uin/100022975249:uin/100022975249 - - READ - - - - qcs::cam::uin/100022975249:uin/100022975249 - qcs::cam::uin/100022975249:uin/100022975249 - - WRITE - - - - http://cam.qcloud.com/groups/global/AllUsers - - FULL_CONTROL - - - -EOF -} -``` - -Static Website - -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id -} - -resource "tencentcloud_cos_bucket" "bucket_with_static_website" { - bucket = "bucket-with-static-website-${local.app_id}" - - website { - index_document = "index.html" - error_document = "error.html" - } -} - -output "endpoint_test" { - value = tencentcloud_cos_bucket.bucket_with_static_website.website.0.endpoint -} -``` - -Using CORS - -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id -} - -resource "tencentcloud_cos_bucket" "bucket_with_cors" { - bucket = "bucket-with-cors-${local.app_id}" - acl = "public-read-write" - - cors_rules { - allowed_origins = ["http://*.abc.com"] - allowed_methods = ["PUT", "POST"] - allowed_headers = ["*"] - max_age_seconds = 300 - expose_headers = ["Etag"] - } -} -``` - -Using object lifecycle - -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id -} - -resource "tencentcloud_cos_bucket" "bucket_with_lifecycle" { - bucket = "bucket-with-lifecycle-${local.app_id}" - acl = "public-read-write" - - lifecycle_rules { - filter_prefix = "path1/" - - transition { - days = 30 - storage_class = "STANDARD_IA" - } - - expiration { - days = 90 - } - } -} -``` - -Using replication -```hcl -data "tencentcloud_user_info" "info" {} - -locals { - app_id = data.tencentcloud_user_info.info.app_id - uin = data.tencentcloud_user_info.info.uin - owner_uin = data.tencentcloud_user_info.info.owner_uin - region = "ap-guangzhou" -} - -resource "tencentcloud_cos_bucket" "bucket_replicate" { - bucket = "bucket-replicate-${local.app_id}" - acl = "private" - versioning_enable = true -} - -resource "tencentcloud_cos_bucket" "bucket_with_replication" { - bucket = "bucket-with-replication-${local.app_id}" - acl = "private" - versioning_enable = true - replica_role = "qcs::cam::uin/${local.owner_uin}:uin/${local.uin}" - replica_rules { - id = "test-rep1" - status = "Enabled" - prefix = "dist" - destination_bucket = "qcs::cos:${local.region}::${tencentcloud_cos_bucket.bucket_replicate.bucket}" - } -} -``` - -Import - -COS bucket can be imported, e.g. - -``` -$ terraform import tencentcloud_cos_bucket.bucket bucket-name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_domain_certificate_attachment.go b/tencentcloud/resource_tc_cos_bucket_domain_certificate_attachment.go index 55b14aaae1..9c6a971d27 100644 --- a/tencentcloud/resource_tc_cos_bucket_domain_certificate_attachment.go +++ b/tencentcloud/resource_tc_cos_bucket_domain_certificate_attachment.go @@ -1,26 +1,3 @@ -/* -Provides a resource to attach/detach the corresponding certificate for the domain name in specified cos bucket. - -Example Usage - -```hcl - -resource "tencentcloud_cos_bucket_domain_certificate_attachment" "foo" { - bucket = "" - domain_certificate { - domain = "domain_name" - certificate { - cert_type = "CustomCert" - custom_cert { - cert = "===CERTIFICATE===" - private_key = "===PRIVATE_KEY===" - } - } - } -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_generate_inventory_immediately_operation.go b/tencentcloud/resource_tc_cos_bucket_generate_inventory_immediately_operation.go index e52284facf..b7a7e609b7 100644 --- a/tencentcloud/resource_tc_cos_bucket_generate_inventory_immediately_operation.go +++ b/tencentcloud/resource_tc_cos_bucket_generate_inventory_immediately_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to generate a cos bucket inventory immediately - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket_generate_inventory_immediately_operation" "generate_inventory_immediately" { - inventory_id = "test" - bucket = "keep-test-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_inventory.go b/tencentcloud/resource_tc_cos_bucket_inventory.go index 8808c8172e..51600c8657 100644 --- a/tencentcloud/resource_tc_cos_bucket_inventory.go +++ b/tencentcloud/resource_tc_cos_bucket_inventory.go @@ -1,43 +1,3 @@ -/* -Provides a resource to create a cos bucket_inventory - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket_inventory" "bucket_inventory" { - name = "test123" - bucket = "keep-test-xxxxxx" - is_enabled = "true" - included_object_versions = "Current" - optional_fields { - fields = ["Size", "ETag"] - } - filter { - period { - start_time = "1687276800" - } - } - schedule { - frequency = "Weekly" - } - destination { - bucket = "qcs::cos:ap-guangzhou::keep-test-xxxxxx" - account_id = "" - format = "CSV" - prefix = "cos_bucket_inventory" - - } -} -``` - -Import - -cos bucket_inventory can be imported using the id, e.g. - -``` -terraform import tencentcloud_cos_bucket_inventory.bucket_inventory bucket_inventory_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_object.go b/tencentcloud/resource_tc_cos_bucket_object.go index b242ea4c92..fe12d4795a 100644 --- a/tencentcloud/resource_tc_cos_bucket_object.go +++ b/tencentcloud/resource_tc_cos_bucket_object.go @@ -1,33 +1,3 @@ -/* -Provides a COS object resource to put an object(content or file) to the bucket. - -Example Usage - -Uploading a file to a bucket - -```hcl -resource "tencentcloud_cos_bucket_object" "myobject" { - bucket = "mycos-1258798060" - key = "new_object_key" - source = "path/to/file" -} -``` - -Uploading a content to a bucket - -```hcl -resource "tencentcloud_cos_bucket" "mycos" { - bucket = "mycos-1258798060" - acl = "public-read" -} - -resource "tencentcloud_cos_bucket_object" "myobject" { - bucket = tencentcloud_cos_bucket.mycos.bucket - key = "new_object_key" - content = "the content that you want to upload." -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_policy.go b/tencentcloud/resource_tc_cos_bucket_policy.go index 2961d99c3a..9e8c9a946b 100644 --- a/tencentcloud/resource_tc_cos_bucket_policy.go +++ b/tencentcloud/resource_tc_cos_bucket_policy.go @@ -1,45 +1,3 @@ -/* -Provides a COS resource to create a COS bucket policy and set its attributes. - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket_policy" "cos_policy" { - bucket = "mycos-1258798060" - - policy = <:uin/" - ] - }, - "Action": [ - "name/cos:DeleteBucket", - "name/cos:PutBucketACL" - ], - "Effect": "allow", - "Resource": [ - "qcs::cos::uid/:/*" - ] - } - ] -} -EOF -} -``` - -Import - -COS bucket policy can be imported, e.g. - -``` -$ terraform import tencentcloud_cos_bucket_policy.bucket bucket-name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_referer.go b/tencentcloud/resource_tc_cos_bucket_referer.go index 4bd60160ee..81a9b12c60 100644 --- a/tencentcloud/resource_tc_cos_bucket_referer.go +++ b/tencentcloud/resource_tc_cos_bucket_referer.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a cos bucket_referer - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket_referer" "bucket_referer" { - bucket = "mycos-1258798060" - status = "Enabled" - referer_type = "Black-List" - domain_list = ["127.0.0.1", "terraform.com"] - empty_refer_configuration = "Allow" -} -``` - -Import - -cos bucket_referer can be imported using the id, e.g. - -``` -terraform import tencentcloud_cos_bucket_referer.bucket_referer bucket_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_bucket_version.go b/tencentcloud/resource_tc_cos_bucket_version.go index f77dbfa2c3..156bf2bac3 100644 --- a/tencentcloud/resource_tc_cos_bucket_version.go +++ b/tencentcloud/resource_tc_cos_bucket_version.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cos bucket_version - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket_version" "bucket_version" { - bucket = "mycos-1258798060" - status = "Enabled" -} -``` - -Import - -cos bucket_version can be imported using the id, e.g. - -``` -terraform import tencentcloud_cos_bucket_version.bucket_version bucket_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_object_abort_multipart_upload_operation.go b/tencentcloud/resource_tc_cos_object_abort_multipart_upload_operation.go index 299a82791d..4bdded2107 100644 --- a/tencentcloud/resource_tc_cos_object_abort_multipart_upload_operation.go +++ b/tencentcloud/resource_tc_cos_object_abort_multipart_upload_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to abort multipart upload - -Example Usage - -```hcl -resource "tencentcloud_cos_object_abort_multipart_upload_operation" "abort_multipart_upload" { - bucket = "keep-test-xxxxxx" - key = "object" - upload_id = "xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_object_copy_operation.go b/tencentcloud/resource_tc_cos_object_copy_operation.go index dddc6f1f0a..bafeae97b1 100644 --- a/tencentcloud/resource_tc_cos_object_copy_operation.go +++ b/tencentcloud/resource_tc_cos_object_copy_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to copy object - -Example Usage - -```hcl -resource "tencentcloud_cos_object_copy_operation" "object_copy" { - bucket = "keep-copy-xxxxxxx" - key = "copy-acl.txt" - source_url = "keep-test-xxxxxx.cos.ap-guangzhou.myqcloud.com/acl.txt" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_object_download_operation.go b/tencentcloud/resource_tc_cos_object_download_operation.go index 775472940d..d634f67e30 100644 --- a/tencentcloud/resource_tc_cos_object_download_operation.go +++ b/tencentcloud/resource_tc_cos_object_download_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to download object - -Example Usage - -```hcl -resource "tencentcloud_cos_object_download_operation" "object_download" { - bucket = "xxxxxxx" - key = "test.txt" - download_path = "/tmp/test.txt" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cos_object_restore_operation.go b/tencentcloud/resource_tc_cos_object_restore_operation.go index e0c1879c67..7981b0560d 100644 --- a/tencentcloud/resource_tc_cos_object_restore_operation.go +++ b/tencentcloud/resource_tc_cos_object_restore_operation.go @@ -1,17 +1,3 @@ -/* -Provides a resource to restore object - -Example Usage - -```hcl -resource "tencentcloud_cos_object_restore_operation" "object_restore" { - bucket = "keep-test-1308919341" - key = "test-restore.txt" - tier = "Expedited" - days = 2 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_authenticate_domain_owner_operation.go b/tencentcloud/resource_tc_css_authenticate_domain_owner_operation.go index e848a785b8..544698becc 100644 --- a/tencentcloud/resource_tc_css_authenticate_domain_owner_operation.go +++ b/tencentcloud/resource_tc_css_authenticate_domain_owner_operation.go @@ -1,24 +1,3 @@ -/* -Provides a resource to verify the domain ownership by specified way when DomainNeedVerifyOwner failed in domain creation. - -Example Usage -dnsCheck way: -```hcl -resource "tencentcloud_css_authenticate_domain_owner_operation" "dnsCheck" { - domain_name = "your_domain_name" - verify_type = "dnsCheck" -} -``` - -fileCheck way: -```hcl -resource "tencentcloud_css_authenticate_domain_owner_operation" "fileCheck" { - domain_name = "your_domain_name" - verify_type = "fileCheck" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_backup_stream.go b/tencentcloud/resource_tc_css_backup_stream.go index 855e946a42..998e98bcff 100644 --- a/tencentcloud/resource_tc_css_backup_stream.go +++ b/tencentcloud/resource_tc_css_backup_stream.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a css backup_stream - -~> **NOTE:** This resource is only valid when the push stream. When the push stream ends, it will be deleted. - -Example Usage - -```hcl -resource "tencentcloud_css_backup_stream" "backup_stream" { - push_domain_name = "177154.push.tlivecloud.com" - app_name = "live" - stream_name = "1308919341_test" - upstream_sequence = "2209501773993286139" -} -``` - -Import - -css backup_stream can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_backup_stream.backup_stream pushDomainName#appName#streamName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_callback_rule_attachment.go b/tencentcloud/resource_tc_css_callback_rule_attachment.go index b62b57866d..a1206a4d01 100644 --- a/tencentcloud/resource_tc_css_callback_rule_attachment.go +++ b/tencentcloud/resource_tc_css_callback_rule_attachment.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a css callback_rule - -Example Usage - -```hcl -resource "tencentcloud_css_callback_rule_attachment" "callback_rule" { - domain_name = "177154.push.tlivecloud.com" - template_id = 434039 - app_name = "live" -} -``` - -Import - -css callback_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_callback_rule_attachment.callback_rule templateId#domainName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_callback_template.go b/tencentcloud/resource_tc_css_callback_template.go index f086b48797..b7650b7d1f 100644 --- a/tencentcloud/resource_tc_css_callback_template.go +++ b/tencentcloud/resource_tc_css_callback_template.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a css callback_template - -Example Usage - -```hcl -resource "tencentcloud_css_callback_template" "callback_template" { - template_name = "tf-test" - description = "this is demo" - stream_begin_notify_url = "http://www.yourdomain.com/api/notify?action=streamBegin" - stream_end_notify_url = "http://www.yourdomain.com/api/notify?action=streamEnd" - record_notify_url = "http://www.yourdomain.com/api/notify?action=record" - snapshot_notify_url = "http://www.yourdomain.com/api/notify?action=snapshot" - porn_censorship_notify_url = "http://www.yourdomain.com/api/notify?action=porn" - callback_key = "adasda131312" - push_exception_notify_url = "http://www.yourdomain.com/api/notify?action=pushException" -} -``` - -Import - -css callback_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_callback_template.callback_template templateId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_domain.go b/tencentcloud/resource_tc_css_domain.go index cb4b1f2b56..b170b73de1 100644 --- a/tencentcloud/resource_tc_css_domain.go +++ b/tencentcloud/resource_tc_css_domain.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a css domain - -Example Usage - -```hcl -resource "tencentcloud_css_domain" "domain" { - domain_name = "iac-tf.cloud" - domain_type = 0 - play_type = 1 - is_delay_live = 0 - is_mini_program_live = 0 - verify_owner_type = "dbCheck" -} -``` - -Import - -css domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_domain.domain domain_name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_domain_referer.go b/tencentcloud/resource_tc_css_domain_referer.go index cee0d6b305..d2eaa95cb6 100644 --- a/tencentcloud/resource_tc_css_domain_referer.go +++ b/tencentcloud/resource_tc_css_domain_referer.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a css domain_referer - -Example Usage - -```hcl -resource "tencentcloud_css_domain_referer" "domain_referer" { - allow_empty = 1 - domain_name = "test122.jingxhu.top" - enable = 0 - rules = "example.com" - type = 1 -} -``` - -Import - -css domain_referer can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_domain_referer.domain_referer domainName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_enable_optimal_switching.go b/tencentcloud/resource_tc_css_enable_optimal_switching.go index 01a65ae518..970f93e868 100644 --- a/tencentcloud/resource_tc_css_enable_optimal_switching.go +++ b/tencentcloud/resource_tc_css_enable_optimal_switching.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a css enable_optimal_switching - -~> **NOTE:** This resource is only valid when the push stream. When the push stream ends, it will be deleted. - -Example Usage - -```hcl -resource "tencentcloud_css_enable_optimal_switching" "enable_optimal_switching" { - stream_name = "1308919341_test" - enable_switch = 1 - host_group_name = "test-group" -} -``` - -Import - -css domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_enable_optimal_switching.enable_optimal_switching streamName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_live_transcode_rule_attachment.go b/tencentcloud/resource_tc_css_live_transcode_rule_attachment.go index e73569b8c7..f4696da2d9 100644 --- a/tencentcloud/resource_tc_css_live_transcode_rule_attachment.go +++ b/tencentcloud/resource_tc_css_live_transcode_rule_attachment.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a css live_transcode_rule_attachment - -Example Usage - -```hcl -resource "tencentcloud_css_pull_stream_task" "task" { - source_type = "%s" - source_urls = ["%s"] - domain_name = "%s" - app_name = "%s" - stream_name = "%s" - start_time = "%s" - end_time = "%s" - operator = "%s" - comment = "This is a demo." -} - -resource "tencentcloud_css_live_transcode_template" "temp" { - template_name = "xxx" - acodec = "aac" - video_bitrate = 100 - vcodec = "origin" - description = "This_is_a_tf_test_temp." - need_video = 1 - need_audio = 1 -} - -resource "tencentcloud_css_live_transcode_rule_attachment" "live_transcode_rule_attachment" { - domain_name = tencentcloud_css_pull_stream_task.task.domain_name - app_name = tencentcloud_css_pull_stream_task.task.app_name - stream_name = tencentcloud_css_pull_stream_task.task.stream_name - template_id = tencentcloud_css_live_transcode_template.temp.id -} - -``` -Import - -css live_transcode_rule_attachment can be imported using the id, e.g. -``` -$ terraform import tencentcloud_css_live_transcode_rule_attachment.live_transcode_rule_attachment liveTranscodeRuleAttachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_live_transcode_template.go b/tencentcloud/resource_tc_css_live_transcode_template.go index 512b973fbf..01dbdc3868 100644 --- a/tencentcloud/resource_tc_css_live_transcode_template.go +++ b/tencentcloud/resource_tc_css_live_transcode_template.go @@ -1,42 +1,3 @@ -/* -Provides a resource to create a css live_transcode_template - -Example Usage - -```hcl -resource "tencentcloud_css_live_transcode_template" "live_transcode_template" { - template_name = "template_name" - acodec = "aac" - audio_bitrate = 128 - video_bitrate = 100 - vcodec = "origin" - description = "This_is_a_tf_test_temp." - need_video = 1 - width = 0 - need_audio = 1 - height = 0 - fps = 0 - gop = 2 - rotate = 0 - profile = "baseline" - bitrate_to_orig = 0 - height_to_orig = 0 - fps_to_orig = 0 - ai_trans_code = 0 - adapt_bitrate_percent = 0 - short_edge_as_height = 0 - drm_type = "fairplay" - drm_tracks = "SD" -} - -``` -Import - -css live_transcode_template can be imported using the id, e.g. -``` -$ terraform import tencentcloud_css_live_transcode_template.live_transcode_template liveTranscodeTemplate_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_pad_rule_attachment.go b/tencentcloud/resource_tc_css_pad_rule_attachment.go index 94c8ed9814..e5a1443b59 100644 --- a/tencentcloud/resource_tc_css_pad_rule_attachment.go +++ b/tencentcloud/resource_tc_css_pad_rule_attachment.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a css pad_rule_attachment - -Example Usage - -```hcl -resource "tencentcloud_css_pad_rule_attachment" "pad_rule_attachment" { - domain_name = "177154.push.tlivecloud.com" - template_id = 17067 - app_name = "qqq" - stream_name = "ppp" -} -``` - -Import - -css pad_rule_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_pad_rule_attachment.pad_rule_attachment templateId#domainName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_pad_template.go b/tencentcloud/resource_tc_css_pad_template.go index aff859ebf4..94fe093fe5 100644 --- a/tencentcloud/resource_tc_css_pad_template.go +++ b/tencentcloud/resource_tc_css_pad_template.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a css pad_template - -Example Usage - -```hcl -resource "tencentcloud_css_pad_template" "pad_template" { - description = "pad template" - max_duration = 120000 - template_name = "tf-pad" - type = 1 - url = "https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg" - wait_duration = 2000 -} -``` - -Import - -css pad_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_pad_template.pad_template templateId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_play_auth_key_config.go b/tencentcloud/resource_tc_css_play_auth_key_config.go index 8bcd566857..d8d6dd50c1 100644 --- a/tencentcloud/resource_tc_css_play_auth_key_config.go +++ b/tencentcloud/resource_tc_css_play_auth_key_config.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a css play_auth_key_config - -Example Usage - -```hcl -resource "tencentcloud_css_play_auth_key_config" "play_auth_key_config" { - domain_name = "your_play_domain_name" - enable = 1 - auth_key = "testauthkey" - auth_delta = 3600 - auth_back_key = "testbackkey" -} -``` - -Import - -css play_auth_key_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_play_auth_key_config.play_auth_key_config play_auth_key_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_play_domain_cert_attachment.go b/tencentcloud/resource_tc_css_play_domain_cert_attachment.go index 9814ff0d49..16b5ad53a3 100644 --- a/tencentcloud/resource_tc_css_play_domain_cert_attachment.go +++ b/tencentcloud/resource_tc_css_play_domain_cert_attachment.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a css play_domain_cert_attachment. This resource is used for binding the play domain and specified certification together. - -Example Usage - -```hcl -data "tencentcloud_ssl_certificates" "foo" { - name = "your_ssl_cert" -} - -resource "tencentcloud_css_play_domain_cert_attachment" "play_domain_cert_attachment" { - cloud_cert_id = data.tencentcloud_ssl_certificates.foo.certificates.0.id - domain_info { - domain_name = "your_domain_name" - status = 1 - } -} -``` - -Import - -css play_domain_cert_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_play_domain_cert_attachment.play_domain_cert_attachment domainName#cloudCertId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_pull_stream_task.go b/tencentcloud/resource_tc_css_pull_stream_task.go index 108bf4f129..f1762b88f3 100644 --- a/tencentcloud/resource_tc_css_pull_stream_task.go +++ b/tencentcloud/resource_tc_css_pull_stream_task.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a css pull_stream_task - -Example Usage - -```hcl -resource "tencentcloud_css_pull_stream_task" "pull_stream_task" { - source_type = "source_type" - source_urls = ["source_urls"] - domain_name = "domain_name" - app_name = "app_name" - stream_name = "stream_name" - start_time = "2022-11-16T22:09:28Z" - end_time = "2022-11-16T22:09:28Z" - operator = "admin" - comment = "comment." - } - -``` -Import - -css pull_stream_task can be imported using the id, e.g. -``` -$ terraform import tencentcloud_css_pull_stream_task.pull_stream_task pullStreamTask_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_pull_stream_task_restart.go b/tencentcloud/resource_tc_css_pull_stream_task_restart.go index 2b63e692fa..a76884ddbe 100644 --- a/tencentcloud/resource_tc_css_pull_stream_task_restart.go +++ b/tencentcloud/resource_tc_css_pull_stream_task_restart.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a css restart_push_task - -Example Usage - -```hcl -resource "tencentcloud_css_pull_stream_task_restart" "restart_push_task" { - task_id = "3573" - operator = "tf-test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_push_auth_key_config.go b/tencentcloud/resource_tc_css_push_auth_key_config.go index d4ee702dc8..060c0b0629 100644 --- a/tencentcloud/resource_tc_css_push_auth_key_config.go +++ b/tencentcloud/resource_tc_css_push_auth_key_config.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a css push_auth_key_config - -Example Usage - -```hcl -resource "tencentcloud_css_push_auth_key_config" "push_auth_key_config" { - domain_name = "your_push_domain_name" - enable = 1 - master_auth_key = "testmasterkey" - backup_auth_key = "testbackkey" - auth_delta = 1800 -} -``` - -Import - -css push_auth_key_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_push_auth_key_config.push_auth_key_config push_auth_key_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_record_rule_attachment.go b/tencentcloud/resource_tc_css_record_rule_attachment.go index aa4a1939f1..ddeb0a7874 100644 --- a/tencentcloud/resource_tc_css_record_rule_attachment.go +++ b/tencentcloud/resource_tc_css_record_rule_attachment.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a css record_rule - -Example Usage - -```hcl -resource "tencentcloud_css_record_rule_attachment" "record_rule" { - domain_name = "177154.push.tlivecloud.com" - template_id = 1262818 - app_name = "qqq" - stream_name = "ppp" -} -``` - -Import - -css record_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_record_rule_attachment.record_rule templateId#domainName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_snapshot_rule_attachment.go b/tencentcloud/resource_tc_css_snapshot_rule_attachment.go index 5244248704..826b67fa0b 100644 --- a/tencentcloud/resource_tc_css_snapshot_rule_attachment.go +++ b/tencentcloud/resource_tc_css_snapshot_rule_attachment.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a css snapshot_rule - -Example Usage - -```hcl -resource "tencentcloud_css_snapshot_rule_attachment" "snapshot_rule" { - domain_name = "177154.push.tlivecloud.com" - template_id = 12838073 - app_name = "qqq" - stream_name = "ppp" -} -``` - -Import - -css snapshot_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_snapshot_rule_attachment.snapshot_rule templateId#domainName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_snapshot_template.go b/tencentcloud/resource_tc_css_snapshot_template.go index 3a3c5c6070..8105b3f807 100644 --- a/tencentcloud/resource_tc_css_snapshot_template.go +++ b/tencentcloud/resource_tc_css_snapshot_template.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a css snapshot_template - -Example Usage - -```hcl -resource "tencentcloud_css_snapshot_template" "snapshot_template" { - cos_app_id = 1308919341 - cos_bucket = "keep-bucket" - cos_region = "ap-guangzhou" - description = "snapshot template" - height = 0 - porn_flag = 0 - snapshot_interval = 2 - template_name = "tf-snapshot-template" - width = 0 -} -``` - -Import - -css snapshot_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_snapshot_template.snapshot_template templateId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_start_stream_monitor.go b/tencentcloud/resource_tc_css_start_stream_monitor.go index cb38144132..e391a185ec 100644 --- a/tencentcloud/resource_tc_css_start_stream_monitor.go +++ b/tencentcloud/resource_tc_css_start_stream_monitor.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a css start_stream_monitor - -Example Usage - -```hcl -resource "tencentcloud_css_start_stream_monitor" "start_stream_monitor" { - monitor_id = "3d5738dd-1ca2-4601-a6e9-004c5ec75c0b" - audible_input_index_list = [1] -} -``` - -Import - -css start_stream_monitor can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_start_stream_monitor.start_stream_monitor start_stream_monitor_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_stream_monitor.go b/tencentcloud/resource_tc_css_stream_monitor.go index f13a7411e9..fc012e506d 100644 --- a/tencentcloud/resource_tc_css_stream_monitor.go +++ b/tencentcloud/resource_tc_css_stream_monitor.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a css stream_monitor - -Example Usage - -```hcl -resource "tencentcloud_css_stream_monitor" "stream_monitor" { - ai_asr_input_index_list = [ - 1, - ] - ai_format_diagnose = 1 - ai_ocr_input_index_list = [ - 1, - ] - allow_monitor_report = 1 - asr_language = 1 - check_stream_broken = 1 - check_stream_low_frame_rate = 1 - monitor_name = "test" - ocr_language = 1 - - input_list { - input_app = "live" - input_domain = "177154.push.tlivecloud.com" - input_stream_name = "ppp" - } - - notify_policy { - callback_url = "http://example.com/test" - notify_policy_type = 1 - } - - output_info { - output_domain = "test122.jingxhu.top" - output_stream_height = 1080 - output_stream_name = "afc7847d-1fe1-43bc-b1e4-20d86303c393" - output_stream_width = 1920 - } -} -``` - -Import - -css stream_monitor can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_stream_monitor.stream_monitor stream_monitor_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_timeshift_rule_attachment.go b/tencentcloud/resource_tc_css_timeshift_rule_attachment.go index e26f7b22fb..9ab7ca5b0c 100644 --- a/tencentcloud/resource_tc_css_timeshift_rule_attachment.go +++ b/tencentcloud/resource_tc_css_timeshift_rule_attachment.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a css timeshift_rule_attachment - -Example Usage - -```hcl -resource "tencentcloud_css_timeshift_rule_attachment" "timeshift_rule_attachment" { - domain_name = "177154.push.tlivecloud.com" - template_id = 252586 - app_name = "qqq" - stream_name = "ppp" -} -``` - -Import - -css timeshift_rule_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_timeshift_rule_attachment.timeshift_rule_attachment templateId#domainName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_timeshift_template.go b/tencentcloud/resource_tc_css_timeshift_template.go index f377f9cfe2..28026ebdd8 100644 --- a/tencentcloud/resource_tc_css_timeshift_template.go +++ b/tencentcloud/resource_tc_css_timeshift_template.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a css timeshift_template - -Example Usage - -```hcl -resource "tencentcloud_css_timeshift_template" "timeshift_template" { - area = "Mainland" - description = "timeshift template" - duration = 604800 - item_duration = 5 - remove_watermark = true - template_name = "tf-test" - transcode_template_ids = [] -} -``` - -Import - -css timeshift_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_timeshift_template.timeshift_template templateId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_watermark.go b/tencentcloud/resource_tc_css_watermark.go index 300cca9fcb..3d51382a8a 100644 --- a/tencentcloud/resource_tc_css_watermark.go +++ b/tencentcloud/resource_tc_css_watermark.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a css watermark - -Example Usage - -```hcl -resource "tencentcloud_css_watermark" "watermark" { - picture_url = "picture_url" - watermark_name = "watermark_name" - x_position = 0 - y_position = 0 - width = 0 - height = 0 -} - -``` -Import - -css watermark can be imported using the id, e.g. -``` -$ terraform import tencentcloud_css_watermark.watermark watermark_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_css_watermark_rule_attachment.go b/tencentcloud/resource_tc_css_watermark_rule_attachment.go index 6261d31a8b..9d2b148d5a 100644 --- a/tencentcloud/resource_tc_css_watermark_rule_attachment.go +++ b/tencentcloud/resource_tc_css_watermark_rule_attachment.go @@ -1,48 +1,3 @@ -/* -Provides a resource to create a css watermark_rule - -Example Usage - -Binding watermark rule with a css stream - -```hcl -resource "tencentcloud_css_pull_stream_task" "example" { - stream_name = "tf_example_stream_name" - source_type = "PullLivePushLive" - source_urls = ["rtmp://xxx.com/live/stream"] - domain_name = "test.domain.com" - app_name = "live" - start_time = "2023-09-27T10:28:21Z" - end_time = "2023-09-27T17:28:21Z" - operator = "tf_admin" - comment = "This is a e2e test case." -} - -resource "tencentcloud_css_watermark" "example" { - picture_url = "picture_url" - watermark_name = "watermark_name" - x_position = 0 - y_position = 0 - width = 0 - height = 0 -} - -resource "tencentcloud_css_watermark_rule_attachment" "watermark_rule_attachment" { - domain_name = tencentcloud_css_pull_stream_task.example.domain_name - app_name = tencentcloud_css_pull_stream_task.example.app_name - stream_name = tencentcloud_css_pull_stream_task.example.stream_name - template_id = tencentcloud_css_watermark.example.id -} -``` - -Import - -css watermark_rule_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_css_watermark_rule_attachment.watermark_rule domain_name#app_name#stream_name#template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_chc_config.go b/tencentcloud/resource_tc_cvm_chc_config.go index 9871276ae2..08a225da1f 100644 --- a/tencentcloud/resource_tc_cvm_chc_config.go +++ b/tencentcloud/resource_tc_cvm_chc_config.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a cvm chc_config - -Example Usage - -```hcl -resource "tencentcloud_cvm_chc_config" "chc_config" { - chc_id = "chc-xxxxxx" - instance_name = "xxxxxx" - bmc_user = "admin" - password = "xxxxxx" - bmc_virtual_private_cloud { - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxxx" - - } - bmc_security_group_ids = ["sg-xxxxxx"] - - deploy_virtual_private_cloud { - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxxx" - } - deploy_security_group_ids = ["sg-xxxxxx"] -} -``` - -Import - -cvm chc_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_cvm_chc_config.chc_config chc_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_export_images.go b/tencentcloud/resource_tc_cvm_export_images.go index f443c58cee..e5de53edee 100644 --- a/tencentcloud/resource_tc_cvm_export_images.go +++ b/tencentcloud/resource_tc_cvm_export_images.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a cvm export_images - -Example Usage - -```hcl -resource "tencentcloud_cvm_export_images" "export_images" { - bucket_name = "xxxxxx" - image_id = "img-xxxxxx" - file_name_prefix = "test-" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_hpc_cluster.go b/tencentcloud/resource_tc_cvm_hpc_cluster.go index c975f1fe69..1f57f4f523 100644 --- a/tencentcloud/resource_tc_cvm_hpc_cluster.go +++ b/tencentcloud/resource_tc_cvm_hpc_cluster.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a cvm hpc_cluster - -Example Usage - -```hcl -resource "tencentcloud_cvm_hpc_cluster" "hpc_cluster" { - zone = "ap-beijing-6" - name = "terraform-test" - remark = "create for test" -} -``` - -Import - -cvm hpc_cluster can be imported using the id, e.g. - -``` -terraform import tencentcloud_cvm_hpc_cluster.hpc_cluster hpc_cluster_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_image_share_permission.go b/tencentcloud/resource_tc_cvm_image_share_permission.go index 87c01e305f..c4df187162 100644 --- a/tencentcloud/resource_tc_cvm_image_share_permission.go +++ b/tencentcloud/resource_tc_cvm_image_share_permission.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cvm image_share_permission - -Example Usage - -```hcl -resource "tencentcloud_cvm_image_share_permission" "image_share_permission" { - image_id = "img-xxxxxx" - account_ids = ["xxxxxx"] -} -``` - -Import - -cvm image_share_permission can be imported using the id, e.g. - -``` -terraform import tencentcloud_cvm_image_share_permission.image_share_permission image_share_permission_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_launch_template.go b/tencentcloud/resource_tc_cvm_launch_template.go index a02829a66b..6ba456b26b 100644 --- a/tencentcloud/resource_tc_cvm_launch_template.go +++ b/tencentcloud/resource_tc_cvm_launch_template.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a cvm launch template - -Example Usage - -```hcl -data "tencentcloud_images" "my_favorite_image" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -resource "tencentcloud_cvm_launch_template" "demo" { - launch_template_name = "test" - placement { - zone = "ap-guangzhou-6" - project_id = 0 - } - image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_launch_template_default_version.go b/tencentcloud/resource_tc_cvm_launch_template_default_version.go index 8802b39eca..0d8cd34d4e 100644 --- a/tencentcloud/resource_tc_cvm_launch_template_default_version.go +++ b/tencentcloud/resource_tc_cvm_launch_template_default_version.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cvm launch_template_default_version - -Example Usage - -```hcl -resource "tencentcloud_cvm_launch_template_default_version" "launch_template_default_version" { - launch_template_id = "lt-34vaef8fe" - default_version = 2 -} -``` - -Import - -cvm launch_template_default_version can be imported using the id, e.g. - -``` -terraform import tencentcloud_cvm_launch_template_default_version.launch_template_default_version launch_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_launch_template_version.go b/tencentcloud/resource_tc_cvm_launch_template_version.go index 099f84a010..56d848c3be 100644 --- a/tencentcloud/resource_tc_cvm_launch_template_version.go +++ b/tencentcloud/resource_tc_cvm_launch_template_version.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a cvm launch_template_version - -Example Usage - -```hcl -resource "tencentcloud_cvm_launch_template_version" "foo" { - placement { - zone = "ap-guangzhou-6" - project_id = 0 - - } - launch_template_id = "lt-r9ajalbi" - launch_template_version_description = "version description" - disable_api_termination = false - instance_type = "S5.MEDIUM4" - image_id = "img-9qrfy1xt" -} -``` - -Import - -cvm launch_template_version can be imported using the id, e.g. - -``` -terraform import tencentcloud_cvm_launch_template_version.launch_template_version ${launch_template_id}#${launch_template_version} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_reboot_instance.go b/tencentcloud/resource_tc_cvm_reboot_instance.go index 476819642a..6c247be120 100644 --- a/tencentcloud/resource_tc_cvm_reboot_instance.go +++ b/tencentcloud/resource_tc_cvm_reboot_instance.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a cvm reboot_instance - -Example Usage - -```hcl -resource "tencentcloud_cvm_reboot_instance" "reboot_instance" { - instance_id = "ins-f9jr4bd2" - stop_type = "SOFT_FIRST" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_renew_instance.go b/tencentcloud/resource_tc_cvm_renew_instance.go index 454ce3bd8e..31fab38698 100644 --- a/tencentcloud/resource_tc_cvm_renew_instance.go +++ b/tencentcloud/resource_tc_cvm_renew_instance.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a cvm renew_instance - -Example Usage - -```hcl -resource "tencentcloud_cvm_renew_instance" "renew_instance" { - instance_ids = - instance_charge_prepaid { - period = 1 - renew_flag = "NOTIFY_AND_AUTO_RENEW" - } - renew_portable_data_disk = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_security_group_attachment.go b/tencentcloud/resource_tc_cvm_security_group_attachment.go index 9e94266ca3..a98941dedc 100644 --- a/tencentcloud/resource_tc_cvm_security_group_attachment.go +++ b/tencentcloud/resource_tc_cvm_security_group_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cvm security_group_attachment - -Example Usage - -```hcl -resource "tencentcloud_cvm_security_group_attachment" "security_group_attachment" { - security_group_id = "sg-xxxxxxx" - instance_id = "ins-xxxxxxxx" -} -``` - -Import - -cvm security_group_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_cvm_security_group_attachment.security_group_attachment ${instance_id}#${security_group_id} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cvm_sync_image.go b/tencentcloud/resource_tc_cvm_sync_image.go index 017a228126..69f8f9ca4a 100644 --- a/tencentcloud/resource_tc_cvm_sync_image.go +++ b/tencentcloud/resource_tc_cvm_sync_image.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a cvm sync_image - -Example Usage - -```hcl -resource "tencentcloud_cvm_sync_image" "sync_image" { - image_id = "img-xxxxxx" - destination_regions =["ap-guangzhou", "ap-shanghai"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cwp_license_bind_attachment.go b/tencentcloud/resource_tc_cwp_license_bind_attachment.go index 318cc2f1d4..35cb88e52c 100644 --- a/tencentcloud/resource_tc_cwp_license_bind_attachment.go +++ b/tencentcloud/resource_tc_cwp_license_bind_attachment.go @@ -1,48 +1,3 @@ -/* -Provides a resource to create a cwp license_bind_attachment - -Example Usage - -```hcl -data "tencentcloud_cwp_machines_simple" "example" { - machine_type = "CVM" - machine_region = "ap-guangzhou" - project_ids = [1210293] - - filters { - name = "Version" - values = ["BASIC_VERSION"] - exact_match = true - } -} - -resource "tencentcloud_cwp_license_order" "example" { - alias = "tf_example" - license_type = 0 - license_num = 1 - region_id = 1 - project_id = 0 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_cwp_license_bind_attachment" "example" { - resource_id = tencentcloud_cwp_license_order.example.resource_id - license_id = tencentcloud_cwp_license_order.example.license_id - license_type = 0 - quuid = data.tencentcloud_cwp_machines_simple.example.machines[0].quuid -} -``` - -Import - -cwp license_bind_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_cwp_license_bind_attachment.example cwplic-ab3edffa#44#2c7e5cce-1cec-4456-8d18-018f160dd987#0 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cwp_license_order.go b/tencentcloud/resource_tc_cwp_license_order.go index dbe3336e0a..f46e2b6823 100644 --- a/tencentcloud/resource_tc_cwp_license_order.go +++ b/tencentcloud/resource_tc_cwp_license_order.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a cwp license_order - -Example Usage - -```hcl -resource "tencentcloud_cwp_license_order" "example" { - alias = "tf_example" - license_type = 0 - license_num = 1 - region_id = 1 - project_id = 0 - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -cwp license_order can be imported using the id, e.g. - -``` -terraform import tencentcloud_cwp_license_order.example cwplic-130715d2#1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_account.go b/tencentcloud/resource_tc_cynosdb_account.go index f36b7bb255..02900d0bf9 100644 --- a/tencentcloud/resource_tc_cynosdb_account.go +++ b/tencentcloud/resource_tc_cynosdb_account.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a cynosdb account - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_account" "account" { - cluster_id = "cynosdbmysql-bws8h88b" - account_name = "terraform_test" - account_password = "Password@1234" - host = "%" - description = "terraform test" - max_user_connections = 2 -} -``` - -Import - -cynosdb account can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_account.account account_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_account_privileges.go b/tencentcloud/resource_tc_cynosdb_account_privileges.go index 5aaf9bf6dc..8a7e5eaa5d 100644 --- a/tencentcloud/resource_tc_cynosdb_account_privileges.go +++ b/tencentcloud/resource_tc_cynosdb_account_privileges.go @@ -1,51 +1,3 @@ -/* -Provides a resource to create a cynosdb account_privileges - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_account_privileges" "account_privileges" { - cluster_id = "cynosdbmysql-bws8h88b" - account_name = "test" - host = "%" - global_privileges = [ - "CREATE", - "DROP", - "ALTER", - "CREATE TEMPORARY TABLES", - "CREATE VIEW" - ] - database_privileges { - db = "users" - privileges = [ - "DROP", - "REFERENCES", - "INDEX", - "CREATE VIEW", - "INSERT", - "EVENT" - ] - } - table_privileges { - db = "users" - table_name = "tb_user_name" - privileges = [ - "ALTER", - "REFERENCES", - "SHOW VIEW" - ] - } -} -``` - -Import - -cynosdb account_privileges can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_account_privileges.account_privileges account_privileges_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_audit_log_file.go b/tencentcloud/resource_tc_cynosdb_audit_log_file.go index dd3ccb968d..fabf117d1e 100644 --- a/tencentcloud/resource_tc_cynosdb_audit_log_file.go +++ b/tencentcloud/resource_tc_cynosdb_audit_log_file.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a cynosdb audit_log_file - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_audit_log_file" "audit_log_file" { - instance_id = "cynosdbmysql-ins-afqx1hy0" - start_time = "2022-07-12 10:29:20" - end_time = "2022-08-12 10:29:20" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_binlog_save_days.go b/tencentcloud/resource_tc_cynosdb_binlog_save_days.go index 87723647cc..4513fecef7 100644 --- a/tencentcloud/resource_tc_cynosdb_binlog_save_days.go +++ b/tencentcloud/resource_tc_cynosdb_binlog_save_days.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cynosdb binlog_save_days - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_binlog_save_days" "binlog_save_days" { - cluster_id = "cynosdbmysql-123" - binlog_save_days = 7 -} -``` - -Import - -cynosdb binlog_save_days can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_binlog_save_days.binlog_save_days binlog_save_days_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_cluster.go b/tencentcloud/resource_tc_cynosdb_cluster.go index 28b33b79f7..3df6b57e3a 100644 --- a/tencentcloud/resource_tc_cynosdb_cluster.go +++ b/tencentcloud/resource_tc_cynosdb_cluster.go @@ -1,63 +1,3 @@ -/* -Provide a resource to create a CynosDB cluster. - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_cluster" "foo" { - available_zone = "ap-guangzhou-4" - vpc_id = "vpc-h70b6b49" - subnet_id = "subnet-q6fhy1mi" - db_type = "MYSQL" - db_version = "5.7" - storage_limit = 1000 - cluster_name = "tf-cynosdb" - password = "cynos@123" - instance_maintain_duration = 7200 - instance_maintain_start_time = 10800 - instance_maintain_weekdays = [ - "Fri", - "Mon", - "Sat", - "Sun", - "Thu", - "Wed", - "Tue", - ] - - instance_cpu_core = 1 - instance_memory_size = 2 - - param_item { - name = "character_set_server" - current_value = "utf8mb4" - } - - prarm_template_id = "12345" - - tags = { - test = "test" - } - - force_delete = false - - rw_group_sg = [ - "sg-ibyjkl6r", - ] - ro_group_sg = [ - "sg-ibyjkl6r", - ] -} -``` - -Import - -CynosDB cluster can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cynosdb_cluster.foo cynosdbmysql-dzj5l8gz -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_cluster_databases.go b/tencentcloud/resource_tc_cynosdb_cluster_databases.go index 2cbdd12c25..606afc4d60 100644 --- a/tencentcloud/resource_tc_cynosdb_cluster_databases.go +++ b/tencentcloud/resource_tc_cynosdb_cluster_databases.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a cynosdb cluster_databases - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_cluster_databases" "cluster_databases" { - cluster_id = "cynosdbmysql-bws8h88b" - db_name = "terraform-test" - character_set = "utf8" - collate_rule = "utf8_general_ci" - user_host_privileges { - db_user_name = "root" - db_host = "%" - db_privilege = "READ_ONLY" - } - description = "terraform test" -} -``` - -Import - -cynosdb cluster_databases can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_cluster_databases.cluster_databases cluster_databases_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_cluster_password_complexity.go b/tencentcloud/resource_tc_cynosdb_cluster_password_complexity.go index 1ea8632ea7..cc7f016288 100644 --- a/tencentcloud/resource_tc_cynosdb_cluster_password_complexity.go +++ b/tencentcloud/resource_tc_cynosdb_cluster_password_complexity.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a cynosdb cluster_password_complexity - -Example Usage - -```hcl - -resource "tencentcloud_cynosdb_cluster_password_complexity" "cluster_password_complexity" { - cluster_id = "cynosdbmysql-cgd2gpwr" - validate_password_length = 8 - validate_password_mixed_case_count = 1 - validate_password_special_char_count = 1 - validate_password_number_count = 1 - validate_password_policy = "STRONG" - validate_password_dictionary = [ - "cccc", - "xxxx", - ] -} - -``` - -Import - -cynosdb cluster_password_complexity can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_cluster_password_complexity.cluster_password_complexity cluster_password_complexity_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_cluster_resource_packages_attachment.go b/tencentcloud/resource_tc_cynosdb_cluster_resource_packages_attachment.go index 1c2de4321b..4a830517c4 100644 --- a/tencentcloud/resource_tc_cynosdb_cluster_resource_packages_attachment.go +++ b/tencentcloud/resource_tc_cynosdb_cluster_resource_packages_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cynosdb cluster_resource_packages_attachment - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_cluster_resource_packages_attachment" "cluster_resource_packages_attachment" { - cluster_id = "cynosdbmysql-q1d8151n" - package_ids = ["package-hy4d2ppl"] -} -``` - -Import - -cynosdb cluster_resource_packages_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_cluster_resource_packages_attachment.cluster_resource_packages_attachment cluster_resource_packages_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_cluster_slave_zone.go b/tencentcloud/resource_tc_cynosdb_cluster_slave_zone.go index 5ab4f1cbc6..cb9c0ab45a 100644 --- a/tencentcloud/resource_tc_cynosdb_cluster_slave_zone.go +++ b/tencentcloud/resource_tc_cynosdb_cluster_slave_zone.go @@ -1,118 +1,3 @@ -/* -Provides a resource to create a cynosdb cluster slave zone. - -Example Usage - -Set a new slave zone for a cynosdb cluster. -```hcl -locals { - vpc_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.subnet_id - sg_id = data.tencentcloud_security_groups.internal.security_groups.0.security_group_id - sg_id2 = data.tencentcloud_security_groups.exclusive.security_groups.0.security_group_id -} - -variable "fixed_tags" { - default = { - fixed_resource: "do_not_remove" - } -} - -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -variable "new_availability_zone" { - default = "ap-guangzhou-6" -} - -variable "my_param_template" { - default = "15765" -} - -data "tencentcloud_security_groups" "internal" { - name = "default" - tags = var.fixed_tags -} - -data "tencentcloud_security_groups" "exclusive" { - name = "test_preset_sg" -} - -data "tencentcloud_vpc_subnets" "gz3" { - availability_zone = var.default_az - is_default = true -} - -resource "tencentcloud_cynosdb_cluster" "instance" { - available_zone = var.availability_zone - vpc_id = local.vpc_id - subnet_id = local.subnet_id - db_type = "MYSQL" - db_version = "5.7" - storage_limit = 1000 - cluster_name = "tf_test_cynosdb_cluster_slave_zone" - password = "cynos@123" - instance_maintain_duration = 3600 - instance_maintain_start_time = 10800 - instance_maintain_weekdays = [ - "Fri", - "Mon", - "Sat", - "Sun", - "Thu", - "Wed", - "Tue", - ] - - instance_cpu_core = 1 - instance_memory_size = 2 - param_items { - name = "character_set_server" - current_value = "utf8" - } - param_items { - name = "time_zone" - current_value = "+09:00" - } - - force_delete = true - - rw_group_sg = [ - local.sg_id - ] - ro_group_sg = [ - local.sg_id - ] - prarm_template_id = var.my_param_template -} - -resource "tencentcloud_cynosdb_cluster_slave_zone" "cluster_slave_zone" { - cluster_id = tencentcloud_cynosdb_cluster.instance.id - slave_zone = var.new_availability_zone -} -``` - -Update the slave zone with specified value. -``` -resource "tencentcloud_cynosdb_cluster_slave_zone" "cluster_slave_zone" { - cluster_id = tencentcloud_cynosdb_cluster.instance.id - slave_zone = var.availability_zone - - timeouts { - create = "500s" - } -} -``` - -Import - -cynosdb cluster_slave_zone can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_cluster_slave_zone.cluster_slave_zone cluster_id#slave_zone -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_export_instance_error_logs.go b/tencentcloud/resource_tc_cynosdb_export_instance_error_logs.go index 745d89c5c1..4449cba219 100644 --- a/tencentcloud/resource_tc_cynosdb_export_instance_error_logs.go +++ b/tencentcloud/resource_tc_cynosdb_export_instance_error_logs.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a cynosdb export_instance_error_logs - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_export_instance_error_logs" "export_instance_error_logs" { - instance_id = "cynosdbmysql-ins-afqx1hy0" - start_time = "2022-01-01 12:00:00" - end_time = "2022-01-01 14:00:00" - log_levels = ["note"] - key_words = ["content"] - file_type = "csv" - order_by = "Timestamp" - order_by_type = "ASC" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_export_instance_slow_queries.go b/tencentcloud/resource_tc_cynosdb_export_instance_slow_queries.go index 08626ea345..30d4650a0b 100644 --- a/tencentcloud/resource_tc_cynosdb_export_instance_slow_queries.go +++ b/tencentcloud/resource_tc_cynosdb_export_instance_slow_queries.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a cynosdb export_instance_slow_queries - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_export_instance_slow_queries" "export_instance_slow_queries" { - instance_id = "cynosdbmysql-ins-123" - start_time = "2022-01-01 12:00:00" - end_time = "2022-01-01 14:00:00" - username = "root" - host = "10.10.10.10" - database = "db1" - file_type = "csv" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_instance_param.go b/tencentcloud/resource_tc_cynosdb_instance_param.go index a9279614d8..77e41b613b 100644 --- a/tencentcloud/resource_tc_cynosdb_instance_param.go +++ b/tencentcloud/resource_tc_cynosdb_instance_param.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a cynosdb instance_param - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_instance_param" "instance_param" { - cluster_id = "cynosdbmysql-bws8h88b" - instance_id = "cynosdbmysql-ins-rikr6z4o" - is_in_maintain_period = "no" - - instance_param_list { - current_value = "0" - param_name = "init_connect" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_isolate_instance.go b/tencentcloud/resource_tc_cynosdb_isolate_instance.go index 62a754f7c6..b2fc33271c 100644 --- a/tencentcloud/resource_tc_cynosdb_isolate_instance.go +++ b/tencentcloud/resource_tc_cynosdb_isolate_instance.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a cynosdb isolate_instance - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_account" "account" { - cluster_id = "cynosdbmysql-bws8h88b" - account_name = "terraform_test" - account_password = "Password@1234" - host = "%" - description = "testx" - max_user_connections = 2 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_param_template.go b/tencentcloud/resource_tc_cynosdb_param_template.go index e87933a679..f9d3078ef2 100644 --- a/tencentcloud/resource_tc_cynosdb_param_template.go +++ b/tencentcloud/resource_tc_cynosdb_param_template.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a cynosdb param_template - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_param_template" "param_template" { - db_mode = "SERVERLESS" - engine_version = "5.7" - template_description = "terraform-template" - template_name = "terraform-template" - - param_list { - current_value = "-1" - param_name = "optimizer_trace_offset" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_proxy.go b/tencentcloud/resource_tc_cynosdb_proxy.go index ad673e2e9d..bf8b1a8696 100644 --- a/tencentcloud/resource_tc_cynosdb_proxy.go +++ b/tencentcloud/resource_tc_cynosdb_proxy.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a cynosdb proxy - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_proxy" "proxy" { - cluster_id = "cynosdbmysql-bws8h88b" - cpu = 2 - mem = 4000 - unique_vpc_id = "vpc-k1t8ickr" - unique_subnet_id = "subnet-jdi5xn22" - connection_pool_type = "SessionConnectionPool" - open_connection_pool = "yes" - connection_pool_time_out = 30 - security_group_ids = ["sg-baxfiao5"] - description = "desc sample" - proxy_zones { - proxy_node_zone = "ap-guangzhou-7" - proxy_node_count = 2 - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_proxy_end_point.go b/tencentcloud/resource_tc_cynosdb_proxy_end_point.go index 64ce62200a..925dfe9496 100644 --- a/tencentcloud/resource_tc_cynosdb_proxy_end_point.go +++ b/tencentcloud/resource_tc_cynosdb_proxy_end_point.go @@ -1,140 +1,3 @@ -/* -Provides a resource to create a cynosdb proxy_end_point - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - instance_weights { - instance_id = "cynosdbmysql-ins-afqx1hy0" - weight = 1 - } -} -``` - -Set `vip` and `vport` - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - vip = "172.16.112.108" - vport = "3306" - instance_weights { - instance_id = "cynosdbmysql-ins-afqx1hy0" - weight = 1 - } -} -``` - -Open connection pool - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - vip = "172.16.112.108" - vport = "3306" - connection_pool_type = "SessionConnectionPool" - open_connection_pool = "yes" - connection_pool_time_out = 30 - instance_weights { - instance_id = "cynosdbmysql-ins-afqx1hy0" - weight = 1 - } -} -``` - -Close connection pool - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - vip = "172.16.112.108" - vport = "3306" - open_connection_pool = "no" - instance_weights { - instance_id = "cynosdbmysql-ins-afqx1hy0" - weight = 1 - } -} -``` - -if `rw_type` is `READWRITE` - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - vip = "172.16.112.108" - vport = "3306" - open_connection_pool = "no" - fail_over = "yes" - consistency_type = "global" - rw_type = "READWRITE" - consistency_time_out = 30 - instance_weights { - instance_id = "cynosdbmysql-ins-afqx1hy0" - weight = 1 - } -} -``` - -if `rw_type` is `READONLY` - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - vip = "172.16.112.108" - vport = "3306" - open_connection_pool = "no" - rw_type = "READONLY" - instance_weights { - instance_id = "cynosdbmysql-ins-rikr6z4o" - weight = 1 - } -} -``` - -Comprehensive parameter examples - -```hcl -resource "tencentcloud_cynosdb_proxy_end_point" "proxy_end_point" { - cluster_id = "cynosdbmysql-bws8h88b" - unique_vpc_id = "vpc-4owdpnwr" - unique_subnet_id = "subnet-dwj7ipnc" - vip = "172.16.112.118" - vport = "3306" - connection_pool_type = "SessionConnectionPool" - open_connection_pool = "yes" - connection_pool_time_out = 30 - security_group_ids = ["sg-7kpsbxdb"] - description = "desc value" - weight_mode = "system" - auto_add_ro = "yes" - fail_over = "yes" - consistency_type = "global" - rw_type = "READWRITE" - consistency_time_out = 30 - trans_split = true - access_mode = "nearby" - instance_weights { - instance_id = "cynosdbmysql-ins-afqx1hy0" - weight = 1 - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_read_only_instance_exclusive_access.go b/tencentcloud/resource_tc_cynosdb_read_only_instance_exclusive_access.go index 95895ce2a8..1628bf78b9 100644 --- a/tencentcloud/resource_tc_cynosdb_read_only_instance_exclusive_access.go +++ b/tencentcloud/resource_tc_cynosdb_read_only_instance_exclusive_access.go @@ -1,40 +1,3 @@ -/* -Provides a resource to create a cynosdb read_only_instance_exclusive_access - -Example Usage - -```hcl -variable "cynosdb_cluster_id" { - default = "default_cynosdb_cluster" -} -variable "cynosdb_cluster_instance_id" { - default = "default_cluster_instance" -} - -variable "cynosdb_cluster_security_group_id" { - default = "default_security_group_id" -} - -data "tencentcloud_vpc_subnets" "gz3" { - availability_zone = var.default_az - is_default = true -} - -locals { - vpc_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.gz3.instance_list.0.subnet_id -} - -resource "tencentcloud_cynosdb_read_only_instance_exclusive_access" "read_only_instance_exclusive_access" { - cluster_id = var.cynosdb_cluster_id - instance_id = var.cynosdb_cluster_instance_id - vpc_id = local.vpc_id - subnet_id = local.subnet_id - port = 1234 - security_group_ids = [var.cynosdb_cluster_security_group_id] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_readonly_instance.go b/tencentcloud/resource_tc_cynosdb_readonly_instance.go index 82ce99a06d..bdce8da2b7 100644 --- a/tencentcloud/resource_tc_cynosdb_readonly_instance.go +++ b/tencentcloud/resource_tc_cynosdb_readonly_instance.go @@ -1,38 +1,3 @@ -/* -Provide a resource to create a CynosDB readonly instance. - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_readonly_instance" "foo" { - cluster_id = cynosdbmysql-dzj5l8gz - instance_name = "tf-cynosdb-readonly-instance" - force_delete = true - instance_cpu_core = 2 - instance_memory_size = 4 - - instance_maintain_duration = 7200 - instance_maintain_start_time = 21600 - instance_maintain_weekdays = [ - "Fri", - "Mon", - "Sat", - "Sun", - "Thu", - "Wed", - "Tue", - ] -} -``` - -Import - -CynosDB readonly instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_cynosdb_readonly_instance.foo cynosdbmysql-ins-dhwynib6 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_reload_proxy_node.go b/tencentcloud/resource_tc_cynosdb_reload_proxy_node.go index 77d8b265f4..4a3dae54bd 100644 --- a/tencentcloud/resource_tc_cynosdb_reload_proxy_node.go +++ b/tencentcloud/resource_tc_cynosdb_reload_proxy_node.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cynosdb reload_proxy_node - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_reload_proxy_node" "reload_proxy_node" { - cluster_id = "cynosdbmysql-cgd2gpwr" - proxy_group_id = "cynosdbmysql-proxy-8lqtl8pk" -} -``` - -Import - -cynosdb reload_proxy_node can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_reload_proxy_node.reload_proxy_node reload_proxy_node_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_restart_instance.go b/tencentcloud/resource_tc_cynosdb_restart_instance.go index bcf6393e49..b4062782de 100644 --- a/tencentcloud/resource_tc_cynosdb_restart_instance.go +++ b/tencentcloud/resource_tc_cynosdb_restart_instance.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a cynosdb restart_instance - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_restart_instance" "restart_instance" { - instance_id = "cynosdbmysql-ins-afqx1hy0" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_roll_back_cluster.go b/tencentcloud/resource_tc_cynosdb_roll_back_cluster.go index 63f92eec4e..8f3d3d28b0 100644 --- a/tencentcloud/resource_tc_cynosdb_roll_back_cluster.go +++ b/tencentcloud/resource_tc_cynosdb_roll_back_cluster.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a cynosdb roll_back_cluster - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_roll_back_cluster" "roll_back_cluster" { - cluster_id = "cynosdbmysql-bws8h88b" - rollback_strategy = "snapRollback" - rollback_id = 732725 - # expect_time = "2022-01-20 00:00:00" - expect_time_thresh = 0 - rollback_databases { - old_database = "users" - new_database = "users_bak_1" - } - rollback_tables { - database = "tf_ci_test" - tables { - old_table = "test" - new_table = "test_bak_111" - } - - } - rollback_mode = "full" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_security_group.go b/tencentcloud/resource_tc_cynosdb_security_group.go index 5854379450..d0128b7364 100644 --- a/tencentcloud/resource_tc_cynosdb_security_group.go +++ b/tencentcloud/resource_tc_cynosdb_security_group.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a cynosdb security_group - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_security_group" "test" { - cluster_id = "cynosdbmysql-bws8h88b" - security_group_ids = ["sg-baxfiao5"] - instance_group_type = "RO" -} -``` - -Import - -cynosdb security_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_security_group.security_group ${cluster_id}#${instance_group_type} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_upgrade_proxy_version.go b/tencentcloud/resource_tc_cynosdb_upgrade_proxy_version.go index fc9ac4e100..32d845f553 100644 --- a/tencentcloud/resource_tc_cynosdb_upgrade_proxy_version.go +++ b/tencentcloud/resource_tc_cynosdb_upgrade_proxy_version.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a cynosdb upgrade_proxy_version - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_upgrade_proxy_version" "upgrade_proxy_version" { - cluster_id = "cynosdbmysql-bws8h88b" - dst_proxy_version = "1.3.7" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_cynosdb_wan.go b/tencentcloud/resource_tc_cynosdb_wan.go index 64b58bf3bb..e15358180e 100644 --- a/tencentcloud/resource_tc_cynosdb_wan.go +++ b/tencentcloud/resource_tc_cynosdb_wan.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a cynosdb wan - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_wan" "wan" { - cluster_id = "cynosdbmysql-bws8h88b" - instance_grp_id = "cynosdbmysql-grp-lxav0p9z" -} -``` - -Import - -cynosdb wan can be imported using the id, e.g. - -``` -terraform import tencentcloud_cynosdb_wan.wan cynosdbmysql-bws8h88b#cynosdbmysql-grp-lxav0p9z -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_acl.go b/tencentcloud/resource_tc_dasb_acl.go index da9f1646d3..ada1471ab2 100644 --- a/tencentcloud/resource_tc_dasb_acl.go +++ b/tencentcloud/resource_tc_dasb_acl.go @@ -1,48 +1,3 @@ -/* -Provides a resource to create a dasb acl - -Example Usage - -```hcl -resource "tencentcloud_dasb_acl" "example" { - name = "tf_example" - allow_disk_redirect = true - allow_any_account = false - allow_clip_file_up = true - allow_clip_file_down = true - allow_clip_text_up = true - allow_clip_text_down = true - allow_file_up = true - allow_file_down = true - max_file_up_size = 0 - max_file_down_size = 0 - user_id_set = ["6", "2"] - user_group_id_set = ["6", "36"] - device_id_set = ["39", "81"] - device_group_id_set = ["2", "3"] - account_set = ["root"] - cmd_template_id_set = ["1", "7"] - ac_template_id_set = [] - allow_disk_file_up = true - allow_disk_file_down = true - allow_shell_file_up = true - allow_shell_file_down = true - allow_file_del = true - allow_access_credential = true - department_id = "1.2" - validate_from = "2023-09-22T00:00:00+08:00" - validate_to = "2024-09-23T00:00:00+08:00" -} -``` - -Import - -dasb acl can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_acl.example 132 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_bind_device_account_password.go b/tencentcloud/resource_tc_dasb_bind_device_account_password.go index b45f4da8ba..78c6148c0b 100644 --- a/tencentcloud/resource_tc_dasb_bind_device_account_password.go +++ b/tencentcloud/resource_tc_dasb_bind_device_account_password.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a dasb bind_device_account_password - -Example Usage - -```hcl -resource "tencentcloud_dasb_bind_device_account_password" "example" { - device_account_id = 16 - password = "TerraformPassword" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_bind_device_account_private_key.go b/tencentcloud/resource_tc_dasb_bind_device_account_private_key.go index 1f77279357..b9b83dae77 100644 --- a/tencentcloud/resource_tc_dasb_bind_device_account_private_key.go +++ b/tencentcloud/resource_tc_dasb_bind_device_account_private_key.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dasb bind_device_account_private_key - -Example Usage - -```hcl -resource "tencentcloud_dasb_bind_device_account_private_key" "example" { - device_account_id = 16 - private_key = "MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh" - private_key_password = "TerraformPassword" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_bind_device_resource.go b/tencentcloud/resource_tc_dasb_bind_device_resource.go index 1a76caed3f..54adbeebe5 100644 --- a/tencentcloud/resource_tc_dasb_bind_device_resource.go +++ b/tencentcloud/resource_tc_dasb_bind_device_resource.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a dasb bind_device_resource - -Example Usage - -```hcl -resource "tencentcloud_dasb_bind_device_resource" "example" { - resource_id = "bh-saas-ocmzo6lgxiv" - device_id_set = [17, 18] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_cmd_template.go b/tencentcloud/resource_tc_dasb_cmd_template.go index f73678f51a..b4d39229f9 100644 --- a/tencentcloud/resource_tc_dasb_cmd_template.go +++ b/tencentcloud/resource_tc_dasb_cmd_template.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dasb cmd_template - -Example Usage - -```hcl -resource "tencentcloud_dasb_cmd_template" "example" { - name = "tf_example" - cmd_list = "rm -rf*" -} -``` - -Import - -dasb cmd_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_cmd_template.example 15 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_device.go b/tencentcloud/resource_tc_dasb_device.go index 9c9b54ad27..9a12035f69 100644 --- a/tencentcloud/resource_tc_dasb_device.go +++ b/tencentcloud/resource_tc_dasb_device.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a dasb device - -Example Usage - -```hcl -resource "tencentcloud_dasb_device" "example" { - os_name = "Linux" - ip = "192.168.0.1" - port = 80 - name = "tf_example" - department_id = "1.2.3" -} -``` - -Import - -dasb device can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_device.example 17 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_device_account.go b/tencentcloud/resource_tc_dasb_device_account.go index 3ee3cad043..627d220aca 100644 --- a/tencentcloud/resource_tc_dasb_device_account.go +++ b/tencentcloud/resource_tc_dasb_device_account.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dasb device_account - -Example Usage - -```hcl -resource "tencentcloud_dasb_device_account" "example" { - device_id = 100 - account = "root" -} -``` - -Import - -dasb device_account can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_device_account.example 11 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_device_group.go b/tencentcloud/resource_tc_dasb_device_group.go index 3b1cd6e091..c04e71041a 100644 --- a/tencentcloud/resource_tc_dasb_device_group.go +++ b/tencentcloud/resource_tc_dasb_device_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dasb device_group - -Example Usage - -```hcl -resource "tencentcloud_dasb_device_group" "example" { - name = "tf_example" - department_id = "1.2" -} -``` - -Import - -dasb device_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_device_group.example 36 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_device_group_members.go b/tencentcloud/resource_tc_dasb_device_group_members.go index 593e46a01c..8461427849 100644 --- a/tencentcloud/resource_tc_dasb_device_group_members.go +++ b/tencentcloud/resource_tc_dasb_device_group_members.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dasb device_group_members - -Example Usage - -```hcl -resource "tencentcloud_dasb_device_group_members" "example" { - device_group_id = 3 - member_id_set = [1, 2, 3] -} -``` - -Import - -dasb device_group_members can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_device_group_members.example 3#1,2,3 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_reset_user.go b/tencentcloud/resource_tc_dasb_reset_user.go index 79ecc0053a..70523dd775 100644 --- a/tencentcloud/resource_tc_dasb_reset_user.go +++ b/tencentcloud/resource_tc_dasb_reset_user.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dasb reset_user - -Example Usage - -```hcl -resource "tencentcloud_dasb_reset_user" "example" { - user_id = 16 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_resource.go b/tencentcloud/resource_tc_dasb_resource.go index 47eeba4790..9432ea7249 100644 --- a/tencentcloud/resource_tc_dasb_resource.go +++ b/tencentcloud/resource_tc_dasb_resource.go @@ -1,32 +1,3 @@ -/* -Provides a resource to create a dasb resource - -Example Usage - -```hcl -resource "tencentcloud_dasb_resource" "example" { - deploy_region = "ap-guangzhou" - vpc_id = "vpc-q1of50wz" - subnet_id = "subnet-7uhvm46o" - resource_edition = "standard" - resource_node = 2 - time_unit = "m" - time_span = 1 - auto_renew_flag = 1 - deploy_zone = "ap-guangzhou-6" - package_bandwidth = 10 - package_node = 50 -} -``` - -Import - -dasb resource can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_resource.example bh-saas-kk5rabk0 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_user.go b/tencentcloud/resource_tc_dasb_user.go index f9153111c2..de051972a1 100644 --- a/tencentcloud/resource_tc_dasb_user.go +++ b/tencentcloud/resource_tc_dasb_user.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a dasb user - -Example Usage - -```hcl -resource "tencentcloud_dasb_user" "example" { - user_name = "tf_example" - real_name = "terraform" - phone = "+86|18345678782" - email = "demo@tencent.com" - validate_from = "2023-09-22T02:00:00+08:00" - validate_to = "2023-09-23T03:00:00+08:00" - department_id = "1.2" - auth_type = 0 -} -``` - -Import - -dasb user can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_user.example 134 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_user_group.go b/tencentcloud/resource_tc_dasb_user_group.go index 2701e2af76..6ddb7d46ca 100644 --- a/tencentcloud/resource_tc_dasb_user_group.go +++ b/tencentcloud/resource_tc_dasb_user_group.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a dasb user_group - -Example Usage - -```hcl -resource "tencentcloud_dasb_user_group" "example" { - name = "tf_example_update" -} -``` - -Or - -```hcl -resource "tencentcloud_dasb_user_group" "example" { - name = "tf_example_update" - department_id = "1.2" -} -``` - -Import - -dasb user_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_user_group.example 16 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dasb_user_group_members.go b/tencentcloud/resource_tc_dasb_user_group_members.go index f51ea70919..eeeb4936f9 100644 --- a/tencentcloud/resource_tc_dasb_user_group_members.go +++ b/tencentcloud/resource_tc_dasb_user_group_members.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dasb user_group_members - -Example Usage - -```hcl -resource "tencentcloud_dasb_user_group_members" "example" { - user_group_id = 3 - member_id_set = [1, 2, 3] -} -``` - -Import - -dasb user_group_members can be imported using the id, e.g. - -``` -terraform import tencentcloud_dasb_user_group_members.example 3#1,2,3 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_cc_http_policy.go b/tencentcloud/resource_tc_dayu_cc_http_policy.go index 1990f94be9..3237d6241c 100644 --- a/tencentcloud/resource_tc_dayu_cc_http_policy.go +++ b/tencentcloud/resource_tc_dayu_cc_http_policy.go @@ -1,69 +1,3 @@ -/* -Use this resource to create a dayu CC self-define http policy - -Example Usage - -```hcl -resource "tencentcloud_dayu_cc_http_policy" "test_bgpip" { - resource_type = "bgpip" - resource_id = "bgpip-00000294" - name = "policy_match" - smode = "matching" - action = "drop" - switch = true - rule_list { - skey = "host" - operator = "include" - value = "123" - } -} - -resource "tencentcloud_dayu_cc_http_policy" "test_net" { - resource_type = "net" - resource_id = "net-0000007e" - name = "policy_match" - smode = "matching" - action = "drop" - switch = true - rule_list { - skey = "cgi" - operator = "equal" - value = "123" - } -} - -resource "tencentcloud_dayu_cc_http_policy" "test_bgpmultip" { - resource_type = "bgp-multip" - resource_id = "bgp-0000008o" - name = "policy_match" - smode = "matching" - action = "alg" - switch = true - ip = "111.230.178.25" - - rule_list { - skey = "referer" - operator = "not_include" - value = "123" - } -} - -resource "tencentcloud_dayu_cc_http_policy" "test_bgp" { - resource_type = "bgp" - resource_id = "bgp-000006mq" - name = "policy_match" - smode = "matching" - action = "alg" - switch = true - - rule_list { - skey = "ua" - operator = "not_include" - value = "123" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_cc_https_policy.go b/tencentcloud/resource_tc_dayu_cc_https_policy.go index 971af63600..479b2c717e 100644 --- a/tencentcloud/resource_tc_dayu_cc_https_policy.go +++ b/tencentcloud/resource_tc_dayu_cc_https_policy.go @@ -1,29 +1,3 @@ -/* -Use this resource to create a dayu CC self-define https policy - -~> **NOTE:** creating CC self-define https policy need a valid resource `tencentcloud_dayu_l7_rule`; The resource only support Anti-DDoS of resource type `bgpip`. - -Example Usage - -```hcl -resource "tencentcloud_dayu_cc_https_policy" "test_policy" { - resource_type = tencentcloud_dayu_l7_rule.test_rule.resource_type - resource_id = tencentcloud_dayu_l7_rule.test_rule.resource_id - rule_id = tencentcloud_dayu_l7_rule.test_rule.rule_id - domain = tencentcloud_dayu_l7_rule.test_rule.domain - name = "policy_test" - action = "drop" - switch = true - - rule_list { - skey = "cgi" - operator = "include" - value = "123" - } -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_cc_policy_v2.go b/tencentcloud/resource_tc_dayu_cc_policy_v2.go index 2937171849..9439b17f26 100644 --- a/tencentcloud/resource_tc_dayu_cc_policy_v2.go +++ b/tencentcloud/resource_tc_dayu_cc_policy_v2.go @@ -1,57 +1,3 @@ -/* -Use this resource to create a dayu CC policy - -Example Usage - -```hcl -resource "tencentcloud_dayu_cc_policy_v2" "demo" { - resource_id="bgpip-000004xf" - business="bgpip" - thresholds { - domain="12.com" - threshold=0 - } - cc_geo_ip_policys { - action="drop" - region_type="china" - domain="12.com" - protocol="http" - } - - cc_black_white_ips { - protocol="http" - domain="12.com" - black_white_ip="1.2.3.4" - type="black" - } - cc_precision_policys{ - policy_action="drop" - domain="1.com" - protocol="http" - ip="162.62.163.34" - policys { - field_name="cgi" - field_type="value" - value="12123.com" - value_operator="equal" - } - } - cc_precision_req_limits { - domain="11.com" - protocol="http" - level="loose" - policys { - action="alg" - execute_duration=2 - mode="equal" - period=5 - request_num=12 - uri="15.com" - } - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_ddos_ip_attachment_v2.go b/tencentcloud/resource_tc_dayu_ddos_ip_attachment_v2.go index d1f97e6d39..af7bac3221 100644 --- a/tencentcloud/resource_tc_dayu_ddos_ip_attachment_v2.go +++ b/tencentcloud/resource_tc_dayu_ddos_ip_attachment_v2.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a antiddos ip. Only support for bgp-multip. - -Example Usage - -```hcl -resource "tencentcloud_dayu_ddos_ip_attachment_v2" "boundip" { - id = "bgp-xxxxxx" - bound_ip_list { - ip = "1.1.1.1" - biz_type = "public" - instance_id = "ins-xxx" - device_type = "cvm" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_ddos_policy.go b/tencentcloud/resource_tc_dayu_ddos_policy.go index 805a334d0d..283146b4c4 100644 --- a/tencentcloud/resource_tc_dayu_ddos_policy.go +++ b/tencentcloud/resource_tc_dayu_ddos_policy.go @@ -1,71 +1,3 @@ -/* -Use this resource to create dayu DDoS policy - -Example Usage - -```hcl -resource "tencentcloud_dayu_ddos_policy" "test_policy" { - resource_type = "bgpip" - name = "tf_test_policy" - black_ips = ["1.1.1.1"] - white_ips = ["2.2.2.2"] - - drop_options { - drop_tcp = true - drop_udp = true - drop_icmp = true - drop_other = true - drop_abroad = true - check_sync_conn = true - s_new_limit = 100 - d_new_limit = 100 - s_conn_limit = 100 - d_conn_limit = 100 - tcp_mbps_limit = 100 - udp_mbps_limit = 100 - icmp_mbps_limit = 100 - other_mbps_limit = 100 - bad_conn_threshold = 100 - null_conn_enable = true - conn_timeout = 500 - syn_rate = 50 - syn_limit = 100 - } - - port_filters { - start_port = "2000" - end_port = "2500" - protocol = "all" - action = "drop" - kind = 1 - } - - packet_filters { - protocol = "tcp" - action = "drop" - d_start_port = 1000 - d_end_port = 1500 - s_start_port = 2000 - s_end_port = 2500 - pkt_length_max = 1400 - pkt_length_min = 1000 - is_include = true - match_begin = "begin_l5" - match_type = "pcre" - depth = 1000 - offset = 500 - } - - watermark_filters { - tcp_port_list = ["2000-3000", "3500-4000"] - udp_port_list = ["5000-6000"] - offset = 50 - auto_remove = true - open_switch = true - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_ddos_policy_attachment.go b/tencentcloud/resource_tc_dayu_ddos_policy_attachment.go index a2cd1e1c04..f805849ae1 100644 --- a/tencentcloud/resource_tc_dayu_ddos_policy_attachment.go +++ b/tencentcloud/resource_tc_dayu_ddos_policy_attachment.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dayu DDoS policy attachment. - -Example Usage - -```hcl -resource "tencentcloud_dayu_ddos_policy_attachment" "dayu_ddos_policy_attachment_basic" { - resource_type = tencentcloud_dayu_ddos_policy.test_policy.resource_type - resource_id = "bgpip-00000294" - policy_id = tencentcloud_dayu_ddos_policy.test_policy.policy_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_ddos_policy_case.go b/tencentcloud/resource_tc_dayu_ddos_policy_case.go index f3b307541b..bd00d8eb49 100644 --- a/tencentcloud/resource_tc_dayu_ddos_policy_case.go +++ b/tencentcloud/resource_tc_dayu_ddos_policy_case.go @@ -1,37 +1,3 @@ -/* -Use this resource to create dayu DDoS policy case - -~> **NOTE:** when a dayu DDoS policy case is created, there will be a dayu DDoS policy created with the same prefix name in the same time. This resource only supports Anti-DDoS of type `bgp`, `bgp-multip` and `bgpip`. One Anti-DDoS resource can only has one DDoS policy case resource. When there is only one Anti-DDoS resource and one policy case, those two resource will be bind automatically. - -Example Usage - -```hcl -resource "tencentcloud_dayu_ddos_policy_case" "foo" { - resource_type = "bgpip" - name = "tf_test_policy_case" - platform_types = ["PC", "MOBILE"] - app_type = "WEB" - app_protocols = ["tcp", "udp"] - tcp_start_port = "1000" - tcp_end_port = "2000" - udp_start_port = "3000" - udp_end_port = "4000" - has_abroad = "yes" - has_initiate_tcp = "yes" - has_initiate_udp = "yes" - peer_tcp_port = "1111" - peer_udp_port = "3333" - tcp_footprint = "511" - udp_footprint = "500" - web_api_urls = ["abc.com", "test.cn/aaa.png"] - min_tcp_package_len = "1000" - max_tcp_package_len = "1200" - min_udp_package_len = "1000" - max_udp_package_len = "1200" - has_vpn = "yes" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_ddos_policy_v2.go b/tencentcloud/resource_tc_dayu_ddos_policy_v2.go index 3c10a9dfdc..ef0ea127ee 100644 --- a/tencentcloud/resource_tc_dayu_ddos_policy_v2.go +++ b/tencentcloud/resource_tc_dayu_ddos_policy_v2.go @@ -1,94 +1,3 @@ -/* -Use this resource to create dayu DDoS policy v2 - -Example Usage - -```hcl -resource "tencentcloud_dayu_ddos_policy_v2" "ddos_v2" { - resource_id = "bgpip-000004xf" - business = "bgpip" - ddos_threshold="100" - ddos_level="low" - black_white_ips { - ip = "1.2.3.4" - ip_type = "black" - } - acls { - action = "transmit" - d_port_start = 1 - d_port_end = 10 - s_port_start=10 - s_port_end=20 - priority=9 - forward_protocol="all" - } - protocol_block_config { - drop_icmp=1 - drop_tcp=0 - drop_udp=0 - drop_other=0 - } - ddos_connect_limit { - sd_new_limit=10 - sd_conn_limit=11 - dst_new_limit=20 - dst_conn_limit=21 - bad_conn_threshold=30 - syn_rate=10 - syn_limit=20 - conn_timeout=30 - null_conn_enable=1 - } - ddos_ai="on" - ddos_geo_ip_block_config { - action="drop" - area_list=["100001"] - region_type="customized" - } - ddos_speed_limit_config { - protocol_list="TCP" - dst_port_list="10" - mode=1 - packet_rate=10 - bandwidth=20 - } - packet_filters { - action="drop" - protocol="all" - s_port_start=10 - s_port_end=10 - d_port_start=20 - d_port_end=20 - pktlen_min=30 - pktlen_max=30 - str="12" - str2="30" - match_logic="and" - match_type="pcre" - match_type2="pcre" - match_begin="begin_l3" - match_begin2="begin_l3" - depth=2 - depth2=3 - offset=1 - offset2=2 - is_not=0 - is_not2=0 - } - water_print_config { - offset = 1 - open_status = 1 - listeners { - frontend_port = 90 - forward_protocol = "TCP" - frontend_port_end = 90 - } - verify = "checkall" - } -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_eip.go b/tencentcloud/resource_tc_dayu_eip.go index 6d72148d48..1ec206d4dc 100644 --- a/tencentcloud/resource_tc_dayu_eip.go +++ b/tencentcloud/resource_tc_dayu_eip.go @@ -1,18 +1,3 @@ -/* -Use this resource to create dayu eip rule - -Example Usage - -```hcl -resource "tencentcloud_dayu_eip" "test" { - resource_id = "bgpip-000004xg" - eip = "162.62.163.50" - bind_resource_id = "ins-4m0jvxic" - bind_resource_region = "hk" - bind_resource_type = "cvm" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_l4_rule.go b/tencentcloud/resource_tc_dayu_l4_rule.go index 291020ab95..94fafe7c54 100644 --- a/tencentcloud/resource_tc_dayu_l4_rule.go +++ b/tencentcloud/resource_tc_dayu_l4_rule.go @@ -1,38 +1,3 @@ -/* -Use this resource to create dayu layer 4 rule - -~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` and `net` - -Example Usage - -```hcl -resource "tencentcloud_dayu_l4_rule" "test_rule" { - resource_type = "bgpip" - resource_id = "bgpip-00000294" - name = "rule_test" - protocol = "TCP" - s_port = 80 - d_port = 60 - source_type = 2 - health_check_switch = true - health_check_timeout = 30 - health_check_interval = 35 - health_check_health_num = 5 - health_check_unhealth_num = 10 - session_switch = false - session_time = 300 - - source_list { - source = "1.1.1.1" - weight = 100 - } - source_list { - source = "2.2.2.2" - weight = 50 - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_l7_rule.go b/tencentcloud/resource_tc_dayu_l7_rule.go index 5b47472b8c..eacd17b59b 100644 --- a/tencentcloud/resource_tc_dayu_l7_rule.go +++ b/tencentcloud/resource_tc_dayu_l7_rule.go @@ -1,31 +1,3 @@ -/* -Use this resource to create dayu layer 7 rule - -~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` - -Example Usage - -```hcl -resource "tencentcloud_dayu_l7_rule" "test_rule" { - resource_type = "bgpip" - resource_id = "bgpip-00000294" - name = "rule_test" - domain = "zhaoshaona.com" - protocol = "https" - switch = true - source_type = 2 - source_list = ["1.1.1.1:80", "2.2.2.2"] - ssl_id = "%s" - health_check_switch = true - health_check_code = 31 - health_check_interval = 30 - health_check_method = "GET" - health_check_path = "/" - health_check_health_num = 5 - health_check_unhealth_num = 10 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dayu_l7_rule_v2.go b/tencentcloud/resource_tc_dayu_l7_rule_v2.go index 60c2660db3..5c67ec7fad 100644 --- a/tencentcloud/resource_tc_dayu_l7_rule_v2.go +++ b/tencentcloud/resource_tc_dayu_l7_rule_v2.go @@ -1,34 +1,3 @@ -/* -Use this resource to create dayu new layer 7 rule - -~> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` - -Example Usage - -```hcl -resource "tencentcloud_dayu_l7_rule_v2" "tencentcloud_dayu_l7_rule_v2" { - resource_type="bgpip" - resource_id="bgpip-000004xe" - resource_ip="119.28.217.162" - rule { - keep_enable=false - keeptime=0 - source_list { - source="1.2.3.5" - weight=100 - } - source_list { - source="1.2.3.6" - weight=100 - } - lb_type=1 - protocol="http" - source_type=2 - domain="github.com" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dbbrain_db_diag_report_task.go b/tencentcloud/resource_tc_dbbrain_db_diag_report_task.go index d250987fce..986a0bf31b 100644 --- a/tencentcloud/resource_tc_dbbrain_db_diag_report_task.go +++ b/tencentcloud/resource_tc_dbbrain_db_diag_report_task.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a dbbrain db_diag_report_task - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_db_diag_report_task" "db_diag_report_task" { - instance_id = "%s" - start_time = "%s" - end_time = "%s" - send_mail_flag = 0 - product = "mysql" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dbbrain_modify_diag_db_instance_operation.go b/tencentcloud/resource_tc_dbbrain_modify_diag_db_instance_operation.go index d134b83fe3..1da3e8a473 100644 --- a/tencentcloud/resource_tc_dbbrain_modify_diag_db_instance_operation.go +++ b/tencentcloud/resource_tc_dbbrain_modify_diag_db_instance_operation.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a dbbrain modify_diag_db_instance_conf - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_modify_diag_db_instance_operation" "on" { - instance_confs { - daily_inspection = "Yes" - overview_display = "Yes" - } - product = "mysql" - instance_ids = ["%s"] -} -``` - -```hcl -resource "tencentcloud_dbbrain_modify_diag_db_instance_operation" "off" { - instance_confs { - daily_inspection = "No" - overview_display = "No" - } - product = "mysql" - instance_ids = ["%s"] -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dbbrain_security_audit_log_export_task.go b/tencentcloud/resource_tc_dbbrain_security_audit_log_export_task.go index 62975bf3dd..9982f0b868 100644 --- a/tencentcloud/resource_tc_dbbrain_security_audit_log_export_task.go +++ b/tencentcloud/resource_tc_dbbrain_security_audit_log_export_task.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a dbbrain security_audit_log_export_task - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_security_audit_log_export_task" "task" { - sec_audit_group_id = "sec_audit_group_id" - start_time = "2020-12-28 00:00:00" - end_time = "2020-12-28 01:00:00" - product = "mysql" - danger_levels = [0,1,2] -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dbbrain_sql_filter.go b/tencentcloud/resource_tc_dbbrain_sql_filter.go index 652297e06a..e8b1d4e110 100644 --- a/tencentcloud/resource_tc_dbbrain_sql_filter.go +++ b/tencentcloud/resource_tc_dbbrain_sql_filter.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a dbbrain sql_filter. - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} -variable "region" { - default = "ap-guangzhou" -} - -data "tencentcloud_mysql_instance" "mysql" { - instance_name = "instance_name" -} - -locals { - mysql_id = data.tencentcloud_mysql_instance.mysql.instance_list.0.mysql_id -} - -resource "tencentcloud_dbbrain_sql_filter" "sql_filter" { - instance_id = local.mysql_id - session_token { - user = "test" - password = "===password===" - } - sql_type = "SELECT" - filter_key = "filter_key" - max_concurrency = 10 - duration = 3600 -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dbbrain_tdsql_audit_log.go b/tencentcloud/resource_tc_dbbrain_tdsql_audit_log.go index bdec95bace..dff0677ff3 100644 --- a/tencentcloud/resource_tc_dbbrain_tdsql_audit_log.go +++ b/tencentcloud/resource_tc_dbbrain_tdsql_audit_log.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dbbrain tdsql_audit_log - -Example Usage - -```hcl -resource "tencentcloud_dbbrain_tdsql_audit_log" "my_log" { - product = "dcdb" - node_request_type = "dcdb" - instance_id = "%s" - start_time = "%s" - end_time = "%s" - filter { - host = ["%%", "127.0.0.1"] - user = ["tf_test", "mysql"] - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_gateway.go b/tencentcloud/resource_tc_dc_gateway.go index 596379bd21..4f2db27c6c 100644 --- a/tencentcloud/resource_tc_dc_gateway.go +++ b/tencentcloud/resource_tc_dc_gateway.go @@ -1,30 +1,3 @@ -/* -Provides a resource to creating direct connect gateway instance. - -Example Usage - -```hcl -resource "tencentcloud_vpc" "main" { - name = "ci-vpc-instance-test" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_dc_gateway" "vpc_main" { - name = "ci-cdg-vpc-test" - network_instance_id = tencentcloud_vpc.main.id - network_type = "VPC" - gateway_type = "NAT" -} -``` - -Import - -Direct connect gateway instance can be imported, e.g. - -``` -$ terraform import tencentcloud_dc_gateway.instance dcg-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_gateway_attachment.go b/tencentcloud/resource_tc_dc_gateway_attachment.go index 127ddc040a..544759a107 100644 --- a/tencentcloud/resource_tc_dc_gateway_attachment.go +++ b/tencentcloud/resource_tc_dc_gateway_attachment.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a dc_gateway_attachment - -Example Usage - -```hcl -resource "tencentcloud_dc_gateway_attachment" "dc_gateway_attachment" { - vpc_id = "vpc-4h9v4mo3" - nat_gateway_id = "nat-7kanjc6y" - direct_connect_gateway_id = "dcg-dmbhf7jf" -} -``` - -Import - -dc_gateway_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_dc_gateway_attachment.dc_gateway_attachment vpcId#dcgId#ngId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_gateway_ccn_route.go b/tencentcloud/resource_tc_dc_gateway_ccn_route.go index 5a65e6933f..fe2564c0e7 100644 --- a/tencentcloud/resource_tc_dc_gateway_ccn_route.go +++ b/tencentcloud/resource_tc_dc_gateway_ccn_route.go @@ -1,33 +1,3 @@ -/* -Provides a resource to creating direct connect gateway route entry. - -Example Usage - -```hcl -resource "tencentcloud_ccn" "main" { - name = "ci-temp-test-ccn" - description = "ci-temp-test-ccn-des" - qos = "AG" -} - -resource "tencentcloud_dc_gateway" "ccn_main" { - name = "ci-cdg-ccn-test" - network_instance_id = tencentcloud_ccn.main.id - network_type = "CCN" - gateway_type = "NORMAL" -} - -resource "tencentcloud_dc_gateway_ccn_route" "route1" { - dcg_id = tencentcloud_dc_gateway.ccn_main.id - cidr_block = "10.1.1.0/32" -} - -resource "tencentcloud_dc_gateway_ccn_route" "route2" { - dcg_id = tencentcloud_dc_gateway.ccn_main.id - cidr_block = "192.1.1.0/32" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_instance.go b/tencentcloud/resource_tc_dc_instance.go index 3573d73528..e5856e8baa 100644 --- a/tencentcloud/resource_tc_dc_instance.go +++ b/tencentcloud/resource_tc_dc_instance.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a dc instance - -Example Usage - -```hcl -resource "tencentcloud_dc_instance" "instance" { - access_point_id = "ap-shenzhen-b-ft" - bandwidth = 10 - customer_contact_number = "0" - direct_connect_name = "terraform-for-test" - line_operator = "In-houseWiring" - port_type = "10GBase-LR" - sign_law = true - vlan = -1 -} -``` - -Import - -dc instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_dc_instance.instance dc_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_internet_address.go b/tencentcloud/resource_tc_dc_internet_address.go index 78d8ff9b38..ce3fe7db8f 100644 --- a/tencentcloud/resource_tc_dc_internet_address.go +++ b/tencentcloud/resource_tc_dc_internet_address.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a dc internet_address - -Example Usage - -```hcl -resource "tencentcloud_dc_internet_address" "internet_address" { - mask_len = 30 - addr_type = 2 - addr_proto = 0 -} -``` - -Import - -dc internet_address can be imported using the id, e.g. - -``` -terraform import tencentcloud_dc_internet_address.internet_address internet_address_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_internet_address_config.go b/tencentcloud/resource_tc_dc_internet_address_config.go index 10731c74f3..d3f3e54407 100644 --- a/tencentcloud/resource_tc_dc_internet_address_config.go +++ b/tencentcloud/resource_tc_dc_internet_address_config.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a dc internet_address_config - -Example Usage - -```hcl -resource "tencentcloud_dc_internet_address" "internet_address" { - mask_len = 30 - addr_type = 2 - addr_proto = 0 -} - -resource "tencentcloud_dc_internet_address_config" "internet_address_config" { - instance_id = tencentcloud_dc_internet_address.internet_address.id - enable = false -} -``` - -Import - -dc internet_address_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dc_internet_address_config.internet_address_config internet_address_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dc_share_dcx_config.go b/tencentcloud/resource_tc_dc_share_dcx_config.go index e814e74ae3..35cbfbf38f 100644 --- a/tencentcloud/resource_tc_dc_share_dcx_config.go +++ b/tencentcloud/resource_tc_dc_share_dcx_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dc share_dcx_config - -Example Usage - -```hcl -resource "tencentcloud_dc_share_dcx_config" "share_dcx_config" { - direct_connect_tunnel_id = "dcx-4z49tnws" - enable = false -} -``` - -Import - -dc share_dcx_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dc_share_dcx_config.share_dcx_config dcx_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_account.go b/tencentcloud/resource_tc_dcdb_account.go index 1e92a55fab..ecae0fedab 100644 --- a/tencentcloud/resource_tc_dcdb_account.go +++ b/tencentcloud/resource_tc_dcdb_account.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a dcdb account - -Example Usage - -```hcl -resource "tencentcloud_dcdb_account" "account" { - instance_id = "tdsqlshard-kkpoxvnv" - user_name = "mysql" - host = "127.0.0.1" - password = "===password===" - read_only = 0 - description = "this is a test account" - max_user_connections = 10 -} - -``` -Import - -dcdb account can be imported using the id, e.g. -``` -$ terraform import tencentcloud_dcdb_account.account account_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_account_privileges.go b/tencentcloud/resource_tc_dcdb_account_privileges.go index 41e864f70b..99a139beed 100644 --- a/tencentcloud/resource_tc_dcdb_account_privileges.go +++ b/tencentcloud/resource_tc_dcdb_account_privileges.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a dcdb account_privileges - -Example Usage - -```hcl -resource "tencentcloud_dcdb_account_privileges" "account_privileges" { - instance_id = "%s" - account { - user = "tf_test" - host = "%s" - } - global_privileges = ["SHOW DATABASES","SHOW VIEW"] - database_privileges { - privileges = ["SELECT","INSERT","UPDATE","DELETE","CREATE"] - database = "tf_test_db" - } - - table_privileges { - database = "tf_test_db" - table = "tf_test_table" - privileges = ["SELECT","INSERT","UPDATE","DELETE","CREATE"] - - } -``` - -Import - -dcdb account_privileges can be imported using the id, e.g. - -``` -terraform import tencentcloud_dcdb_account_privileges.account_privileges instanceId#userName#host#dbName#tabName#viewName#colName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_activate_hour_instance_operation.go b/tencentcloud/resource_tc_dcdb_activate_hour_instance_operation.go index 37d8195475..eddc1e78fd 100644 --- a/tencentcloud/resource_tc_dcdb_activate_hour_instance_operation.go +++ b/tencentcloud/resource_tc_dcdb_activate_hour_instance_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dcdb activate_hour_instance_operation - -Example Usage - -```hcl -resource "tencentcloud_dcdb_activate_hour_instance_operation" "activate_hour_instance_operation" { - instance_id = local.dcdb_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_cancel_dcn_job_operation.go b/tencentcloud/resource_tc_dcdb_cancel_dcn_job_operation.go index db4a28a663..1ec7ce45a0 100644 --- a/tencentcloud/resource_tc_dcdb_cancel_dcn_job_operation.go +++ b/tencentcloud/resource_tc_dcdb_cancel_dcn_job_operation.go @@ -1,55 +1,3 @@ -/* -Provides a resource to create a dcdb cancel_dcn_job_operation - -Example Usage - -```hcl -data "tencentcloud_security_groups" "internal" { - name = "default" -} - -data "tencentcloud_vpc_instances" "vpc" { - name ="Default-VPC" -} - -data "tencentcloud_vpc_subnets" "subnet" { - vpc_id = data.tencentcloud_vpc_instances.vpc.instance_list.0.vpc_id -} - -locals { - vpc_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.subnet_id - sg_id = data.tencentcloud_security_groups.internal.security_groups.0.security_group_id -} - -resource "tencentcloud_dcdb_hourdb_instance" "hourdb_instance_dcn" { - instance_name = "test_dcdb_db_hourdb_instance_dcn" - zones = [var.default_az] - shard_memory = "2" - shard_storage = "10" - shard_node_count = "2" - shard_count = "2" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - security_group_id = local.sg_id - db_version_id = "8.0" - dcn_region = "ap-guangzhou" - dcn_instance_id = local.dcdb_id //master_instance - resource_tags { - tag_key = "aaa" - tag_value = "bbb" - } -} - -locals { - dcn_dcdb_id = tencentcloud_dcdb_hourdb_instance.hourdb_instance_dcn.id -} - -resource "tencentcloud_dcdb_cancel_dcn_job_operation" "cancel_operation" { - instance_id = local.dcn_dcdb_id // cancel the dcn/readonly instance -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_db_parameters.go b/tencentcloud/resource_tc_dcdb_db_parameters.go index 2307a1608a..269457c864 100644 --- a/tencentcloud/resource_tc_dcdb_db_parameters.go +++ b/tencentcloud/resource_tc_dcdb_db_parameters.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a dcdb db_parameters - -Example Usage - -```hcl -resource "tencentcloud_dcdb_db_parameters" "db_parameters" { - instance_id = "%s" - params { - param = "max_connections" - value = "9999" - } -} -``` - -Import - -dcdb db_parameters can be imported using the id, e.g. - -``` -terraform import tencentcloud_dcdb_db_parameters.db_parameters instanceId#paramName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_db_sync_mode_config.go b/tencentcloud/resource_tc_dcdb_db_sync_mode_config.go index c290cd69ff..4e21f130e2 100644 --- a/tencentcloud/resource_tc_dcdb_db_sync_mode_config.go +++ b/tencentcloud/resource_tc_dcdb_db_sync_mode_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dcdb db_sync_mode_config - -Example Usage - -```hcl -resource "tencentcloud_dcdb_db_sync_mode_config" "config" { - instance_id = "%s" - sync_mode = 2 -} -``` - -Import - -dcdb db_sync_mode_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dcdb_db_sync_mode_config.db_sync_mode_config db_sync_mode_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_encrypt_attributes_config.go b/tencentcloud/resource_tc_dcdb_encrypt_attributes_config.go index 76b36b88c2..91e538acd0 100644 --- a/tencentcloud/resource_tc_dcdb_encrypt_attributes_config.go +++ b/tencentcloud/resource_tc_dcdb_encrypt_attributes_config.go @@ -1,90 +1,3 @@ -/* -Provides a resource to create a dcdb encrypt_attributes_config - -~> **NOTE:** This resource currently only supports the newly created MySQL 8.0.24 version. - -Example Usage - -```hcl -data "tencentcloud_security_groups" "internal" { - name = "default" -} - -data "tencentcloud_vpc_instances" "vpc" { - name ="Default-VPC" -} - -data "tencentcloud_vpc_subnets" "subnet" { - vpc_id = data.tencentcloud_vpc_instances.vpc.instance_list.0.vpc_id -} - -locals { - vpc_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.subnet.instance_list.0.subnet_id - sg_id = data.tencentcloud_security_groups.internal.security_groups.0.security_group_id -} - -resource "tencentcloud_dcdb_db_instance" "prepaid_instance" { - instance_name = "test_dcdb_db_post_instance" - zones = [var.default_az] - period = 1 - shard_memory = "2" - shard_storage = "10" - shard_node_count = "2" - shard_count = "2" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - db_version_id = "8.0" - resource_tags { - tag_key = "aaa" - tag_value = "bbb" - } - security_group_ids = [local.sg_id] -} - -resource "tencentcloud_dcdb_hourdb_instance" "hourdb_instance" { - instance_name = "test_dcdb_db_hourdb_instance" - zones = [var.default_az] - shard_memory = "2" - shard_storage = "10" - shard_node_count = "2" - shard_count = "2" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - security_group_id = local.sg_id - db_version_id = "8.0" - resource_tags { - tag_key = "aaa" - tag_value = "bbb" - } -} - -locals { - prepaid_dcdb_id = tencentcloud_dcdb_db_instance.prepaid_instance.id - hourdb_dcdb_id = tencentcloud_dcdb_hourdb_instance.hourdb_instance.id -} - -// for postpaid instance -resource "tencentcloud_dcdb_encrypt_attributes_config" "config_hourdb" { - instance_id = local.hourdb_dcdb_id - encrypt_enabled = 1 -} - -// for prepaid instance -resource "tencentcloud_dcdb_encrypt_attributes_config" "config_prepaid" { - instance_id = local.prepaid_dcdb_id - encrypt_enabled = 1 -} -``` - -Import - -dcdb encrypt_attributes_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dcdb_encrypt_attributes_config.encrypt_attributes_config encrypt_attributes_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_flush_binlog_operation.go b/tencentcloud/resource_tc_dcdb_flush_binlog_operation.go index 4bb52055e4..83bb609990 100644 --- a/tencentcloud/resource_tc_dcdb_flush_binlog_operation.go +++ b/tencentcloud/resource_tc_dcdb_flush_binlog_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dcdb flush_binlog_operation - -Example Usage - -```hcl -resource "tencentcloud_dcdb_flush_binlog_operation" "flush_operation" { - instance_id = local.dcdb_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_hourdb_instance.go b/tencentcloud/resource_tc_dcdb_hourdb_instance.go index ae53c002ec..c383047f09 100644 --- a/tencentcloud/resource_tc_dcdb_hourdb_instance.go +++ b/tencentcloud/resource_tc_dcdb_hourdb_instance.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a dcdb hourdb_instance - -Example Usage - -```hcl -resource "tencentcloud_dcdb_hourdb_instance" "hourdb_instance" { - instance_name = "test_dcdc_dc_instance" - zones = ["ap-guangzhou-5", "ap-guangzhou-6"] - shard_memory = "2" - shard_storage = "10" - shard_node_count = "2" - shard_count = "2" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - security_group_id = local.sg_id - db_version_id = "8.0" - resource_tags { - tag_key = "aaa" - tag_value = "bbb" - } -} - -``` -Import - -dcdb hourdb_instance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_dcdb_hourdb_instance.hourdb_instance hourdbInstance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_instance_config.go b/tencentcloud/resource_tc_dcdb_instance_config.go index 466fe65c13..9f7764cc20 100644 --- a/tencentcloud/resource_tc_dcdb_instance_config.go +++ b/tencentcloud/resource_tc_dcdb_instance_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dcdb instance_config - -Example Usage - -```hcl -resource "tencentcloud_dcdb_instance_config" "instance_config" { - instance_id = local.dcdb_id - rs_access_strategy = 0 -} -``` - -Import - -dcdb instance_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dcdb_instance_config.instance_config instance_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_isolate_hour_instance_operation.go b/tencentcloud/resource_tc_dcdb_isolate_hour_instance_operation.go index ed19877080..a23f3095ee 100644 --- a/tencentcloud/resource_tc_dcdb_isolate_hour_instance_operation.go +++ b/tencentcloud/resource_tc_dcdb_isolate_hour_instance_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dcdb isolate_hour_instance_operation - -Example Usage - -```hcl -resource "tencentcloud_dcdb_isolate_hour_instance_operation" "isolate_hour_instance_operation" { - instance_ids = local.dcdb_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_security_group_attachment.go b/tencentcloud/resource_tc_dcdb_security_group_attachment.go index 70d09bda17..ae91bee5f2 100644 --- a/tencentcloud/resource_tc_dcdb_security_group_attachment.go +++ b/tencentcloud/resource_tc_dcdb_security_group_attachment.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a dcdb security_group_attachment - -Example Usage - -```hcl -resource "tencentcloud_dcdb_security_group_attachment" "security_group_attachment" { - security_group_id = "" - instance_id = "" -} - -``` -Import - -dcdb security_group_attachment can be imported using the id, e.g. -``` -$ terraform import tencentcloud_dcdb_security_group_attachment.security_group_attachment securityGroupAttachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcdb_switch_db_instance_ha_operation.go b/tencentcloud/resource_tc_dcdb_switch_db_instance_ha_operation.go index 02c2454f4f..abde361680 100644 --- a/tencentcloud/resource_tc_dcdb_switch_db_instance_ha_operation.go +++ b/tencentcloud/resource_tc_dcdb_switch_db_instance_ha_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a dcdb switch_db_instance_ha_operation - -Example Usage - -```hcl -resource "tencentcloud_dcdb_switch_db_instance_ha_operation" "switch_operation" { - instance_id = local.dcdb_id - zone = "ap-guangzhou-4" //3 to 4 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcx.go b/tencentcloud/resource_tc_dcx.go index cb909c949c..4d990324df 100644 --- a/tencentcloud/resource_tc_dcx.go +++ b/tencentcloud/resource_tc_dcx.go @@ -1,50 +1,3 @@ -/* -Provides a resource to creating dedicated tunnels instances. - -~> **NOTE:** 1. ID of the DC is queried, can only apply for this resource offline. - -Example Usage - -```hcl -variable "dc_id" { - default = "dc-kax48sg7" -} - -variable "dcg_id" { - default = "dcg-dmbhf7jf" -} - -variable "vpc_id" { - default = "vpc-4h9v4mo3" -} - -resource "tencentcloud_dcx" "bgp_main" { - bandwidth = 900 - dc_id = var.dc_id - dcg_id = var.dcg_id - name = "bgp_main" - network_type = "VPC" - route_type = "BGP" - vlan = 306 - vpc_id = var.vpc_id -} - -resource "tencentcloud_dcx" "static_main" { - bandwidth = 900 - dc_id = var.dc_id - dcg_id = var.dcg_id - name = "static_main" - dc_owner_account = "xxxxxxxx" - network_type = "VPC" - route_type = "STATIC" - vlan = 301 - vpc_id = var.vpc_id - route_filter_prefixes = ["10.10.10.101/32"] - tencent_address = "100.93.46.1/30" - customer_address = "100.93.46.2/30" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dcx_extra_config.go b/tencentcloud/resource_tc_dcx_extra_config.go index 85dbd09362..be548f3c98 100644 --- a/tencentcloud/resource_tc_dcx_extra_config.go +++ b/tencentcloud/resource_tc_dcx_extra_config.go @@ -1,51 +1,3 @@ -/* -Provides a resource to create a dc dcx_extra_config - -Example Usage - -```hcl -resource "tencentcloud_dcx_extra_config" "dcx_extra_config" { - direct_connect_tunnel_id = "dcx-4z49tnws" - vlan = 123 - bgp_peer { - asn = 65101 - auth_key = "test123" - - } - route_filter_prefixes { - cidr = "192.168.0.0/24" - } - tencent_address = "192.168.1.1" - tencent_backup_address = "192.168.1.2" - customer_address = "192.168.1.4" - bandwidth = 10 - enable_bgp_community = false - bfd_enable = 0 - nqa_enable = 1 - bfd_info { - probe_failed_times = 3 - interval = 100 - - } - nqa_info { - probe_failed_times = 3 - interval = 100 - destination_ip = "192.168.2.2" - - } - ipv6_enable = 0 - jumbo_enable = 0 -} -``` - -Import - -dc dcx_extra_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dcx_extra_config.dcx_extra_config dcx_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_add_users_to_work_group_attachment.go b/tencentcloud/resource_tc_dlc_add_users_to_work_group_attachment.go index 40d1743cb6..36c36a11c4 100644 --- a/tencentcloud/resource_tc_dlc_add_users_to_work_group_attachment.go +++ b/tencentcloud/resource_tc_dlc_add_users_to_work_group_attachment.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a dlc add_users_to_work_group_attachment - -Example Usage - -```hcl -resource "tencentcloud_dlc_add_users_to_work_group_attachment" "add_users_to_work_group_attachment" { - add_info { - work_group_id = 23184 - user_ids = [100032676511] - } -} -} -``` - -Import - -dlc add_users_to_work_group_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_add_users_to_work_group_attachment.add_users_to_work_group_attachment add_users_to_work_group_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_bind_work_groups_to_user_attachment.go b/tencentcloud/resource_tc_dlc_bind_work_groups_to_user_attachment.go index 681fd7e11b..266aeb899c 100644 --- a/tencentcloud/resource_tc_dlc_bind_work_groups_to_user_attachment.go +++ b/tencentcloud/resource_tc_dlc_bind_work_groups_to_user_attachment.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a dlc bind_work_groups_to_user - -Example Usage - -```hcl -resource "tencentcloud_dlc_bind_work_groups_to_user_attachment" "bind_work_groups_to_user" { - add_info { - user_id = "100032772113" - work_group_ids = [23184,23181] - } -} -``` - -Import - -dlc bind_work_groups_to_user can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_bind_work_groups_to_user_attachment.bind_work_groups_to_user bind_work_groups_to_user_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_data_engine.go b/tencentcloud/resource_tc_dlc_data_engine.go index 2f89e78ce6..8ab684f3ee 100644 --- a/tencentcloud/resource_tc_dlc_data_engine.go +++ b/tencentcloud/resource_tc_dlc_data_engine.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a dlc data_engine - -Example Usage - -```hcl -resource "tencentcloud_dlc_data_engine" "data_engine" { - engine_type = "spark" - data_engine_name = "testSpark" - cluster_type = "spark_cu" - mode = 1 - auto_resume = false - size = 16 - pay_mode = 0 - min_clusters = 1 - max_clusters = 1 - default_data_engine = false - cidr_block = "10.255.0.0/16" - message = "test spark1" - time_span = 1 - time_unit = "h" - auto_suspend = false - crontab_resume_suspend = 0 - engine_exec_type = "BATCH" -} -``` - -Import - -dlc data_engine can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_data_engine.data_engine data_engine_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_modify_data_engine_description_operation.go b/tencentcloud/resource_tc_dlc_modify_data_engine_description_operation.go index 5479281b6f..e4103fac88 100644 --- a/tencentcloud/resource_tc_dlc_modify_data_engine_description_operation.go +++ b/tencentcloud/resource_tc_dlc_modify_data_engine_description_operation.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dlc modify_data_engine_description_operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_modify_data_engine_description_operation" "modify_data_engine_description_operation" { - data_engine_name = "testEngine" - message = "test" -} -``` - -Import - -dlc modify_data_engine_description_operation can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_modify_data_engine_description_operation.modify_data_engine_description_operation modify_data_engine_description_operation_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_modify_user_typ_operation.go b/tencentcloud/resource_tc_dlc_modify_user_typ_operation.go index 469f5981af..3addfb068c 100644 --- a/tencentcloud/resource_tc_dlc_modify_user_typ_operation.go +++ b/tencentcloud/resource_tc_dlc_modify_user_typ_operation.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dlc modify_user_typ_operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_modify_user_typ_operation" "modify_user_typ_operation" { - user_id = "127382378" - user_type = "ADMIN" -} -``` - -Import - -dlc modify_user_typ_operation can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_modify_user_typ_operation.modify_user_typ_operation modify_user_typ_operation_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_renew_data_engine_operation.go b/tencentcloud/resource_tc_dlc_renew_data_engine_operation.go index a0c5360dc9..b8d2b97324 100644 --- a/tencentcloud/resource_tc_dlc_renew_data_engine_operation.go +++ b/tencentcloud/resource_tc_dlc_renew_data_engine_operation.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a dlc renew_data_engine - -Example Usage - -```hcl -resource "tencentcloud_dlc_renew_data_engine_operation" "renew_data_engine" { - data_engine_name = "testEngine" - time_span = 3600 - pay_mode = 1 - time_unit = "m" - renew_flag = 1 -} -``` - -Import - -dlc renew_data_engine can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_renew_data_engine_operation.renew_data_engine renew_data_engine_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_restart_data_engine_operation.go b/tencentcloud/resource_tc_dlc_restart_data_engine_operation.go index dac286a2a4..b093f5db59 100644 --- a/tencentcloud/resource_tc_dlc_restart_data_engine_operation.go +++ b/tencentcloud/resource_tc_dlc_restart_data_engine_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dlc restart_data_engine - -Example Usage - -```hcl -resource "tencentcloud_dlc_restart_data_engine_operation" "restart_data_engine" { - data_engine_id = "DataEngine-g5ds87d8" - forced_operation = false -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_rollback_data_engine_image_operation.go b/tencentcloud/resource_tc_dlc_rollback_data_engine_image_operation.go index 2151749c8a..03a6c0ad58 100644 --- a/tencentcloud/resource_tc_dlc_rollback_data_engine_image_operation.go +++ b/tencentcloud/resource_tc_dlc_rollback_data_engine_image_operation.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a dlc rollback_data_engine_image - -Example Usage - -```hcl -data "tencentcloud_dlc_check_data_engine_image_can_be_rollback" "check_data_engine_image_can_be_rollback" { - data_engine_id = "DataEngine-cgkvbas6" -} -resource "tencentcloud_dlc_rollback_data_engine_image_operation" "rollback_data_engine_image" { - data_engine_id = "DataEngine-cgkvbas6" - from_record_id = data.tencentcloud_dlc_check_data_engine_image_can_be_rollback.check_data_engine_image_can_be_rollback.from_record_id - to_record_id = data.tencentcloud_dlc_check_data_engine_image_can_be_rollback.check_data_engine_image_can_be_rollback.to_record_id -} -``` - -Import - -dlc rollback_data_engine_image can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_rollback_data_engine_image_operation.rollback_data_engine_image rollback_data_engine_image_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_store_location_config.go b/tencentcloud/resource_tc_dlc_store_location_config.go index db35b35a2f..1b28727634 100644 --- a/tencentcloud/resource_tc_dlc_store_location_config.go +++ b/tencentcloud/resource_tc_dlc_store_location_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dlc store_location_config - -Example Usage - -```hcl -resource "tencentcloud_dlc_store_location_config" "store_location_config" { - store_location = "cosn://bucketname/" - enable = 1 -} -``` - -Import - -dlc store_location_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_store_location_config.store_location_config store_location_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_suspend_resume_data_engine.go b/tencentcloud/resource_tc_dlc_suspend_resume_data_engine.go index 03d60e2a57..3143511bac 100644 --- a/tencentcloud/resource_tc_dlc_suspend_resume_data_engine.go +++ b/tencentcloud/resource_tc_dlc_suspend_resume_data_engine.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dlc suspend_resume_data_engine - -Example Usage - -```hcl -resource "tencentcloud_dlc_suspend_resume_data_engine" "suspend_resume_data_engine" { - data_engine_name = "example-iac" - operate = "suspend" -} -``` - -Import - -dlc suspend_resume_data_engine can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_suspend_resume_data_engine.suspend_resume_data_engine suspend_resume_data_engine_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_switch_data_engine_image_operation.go b/tencentcloud/resource_tc_dlc_switch_data_engine_image_operation.go index 701e3a3096..5c86db6bc4 100644 --- a/tencentcloud/resource_tc_dlc_switch_data_engine_image_operation.go +++ b/tencentcloud/resource_tc_dlc_switch_data_engine_image_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dlc switch_data_engine_image_operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_switch_data_engine_image_operation" "switch_data_engine_image_operation" { - data_engine_id = "DataEngine-g5ds87d8" - new_image_version_id = "344ba1c6-b7a9-403a-a255-422fffed6d38" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_update_data_engine_config_operation.go b/tencentcloud/resource_tc_dlc_update_data_engine_config_operation.go index a9538d6ad6..cf239eb8c3 100644 --- a/tencentcloud/resource_tc_dlc_update_data_engine_config_operation.go +++ b/tencentcloud/resource_tc_dlc_update_data_engine_config_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dlc update_data_engine_config_operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_update_data_engine_config_operation" "update_data_engine_config_operation" { - data_engine_id = "DataEngine-o3lzpqpo" - data_engine_config_command = "UpdateSparkSQLLakefsPath" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_update_row_filter_operation.go b/tencentcloud/resource_tc_dlc_update_row_filter_operation.go index c9ee6b2fc4..47a16ea228 100644 --- a/tencentcloud/resource_tc_dlc_update_row_filter_operation.go +++ b/tencentcloud/resource_tc_dlc_update_row_filter_operation.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a dlc update_row_filter_operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_update_row_filter_operation" "update_row_filter_operation" { - policy_id = 103704 - policy { - database = "test_iac_keep" - catalog = "DataLakeCatalog" - table = "test_table" - operation = "value!=\"0\"" - policy_type = "ROWFILTER" - function = "" - view = "" - column = "" - source = "USER" - mode = "SENIOR" - re_auth = false - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_upgrade_data_engine_image_operation.go b/tencentcloud/resource_tc_dlc_upgrade_data_engine_image_operation.go index 09e05e98e3..c20280b6c7 100644 --- a/tencentcloud/resource_tc_dlc_upgrade_data_engine_image_operation.go +++ b/tencentcloud/resource_tc_dlc_upgrade_data_engine_image_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a dlc upgrade_data_engine_image_operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_upgrade_data_engine_image_operation" "upgrade_data_engine_image_operation" { - data_engine_id = "DataEngine-g5ds87d8" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_user.go b/tencentcloud/resource_tc_dlc_user.go index 62f9510cb3..5610c15843 100644 --- a/tencentcloud/resource_tc_dlc_user.go +++ b/tencentcloud/resource_tc_dlc_user.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a dlc user - -Example Usage - -```hcl -resource "tencentcloud_dlc_user" "user" { - user_id = "100027012454" - user_type = "COMMON" - user_alias = "terraform-test" - user_description = "for terraform test" -} -``` - -Import - -dlc user can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_user.user user_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_user_data_engine_config.go b/tencentcloud/resource_tc_dlc_user_data_engine_config.go index 63c0d6a8bd..8c59ae3eb0 100644 --- a/tencentcloud/resource_tc_dlc_user_data_engine_config.go +++ b/tencentcloud/resource_tc_dlc_user_data_engine_config.go @@ -1,32 +1,3 @@ -/* -Provides a resource to create a dlc user_data_engine_config - -Example Usage - -```hcl -resource "tencentcloud_dlc_user_data_engine_config" "user_data_engine_config" { - data_engine_id = "DataEngine-cgkvbas6" - data_engine_config_pairs { - config_item = "qq" - config_value = "ff" - } - session_resource_template { - driver_size = "small" - executor_size = "small" - executor_nums = 1 - executor_max_numbers = 1 - } -} -``` - -Import - -dlc user_data_engine_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_user_data_engine_config.user_data_engine_config user_data_engine_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dlc_work_group.go b/tencentcloud/resource_tc_dlc_work_group.go index 017e005c7a..4b290fc7a5 100644 --- a/tencentcloud/resource_tc_dlc_work_group.go +++ b/tencentcloud/resource_tc_dlc_work_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dlc work_group - -Example Usage - -```hcl -resource "tencentcloud_dlc_work_group" "work_group" { - work_group_name = "tf-demo" - work_group_description = "dlc workgroup test" -} -``` - -Import - -dlc work_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_dlc_work_group.work_group work_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnat.go b/tencentcloud/resource_tc_dnat.go index a06c660042..a0b2527e4a 100644 --- a/tencentcloud/resource_tc_dnat.go +++ b/tencentcloud/resource_tc_dnat.go @@ -1,94 +1,3 @@ -/* -Provides a resource to create a NAT forwarding. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -data "tencentcloud_images" "example" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "example-vpc" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_eip" "eip_example" { - name = "tf_nat_gateway_eip" -} - -resource "tencentcloud_nat_gateway" "example" { - name = "tf_example_nat_gateway" - vpc_id = tencentcloud_vpc.vpc.id - bandwidth = 100 - max_concurrent = 1000000 - assigned_eip_set = [ - tencentcloud_eip.eip_example.public_ip, - ] - tags = { - tf_tag_key = "tf_tag_value" - } -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example_instance" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - image_id = data.tencentcloud_images.example.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - allocate_public_ip = true - internet_max_bandwidth_out = 10 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_dnat" "example" { - vpc_id = tencentcloud_vpc.vpc.id - nat_id = tencentcloud_nat_gateway.example.id - protocol = "TCP" - elastic_ip = tencentcloud_eip.eip_example.public_ip - elastic_port = 80 - private_ip = tencentcloud_instance.example.private_ip - private_port = 9090 - description = "desc." -} -``` - -Import - -NAT forwarding can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_dnat.foo tcp://vpc-asg3sfa3:nat-1asg3t63@127.15.2.3:8080 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_custom_line.go b/tencentcloud/resource_tc_dnspod_custom_line.go index 74cdf323ab..b9a3925588 100644 --- a/tencentcloud/resource_tc_dnspod_custom_line.go +++ b/tencentcloud/resource_tc_dnspod_custom_line.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a dnspod custom_line - -~> **NOTE:** Terraform uses the combined id of doamin and name when importing. When the name changes, the combined id will also change. - -Example Usage - -```hcl -resource "tencentcloud_dnspod_custom_line" "custom_line" { - domain = "dnspod.com" - name = "testline8" - area = "6.6.6.1-6.6.6.2" -} -``` - -Import - -dnspod custom_line can be imported using the id, e.g. - -``` -terraform import tencentcloud_dnspod_custom_line.custom_line domain#name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_domain_alias.go b/tencentcloud/resource_tc_dnspod_domain_alias.go index 4dbd870ec5..97e3c1d0bc 100644 --- a/tencentcloud/resource_tc_dnspod_domain_alias.go +++ b/tencentcloud/resource_tc_dnspod_domain_alias.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dnspod domain_alias - -Example Usage - -```hcl -resource "tencentcloud_dnspod_domain_alias" "domain_alias" { - domain_alias = "dnspod.com" - domain = "dnspod.cn" -} -``` - -Import - -dnspod domain_alias can be imported using the id, e.g. - -``` -terraform import tencentcloud_dnspod_domain_alias.domain_alias domain#domain_alias_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_domain_instance.go b/tencentcloud/resource_tc_dnspod_domain_instance.go index 5a3ab3b063..88c16c5739 100644 --- a/tencentcloud/resource_tc_dnspod_domain_instance.go +++ b/tencentcloud/resource_tc_dnspod_domain_instance.go @@ -1,23 +1,3 @@ -/* -Provide a resource to create a DnsPod Domain instance. - -Example Usage - -```hcl -resource "tencentcloud_dnspod_domain_instance" "foo" { - domain = "hello.com" - remark = "this is demo" -} -``` - -Import - -DnsPod Domain instance can be imported, e.g. - -``` -$ terraform import tencentcloud_dnspod_domain_instance.foo domain -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_domain_lock.go b/tencentcloud/resource_tc_dnspod_domain_lock.go index 619ea158b6..a561a02d71 100644 --- a/tencentcloud/resource_tc_dnspod_domain_lock.go +++ b/tencentcloud/resource_tc_dnspod_domain_lock.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dnspod domain_lock - -Example Usage - -```hcl -resource "tencentcloud_dnspod_domain_lock" "domain_lock" { - domain = "dnspod.cn" - lock_days = 30 -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_download_snapshot_operation.go b/tencentcloud/resource_tc_dnspod_download_snapshot_operation.go index 6637a47192..4a6bfb739e 100644 --- a/tencentcloud/resource_tc_dnspod_download_snapshot_operation.go +++ b/tencentcloud/resource_tc_dnspod_download_snapshot_operation.go @@ -1,13 +1,3 @@ -/* -Provides a resource to create a dnspod download_snapshot -Example Usage -```hcl -resource "tencentcloud_dnspod_download_snapshot_operation" "download_snapshot" { - domain = "dnspod.cn" - snapshot_id = "456" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_modify_domain_owner_operation.go b/tencentcloud/resource_tc_dnspod_modify_domain_owner_operation.go index ead5fa507d..04701bdc79 100644 --- a/tencentcloud/resource_tc_dnspod_modify_domain_owner_operation.go +++ b/tencentcloud/resource_tc_dnspod_modify_domain_owner_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dnspod modify_domain_owner - -Example Usage - -```hcl -resource "tencentcloud_dnspod_modify_domain_owner_operation" "modify_domain_owner" { - domain = "dnspod.cn" - account = "xxxxxxxxx" - domain_id = 123 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_modify_record_group_operation.go b/tencentcloud/resource_tc_dnspod_modify_record_group_operation.go index 3e01f5ee67..e604a4690c 100644 --- a/tencentcloud/resource_tc_dnspod_modify_record_group_operation.go +++ b/tencentcloud/resource_tc_dnspod_modify_record_group_operation.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a dnspod tencentcloud_dnspod_modify_record_group_operation - -Example Usage - -```hcl -resource "tencentcloud_dnspod_modify_record_group_operation" "modify_record_group" { - domain = "dnspod.cn" - group_id = 1 - record_id = "234|345" - domain_id = 123 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_record.go b/tencentcloud/resource_tc_dnspod_record.go index 36b1f68d52..3e85740c46 100644 --- a/tencentcloud/resource_tc_dnspod_record.go +++ b/tencentcloud/resource_tc_dnspod_record.go @@ -1,28 +1,3 @@ -/* -Provide a resource to create a DnsPod record. - -~> **NOTE:** Versions before v1.81.43 (including v1.81.43) do not support modifying remark or modifying remark has bug. - -Example Usage - -```hcl -resource "tencentcloud_dnspod_record" "demo" { - domain="mikatong.com" - record_type="A" - record_line="默认" - value="1.2.3.9" - sub_domain="demo" -} -``` - -Import - -DnsPod Domain record can be imported using the Domain#RecordId, e.g. - -``` -$ terraform import tencentcloud_dnspod_record.demo arunma.com#1194109872 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_record_group.go b/tencentcloud/resource_tc_dnspod_record_group.go index 6ab5589c82..157c5e5156 100644 --- a/tencentcloud/resource_tc_dnspod_record_group.go +++ b/tencentcloud/resource_tc_dnspod_record_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dnspod record_group - -Example Usage - -```hcl -resource "tencentcloud_dnspod_record_group" "record_group" { - domain = "dnspod.cn" - group_name = "group_demo" -} -``` - -Import - -dnspod record_group can be imported using the domain#groupId, e.g. - -``` -terraform import tencentcloud_dnspod_record_group.record_group domain#groupId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dnspod_snapshot_config.go b/tencentcloud/resource_tc_dnspod_snapshot_config.go index c186105a52..39921f10ca 100644 --- a/tencentcloud/resource_tc_dnspod_snapshot_config.go +++ b/tencentcloud/resource_tc_dnspod_snapshot_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a dnspod snapshot_config - -Example Usage - -```hcl -resource "tencentcloud_dnspod_snapshot_config" "snapshot_config" { - domain = "dnspod.cn" - period = "hourly" -} -``` - -Import - -dnspod snapshot_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dnspod_snapshot_config.snapshot_config domain -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_compare_task.go b/tencentcloud/resource_tc_dts_compare_task.go index 431bb9c718..98b50dcfff 100644 --- a/tencentcloud/resource_tc_dts_compare_task.go +++ b/tencentcloud/resource_tc_dts_compare_task.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a dts compare_task - -Example Usage - -```hcl -resource "tencentcloud_dts_compare_task" "compare_task" { - job_id = "" - task_name = "" - object_mode = "" - objects { - object_mode = "" - object_items { - db_name = "" - db_mode = "" - schema_name = "" - table_mode = "" - tables { - table_name = "" - } - view_mode = "" - views { - view_name = "" - } - } - - } - } - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_compare_task_stop_operation.go b/tencentcloud/resource_tc_dts_compare_task_stop_operation.go index 7a0a3b102f..ebb8065293 100644 --- a/tencentcloud/resource_tc_dts_compare_task_stop_operation.go +++ b/tencentcloud/resource_tc_dts_compare_task_stop_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dts compare_task_stop_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_compare_task_stop_operation" "compare_task_stop_operation" { - job_id = "dts-8yv4w2i1" - compare_task_id = "dts-8yv4w2i1-cmp-37skmii9" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_migrate_job.go b/tencentcloud/resource_tc_dts_migrate_job.go index 713cde0cb2..84ac2baede 100644 --- a/tencentcloud/resource_tc_dts_migrate_job.go +++ b/tencentcloud/resource_tc_dts_migrate_job.go @@ -1,126 +1,3 @@ -/* -Provides a resource to create a dts migrate_job - -Example Usage - -```hcl -resource "tencentcloud_cynosdb_cluster" "foo" { - available_zone = var.availability_zone - vpc_id = local.vpc_id - subnet_id = local.subnet_id - db_type = "MYSQL" - db_version = "5.7" - storage_limit = 1000 - cluster_name = "tf-cynosdb-mysql" - password = "cynos@123" - instance_maintain_duration = 3600 - instance_maintain_start_time = 10800 - instance_maintain_weekdays = [ - "Fri", - "Mon", - "Sat", - "Sun", - "Thu", - "Wed", - "Tue", - ] - - instance_cpu_core = 1 - instance_memory_size = 2 - param_items { - name = "character_set_server" - current_value = "utf8" - } - param_items { - name = "time_zone" - current_value = "+09:00" - } - param_items { - name = "lower_case_table_names" - current_value = "1" - } - - force_delete = true - - rw_group_sg = [ - local.sg_id - ] - ro_group_sg = [ - local.sg_id - ] - prarm_template_id = var.my_param_template - } - -resource "tencentcloud_dts_migrate_service" "service" { - src_database_type = "mysql" - dst_database_type = "cynosdbmysql" - src_region = "ap-guangzhou" - dst_region = "ap-guangzhou" - instance_class = "small" - job_name = "tf_test_migration_service_1" - tags { - tag_key = "aaa" - tag_value = "bbb" - } - } - -resource "tencentcloud_dts_migrate_job" "job" { - service_id = tencentcloud_dts_migrate_service.service.id - run_mode = "immediate" - migrate_option { - database_table { - object_mode = "partial" - databases { - db_name = "tf_ci_test" - db_mode = "partial" - table_mode = "partial" - tables { - table_name = "test" - new_table_name = "test_%s" - table_edit_mode = "rename" - } - } - } - } - src_info { - region = "ap-guangzhou" - access_type = "cdb" - database_type = "mysql" - node_type = "simple" - info { - user = "user_name" - password = "your_pw" - instance_id = "cdb-fitq5t9h" - } - - } - dst_info { - region = "ap-guangzhou" - access_type = "cdb" - database_type = "cynosdbmysql" - node_type = "simple" - info { - user = "user_name" - password = "your_pw" - instance_id = tencentcloud_cynosdb_cluster.foo.id - } - } - auto_retry_time_range_minutes = 0 -} - -resource "tencentcloud_dts_migrate_job_start_operation" "start"{ - job_id = tencentcloud_dts_migrate_job.job.id -} -``` - -Import - -dts migrate_job can be imported using the id, e.g. - -``` -terraform import tencentcloud_dts_migrate_job.migrate_job migrate_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_migrate_job_config.go b/tencentcloud/resource_tc_dts_migrate_job_config.go index f119072700..2a39133d0f 100644 --- a/tencentcloud/resource_tc_dts_migrate_job_config.go +++ b/tencentcloud/resource_tc_dts_migrate_job_config.go @@ -1,118 +1,3 @@ -/* -Provides a resource to create a dts migrate_job_config - -Example Usage - -```hcl -resource "tencentcloud_dts_migrate_service" "service" { - src_database_type = "mysql" - dst_database_type = "cynosdbmysql" - src_region = "ap-guangzhou" - dst_region = "ap-guangzhou" - instance_class = "small" - job_name = "tf_test_xxx" - tags { - tag_key = "aaa" - tag_value = "bbb" - } - } - -resource "tencentcloud_dts_migrate_job" "job" { - service_id = tencentcloud_dts_migrate_service.service.id - run_mode = "immediate" - migrate_option { - database_table { - object_mode = "partial" - databases { - db_name = "tf_ci_test" - db_mode = "partial" - table_mode = "partial" - tables { - table_name = "test" - new_table_name = "test_xxx" - table_edit_mode = "rename" - } - } - } - } - src_info { - region = "ap-guangzhou" - access_type = "cdb" - database_type = "mysql" - node_type = "simple" - info { - user = "root" - password = "xxx" - instance_id = "id" - } - - } - dst_info { - region = "ap-guangzhou" - access_type = "cdb" - database_type = "cynosdbmysql" - node_type = "simple" - info { - user = "user" - password = "xxx" - instance_id = "id" - } - } - auto_retry_time_range_minutes = 0 -} - -resource "tencentcloud_dts_migrate_job_start_operation" "start"{ - job_id = tencentcloud_dts_migrate_job.job.id -} - -// pause the migration job -resource "tencentcloud_dts_migrate_job_config" "config" { - job_id = tencentcloud_dts_migrate_job_start_operation.start.id - action = "pause" -} -``` - -Continue the a migration job -``` -resource "tencentcloud_dts_migrate_job_config" "config" { - job_id = tencentcloud_dts_migrate_job_start_operation.start.id - action = "continue" -} -``` - -Complete a migration job when the status is readyComplete -``` -resource "tencentcloud_dts_migrate_job_config" "config" { - job_id = tencentcloud_dts_migrate_job_start_operation.start.id - action = "continue" -} -``` - -Stop a running migration job -``` -resource "tencentcloud_dts_migrate_job_config" "config" { - job_id = tencentcloud_dts_migrate_job_start_operation.start.id - action = "stop" -} -``` - -Isolate a stopped/canceled migration job -``` -resource "tencentcloud_dts_migrate_job_config" "config" { - job_id = tencentcloud_dts_migrate_job_start_operation.start.id - action = "isolate" -} -``` - -Recover a isolated migration job -``` -resource "tencentcloud_dts_migrate_job_config" "config" { - job_id = tencentcloud_dts_migrate_job_start_operation.start.id - action = "recover" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_migrate_job_resume_operation.go b/tencentcloud/resource_tc_dts_migrate_job_resume_operation.go index 334660dacf..59ec45847e 100644 --- a/tencentcloud/resource_tc_dts_migrate_job_resume_operation.go +++ b/tencentcloud/resource_tc_dts_migrate_job_resume_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a dts migrate_job_resume_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_migrate_job_resume_operation" "resume" { - job_id = "job_id" - resume_option = "normal" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_migrate_job_start_operation.go b/tencentcloud/resource_tc_dts_migrate_job_start_operation.go index c3d738a996..f901240918 100644 --- a/tencentcloud/resource_tc_dts_migrate_job_start_operation.go +++ b/tencentcloud/resource_tc_dts_migrate_job_start_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to start a dts migrate_job - -Example Usage - -```hcl -resource "tencentcloud_dts_migrate_job_start_operation" "start"{ - job_id = tencentcloud_dts_migrate_job.job.id -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_migrate_service.go b/tencentcloud/resource_tc_dts_migrate_service.go index 759422341b..9908bcd1fa 100644 --- a/tencentcloud/resource_tc_dts_migrate_service.go +++ b/tencentcloud/resource_tc_dts_migrate_service.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a dts migrate_service - -Example Usage - -```hcl -resource "tencentcloud_dts_migrate_service" "migrate_service" { - src_database_type = "mysql" - dst_database_type = "cynosdbmysql" - src_region = "ap-guangzhou" - dst_region = "ap-guangzhou" - instance_class = "small" - job_name = "tf_test_migration_job" - tags { - tag_key = "aaa" - tag_value = "bbb" - } -} - -``` -Import - -dts migrate_service can be imported using the id, e.g. -``` -$ terraform import tencentcloud_dts_migrate_service.migrate_service migrateService_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_check_job_operation.go b/tencentcloud/resource_tc_dts_sync_check_job_operation.go index 05dffd856b..fdf12bed23 100644 --- a/tencentcloud/resource_tc_dts_sync_check_job_operation.go +++ b/tencentcloud/resource_tc_dts_sync_check_job_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_check_job_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_check_job_operation" "sync_check_job_operation" { - job_id = "" - } -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_config.go b/tencentcloud/resource_tc_dts_sync_config.go index cecca6affb..f4ec4fe028 100644 --- a/tencentcloud/resource_tc_dts_sync_config.go +++ b/tencentcloud/resource_tc_dts_sync_config.go @@ -1,203 +1,3 @@ -/* -Provides a resource to create a dts sync_config - -Example Usage - -Sync mysql database to cynosdb through cdb access type - -```hcl -resource "tencentcloud_cynosdb_cluster" "foo" { - available_zone = var.availability_zone - vpc_id = local.vpc_id - subnet_id = local.subnet_id - db_type = "MYSQL" - db_version = "5.7" - storage_limit = 1000 - cluster_name = "tf-cynosdb-mysql-sync-dst" - password = "*" - instance_maintain_duration = 3600 - instance_maintain_start_time = 10800 - instance_maintain_weekdays = [ - "Fri", - "Mon", - "Sat", - "Sun", - "Thu", - "Wed", - "Tue", - ] - - instance_cpu_core = 1 - instance_memory_size = 2 - param_items { - name = "character_set_server" - current_value = "utf8" - } - param_items { - name = "time_zone" - current_value = "+09:00" - } - param_items { - name = "lower_case_table_names" - current_value = "1" - } - - force_delete = true - - rw_group_sg = [ - local.sg_id - ] - ro_group_sg = [ - local.sg_id - ] - prarm_template_id = var.my_param_template - } - -resource "tencentcloud_dts_sync_job" "sync_job" { - pay_mode = "PostPay" - src_database_type = "mysql" - src_region = "ap-guangzhou" - dst_database_type = "cynosdbmysql" - dst_region = "ap-guangzhou" - tags { - tag_key = "aaa" - tag_value = "bbb" - } - auto_renew = 0 - instance_class = "micro" - } - -resource "tencentcloud_dts_sync_config" "sync_config" { - job_id = tencentcloud_dts_sync_job.sync_job.job_id - src_access_type = "cdb" - dst_access_type = "cdb" - - job_name = "tf_test_sync_config" - job_mode = "liteMode" - run_mode = "Immediate" - - objects { - mode = "Partial" - databases { - db_name = "tf_ci_test" - new_db_name = "tf_ci_test_new" - db_mode = "Partial" - table_mode = "All" - tables { - table_name = "test" - new_table_name = "test_new" - } - } - } - src_info { - region = "ap-guangzhou" - instance_id = "cdb-fitq5t9h" - user = "your_user_name" - password = "*" - db_name = "tf_ci_test" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - } - dst_info { - region = "ap-guangzhou" - instance_id = tencentcloud_cynosdb_cluster.foo.id - user = "root" - password = "*" - db_name = "tf_ci_test_new" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - } - auto_retry_time_range_minutes = 0 -} -``` - -Sync mysql database using CCN to route from ap-shanghai to ap-guangzhou - -```hcl -locals { - vpc_id_sh = "vpc-evtcyb3g" - subnet_id_sh = "subnet-1t83cxkp" - src_ip = data.tencentcloud_mysql_instance.src_mysql.instance_list.0.intranet_ip - src_port = data.tencentcloud_mysql_instance.src_mysql.instance_list.0.intranet_port - ccn_id = data.tencentcloud_ccn_instances.ccns.instance_list.0.ccn_id - dst_mysql_id = data.tencentcloud_mysql_instance.dst_mysql.instance_list.0.mysql_id -} - -variable "src_az_sh" { - default = "ap-shanghai" -} - -variable "dst_az_gz" { - default = "ap-guangzhou" -} - -data "tencentcloud_dts_sync_jobs" "sync_jobs" { - job_name = "keep_sync_config_ccn_2_cdb" -} - -data "tencentcloud_ccn_instances" "ccns" { - name = "keep-ccn-dts-sh" -} - -data "tencentcloud_mysql_instance" "src_mysql" { - instance_name = "your_user_name_mysql_src" -} - -data "tencentcloud_mysql_instance" "dst_mysql" { - instance_name = "your_user_name_mysql_src" -} - -resource "tencentcloud_dts_sync_config" "sync_config" { - job_id = data.tencentcloud_dts_sync_jobs.sync_jobs.list.0.job_id - src_access_type = "ccn" - dst_access_type = "cdb" - - job_mode = "liteMode" - run_mode = "Immediate" - - objects { - mode = "Partial" - databases { - db_name = "tf_ci_test" - new_db_name = "tf_ci_test_new" - db_mode = "Partial" - table_mode = "All" - tables { - table_name = "test" - new_table_name = "test_new" - } - } - } - src_info { // shanghai to guangzhou via ccn - region = var.src_az_sh - user = "your_user_name" - password = "your_pass_word" - ip = local.src_ip - port = local.src_port - vpc_id = local.vpc_id_sh - subnet_id = local.subnet_id_sh - ccn_id = local.ccn_id - database_net_env = "TencentVPC" - } - dst_info { - region = var.dst_az_gz - instance_id = local.dst_mysql_id - user = "your_user_name" - password = "your_pass_word" - } - auto_retry_time_range_minutes = 0 -} - -```` - -Import - -dts sync_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_dts_sync_config.sync_config sync_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job.go b/tencentcloud/resource_tc_dts_sync_job.go index 0daddedd04..074661dccc 100644 --- a/tencentcloud/resource_tc_dts_sync_job.go +++ b/tencentcloud/resource_tc_dts_sync_job.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a dts sync_job - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job" "sync_job" { - pay_mode = "PostPay" - src_database_type = "mysql" - src_region = "ap-guangzhou" - dst_database_type = "cynosdbmysql" - dst_region = "ap-guangzhou" - tags { - tag_key = "aaa" - tag_value = "bbb" - } - auto_renew = 0 - instance_class = "micro" -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_continue_operation.go b/tencentcloud/resource_tc_dts_sync_job_continue_operation.go index 7dbc42a3ad..24a79f1022 100644 --- a/tencentcloud/resource_tc_dts_sync_job_continue_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_continue_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_job_continue_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_continue_operation" "sync_job_continue_operation" { - job_id = "sync-werwfs23" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_isolate_operation.go b/tencentcloud/resource_tc_dts_sync_job_isolate_operation.go index a59b7d0451..1e2afecd2c 100644 --- a/tencentcloud/resource_tc_dts_sync_job_isolate_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_isolate_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_job_isolate_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_isolate_operation" "sync_job_isolate_operation" { - job_id = "sync-werwfs23" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_pause_operation.go b/tencentcloud/resource_tc_dts_sync_job_pause_operation.go index 0e6b37f672..7f733d05fb 100644 --- a/tencentcloud/resource_tc_dts_sync_job_pause_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_pause_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_job_pause_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_pause_operation" "sync_job_pause_operation" { - job_id = "sync-werwfs23" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_recover_operation.go b/tencentcloud/resource_tc_dts_sync_job_recover_operation.go index 3616ff99c5..6aa9abdac0 100644 --- a/tencentcloud/resource_tc_dts_sync_job_recover_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_recover_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_job_recover_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_recover_operation" "sync_job_recover_operation" { - job_id = "sync-werwfs23" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_resize_operation.go b/tencentcloud/resource_tc_dts_sync_job_resize_operation.go index f0b4b3f84c..5dfbdfd653 100644 --- a/tencentcloud/resource_tc_dts_sync_job_resize_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_resize_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a dts sync_job_resize_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_resize_operation" "sync_job_resize_operation" { - job_id = "sync-werwfs23" - new_instance_class = "large" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_resume_operation.go b/tencentcloud/resource_tc_dts_sync_job_resume_operation.go index 4becc4ca54..b00d523371 100644 --- a/tencentcloud/resource_tc_dts_sync_job_resume_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_resume_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a dts sync_job_resume_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_resume_operation" "sync_job_resume_operation" { - job_id = "sync-werwfs23" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_start_operation.go b/tencentcloud/resource_tc_dts_sync_job_start_operation.go index 65fedff66f..0712b262a0 100644 --- a/tencentcloud/resource_tc_dts_sync_job_start_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_start_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_job_start_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_start_operation" "sync_job_start_operation" { - job_id = "sync-werwfs23" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_dts_sync_job_stop_operation.go b/tencentcloud/resource_tc_dts_sync_job_stop_operation.go index 83c04ff9ce..60162e5486 100644 --- a/tencentcloud/resource_tc_dts_sync_job_stop_operation.go +++ b/tencentcloud/resource_tc_dts_sync_job_stop_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a dts sync_job_stop_operation - -Example Usage - -```hcl -resource "tencentcloud_dts_sync_job_stop_operation" "sync_job_stop_operation" { - job_id = "sync-werwfs23" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eb_event_bus.go b/tencentcloud/resource_tc_eb_event_bus.go index dc25fc3445..6f30ad331f 100644 --- a/tencentcloud/resource_tc_eb_event_bus.go +++ b/tencentcloud/resource_tc_eb_event_bus.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a eb event_bus - -Example Usage - -```hcl -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -eb event_bus can be imported using the id, e.g. - -``` -terraform import tencentcloud_eb_event_bus.event_bus event_bus_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eb_event_connector.go b/tencentcloud/resource_tc_eb_event_connector.go index 4f00cfba4d..4cfdf808b4 100644 --- a/tencentcloud/resource_tc_eb_event_connector.go +++ b/tencentcloud/resource_tc_eb_event_connector.go @@ -1,124 +1,3 @@ -/* -Provides a resource to create a eb event_connector - -~> **NOTE:** When the type is `apigw`, the import function is not supported. - -Example Usage - -Create ckafka event connector -```hcl -data "tencentcloud_user_info" "foo" {} - -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_ckafka_instance" "kafka_instance" { - instance_name = "ckafka-instance-maz-tf-test" - zone_id = 100003 - multi_zone_flag = true - zone_ids = [100003, 100006] - period = 1 - vpc_id = var.vpc_id - subnet_id = var.subnet_id - msg_retention_time = 1300 - renew_flag = 0 - kafka_version = "1.1.1" - disk_size = 500 - disk_type = "CLOUD_BASIC" - - - config { - auto_create_topic_enable = true - default_num_partitions = 3 - default_replication_factor = 3 - } - - dynamic_retention_config { - enable = 1 - } -} - -locals { - ckafka_id = tencentcloud_ckafka_instance.kafka_instance.id - uin = data.tencentcloud_user_info.foo.owner_uin -} - -resource "tencentcloud_eb_event_connector" "event_connector" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - connection_name = "tf-event-connector" - description = "event connector desc1" - enable = true - type = "ckafka" - connection_description { - resource_description = "qcs::ckafka:ap-guangzhou:uin/${local.uin}:ckafkaId/uin/${local.uin}/${local.ckafka_id}" - ckafka_params { - offset = "latest" - topic_name = "dasdasd" - } - } -} -``` - -Create api_gateway event connector - -```hcl -data "tencentcloud_user_info" "foo" {} - -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_api_gateway_service" "service" { - service_name = "tf-eb-service" - protocol = "http&https" - service_desc = "your nice service" - net_type = ["INNER", "OUTER"] - ip_version = "IPv4" -} - -locals { - uin = data.tencentcloud_user_info.foo.owner_uin - service_id = tencentcloud_api_gateway_service.service.id -} - -resource "tencentcloud_eb_event_connector" "event_connector" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - connection_name = "tf-event-connector" - description = "event connector desc1" - enable = false - type = "apigw" - - connection_description { - resource_description = "qcs::apigw:ap-guangzhou:uin/${local.uin}:serviceid/${local.service_id}" - api_gw_params { - protocol = "HTTP" - method = "GET" - } - } -} -``` - -Import - -eb event_connector can be imported using the id, e.g. - -``` -terraform import tencentcloud_eb_event_connector.event_connector eventBusId#connectionId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eb_event_rule.go b/tencentcloud/resource_tc_eb_event_rule.go index 586caf8243..8a23d2b372 100644 --- a/tencentcloud/resource_tc_eb_event_rule.go +++ b/tencentcloud/resource_tc_eb_event_rule.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a eb event_rule - -Example Usage - -```hcl -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_eb_event_rule" "event_rule" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_name = "tf-event_rule" - description = "event rule desc" - enable = true - event_pattern = jsonencode( - { - source = "apigw.cloud.tencent" - type = [ - "connector:apigw", - ] - } - ) - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -eb event_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_eb_event_rule.event_rule event_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eb_event_target.go b/tencentcloud/resource_tc_eb_event_target.go index cd346694fd..91330348cc 100644 --- a/tencentcloud/resource_tc_eb_event_target.go +++ b/tencentcloud/resource_tc_eb_event_target.go @@ -1,110 +1,3 @@ -/* -Provides a resource to create a eb event_target - -Example Usage - -Create an event target of type scf - -```hcl -variable "zone" { - default = "ap-guangzhou" -} - -variable "namespace" { - default = "default" -} - -variable "function" { - default = "keep-1676351130" -} - -variable "function_version" { - default = "$LATEST" -} - -data "tencentcloud_cam_users" "foo" { -} - -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_eb_event_rule" "foo" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_name = "tf-event_rule" - description = "event rule desc" - enable = true - event_pattern = jsonencode( - { - source = "apigw.cloud.tencent" - type = [ - "connector:apigw", - ] - } - ) - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_eb_event_target" "scf_target" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_id = tencentcloud_eb_event_rule.foo.rule_id - type = "scf" - - target_description { - resource_description = "qcs::scf:${var.zone}:uin/${data.tencentcloud_cam_users.foo.user_list.0.uin}:namespace/${var.namespace}/function/${var.function}/${var.function_version}" - - scf_params { - batch_event_count = 1 - batch_timeout = 1 - enable_batch_delivery = true - } - } -} -``` - -Create an event target of type ckafka - -```hcl -variable "ckafka" { - default = "ckafka-qzoeaqx8" -} - -resource "tencentcloud_eb_event_target" "ckafka_target" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_id = tencentcloud_eb_event_rule.foo.rule_id - type = "ckafka" - - target_description { - resource_description = "qcs::scf:${var.zone}:uin/${data.tencentcloud_cam_users.foo.user_list.0.uin}:ckafkaId/uin/${data.tencentcloud_cam_users.foo.user_list.0.uin}/${var.ckafka}" - - ckafka_target_params { - topic_name = "dasdasd" - - retry_policy { - max_retry_attempts = 360 - retry_interval = 60 - } - } - } -} -``` - -Import - -eb event_target can be imported using the id, e.g. - -``` -terraform import tencentcloud_eb_event_target.event_target event_target_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eb_event_transform.go b/tencentcloud/resource_tc_eb_event_transform.go index ba58ed7acc..5dae9793c5 100644 --- a/tencentcloud/resource_tc_eb_event_transform.go +++ b/tencentcloud/resource_tc_eb_event_transform.go @@ -1,100 +1,3 @@ -/* -Provides a resource to create a eb eb_transform - -Example Usage - -```hcl -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_eb_event_rule" "foo" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_name = "tf-event_rule" - description = "event rule desc" - enable = true - event_pattern = jsonencode( - { - source = "apigw.cloud.tencent" - type = [ - "connector:apigw", - ] - } - ) - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_eb_event_transform" "foo" { - event_bus_id = tencentcloud_eb_event_bus.foo.id - rule_id = tencentcloud_eb_event_rule.foo.rule_id - - transformations { - - extraction { - extraction_input_path = "$" - format = "JSON" - } - - transform { - output_structs { - key = "type" - value = "connector:ckafka" - value_type = "STRING" - } - output_structs { - key = "source" - value = "ckafka.cloud.tencent" - value_type = "STRING" - } - output_structs { - key = "region" - value = "ap-guangzhou" - value_type = "STRING" - } - output_structs { - key = "datacontenttype" - value = "application/json;charset=utf-8" - value_type = "STRING" - } - output_structs { - key = "status" - value = "-" - value_type = "STRING" - } - output_structs { - key = "data" - value = jsonencode( - { - Partition = 1 - msgBody = "Hello from Ckafka again!" - msgKey = "test" - offset = 37 - topic = "test-topic" - } - ) - value_type = "STRING" - } - } - } -} -``` - -Import - -eb eb_transform can be imported using the id, e.g. - -``` -terraform import tencentcloud_eb_event_transform.eb_transform eb_transform_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eb_put_events.go b/tencentcloud/resource_tc_eb_put_events.go index 31c8749bed..fb855d9ede 100644 --- a/tencentcloud/resource_tc_eb_put_events.go +++ b/tencentcloud/resource_tc_eb_put_events.go @@ -1,40 +1,3 @@ -/* -Provides a resource to create a eb put_events - -Example Usage - -```hcl -resource "tencentcloud_eb_event_bus" "foo" { - event_bus_name = "tf-event_bus" - description = "event bus desc" - enable_store = false - save_days = 1 - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_eb_put_events" "put_events" { - event_list { - source = "ckafka.cloud.tencent" - data = jsonencode( - { - "topic" : "test-topic", - "Partition" : 1, - "offset" : 37, - "msgKey" : "test", - "msgBody" : "Hello from Ckafka again!" - } - ) - type = "connector:ckafka" - subject = "qcs::ckafka:ap-guangzhou:uin/1250000000:ckafkaId/uin/1250000000/ckafka-123456" - time = 1691572461939 - - } - event_bus_id = tencentcloud_eb_event_bus.foo.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eip.go b/tencentcloud/resource_tc_eip.go index 01beb3bf83..3709ceceeb 100644 --- a/tencentcloud/resource_tc_eip.go +++ b/tencentcloud/resource_tc_eip.go @@ -1,53 +1,3 @@ -/* -Provides an EIP resource. - -Example Usage - -Paid by the bandwidth package -```hcl -resource "tencentcloud_eip" "foo" { - name = "awesome_gateway_ip" - bandwidth_package_id = "bwp-jtvzuky6" - internet_charge_type = "BANDWIDTH_PACKAGE" - type = "EIP" -} -``` - -AntiDDos Eip -``` -resource "tencentcloud_eip" "foo" { - name = "awesome_gateway_ip" - bandwidth_package_id = "bwp-4ocyia9s" - internet_charge_type = "BANDWIDTH_PACKAGE" - type = "AntiDDoSEIP" - anti_ddos_package_id = "xxxxxxxx" - - tags = { - "test" = "test" - } -} -``` - -Eip With Network Egress -``` -resource "tencentcloud_eip" "foo" { - name = "egress_eip" - egress = "center_egress2" - internet_charge_type = "BANDWIDTH_PACKAGE" - internet_service_provider = "CMCC" - internet_max_bandwidth_out = 1 - type = "EIP" -} -``` - -Import - -EIP can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_eip.foo eip-nyvf60va -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eip_address_transform.go b/tencentcloud/resource_tc_eip_address_transform.go index 9903185920..cc2c2c12fe 100644 --- a/tencentcloud/resource_tc_eip_address_transform.go +++ b/tencentcloud/resource_tc_eip_address_transform.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a eip address_transform - -Example Usage - -```hcl -resource "tencentcloud_eip_address_transform" "address_transform" { - instance_id = "" -} -``` - -Import - -eip address_transform can be imported using the id, e.g. - -``` -terraform import tencentcloud_eip_address_transform.address_transform address_transform_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eip_association.go b/tencentcloud/resource_tc_eip_association.go index 2a8ac3598e..7cf1687c4f 100644 --- a/tencentcloud/resource_tc_eip_association.go +++ b/tencentcloud/resource_tc_eip_association.go @@ -1,119 +1,3 @@ -/* -Provides an eip resource associated with other resource like CVM, ENI and CLB. - -~> **NOTE:** Please DO NOT define `allocate_public_ip` in `tencentcloud_instance` resource when using `tencentcloud_eip_association`. - -Example Usage - -Bind elastic public IP By Instance ID - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "example-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "example-vpc" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_eip" "eip" { - name = "example-eip" - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - type = "EIP" -} - -resource "tencentcloud_instance" "example" { - instance_name = "example-cvm" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - disable_security_service = true - disable_monitor_service = true - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_eip_association" "example" { - eip_id = tencentcloud_eip.eip.id - instance_id = tencentcloud_instance.example.id -} -``` - -Bind elastic public IP By elastic network card - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "example-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "example-vpc" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_eni" "eni" { - name = "example-eni" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - description = "eni desc" - ipv4_count = 1 -} - -resource "tencentcloud_eip" "eip" { - name = "example-eip" - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - type = "EIP" -} - -resource "tencentcloud_eip_association" "example" { - eip_id = tencentcloud_eip.eip.id - network_interface_id = tencentcloud_eni.eni.id - private_ip = tencentcloud_eni.eni.ipv4_info[0].ip -} -``` - -Import - -Eip association can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_eip_association.bar eip-41s6jwy4::ins-34jwj3 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eip_normal_address_return.go b/tencentcloud/resource_tc_eip_normal_address_return.go index 46797467e7..edc2f10a71 100644 --- a/tencentcloud/resource_tc_eip_normal_address_return.go +++ b/tencentcloud/resource_tc_eip_normal_address_return.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a vpc normal_address_return - -Example Usage - -```hcl -resource "tencentcloud_eip_normal_address_return" "normal_address_return" { - address_ips = -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_eip_public_address_adjust.go b/tencentcloud/resource_tc_eip_public_address_adjust.go index 28646094df..0fbf497efc 100644 --- a/tencentcloud/resource_tc_eip_public_address_adjust.go +++ b/tencentcloud/resource_tc_eip_public_address_adjust.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a eip public_address_adjust - -Example Usage - -```hcl -resource "tencentcloud_eip_public_address_adjust" "public_address_adjust" { - instance_id = "ins-cr2rfq78" - address_id = "eip-erft45fu" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_elasticsearch_diagnose.go b/tencentcloud/resource_tc_elasticsearch_diagnose.go index 2ea0139fb9..50f45de443 100644 --- a/tencentcloud/resource_tc_elasticsearch_diagnose.go +++ b/tencentcloud/resource_tc_elasticsearch_diagnose.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a elasticsearch diagnose - -Example Usage - -```hcl -resource "tencentcloud_elasticsearch_diagnose" "diagnose" { - instance_id = "es-xxxxxx" - cron_time = "15:00:00" -} -``` - -Import - -es diagnose can be imported using the id, e.g. - -``` -terraform import tencentcloud_elasticsearch_diagnose.diagnose diagnose_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_elasticsearch_diagnose_instance.go b/tencentcloud/resource_tc_elasticsearch_diagnose_instance.go index 8821b6b82c..aca7c8fc70 100644 --- a/tencentcloud/resource_tc_elasticsearch_diagnose_instance.go +++ b/tencentcloud/resource_tc_elasticsearch_diagnose_instance.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a elasticsearch diagnose instance - -Example Usage - -```hcl -resource "tencentcloud_elasticsearch_diagnose_instance" "diagnose_instance" { - instance_id = "es-xxxxxx" - diagnose_jobs = ["cluster_health"] - diagnose_indices = "*" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_elasticsearch_index.go b/tencentcloud/resource_tc_elasticsearch_index.go index a7f282edea..060088aa72 100644 --- a/tencentcloud/resource_tc_elasticsearch_index.go +++ b/tencentcloud/resource_tc_elasticsearch_index.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a elasticsearch index - -Example Usage - -```hcl -resource "tencentcloud_elasticsearch_index" "index" { - instance_id = "es-xxxxxx" - index_type = "normal" - index_name = "test-es-index" - index_meta_json = "{\"mappings\":{},\"settings\":{\"index.number_of_replicas\":1,\"index.number_of_shards\":1,\"index.refresh_interval\":\"30s\"}}" -} -``` - -Import - -elasticsearch index can be imported using the id, e.g. - -``` -terraform import tencentcloud_elasticsearch_index.index index_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_elasticsearch_instance.go b/tencentcloud/resource_tc_elasticsearch_instance.go index a9518c305f..42528639f8 100755 --- a/tencentcloud/resource_tc_elasticsearch_instance.go +++ b/tencentcloud/resource_tc_elasticsearch_instance.go @@ -1,154 +1,3 @@ -/* -Provides an elasticsearch instance resource. - -Example Usage - -Create a basic version of elasticsearch instance paid by the hour - -```hcl -data "tencentcloud_availability_zones_by_product" "availability_zone" { - product = "es" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_es_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name - name = "tf_es_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_elasticsearch_instance" "example" { - instance_name = "tf_example_es" - availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name - version = "7.10.1" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - password = "Test12345" - license_type = "basic" - basic_security_type = 2 - - web_node_type_info { - node_num = 1 - node_type = "ES.S1.MEDIUM4" - } - - node_info_list { - node_num = 2 - node_type = "ES.S1.MEDIUM8" - encrypt = false - } - - es_acl { - # black_list = [ - # "9.9.9.9", - # "8.8.8.8", - # ] - white_list = [ - "127.0.0.1", - ] - } - - tags = { - test = "test" - } -} -``` - -Create a basic version of elasticsearch instance for multi-availability zone deployment - -```hcl -data "tencentcloud_availability_zones_by_product" "availability_zone" { - product = "es" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_es_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name - name = "tf_es_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_subnet" "subnet_multi_zone" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.1.name - name = "tf_es_subnet" - cidr_block = "10.0.2.0/24" -} - -resource "tencentcloud_elasticsearch_instance" "example_multi_zone" { - instance_name = "tf_example_es" - availability_zone = "-" - version = "7.10.1" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = "-" - password = "Test12345" - license_type = "basic" - basic_security_type = 2 - deploy_mode = 1 - - multi_zone_infos { - availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.0.name - subnet_id = tencentcloud_subnet.subnet.id - } - - multi_zone_infos { - availability_zone = data.tencentcloud_availability_zones_by_product.availability_zone.zones.1.name - subnet_id = tencentcloud_subnet.subnet_multi_zone.id - } - - web_node_type_info { - node_num = 1 - node_type = "ES.S1.MEDIUM4" - } - - node_info_list { - type = "dedicatedMaster" - node_num = 3 - node_type = "ES.S1.MEDIUM8" - encrypt = false - } - - node_info_list { - type = "hotData" - node_num = 2 - node_type = "ES.S1.MEDIUM8" - encrypt = false - } - - es_acl { - # black_list = [ - # "9.9.9.9", - # "8.8.8.8", - # ] - white_list = [ - "127.0.0.1", - ] - } - - tags = { - test = "test" - } -} -``` - -Import - -Elasticsearch instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_elasticsearch_instance.foo es-17634f05 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_elasticsearch_logstash.go b/tencentcloud/resource_tc_elasticsearch_logstash.go index 8fa29098ae..22f9f3288b 100644 --- a/tencentcloud/resource_tc_elasticsearch_logstash.go +++ b/tencentcloud/resource_tc_elasticsearch_logstash.go @@ -1,41 +1,3 @@ -/* -Provides a resource to create a elasticsearch logstash - -Example Usage - -```hcl -resource "tencentcloud_elasticsearch_logstash" "logstash" { - instance_name = "logstash-test" - zone = "ap-guangzhou-6" - logstash_version = "7.14.2" - vpc_id = "vpc-4owdpnwr" - subnet_id = "subnet-4o0zd840" - node_num = 1 - charge_type = "POSTPAID_BY_HOUR" - node_type = "LOGSTASH.SA2.MEDIUM4" - disk_type = "CLOUD_SSD" - disk_size = 20 - license_type = "xpack" - operation_duration { - periods = [1, 2, 3, 4, 5, 6, 0] - time_start = "02:00" - time_end = "06:00" - time_zone = "UTC+8" - } - tags = { - tagKey = "tagValue" - } -} -``` - -Import - -elasticsearch logstash can be imported using the id, e.g. - -``` -terraform import tencentcloud_elasticsearch_logstash.logstash logstash_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go b/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go index 5a5aed7d9b..46703333cb 100644 --- a/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go +++ b/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go @@ -1,44 +1,3 @@ -/* -Provides a resource to create a elasticsearch logstash pipeline - -Example Usage - -```hcl -resource "tencentcloud_elasticsearch_logstash_pipeline" "logstash_pipeline" { - instance_id = "ls-xxxxxx" - pipeline { - pipeline_id = "logstash-pipeline-test" - pipeline_desc = "" - config =< **Note:** If this resource is used to bind security groups to eni, it cannot be linked to `tentcloud_eni` binding security group for simultaneous use. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "vpc" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "example1" { - name = "tf-example-sg1" - description = "sg desc." - project_id = 0 - - tags = { - "example" = "test" - } -} - -resource "tencentcloud_security_group" "example2" { - name = "tf-example-sg2" - description = "sg desc." - project_id = 0 - - tags = { - "example" = "test" - } -} - -resource "tencentcloud_eni" "example" { - name = "tf-example-eni" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - description = "eni desc." - ipv4_count = 1 -} - -resource "tencentcloud_eni_sg_attachment" "eni_sg_attachment" { - network_interface_ids = [tencentcloud_eni.example.id] - security_group_ids = [ - tencentcloud_security_group.example1.id, - tencentcloud_security_group.example2.id - ] -} -``` - -Import - -vpc eni_sg_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_eni_sg_attachment.eni_sg_attachment eni_sg_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_certificate.go b/tencentcloud/resource_tc_gaap_certificate.go index 26c3e17883..7433c3b074 100644 --- a/tencentcloud/resource_tc_gaap_certificate.go +++ b/tencentcloud/resource_tc_gaap_certificate.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a certificate of GAAP. - -Example Usage - -```hcl -resource "tencentcloud_gaap_certificate" "foo" { - type = "BASIC" - content = "test:tx2KGdo3zJg/." - name = "test_certificate" -} -``` - -Import - -GAAP certificate can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_certificate.foo cert-d5y6ei3b -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_domain_error_page.go b/tencentcloud/resource_tc_gaap_domain_error_page.go index 7b6f9efc61..e73b45ad6f 100644 --- a/tencentcloud/resource_tc_gaap_domain_error_page.go +++ b/tencentcloud/resource_tc_gaap_domain_error_page.go @@ -1,37 +1,3 @@ -/* -Provide a resource to custom error page info for a GAAP HTTP domain. - -Example Usage - -```hcl -resource tencentcloud_gaap_proxy "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource tencentcloud_gaap_layer7_listener "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} - -resource tencentcloud_gaap_http_domain "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = "www.qq.com" -} - -resource tencentcloud_gaap_domain_error_page "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = tencentcloud_gaap_http_domain.foo.domain - error_codes = [404, 503] - body = "bad request" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_global_domain.go b/tencentcloud/resource_tc_gaap_global_domain.go index ce3d646a8d..d62e697fc7 100644 --- a/tencentcloud/resource_tc_gaap_global_domain.go +++ b/tencentcloud/resource_tc_gaap_global_domain.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a gaap global domain - -Example Usage - -```hcl -resource "tencentcloud_gaap_global_domain" "global_domain" { - project_id = 0 - default_value = "xxxxxx.com" - alias = "demo" - tags={ - key = "value" - } -} -``` - -Import - -gaap global_domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_gaap_global_domain.global_domain ${projectId}#${domainId} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_global_domain_dns.go b/tencentcloud/resource_tc_gaap_global_domain_dns.go index 32a32c9091..56bd2d7d55 100644 --- a/tencentcloud/resource_tc_gaap_global_domain_dns.go +++ b/tencentcloud/resource_tc_gaap_global_domain_dns.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a gaap global domain dns - -Example Usage - -```hcl -resource "tencentcloud_gaap_global_domain_dns" "global_domain_dns" { - domain_id = "dm-xxxxxx" - proxy_id_list = ["link-xxxxxx"] - nation_country_inner_codes = ["101001"] -} -``` - -Import - -gaap global_domain_dns can be imported using the id, e.g. - -``` -terraform import tencentcloud_gaap_global_domain_dns.global_domain_dns ${domainId}#${dnsRecordId} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_http_domain.go b/tencentcloud/resource_tc_gaap_http_domain.go index 62a02c53b2..93f025670f 100644 --- a/tencentcloud/resource_tc_gaap_http_domain.go +++ b/tencentcloud/resource_tc_gaap_http_domain.go @@ -1,40 +1,3 @@ -/* -Provides a resource to create a forward domain of layer7 listener. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_layer7_listener" "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} - -resource "tencentcloud_gaap_http_domain" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = "www.qq.com" -} -``` - -Import - -GAAP http domain can be imported using the id, e.g. - --> **NOTE:** The format of tencentcloud_gaap_http_domain id is `[listener-id]+[protocol]+[domain]`. - -``` - $ terraform import tencentcloud_gaap_http_domain.foo listener-11112222+HTTP+www.qq.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_http_rule.go b/tencentcloud/resource_tc_gaap_http_rule.go index 4fc594c197..dd210944a6 100644 --- a/tencentcloud/resource_tc_gaap_http_rule.go +++ b/tencentcloud/resource_tc_gaap_http_rule.go @@ -1,71 +1,3 @@ -/* -Provides a resource to create a forward rule of layer7 listener. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_layer7_listener" "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} - -resource "tencentcloud_gaap_realserver" "foo" { - ip = "1.1.1.1" - name = "ci-test-gaap-realserver" -} - -resource "tencentcloud_gaap_realserver" "bar" { - ip = "8.8.8.8" - name = "ci-test-gaap-realserver" -} - -resource "tencentcloud_gaap_http_domain" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = "www.qq.com" -} - -resource "tencentcloud_gaap_http_rule" "foo" { - listener_id = tencentcloud_gaap_layer7_listener.foo.id - domain = tencentcloud_gaap_http_domain.foo.domain - path = "/" - realserver_type = "IP" - health_check = true - health_check_path = "/" - health_check_method = "GET" - health_check_status_codes = [200] - - realservers { - id = tencentcloud_gaap_realserver.foo.id - ip = tencentcloud_gaap_realserver.foo.ip - port = 80 - } - - realservers { - id = tencentcloud_gaap_realserver.bar.id - ip = tencentcloud_gaap_realserver.bar.ip - port = 80 - } -} -``` - -Import - -GAAP http rule can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_http_rule.foo rule-3bsuu01r -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_layer4_listener.go b/tencentcloud/resource_tc_gaap_layer4_listener.go index baec3ff0b9..6bfe4d755b 100644 --- a/tencentcloud/resource_tc_gaap_layer4_listener.go +++ b/tencentcloud/resource_tc_gaap_layer4_listener.go @@ -1,57 +1,3 @@ -/* -Provides a resource to create a layer4 listener of GAAP. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_realserver" "foo" { - ip = "1.1.1.1" - name = "ci-test-gaap-realserver" -} - -resource "tencentcloud_gaap_realserver" "bar" { - ip = "119.29.29.29" - name = "ci-test-gaap-realserver2" -} - -resource "tencentcloud_gaap_layer4_listener" "foo" { - protocol = "TCP" - name = "ci-test-gaap-4-listener" - port = 80 - realserver_type = "IP" - proxy_id = tencentcloud_gaap_proxy.foo.id - health_check = true - - realserver_bind_set { - id = tencentcloud_gaap_realserver.foo.id - ip = tencentcloud_gaap_realserver.foo.ip - port = 80 - } - - realserver_bind_set { - id = tencentcloud_gaap_realserver.bar.id - ip = tencentcloud_gaap_realserver.bar.ip - port = 80 - } -} -``` - -Import - -GAAP layer4 listener can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_layer4_listener.foo listener-11112222 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_layer7_listener.go b/tencentcloud/resource_tc_gaap_layer7_listener.go index 8c0b5c684c..35a006c65d 100644 --- a/tencentcloud/resource_tc_gaap_layer7_listener.go +++ b/tencentcloud/resource_tc_gaap_layer7_listener.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a layer7 listener of GAAP. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_layer7_listener" "foo" { - protocol = "HTTP" - name = "ci-test-gaap-l7-listener" - port = 80 - proxy_id = tencentcloud_gaap_proxy.foo.id -} -``` - -Import - -GAAP layer7 listener can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_layer7_listener.foo listener-11112222 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_proxy.go b/tencentcloud/resource_tc_gaap_proxy.go index 339378bff6..32bbed914a 100644 --- a/tencentcloud/resource_tc_gaap_proxy.go +++ b/tencentcloud/resource_tc_gaap_proxy.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a GAAP proxy. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" - - tags = { - test = "test" - } -} -``` - -Import - -GAAP proxy can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_proxy.foo link-11112222 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_realserver.go b/tencentcloud/resource_tc_gaap_realserver.go index 1d60bd9419..304139229d 100644 --- a/tencentcloud/resource_tc_gaap_realserver.go +++ b/tencentcloud/resource_tc_gaap_realserver.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a GAAP realserver. - -Example Usage - -```hcl -resource "tencentcloud_gaap_realserver" "foo" { - ip = "1.1.1.1" - name = "ci-test-gaap-realserver" - - tags = { - test = "test" - } -} -``` - -Import - -GAAP realserver can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_realserver.foo rs-4ftghy6 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_security_policy.go b/tencentcloud/resource_tc_gaap_security_policy.go index 3d6f91c9ce..58576845d7 100644 --- a/tencentcloud/resource_tc_gaap_security_policy.go +++ b/tencentcloud/resource_tc_gaap_security_policy.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a security policy of GAAP proxy. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_security_policy" "foo" { - proxy_id = tencentcloud_gaap_proxy.foo.id - action = "DROP" -} -``` - -Import - -GAAP security policy can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_security_policy.foo pl-xxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_gaap_security_rule.go b/tencentcloud/resource_tc_gaap_security_rule.go index 1906a74307..9004c2a9c1 100644 --- a/tencentcloud/resource_tc_gaap_security_rule.go +++ b/tencentcloud/resource_tc_gaap_security_rule.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a security policy rule. - -Example Usage - -```hcl -resource "tencentcloud_gaap_proxy" "foo" { - name = "ci-test-gaap-proxy" - bandwidth = 10 - concurrent = 2 - access_region = "SouthChina" - realserver_region = "NorthChina" -} - -resource "tencentcloud_gaap_security_policy" "foo" { - proxy_id = tencentcloud_gaap_proxy.foo.id - action = "ACCEPT" -} - -resource "tencentcloud_gaap_security_rule" "foo" { - policy_id = tencentcloud_gaap_security_policy.foo.id - cidr_ip = "1.1.1.1" - action = "ACCEPT" - protocol = "TCP" -} -``` - -Import - -GAAP security rule can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_gaap_security_rule.foo sr-xxxxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ha_vip.go b/tencentcloud/resource_tc_ha_vip.go index e6477f3378..a8cb18c99b 100644 --- a/tencentcloud/resource_tc_ha_vip.go +++ b/tencentcloud/resource_tc_ha_vip.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a HA VIP. - -Example Usage - -```hcl -resource "tencentcloud_ha_vip" "foo" { - name = "terraform_test" - vpc_id = "vpc-gzea3dd7" - subnet_id = "subnet-4d4m4cd4s" - vip = "10.0.4.16" -} -``` - -Import - -HA VIP can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_ha_vip.foo havip-kjqwe4ba -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ha_vip_eip_attachment.go b/tencentcloud/resource_tc_ha_vip_eip_attachment.go index 72d69251bb..80bdb1da2c 100644 --- a/tencentcloud/resource_tc_ha_vip_eip_attachment.go +++ b/tencentcloud/resource_tc_ha_vip_eip_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a HA VIP EIP attachment. - -Example Usage - -```hcl -resource "tencentcloud_ha_vip_eip_attachment" "foo" { - havip_id = "havip-kjqwe4ba" - address_ip = "1.1.1.1" -} -``` - -Import - -HA VIP EIP attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_ha_vip_eip_attachment.foo havip-kjqwe4ba#1.1.1.1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_image.go b/tencentcloud/resource_tc_image.go index 54358ff772..fbed3fc9a1 100644 --- a/tencentcloud/resource_tc_image.go +++ b/tencentcloud/resource_tc_image.go @@ -1,25 +1,3 @@ -/* -Provide a resource to manage image. - -Example Usage - -```hcl -resource "tencentcloud_image" "image_snap" { - image_name = "image-snapshot-keep" - snapshot_ids = ["snap-nbp3xy1d", "snap-nvzu3dmh"] - force_poweroff = true - image_description = "create image with snapshot" -} -``` - -Import - -image instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_image.image_snap img-gf7jspk6 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_instance.go b/tencentcloud/resource_tc_instance.go index bfcbc67df1..7639c8b953 100644 --- a/tencentcloud/resource_tc_instance.go +++ b/tencentcloud/resource_tc_instance.go @@ -1,106 +1,3 @@ -/* -Provides a CVM instance resource. - -~> **NOTE:** You can launch an CVM instance for a VPC network via specifying parameter `vpc_id`. One instance can only belong to one VPC. - -~> **NOTE:** At present, 'PREPAID' instance cannot be deleted directly and must wait it to be outdated and released automatically. - -Example Usage - -```hcl -data "tencentcloud_images" "my_favorite_image" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -data "tencentcloud_instance_types" "my_favorite_instance_types" { - filter { - name = "instance-family" - values = ["S1", "S2", "S3", "S4", "S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -data "tencentcloud_availability_zones" "my_favorite_zones" { -} - -// Create VPC resource -resource "tencentcloud_vpc" "app" { - cidr_block = "10.0.0.0/16" - name = "awesome_app_vpc" -} - -resource "tencentcloud_subnet" "app" { - vpc_id = tencentcloud_vpc.app.id - availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name - name = "awesome_app_subnet" - cidr_block = "10.0.1.0/24" -} - -// Create a POSTPAID_BY_HOUR CVM instance -resource "tencentcloud_instance" "cvm_postpaid" { - instance_name = "cvm_postpaid" - availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name - image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id - instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.app.id - subnet_id = tencentcloud_subnet.app.id - - data_disks { - data_disk_type = "CLOUD_PREMIUM" - data_disk_size = 50 - encrypt = false - } - - tags = { - tagKey = "tagValue" - } -} - -// Create a PREPAID CVM instance -resource "tencentcloud_instance" "cvm_prepaid" { - timeouts { - create = "30m" - } - instance_name = "cvm_prepaid" - availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name - image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id - instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.app.id - subnet_id = tencentcloud_subnet.app.id - instance_charge_type = "PREPAID" - instance_charge_type_prepaid_period = 1 - instance_charge_type_prepaid_renew_flag = "NOTIFY_AND_MANUAL_RENEW" - data_disks { - data_disk_type = "CLOUD_PREMIUM" - data_disk_size = 50 - encrypt = false - } - force_delete = true - tags = { - tagKey = "tagValue" - } -} -``` - -Import - -CVM instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_instance.foo ins-2qol3a80 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_instance_set.go b/tencentcloud/resource_tc_instance_set.go index 379dc75366..aacd281716 100644 --- a/tencentcloud/resource_tc_instance_set.go +++ b/tencentcloud/resource_tc_instance_set.go @@ -1,69 +1,3 @@ -/* -Provides a CVM instance set resource. - -~> **NOTE:** You can launch an CVM instance for a VPC network via specifying parameter `vpc_id`. One instance can only belong to one VPC. - -~> **NOTE:** This resource is designed to cater for the scenario of creating CVM in large batches. - -~> **NOTE:** After run command `terraform apply`, must wait all cvms is ready, then run command `terraform plan`, either it will cause state change. - -Example Usage - -```hcl -data "tencentcloud_images" "my_favorite_image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "Tencent Linux release 3.2 (Final)" -} - -data "tencentcloud_instance_types" "my_favorite_instance_types" { - filter { - name = "instance-family" - values = ["S3"] - } - - cpu_core_count = 1 - memory_size = 1 -} - -data "tencentcloud_availability_zones" "my_favorite_zones" { -} - -// Create VPC resource -resource "tencentcloud_vpc" "app" { - cidr_block = "10.0.0.0/16" - name = "awesome_app_vpc" -} - -resource "tencentcloud_subnet" "app" { - vpc_id = tencentcloud_vpc.app.id - availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name - name = "awesome_app_subnet" - cidr_block = "10.0.1.0/24" -} - -// Create 10 CVM instances to host awesome_app -resource "tencentcloud_instance_set" "my_awesome_app" { - timeouts { - create = "5m" - read = "20s" - delete = "1h" - } - - instance_count = 10 - instance_name = "awesome_app" - availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name - image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id - instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.app.id - subnet_id = tencentcloud_subnet.app.id -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ipv6_address_bandwidth.go b/tencentcloud/resource_tc_ipv6_address_bandwidth.go index 9d7662fed3..490d456c6d 100644 --- a/tencentcloud/resource_tc_ipv6_address_bandwidth.go +++ b/tencentcloud/resource_tc_ipv6_address_bandwidth.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a ipv6_address_bandwidth - -Example Usage - -```hcl -resource "tencentcloud_ipv6_address_bandwidth" "ipv6_address_bandwidth" { - ipv6_address = "2402:4e00:1019:9400:0:9905:a90b:2ef0" - internet_max_bandwidth_out = 6 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" -# bandwidth_package_id = "bwp-34rfgt56" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_key_pair.go b/tencentcloud/resource_tc_key_pair.go index faef9cb8ad..bd8861d9ab 100644 --- a/tencentcloud/resource_tc_key_pair.go +++ b/tencentcloud/resource_tc_key_pair.go @@ -1,27 +1,3 @@ -/* -Provides a key pair resource. - -Example Usage - -```hcl -resource "tencentcloud_key_pair" "foo" { - key_name = "terraform_test" -} - -resource "tencentcloud_key_pair" "foo1" { - key_name = "terraform_test" - public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDjd8fTnp7Dcuj4mLaQxf9Zs/ORgUL9fQxRCNKkPgP1paTy1I513maMX126i36Lxxl3+FUB52oVbo/FgwlIfX8hyCnv8MCxqnuSDozf1CD0/wRYHcTWAtgHQHBPCC2nJtod6cVC3kB18KeV4U7zsxmwFeBIxojMOOmcOBuh7+trRw==" -} -``` - -Import - -Key pair can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_key_pair.foo skey-17634f05 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kms_cloud_resource_attachment.go b/tencentcloud/resource_tc_kms_cloud_resource_attachment.go index 44a703f8ed..62c388367b 100644 --- a/tencentcloud/resource_tc_kms_cloud_resource_attachment.go +++ b/tencentcloud/resource_tc_kms_cloud_resource_attachment.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a kms cloud_resource_attachment - -Example Usage - -```hcl -resource "tencentcloud_kms_cloud_resource_attachment" "example" { - key_id = "72688f39-1fe8-11ee-9f1a-525400cf25a4" - product_id = "mysql" - resource_id = "cdb-fitq5t9h" -} -``` - -Import - -kms cloud_resource_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_kms_cloud_resource_attachment.example 72688f39-1fe8-11ee-9f1a-525400cf25a4#mysql#cdb-fitq5t9h -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kms_external_key.go b/tencentcloud/resource_tc_kms_external_key.go index 4ddc29cab1..f534a21c64 100644 --- a/tencentcloud/resource_tc_kms_external_key.go +++ b/tencentcloud/resource_tc_kms_external_key.go @@ -1,61 +1,3 @@ -/* -Provide a resource to create a KMS external key. - -Example Usage - -Create a basic instance. - -```hcl -resource "tencentcloud_kms_external_key" "example" { - alias = "tf-example-kms-externalkey" - description = "example of kms external key" - - tags = { - "createdBy" = "terraform" - } -} -``` - -Specify the encryption algorithm and public key. - -```hcl -resource "tencentcloud_kms_external_key" "example" { - alias = "tf-example-kms-externalkey" - description = "example of kms external key" - wrapping_algorithm = "RSAES_PKCS1_V1_5" - key_material_base64 = "your_public_key_base64_encoded" - is_enabled = true - - tags = { - "createdBy" = "terraform" - } -} -``` - -Disable the external kms key. - -```hcl -resource "tencentcloud_kms_external_key" "example" { - alias = "tf-example-kms-externalkey" - description = "example of kms external key" - wrapping_algorithm = "RSAES_PKCS1_V1_5" - key_material_base64 = "your_public_key_base64_encoded" - is_enabled = false - - tags = { - "test-tag" = "unit-test" - } -} -``` - -Import - -KMS external keys can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_kms_external_key.example 287e8f40-7cbb-11eb-9a3a-xxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kms_key.go b/tencentcloud/resource_tc_kms_key.go index 577e96686e..85926766ce 100644 --- a/tencentcloud/resource_tc_kms_key.go +++ b/tencentcloud/resource_tc_kms_key.go @@ -1,57 +1,3 @@ -/* -Provide a resource to create a KMS key. - -Example Usage - -Create and enable a instance. - -```hcl -resource "tencentcloud_kms_key" "example" { - alias = "tf-example-kms-key" - description = "example of kms key" - key_rotation_enabled = false - is_enabled = true - - tags = { - "createdBy" = "terraform" - } -} -``` - -Specify the Key Usage as an asymmetry method. - -```hcl -resource "tencentcloud_kms_key" "example2" { - alias = "tf-example-kms-key" - description = "example of kms key" - key_usage = "ASYMMETRIC_DECRYPT_RSA_2048" - is_enabled = false -} -``` - -Disable the kms key instance. - -```hcl -resource "tencentcloud_kms_key" "example3" { - alias = "tf-example-kms-key" - description = "example of kms key" - key_rotation_enabled = false - is_enabled = false - - tags = { - "test-tag" = "unit-test" - } -} -``` - -Import - -KMS keys can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_kms_key.foo 287e8f40-7cbb-11eb-9a3a-5254004f7f94 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kms_overwrite_white_box_device_fingerprints.go b/tencentcloud/resource_tc_kms_overwrite_white_box_device_fingerprints.go index 000448105e..e8ba6cf6fa 100644 --- a/tencentcloud/resource_tc_kms_overwrite_white_box_device_fingerprints.go +++ b/tencentcloud/resource_tc_kms_overwrite_white_box_device_fingerprints.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a kms overwrite_white_box_device_fingerprints - -Example Usage - -```hcl -resource "tencentcloud_kms_overwrite_white_box_device_fingerprints" "example" { - key_id = "23e80852-1e38-11e9-b129-5cb9019b4b01" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kms_white_box_key.go b/tencentcloud/resource_tc_kms_white_box_key.go index e4efd1aecf..e531bab857 100644 --- a/tencentcloud/resource_tc_kms_white_box_key.go +++ b/tencentcloud/resource_tc_kms_white_box_key.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a kms white_box_key - -Example Usage - -```hcl -resource "tencentcloud_kms_white_box_key" "example" { - alias = "tf_example" - description = "test desc." - algorithm = "SM4" - status = "Enabled" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -kms white_box_key can be imported using the id, e.g. - -``` -terraform import tencentcloud_kms_white_box_key.example 244dab8c-6dad-11ea-80c6-5254006d0810 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_addon_attachment.go b/tencentcloud/resource_tc_kubernetes_addon_attachment.go index 6758b10769..036c01d01f 100644 --- a/tencentcloud/resource_tc_kubernetes_addon_attachment.go +++ b/tencentcloud/resource_tc_kubernetes_addon_attachment.go @@ -1,131 +1,3 @@ -/* -Provide a resource to configure kubernetes cluster app addons. - -~> **NOTE**: Avoid to using legacy "1.0.0" version, leave the versions empty so we can fetch the latest while creating. - -Example Usage - -Install cbs addon by passing values - -```hcl - -resource "tencentcloud_kubernetes_addon_attachment" "addon_cbs" { - cluster_id = "cls-xxxxxxxx" - name = "cbs" - # version = "1.0.5" - values = [ - "rootdir=/var/lib/kubelet" - ] -} -``` - -Install tcr addon by passing values - -```hcl -resource "tencentcloud_kubernetes_addon_attachment" "addon_tcr" { - cluster_id = "cls-xxxxxxxx" #specify your tke cluster id - name = "tcr" - version = "1.0.0" - values = [ - # imagePullSecretsCrs is an array which can configure image pull - "global.imagePullSecretsCrs[0].name=${local.tcr_id}-vpc", #specify a unique name, invalid format as: `${tcrId}-vpc` - "global.imagePullSecretsCrs[0].namespaces=${local.ns_name}", #input the specified namespaces of the cluster, or input `*` for all. - "global.imagePullSecretsCrs[0].serviceAccounts=*", #input the specified service account of the cluster, or input `*` for all. - "global.imagePullSecretsCrs[0].type=docker", #only support docker now - "global.imagePullSecretsCrs[0].dockerUsername=${local.user_name}", #input the access username, or you can create it from `tencentcloud_tcr_token` - "global.imagePullSecretsCrs[0].dockerPassword=${local.token}", #input the access token, or you can create it from `tencentcloud_tcr_token` - "global.imagePullSecretsCrs[0].dockerServer=${local.tcr_name}-vpc.tencentcloudcr.com", #invalid format as: `${tcr_name}-vpc.tencentcloudcr.com` - "global.imagePullSecretsCrs[1].name=${local.tcr_id}-public", #specify a unique name, invalid format as: `${tcr_id}-public` - "global.imagePullSecretsCrs[1].namespaces=${local.ns_name}", - "global.imagePullSecretsCrs[1].serviceAccounts=*", - "global.imagePullSecretsCrs[1].type=docker", - "global.imagePullSecretsCrs[1].dockerUsername=${local.user_name}", #refer to previous description - "global.imagePullSecretsCrs[1].dockerPassword=${local.token}", #refer to previous description - "global.imagePullSecretsCrs[1].dockerServer=${local.tcr_name}.tencentcloudcr.com", #invalid format as: `${tcr_name}.tencentcloudcr.com` - "global.cluster.region=gz", - "global.cluster.longregion=ap-guangzhou", - # Specify global hosts(optional), the numbers of hosts must be matched with the numbers of imagePullSecretsCrs - "global.hosts[0].domain=${local.tcr_name}-vpc.tencentcloudcr.com", #Corresponds to the dockerServer in the imagePullSecretsCrs above - "global.hosts[0].ip=${local.end_point}", #input InternalEndpoint of tcr instance, you can get it from data source `tencentcloud_tcr_instances` - "global.hosts[0].disabled=false", #disabled this host config or not - "global.hosts[1].domain=${local.tcr_name}.tencentcloudcr.com", - "global.hosts[1].ip=${local.end_point}", - "global.hosts[1].disabled=false", - ] -} - -locals { - tcr_id = tencentcloud_tcr_instance.mytcr.id - tcr_name = tencentcloud_tcr_instance.mytcr.name - ns_name = tencentcloud_tcr_namespace.my_ns.name - user_name = tencentcloud_tcr_token.my_token.user_name - token = tencentcloud_tcr_token.my_token.token - end_point = data.tencentcloud_tcr_instances.my_ins.instance_list.0.internal_end_point -} - -resource "tencentcloud_tcr_token" "my_token" { - instance_id = local.tcr_id - description = "tcr token" -} - -data "tencentcloud_tcr_instances" "my_ins" { - instance_id = local.tcr_id -} - -resource "tencentcloud_tcr_instance" "mytcr" { - name = "tf-test-tcr-addon" - instance_type = "basic" - delete_bucket = true - - tags = { - test = "test" - } -} - -resource "tencentcloud_tcr_namespace" "my_ns" { - instance_id = local.tcr_id - name = "tf_test_tcr_ns_addon" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} -``` - -Install new addon by passing spec json to req_body directly - -```hcl -resource "tencentcloud_kubernetes_addon_attachment" "addon_cbs" { - cluster_id = "cls-xxxxxxxx" - request_body = < **NOTE:** Only available for cluster version >= 1.20 - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "cluster_cidr" { - default = "172.16.0.0/16" -} - -variable "default_instance_type" { - default = "S1.SMALL1" -} - -data "tencentcloud_images" "default" { - image_type = ["PUBLIC_IMAGE"] - os_name = "centos" -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -resource "tencentcloud_kubernetes_cluster" "managed_cluster" { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - cluster_cidr = "10.31.0.0/16" - cluster_max_pod_num = 32 - cluster_name = "keep" - cluster_desc = "test cluster desc" - cluster_version = "1.20.6" - cluster_max_service_num = 32 - - worker_config { - count = 1 - availability_zone = var.availability_zone - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - password = "ZZXXccvv1212" - } - - cluster_deploy_type = "MANAGED_CLUSTER" -} - -resource "tencentcloud_kubernetes_auth_attachment" "test_auth_attach" { - cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id - jwks_uri = "https://${tencentcloud_kubernetes_cluster.managed_cluster.id}.ccs.tencent-cloud.com/openid/v1/jwks" - issuer = "https://${tencentcloud_kubernetes_cluster.managed_cluster.id}.ccs.tencent-cloud.com" - auto_create_discovery_anonymous_auth = true -} -``` - -Use the TKE default issuer and jwks_uri - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "cluster_cidr" { - default = "172.16.0.0/16" -} - -variable "default_instance_type" { - default = "S1.SMALL1" -} - -data "tencentcloud_images" "default" { - image_type = ["PUBLIC_IMAGE"] - os_name = "centos" -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -resource "tencentcloud_kubernetes_cluster" "managed_cluster" { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - cluster_cidr = "10.31.0.0/16" - cluster_max_pod_num = 32 - cluster_name = "keep" - cluster_desc = "test cluster desc" - cluster_version = "1.20.6" - cluster_max_service_num = 32 - - worker_config { - count = 1 - availability_zone = var.availability_zone - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - password = "ZZXXccvv1212" - } - - cluster_deploy_type = "MANAGED_CLUSTER" -} - -# if you want to use tke default issuer and jwks_uri, please set use_tke_default to true and set issuer to empty string. -resource "tencentcloud_kubernetes_auth_attachment" "test_use_tke_default_auth_attach" { - cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id - auto_create_discovery_anonymous_auth = true - use_tke_default = true -} -``` - -Use OIDC Config -``` -resource "tencentcloud_kubernetes_auth_attachment" "test_auth_attach" { - cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id - use_tke_default = true - auto_create_discovery_anonymous_auth = true - auto_create_oidc_config = true - auto_install_pod_identity_webhook_addon = true -} - -data "tencentcloud_cam_oidc_config" "oidc_config" { - name = tencentcloud_kubernetes_cluster.managed_cluster.id - depends_on = [ - tencentcloud_kubernetes_auth_attachment.test_auth_attach - ] -} - -output "identity_key" { - value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key -} - -output "identity_url" { - value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url -} - -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_backup_storage_location.go b/tencentcloud/resource_tc_kubernetes_backup_storage_location.go index 459f5197ac..43ff30b2a8 100644 --- a/tencentcloud/resource_tc_kubernetes_backup_storage_location.go +++ b/tencentcloud/resource_tc_kubernetes_backup_storage_location.go @@ -1,27 +1,3 @@ -/* -Provide a resource to create tke backup storage location. - -~> **NOTE:** To create this resource, you need to create a cos bucket with prefix "tke-backup" in advance. - -Example Usage -``` - - resource "tencentcloud_kubernetes_backup_storage_location" "example_backup" { - name = "example-backup-1" - storage_region = "ap-guangzhou" # region of you pre-created COS bucket - bucket = "tke-backup-example-1" # bucket name of your pre-created COS bucket - } - -``` - -Import - -tke backup storage location can be imported, e.g. - -``` -$ terraform import tencentcloud_kubernetes_backup_storage_location.test xxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_cluster.go b/tencentcloud/resource_tc_kubernetes_cluster.go index c6ecd049db..4d56bbbdaa 100644 --- a/tencentcloud/resource_tc_kubernetes_cluster.go +++ b/tencentcloud/resource_tc_kubernetes_cluster.go @@ -1,789 +1,3 @@ -/* -Provide a resource to create a kubernetes cluster. - -~> **NOTE:** To use the custom Kubernetes component startup parameter function (parameter `extra_args`), you need to submit a ticket for application. - -~> **NOTE:** We recommend this usage that uses the `tencentcloud_kubernetes_cluster` resource to create a cluster without any `worker_config`, then adds nodes by the `tencentcloud_kubernetes_node_pool` resource. -It's more flexible than managing worker config directly with `tencentcloud_kubernetes_cluster`, `tencentcloud_kubernetes_scale_worker`, or existing node management of `tencentcloud_kubernetes_attachment`. The reason is that `worker_config` is unchangeable and may cause the whole cluster resource to `ForceNew`. - -Example Usage - -Create a basic cluster with two worker nodes - -```hcl -variable "default_instance_type" { - default = "SA2.2XLARGE16" -} - -variable "availability_zone_first" { - default = "ap-guangzhou-3" -} - -variable "availability_zone_second" { - default = "ap-guangzhou-4" -} - -variable "example_cluster_cidr" { - default = "10.31.0.0/16" -} - -locals { - first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id - first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id - second_vpc_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.vpc_id - second_subnet_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.subnet_id - sg_id = tencentcloud_security_group.sg.id - image_id = data.tencentcloud_images.default.image_id -} - -data "tencentcloud_vpc_subnets" "vpc_one" { - is_default = true - availability_zone = var.availability_zone_first -} - -data "tencentcloud_vpc_subnets" "vpc_two" { - is_default = true - availability_zone = var.availability_zone_second -} - -resource "tencentcloud_security_group" "sg" { - name = "tf-example-sg" -} - -resource "tencentcloud_security_group_lite_rule" "sg_rule" { - security_group_id = tencentcloud_security_group.sg.id - - ingress = [ - "ACCEPT#10.0.0.0/16#ALL#ALL", - "ACCEPT#172.16.0.0/22#ALL#ALL", - "DROP#0.0.0.0/0#ALL#ALL", - ] - - egress = [ - "ACCEPT#172.16.0.0/22#ALL#ALL", - ] -} - -data "tencentcloud_images" "default" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -resource "tencentcloud_kubernetes_cluster" "example" { - vpc_id = local.first_vpc_id - cluster_cidr = var.example_cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf_example_cluster" - cluster_desc = "example for tke cluster" - cluster_max_service_num = 32 - cluster_internet = false - cluster_internet_security_group = local.sg_id - cluster_version = "1.22.5" - cluster_deploy_type = "MANAGED_CLUSTER" - - worker_config { - count = 1 - availability_zone = var.availability_zone_first - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = local.first_subnet_id - img_id = local.image_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - # key_ids = ["skey-11112222"] - password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - } - - worker_config { - count = 1 - availability_zone = var.availability_zone_second - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = local.second_subnet_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - key_ids = ["skey-11112222"] - cam_role_name = "CVM_QcsRole" - # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } -} - -``` - -Create an empty cluster with a node pool - -The cluster does not have any nodes, nodes will be added through node pool. - -```hcl -variable "default_instance_type" { - default = "SA2.2XLARGE16" -} - -variable "availability_zone_first" { - default = "ap-guangzhou-3" -} - -variable "availability_zone_second" { - default = "ap-guangzhou-4" -} - -variable "example_cluster_cidr" { - default = "10.31.0.0/16" -} - -locals { - first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id - first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id - sg_id = tencentcloud_security_group.sg.id -} - -data "tencentcloud_vpc_subnets" "vpc_one" { - is_default = true - availability_zone = var.availability_zone_first -} - -data "tencentcloud_vpc_subnets" "vpc_two" { - is_default = true - availability_zone = var.availability_zone_second -} - -resource "tencentcloud_security_group" "sg" { - name = "tf-example-np-sg" -} - -resource "tencentcloud_security_group_lite_rule" "sg_rule" { - security_group_id = tencentcloud_security_group.sg.id - - ingress = [ - "ACCEPT#10.0.0.0/16#ALL#ALL", - "ACCEPT#172.16.0.0/22#ALL#ALL", - "DROP#0.0.0.0/0#ALL#ALL", - ] - - egress = [ - "ACCEPT#172.16.0.0/22#ALL#ALL", - ] -} - -resource "tencentcloud_kubernetes_cluster" "example" { - vpc_id = local.first_vpc_id - cluster_cidr = var.example_cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf_example_cluster_np" - cluster_desc = "example for tke cluster" - cluster_max_service_num = 32 - cluster_version = "1.22.5" - cluster_deploy_type = "MANAGED_CLUSTER" - # without any worker config -} - -resource "tencentcloud_kubernetes_node_pool" "example" { - name = "tf_example_node_pool" - cluster_id = tencentcloud_kubernetes_cluster.example.id - max_size = 6 # set the node scaling range [1,6] - min_size = 1 - vpc_id = local.first_vpc_id - subnet_ids = [local.first_subnet_id] - retry_policy = "INCREMENTAL_INTERVALS" - desired_capacity = 4 - enable_auto_scale = true - multi_zone_subnet_policy = "EQUALITY" - - auto_scaling_config { - instance_type = var.default_instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = "50" - orderly_security_group_ids = [local.sg_id] - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 10 - public_ip_assigned = true - password = "test123#" - enhanced_security_service = false - enhanced_monitor_service = false - host_name = "12.123.0.0" - host_name_style = "ORIGINAL" - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } - - taints { - key = "test_taint" - value = "taint_value" - effect = "PreferNoSchedule" - } - - taints { - key = "test_taint2" - value = "taint_value2" - effect = "PreferNoSchedule" - } - - node_config { - extra_args = [ - "root-dir=/var/lib/kubelet" - ] - } -} - -```` - -Create a cluster with a node pool and open the network access with cluster endpoint - -The cluster's internet and intranet access will be opened after nodes are added through node pool. - -```hcl -variable "default_instance_type" { - default = "SA2.2XLARGE16" -} - -variable "availability_zone_first" { - default = "ap-guangzhou-3" -} - -variable "availability_zone_second" { - default = "ap-guangzhou-4" -} - -variable "example_cluster_cidr" { - default = "10.31.0.0/16" -} - -locals { - first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id - first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id - sg_id = tencentcloud_security_group.sg.id -} - -data "tencentcloud_vpc_subnets" "vpc_one" { - is_default = true - availability_zone = var.availability_zone_first -} - -data "tencentcloud_vpc_subnets" "vpc_two" { - is_default = true - availability_zone = var.availability_zone_second -} - -resource "tencentcloud_security_group" "sg" { - name = "tf-example-np-ep-sg" -} - -resource "tencentcloud_security_group_lite_rule" "sg_rule" { - security_group_id = tencentcloud_security_group.sg.id - - ingress = [ - "ACCEPT#10.0.0.0/16#ALL#ALL", - "ACCEPT#172.16.0.0/22#ALL#ALL", - "DROP#0.0.0.0/0#ALL#ALL", - ] - - egress = [ - "ACCEPT#172.16.0.0/22#ALL#ALL", - ] -} - -resource "tencentcloud_kubernetes_cluster" "example" { - vpc_id = local.first_vpc_id - cluster_cidr = var.example_cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf_example_cluster" - cluster_desc = "example for tke cluster" - cluster_max_service_num = 32 - cluster_internet = false # (can be ignored) open it after the nodes added - cluster_version = "1.22.5" - cluster_deploy_type = "MANAGED_CLUSTER" - # without any worker config -} - -resource "tencentcloud_kubernetes_node_pool" "example" { - name = "tf_example_node_pool" - cluster_id = tencentcloud_kubernetes_cluster.example.id - max_size = 6 # set the node scaling range [1,6] - min_size = 1 - vpc_id = local.first_vpc_id - subnet_ids = [local.first_subnet_id] - retry_policy = "INCREMENTAL_INTERVALS" - desired_capacity = 4 - enable_auto_scale = true - multi_zone_subnet_policy = "EQUALITY" - - auto_scaling_config { - instance_type = var.default_instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = "50" - orderly_security_group_ids = [local.sg_id] - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 10 - public_ip_assigned = true - password = "test123#" - enhanced_security_service = false - enhanced_monitor_service = false - host_name = "12.123.0.0" - host_name_style = "ORIGINAL" - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } - - taints { - key = "test_taint" - value = "taint_value" - effect = "PreferNoSchedule" - } - - taints { - key = "test_taint2" - value = "taint_value2" - effect = "PreferNoSchedule" - } - - node_config { - extra_args = [ - "root-dir=/var/lib/kubelet" - ] - } -} - -resource "tencentcloud_kubernetes_cluster_endpoint" "example" { - cluster_id = tencentcloud_kubernetes_cluster.example.id - cluster_internet = true # open the internet here - cluster_intranet = true - cluster_internet_security_group = local.sg_id - cluster_intranet_subnet_id = local.first_subnet_id - depends_on = [ # wait for the node pool ready - tencentcloud_kubernetes_node_pool.example - ] -} - - -```` - -Use Kubelet - -```hcl -# Create a baisc kubernetes cluster with two nodes. -variable "default_instance_type" { - default = "SA2.2XLARGE16" -} - -variable "availability_zone_first" { - default = "ap-guangzhou-3" -} - -variable "availability_zone_second" { - default = "ap-guangzhou-4" -} - -variable "example_cluster_cidr" { - default = "10.31.0.0/16" -} - -locals { - first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id - first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id - second_vpc_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.vpc_id - second_subnet_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.subnet_id - sg_id = tencentcloud_security_group.sg.id - image_id = data.tencentcloud_images.default.image_id -} - - - -data "tencentcloud_vpc_subnets" "vpc_one" { - is_default = true - availability_zone = var.availability_zone_first -} - -data "tencentcloud_vpc_subnets" "vpc_two" { - is_default = true - availability_zone = var.availability_zone_second -} - -resource "tencentcloud_security_group" "sg" { - name = "tf-example-sg" -} - -resource "tencentcloud_security_group_lite_rule" "sg_rule" { - security_group_id = tencentcloud_security_group.sg.id - - ingress = [ - "ACCEPT#10.0.0.0/16#ALL#ALL", - "ACCEPT#172.16.0.0/22#ALL#ALL", - "DROP#0.0.0.0/0#ALL#ALL", - ] - - egress = [ - "ACCEPT#172.16.0.0/22#ALL#ALL", - ] -} - - -data "tencentcloud_images" "default" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -resource "tencentcloud_kubernetes_cluster" "example" { - vpc_id = local.first_vpc_id - cluster_cidr = var.example_cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf_example_cluster" - cluster_desc = "example for tke cluster" - cluster_max_service_num = 32 - cluster_internet = false - cluster_internet_security_group = local.sg_id - cluster_version = "1.22.5" - cluster_deploy_type = "MANAGED_CLUSTER" - - worker_config { - count = 1 - availability_zone = var.availability_zone_first - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = local.first_subnet_id - img_id = local.image_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - encrypt = false - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - disaster_recover_group_ids = [] - security_group_ids = [] - key_ids = [] - password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - } - - worker_config { - count = 1 - availability_zone = var.availability_zone_second - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = local.second_subnet_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - disaster_recover_group_ids = [] - security_group_ids = [] - key_ids = [] - cam_role_name = "CVM_QcsRole" - password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } - - extra_args = [ - "root-dir=/var/lib/kubelet" - ] -} -``` - -Use extension addons - -```hcl -variable "availability_zone_first" { - default = "ap-guangzhou-3" -} - -variable "cluster_cidr" { - default = "10.31.0.0/16" -} - -variable "default_instance_type" { - default = "S5.SMALL1" -} - -data "tencentcloud_vpc_subnets" "vpc_first" { - is_default = true - availability_zone = var.availability_zone_first -} - -# fetch latest addon(chart) versions -data "tencentcloud_kubernetes_charts" "charts" {} - -locals { - chartNames = data.tencentcloud_kubernetes_charts.charts.chart_list.*.name - chartVersions = data.tencentcloud_kubernetes_charts.charts.chart_list.*.latest_version - chartMap = zipmap(local.chartNames, local.chartVersions) -} - -resource "tencentcloud_kubernetes_cluster" "cluster_with_addon" { - vpc_id = data.tencentcloud_vpc_subnets.vpc_first.instance_list.0.vpc_id - cluster_cidr = var.cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "test" - cluster_desc = "test cluster desc" - cluster_max_service_num = 32 - cluster_internet = true - # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"] - cluster_deploy_type = "MANAGED_CLUSTER" - - worker_config { - count = 1 - availability_zone = var.availability_zone_first - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = data.tencentcloud_vpc_subnets.vpc_first.instance_list.0.subnet_id - img_id = "img-rkiynh11" - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - key_ids = "skey-11112222" - } - - extension_addon { - name = "COS" - param = jsonencode({ - "kind" : "App", "spec" : { - "chart" : { "chartName" : "cos", "chartVersion" : local.chartMap["cos"] }, - "values" : { "values" : [], "rawValues" : "e30=", "rawValuesType" : "json" } - } - }) - } - extension_addon { - name = "SecurityGroupPolicy" - param = jsonencode({ - "kind" : "App", "spec" : { "chart" : { "chartName" : "securitygrouppolicy", "chartVersion" : local.chartMap["securitygrouppolicy"] } } - }) - } - extension_addon { - name = "OOMGuard" - param = jsonencode({ - "kind" : "App", "spec" : { "chart" : { "chartName" : "oomguard", "chartVersion" : local.chartMap["oomguard"] } } - }) - } - extension_addon { - name = "OLM" - param = jsonencode({ - "kind" : "App", "spec" : { "chart" : { "chartName" : "olm", "chartVersion" : local.chartMap["olm"] } } - }) - } -} -``` - -Use node pool global config - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "vpc" { - default = "vpc-dk8zmwuf" -} - -variable "subnet" { - default = "subnet-pqfek0t8" -} - -variable "default_instance_type" { - default = "SA1.LARGE8" -} - -resource "tencentcloud_kubernetes_cluster" "test_node_pool_global_config" { - vpc_id = var.vpc - cluster_cidr = "10.1.0.0/16" - cluster_max_pod_num = 32 - cluster_name = "test" - cluster_desc = "test cluster desc" - cluster_max_service_num = 32 - cluster_internet = true - # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"] - cluster_deploy_type = "MANAGED_CLUSTER" - - worker_config { - count = 1 - availability_zone = var.availability_zone - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = var.subnet - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - key_ids = "skey-11112222" - } - - node_pool_global_config { - is_scale_in_enabled = true - expander = "random" - ignore_daemon_sets_utilization = true - max_concurrent_scale_in = 5 - scale_in_delay = 15 - scale_in_unneeded_time = 15 - scale_in_utilization_threshold = 30 - skip_nodes_with_local_storage = false - skip_nodes_with_system_pods = true - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } -} -``` - -Using VPC-CNI network type -```hcl -variable "availability_zone" { - default = "ap-guangzhou-1" -} - -variable "vpc" { - default = "vpc-r1m1fyx5" -} - -variable "default_instance_type" { - default = "SA2.SMALL2" -} - -resource "tencentcloud_kubernetes_cluster" "managed_cluster" { - vpc_id = var.vpc - cluster_max_pod_num = 32 - cluster_name = "test" - cluster_desc = "test cluster desc" - cluster_max_service_num = 256 - cluster_internet = true - # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"] - cluster_deploy_type = "MANAGED_CLUSTER" - network_type = "VPC-CNI" - eni_subnet_ids = ["subnet-bk1etlyu"] - service_cidr = "10.1.0.0/24" - - worker_config { - count = 1 - availability_zone = var.availability_zone - instance_type = var.default_instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = "subnet-t5dv27rs" - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. - key_ids = "skey-11112222" - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } -} -``` - -Using ops options -``` -resource "tencentcloud_kubernetes_cluster" "managed_cluster" { - # ...your basic fields - - log_agent { - enabled = true - kubelet_root_dir = "" # optional - } - - event_persistence { - enabled = true - log_set_id = "" # optional - topic_id = "" # optional - } - - cluster_audit { - enabled = true - log_set_id = "" # optional - topic_id = "" # optional - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_cluster_attachment.go b/tencentcloud/resource_tc_kubernetes_cluster_attachment.go index 4df380f5e5..ca73b5be6e 100644 --- a/tencentcloud/resource_tc_kubernetes_cluster_attachment.go +++ b/tencentcloud/resource_tc_kubernetes_cluster_attachment.go @@ -1,101 +1,3 @@ -/* -Provide a resource to attach an existing cvm to kubernetes cluster. - -Example Usage - -```hcl - - variable "availability_zone" { - default = "ap-guangzhou-3" - } - - variable "cluster_cidr" { - default = "172.16.0.0/16" - } - - variable "default_instance_type" { - default = "S1.SMALL1" - } - - data "tencentcloud_images" "default" { - image_type = ["PUBLIC_IMAGE"] - os_name = "centos" - } - - data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone - } - - data "tencentcloud_instance_types" "default" { - filter { - name = "instance-family" - values = ["SA2"] - } - - cpu_core_count = 8 - memory_size = 16 - } - - resource "tencentcloud_instance" "foo" { - instance_name = "tf-auto-test-1-1" - availability_zone = var.availability_zone - image_id = data.tencentcloud_images.default.images.0.image_id - instance_type = var.default_instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - } - - resource "tencentcloud_kubernetes_cluster" "managed_cluster" { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - cluster_cidr = "10.1.0.0/16" - cluster_max_pod_num = 32 - cluster_name = "keep" - cluster_desc = "test cluster desc" - cluster_max_service_num = 32 - - worker_config { - count = 1 - availability_zone = var.availability_zone - instance_type = var.default_instance_type - system_disk_type = "CLOUD_SSD" - system_disk_size = 60 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - password = "ZZXXccvv1212" - } - - cluster_deploy_type = "MANAGED_CLUSTER" - } - - resource "tencentcloud_kubernetes_cluster_attachment" "test_attach" { - cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id - instance_id = tencentcloud_instance.foo.id - password = "Lo4wbdit" - - labels = { - "test1" = "test1", - "test2" = "test2", - } - - worker_config_overrides { - desired_pod_num = 8 - } - } - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_cluster_endpoint.go b/tencentcloud/resource_tc_kubernetes_cluster_endpoint.go index dae8443c66..5f76764051 100644 --- a/tencentcloud/resource_tc_kubernetes_cluster_endpoint.go +++ b/tencentcloud/resource_tc_kubernetes_cluster_endpoint.go @@ -1,36 +1,3 @@ -/* -Provide a resource to create a KubernetesClusterEndpoint. This resource allows you to create an empty cluster first without any workers. Only all attached node depends create complete, cluster endpoint will finally be enabled. - -~> **NOTE:** Recommend using `depends_on` to make sure endpoint create after node pools or workers does. - -Example Usage - -```hcl -resource "tencentcloud_kubernetes_node_pool" "pool1" {} - -resource "tencentcloud_kubernetes_cluster_endpoint" "foo" { - cluster_id = "cls-xxxxxxxx" - cluster_internet = true - cluster_intranet = true - # managed_cluster_internet_security_policies = [ - "192.168.0.0/24" - ] - cluster_intranet_subnet_id = "subnet-xxxxxxxx" - depends_on = [ - tencentcloud_kubernetes_node_pool.pool1 - ] -} -``` - - -Import - -KubernetesClusterEndpoint instance can be imported by passing cluster id, e.g. -``` -$ terraform import tencentcloud_kubernetes_cluster_endpoint.test cluster-id -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_encryption_protection.go b/tencentcloud/resource_tc_kubernetes_encryption_protection.go index de9e33a3bc..929419a5c3 100644 --- a/tencentcloud/resource_tc_kubernetes_encryption_protection.go +++ b/tencentcloud/resource_tc_kubernetes_encryption_protection.go @@ -1,54 +1,3 @@ -/* -Provides a resource to create a tke encryption_protection - -Example Usage - -Enable tke encryption protection - -```hcl -variable "example_region" { - default = "ap-guangzhou" -} - -variable "example_cluster_cidr" { - default = "10.32.0.0/16" -} - -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -resource "tencentcloud_kubernetes_cluster" "example" { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - cluster_cidr = var.example_cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf_example_cluster" - cluster_desc = "a tf example cluster for the kms test" - cluster_max_service_num = 32 - cluster_deploy_type = "MANAGED_CLUSTER" -} - -resource "tencentcloud_kms_key" "example" { - alias = "tf-example-kms-key" - description = "example of kms key instance" - key_usage = "ENCRYPT_DECRYPT" - is_enabled = true -} - -resource "tencentcloud_kubernetes_encryption_protection" "example" { - cluster_id = tencentcloud_kubernetes_cluster.example.id - kms_configuration { - key_id = tencentcloud_kms_key.example.id - kms_region = var.example_region - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_node_pool.go b/tencentcloud/resource_tc_kubernetes_node_pool.go index 57bee8a314..42f374e728 100644 --- a/tencentcloud/resource_tc_kubernetes_node_pool.go +++ b/tencentcloud/resource_tc_kubernetes_node_pool.go @@ -1,149 +1,3 @@ -/* -Provide a resource to create an auto scaling group for kubernetes cluster. - -~> **NOTE:** We recommend the usage of one cluster with essential worker config + node pool to manage cluster and nodes. Its a more flexible way than manage worker config with tencentcloud_kubernetes_cluster, tencentcloud_kubernetes_scale_worker or exist node management of `tencentcloud_kubernetes_attachment`. Cause some unchangeable parameters of `worker_config` may cause the whole cluster resource `force new`. - -~> **NOTE:** In order to ensure the integrity of customer data, if you destroy nodepool instance, it will keep the cvm instance associate with nodepool by default. If you want to destroy together, please set `delete_keep_instance` to `false`. - -~> **NOTE:** In order to ensure the integrity of customer data, if the cvm instance was destroyed due to shrinking, it will keep the cbs associate with cvm by default. If you want to destroy together, please set `delete_with_instance` to `true`. - -Example Usage - -```hcl - -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "cluster_cidr" { - default = "172.31.0.0/16" -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -variable "default_instance_type" { - default = "S1.SMALL1" -} - -//this is the cluster with empty worker config -resource "tencentcloud_kubernetes_cluster" "managed_cluster" { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - cluster_cidr = var.cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf-tke-unit-test" - cluster_desc = "test cluster desc" - cluster_max_service_num = 32 - cluster_version = "1.18.4" - cluster_deploy_type = "MANAGED_CLUSTER" -} - -//this is one example of managing node using node pool -resource "tencentcloud_kubernetes_node_pool" "mynodepool" { - name = "mynodepool" - cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id - max_size = 6 - min_size = 1 - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - subnet_ids = [data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id] - retry_policy = "INCREMENTAL_INTERVALS" - desired_capacity = 4 - enable_auto_scale = true - multi_zone_subnet_policy = "EQUALITY" - - auto_scaling_config { - instance_type = var.default_instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = "50" - orderly_security_group_ids = ["sg-24vswocp"] - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 10 - public_ip_assigned = true - password = "test123#" - enhanced_security_service = false - enhanced_monitor_service = false - host_name = "12.123.0.0" - host_name_style = "ORIGINAL" - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } - - taints { - key = "test_taint" - value = "taint_value" - effect = "PreferNoSchedule" - } - - taints { - key = "test_taint2" - value = "taint_value2" - effect = "PreferNoSchedule" - } - - node_config { - extra_args = [ - "root-dir=/var/lib/kubelet" - ] - } -} -``` - -Using Spot CVM Instance -```hcl -resource "tencentcloud_kubernetes_node_pool" "mynodepool" { - name = "mynodepool" - cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id - max_size = 6 - min_size = 1 - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - subnet_ids = [data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id] - retry_policy = "INCREMENTAL_INTERVALS" - desired_capacity = 4 - enable_auto_scale = true - multi_zone_subnet_policy = "EQUALITY" - - auto_scaling_config { - instance_type = var.default_instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = "50" - orderly_security_group_ids = ["sg-24vswocp", "sg-3qntci2v", "sg-7y1t2wax"] - instance_charge_type = "SPOTPAID" - spot_instance_type = "one-time" - spot_max_price = "1000" - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 10 - public_ip_assigned = true - password = "test123#" - enhanced_security_service = false - enhanced_monitor_service = false - } - - labels = { - "test1" = "test1", - "test2" = "test2", - } - -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_scale_worker.go b/tencentcloud/resource_tc_kubernetes_scale_worker.go index 78f2d40c5a..c1baebe5ed 100644 --- a/tencentcloud/resource_tc_kubernetes_scale_worker.go +++ b/tencentcloud/resource_tc_kubernetes_scale_worker.go @@ -1,107 +1,3 @@ -/* -Provide a resource to increase instance to cluster - -~> **NOTE:** To use the custom Kubernetes component startup parameter function (parameter `extra_args`), you need to submit a ticket for application. - -~> **NOTE:** Import Node: Currently, only one node can be imported at a time. - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "subnet" { - default = "subnet-pqfek0t8" -} - -variable "scale_instance_type" { - default = "S2.LARGE16" -} - -resource tencentcloud_kubernetes_scale_worker test_scale { - cluster_id = "cls-godovr32" - desired_pod_num = 16 - labels = { - "test1" = "test1", - "test2" = "test2", - } - worker_config { - count = 3 - availability_zone = var.availability_zone - instance_type = var.scale_instance_type - subnet_id = var.subnet - system_disk_type = "CLOUD_SSD" - system_disk_size = 50 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - password = "AABBccdd1122" - } -} -``` - -Use Kubelet - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "subnet" { - default = "subnet-pqfek0t8" -} - -variable "scale_instance_type" { - default = "S2.LARGE16" -} - -resource tencentcloud_kubernetes_scale_worker test_scale { - cluster_id = "cls-godovr32" - - extra_args = [ - "root-dir=/var/lib/kubelet" - ] - - labels = { - "test1" = "test1", - "test2" = "test2", - } - - worker_config { - count = 3 - availability_zone = var.availability_zone - instance_type = var.scale_instance_type - subnet_id = var.subnet - system_disk_type = "CLOUD_SSD" - system_disk_size = 50 - internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = 100 - public_ip_assigned = true - - data_disk { - disk_type = "CLOUD_PREMIUM" - disk_size = 50 - } - - enhanced_security_service = false - enhanced_monitor_service = false - user_data = "dGVzdA==" - password = "AABBccdd1122" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_kubernetes_serverless_node_pool.go b/tencentcloud/resource_tc_kubernetes_serverless_node_pool.go index 87da7059fb..ad6bb9513d 100644 --- a/tencentcloud/resource_tc_kubernetes_serverless_node_pool.go +++ b/tencentcloud/resource_tc_kubernetes_serverless_node_pool.go @@ -1,114 +1,3 @@ -/* -Provide a resource to create serverless node pool of cluster. - -Example Usage - -Add serverless node pool to a cluster - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -variable "example_cluster_cidr" { - default = "10.31.0.0/16" -} - -locals { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id - sg_id = data.tencentcloud_security_groups.sg.security_groups.0.security_group_id -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -data "tencentcloud_security_groups" "sg" { - name = "default" -} - -resource "tencentcloud_kubernetes_cluster" "example" { - vpc_id = local.vpc_id - cluster_cidr = var.example_cluster_cidr - cluster_max_pod_num = 32 - cluster_name = "tf_example_cluster" - cluster_desc = "tf example cluster" - cluster_max_service_num = 32 - cluster_version = "1.18.4" - cluster_deploy_type = "MANAGED_CLUSTER" -} - -resource "tencentcloud_kubernetes_serverless_node_pool" "example" { - cluster_id = tencentcloud_kubernetes_cluster.example.id - name = "tf_example_serverless_node_pool" - - serverless_nodes { - display_name = "tf_example_serverless_node1" - subnet_id = local.subnet_id - } - - serverless_nodes { - display_name = "tf_example_serverless_node2" - subnet_id = local.subnet_id - } - - security_group_ids = [local.sg_id] - labels = { - "label1" : "value1", - "label2" : "value2", - } -} -``` - -Adding taints to the virtual nodes under this node pool - -The pods without appropriate tolerations will not be scheduled on this node. Refer [taint-and-toleration](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more details. - -```hcl -resource "tencentcloud_kubernetes_serverless_node_pool" "example" { - cluster_id = tencentcloud_kubernetes_cluster.example.id - name = "tf_example_serverless_node_pool" - - serverless_nodes { - display_name = "tf_example_serverless_node1" - subnet_id = local.subnet_id - } - - serverless_nodes { - display_name = "tf_example_serverless_node2" - subnet_id = local.subnet_id - } - - security_group_ids = [local.sg_id] - labels = { - "label1" : "value1", - "label2" : "value2", - } - - taints{ - key = "key1" - value = "value1" - effect = "NoSchedule" - } - - taints{ - key = "key1" - value = "value1" - effect = "NoExecute" - } -} -``` - -Import - -serverless node pool can be imported, e.g. - -``` -$ terraform import tencentcloud_kubernetes_serverless_node_pool.test cls-xxx#np-xxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lb.go b/tencentcloud/resource_tc_lb.go index 213308d591..58191471fb 100644 --- a/tencentcloud/resource_tc_lb.go +++ b/tencentcloud/resource_tc_lb.go @@ -1,19 +1,3 @@ -/* -Provides a Load Balancer resource. - -~> **NOTE:** It has been deprecated and replaced by `tencentcloud_clb_instance`. - -Example Usage - -```hcl -resource "tencentcloud_lb" "classic" { - type = "OPEN" - forward = "APPLICATION" - name = "tf-test-classic" - project_id = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_apply_disk_backup.go b/tencentcloud/resource_tc_lighthouse_apply_disk_backup.go index 0a329336d9..1ad2e6a56d 100644 --- a/tencentcloud/resource_tc_lighthouse_apply_disk_backup.go +++ b/tencentcloud/resource_tc_lighthouse_apply_disk_backup.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a lighthouse apply_disk_backup - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_apply_disk_backup" "apply_disk_backup" { - disk_id = "lhdisk-xxxxxx" - disk_backup_id = "lhbak-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_apply_instance_snapshot.go b/tencentcloud/resource_tc_lighthouse_apply_instance_snapshot.go index 9cd7fb6d3e..e64386a681 100644 --- a/tencentcloud/resource_tc_lighthouse_apply_instance_snapshot.go +++ b/tencentcloud/resource_tc_lighthouse_apply_instance_snapshot.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a lighthouse apply_instance_snapshot - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_apply_instance_snapshot" "apply_instance_snapshot" { - instance_id = "lhins-123456" - snapshot_id = "lhsnap-123456" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_blueprint.go b/tencentcloud/resource_tc_lighthouse_blueprint.go index 18b47e0f15..15de61bde0 100644 --- a/tencentcloud/resource_tc_lighthouse_blueprint.go +++ b/tencentcloud/resource_tc_lighthouse_blueprint.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a lighthouse blueprint - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_blueprint" "blueprint" { - blueprint_name = "blueprint_name_test" - description = "blueprint_description_test" - instance_id = "lhins-xxxxxx" -} -``` - -Import - -lighthouse blueprint can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_blueprint.blueprint blueprint_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_disk.go b/tencentcloud/resource_tc_lighthouse_disk.go index d63c8d6a07..98d525a035 100644 --- a/tencentcloud/resource_tc_lighthouse_disk.go +++ b/tencentcloud/resource_tc_lighthouse_disk.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a lighthouse disk - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_disk" "disk" { - zone = "ap-hongkong-2" - disk_size = 20 - disk_type = "CLOUD_SSD" - disk_charge_prepaid { - period = 1 - renew_flag = "NOTIFY_AND_AUTO_RENEW" - time_unit = "m" - - } - disk_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_disk_attachment.go b/tencentcloud/resource_tc_lighthouse_disk_attachment.go index 591eb02450..a797805b63 100644 --- a/tencentcloud/resource_tc_lighthouse_disk_attachment.go +++ b/tencentcloud/resource_tc_lighthouse_disk_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a lighthouse disk_attachment - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_disk_attachment" "disk_attachment" { - disk_id = "lhdisk-xxxxxx" - instance_id = "lhins-xxxxxx" -} -``` - -Import - -lighthouse disk_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_disk_attachment.disk_attachment disk_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_disk_backup.go b/tencentcloud/resource_tc_lighthouse_disk_backup.go index aabeca3bdb..97ae32c63a 100644 --- a/tencentcloud/resource_tc_lighthouse_disk_backup.go +++ b/tencentcloud/resource_tc_lighthouse_disk_backup.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a lighthouse disk_backup - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_disk_backup" "disk_backup" { - disk_id = "lhdisk-xxxxx" - disk_backup_name = "disk-backup" -} -``` - -Import - -lighthouse disk_backup can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_disk_backup.disk_backup disk_backup_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_firewall_rule.go b/tencentcloud/resource_tc_lighthouse_firewall_rule.go index 5a00833a24..ad6381a798 100644 --- a/tencentcloud/resource_tc_lighthouse_firewall_rule.go +++ b/tencentcloud/resource_tc_lighthouse_firewall_rule.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a lighthouse firewall rule - -~> **NOTE:** Use an empty template to clean up the default rules before using this resource manage firewall rules. - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_firewall_rule" "firewall_rule" { - instance_id = "lhins-xxxxxxx" - firewall_rules { - protocol = "TCP" - port = "80" - cidr_block = "10.0.0.1" - action = "ACCEPT" - firewall_rule_description = "description 1" - } - firewall_rules { - protocol = "TCP" - port = "80" - cidr_block = "10.0.0.2" - action = "ACCEPT" - firewall_rule_description = "description 2" - } -} -``` - -Import - -lighthouse firewall_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_firewall_rule.firewall_rule lighthouse_instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_firewall_template.go b/tencentcloud/resource_tc_lighthouse_firewall_template.go index 71789c5610..23a999bedb 100644 --- a/tencentcloud/resource_tc_lighthouse_firewall_template.go +++ b/tencentcloud/resource_tc_lighthouse_firewall_template.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a lighthouse firewall template - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_firewall_template" "firewall_template" { - template_name = "firewall-template-test" - template_rules { - protocol = "TCP" - port = "8080" - cidr_block = "127.0.0.1" - action = "ACCEPT" - firewall_rule_description = "test description" - } - template_rules { - protocol = "TCP" - port = "8090" - cidr_block = "127.0.0.0/24" - action = "DROP" - firewall_rule_description = "test description" - } -} -``` - -Import - -lighthouse firewall_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_firewall_template.firewall_template firewall_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_instance.go b/tencentcloud/resource_tc_lighthouse_instance.go index a5cc3f4ac7..31e2561b89 100644 --- a/tencentcloud/resource_tc_lighthouse_instance.go +++ b/tencentcloud/resource_tc_lighthouse_instance.go @@ -1,82 +1,3 @@ -/* -Provides a resource to create a lighthouse instance. - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_firewall_template" "firewall_template" { - template_name="empty-template" -} - -resource "tencentcloud_lighthouse_instance" "lighthouse" { - bundle_id = "bundle2022_gen_01" - blueprint_id = "lhbp-f1lkcd41" - - period = 1 - renew_flag = "NOTIFY_AND_AUTO_RENEW" - - instance_name = "hello world" - zone = "ap-guangzhou-3" - - containers { - container_image = "ccr.ccs.tencentyun.com/qcloud/nginx" - container_name = "nginx" - envs { - key = "key" - value = "value" - } - envs { - key = "key2" - value = "value2" - } - publish_ports { - host_port = 80 - container_port = 80 - ip = "127.0.0.1" - protocol = "tcp" - } - publish_ports { - host_port = 36000 - container_port = 36000 - ip = "127.0.0.1" - protocol = "tcp" - } - volumes { - container_path = "/data" - host_path = "/tmp" - } - volumes { - container_path = "/var" - host_path = "/tmp" - } - command = "ls -l" - } - - containers { - container_image = "ccr.ccs.tencentyun.com/qcloud/resty" - container_name = "resty" - envs { - key = "key2" - value = "value2" - } - publish_ports { - host_port = 80 - container_port = 80 - ip = "127.0.0.1" - protocol = "udp" - } - - volumes { - container_path = "/var" - host_path = "/tmp" - } - command = "echo \"hello\"" - } - firewall_template_id = tencentcloud_lighthouse_firewall_template.firewall_template.id -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_key_pair.go b/tencentcloud/resource_tc_lighthouse_key_pair.go index 684cbcec91..9ca2a33b79 100644 --- a/tencentcloud/resource_tc_lighthouse_key_pair.go +++ b/tencentcloud/resource_tc_lighthouse_key_pair.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a lighthouse key_pair - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_key_pair" "key_pair" { - key_name = "key_name_test" -} -``` - -Import - -lighthouse key_pair can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_key_pair.key_pair key_pair_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_key_pair_attachment.go b/tencentcloud/resource_tc_lighthouse_key_pair_attachment.go index 4a00c37b42..3d41adc819 100644 --- a/tencentcloud/resource_tc_lighthouse_key_pair_attachment.go +++ b/tencentcloud/resource_tc_lighthouse_key_pair_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a lighthouse key_pair_attachment - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_key_pair_attachment" "key_pair_attachment" { - key_id = "lhkp-xxxxxx" - instance_id = "lhins-xxxxxx" -} -``` - -Import - -lighthouse key_pair_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_lighthouse_key_pair_attachment.key_pair_attachment key_pair_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_reboot_instance.go b/tencentcloud/resource_tc_lighthouse_reboot_instance.go index ed4723711f..8e55f47ff3 100644 --- a/tencentcloud/resource_tc_lighthouse_reboot_instance.go +++ b/tencentcloud/resource_tc_lighthouse_reboot_instance.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a lighthouse reboot_instance - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_reboot_instance" "reboot_instance" { - instance_id = "lhins-xxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_renew_disk.go b/tencentcloud/resource_tc_lighthouse_renew_disk.go index 51e5f9168f..7ac50a6183 100644 --- a/tencentcloud/resource_tc_lighthouse_renew_disk.go +++ b/tencentcloud/resource_tc_lighthouse_renew_disk.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a lighthouse renew_disk - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_renew_disk" "renew_disk" { - disk_id = "lhdisk-xxxxxx" - renew_disk_charge_prepaid { - period = 1 - renew_flag = "NOTIFY_AND_AUTO_RENEW" - time_unit = "m" - } - auto_voucher = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_renew_instance.go b/tencentcloud/resource_tc_lighthouse_renew_instance.go index 19f842580b..3b4eb400a9 100644 --- a/tencentcloud/resource_tc_lighthouse_renew_instance.go +++ b/tencentcloud/resource_tc_lighthouse_renew_instance.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a lighthouse renew_instance - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_renew_instance" "renew_instance" { - instance_id = - instance_charge_prepaid { - period = 1 - renew_flag = "NOTIFY_AND_MANUAL_RENEW" - - } - renew_data_disk = true - auto_voucher = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_snapshot.go b/tencentcloud/resource_tc_lighthouse_snapshot.go index 28da4760a5..550ed85a23 100644 --- a/tencentcloud/resource_tc_lighthouse_snapshot.go +++ b/tencentcloud/resource_tc_lighthouse_snapshot.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a lighthouse snapshot - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_snapshot" "snapshot" { - instance_id = "lhins-acd1234" - snapshot_name = "snap_20200903" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_start_instance.go b/tencentcloud/resource_tc_lighthouse_start_instance.go index 1e2f588f6e..86067bf7d6 100644 --- a/tencentcloud/resource_tc_lighthouse_start_instance.go +++ b/tencentcloud/resource_tc_lighthouse_start_instance.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a lighthouse start_instance - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_start_instance" "start_instance" { - instance_id = "lhins-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_lighthouse_stop_instance.go b/tencentcloud/resource_tc_lighthouse_stop_instance.go index 0c1fabd6b8..1eeb1c4472 100644 --- a/tencentcloud/resource_tc_lighthouse_stop_instance.go +++ b/tencentcloud/resource_tc_lighthouse_stop_instance.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a lighthouse stop_instance - -Example Usage - -```hcl -resource "tencentcloud_lighthouse_stop_instance" "stop_instance" { - instance_id = "lhins-xxxxxx" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_account.go b/tencentcloud/resource_tc_mariadb_account.go index 1cb57935c7..5a92870c20 100644 --- a/tencentcloud/resource_tc_mariadb_account.go +++ b/tencentcloud/resource_tc_mariadb_account.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a mariadb account - -Example Usage - -```hcl -resource "tencentcloud_mariadb_account" "account" { - instance_id = "tdsql-4pzs5b67" - user_name = "account-test" - host = "10.101.202.22" - password = "Password123." - read_only = 0 - description = "desc" -} - -``` -Import - -mariadb account can be imported using the instance_id#user_name#host, e.g. -``` -$ terraform import tencentcloud_mariadb_account.account tdsql-4pzs5b67#account-test#10.101.202.22 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_account_privileges.go b/tencentcloud/resource_tc_mariadb_account_privileges.go index e2f3554b25..33fa4ed5be 100644 --- a/tencentcloud/resource_tc_mariadb_account_privileges.go +++ b/tencentcloud/resource_tc_mariadb_account_privileges.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a mariadb account_privileges - -Example Usage - -```hcl -resource "tencentcloud_mariadb_account_privileges" "account_privileges" { - instance_id = "tdsql-9vqvls95" - accounts { - user = "keep-modify-privileges" - host = "127.0.0.1" - } - global_privileges = ["ALTER", "CREATE", "DELETE", "SELECT", "UPDATE", "DROP"] -} -``` - -Import - -mariadb account_privileges can be imported using the id, e.g. - -``` -terraform import tencentcloud_mariadb_account_privileges.account_privileges account_privileges_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_backup_time.go b/tencentcloud/resource_tc_mariadb_backup_time.go index d587df88e8..0437935da9 100644 --- a/tencentcloud/resource_tc_mariadb_backup_time.go +++ b/tencentcloud/resource_tc_mariadb_backup_time.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a mariadb backup_time - -Example Usage - -```hcl -resource "tencentcloud_mariadb_backup_time" "backup_time" { - instance_id = "tdsql-9vqvls95" - start_backup_time = "01:00" - end_backup_time = "04:00" -} -``` - -Import - -mariadb backup_time can be imported using the id, e.g. - -``` -terraform import tencentcloud_mariadb_backup_time.backup_time backup_time_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_cancel_dcn_job.go b/tencentcloud/resource_tc_mariadb_cancel_dcn_job.go index 449419574b..533628e7fb 100644 --- a/tencentcloud/resource_tc_mariadb_cancel_dcn_job.go +++ b/tencentcloud/resource_tc_mariadb_cancel_dcn_job.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a mariadb cancel_dcn_job - -Example Usage - -```hcl -resource "tencentcloud_mariadb_cancel_dcn_job" "cancel_dcn_job" { - instance_id = "tdsql-9vqvls95" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_dedicatedcluster_db_instance.go b/tencentcloud/resource_tc_mariadb_dedicatedcluster_db_instance.go index 10872cbc32..1e8fa1991a 100644 --- a/tencentcloud/resource_tc_mariadb_dedicatedcluster_db_instance.go +++ b/tencentcloud/resource_tc_mariadb_dedicatedcluster_db_instance.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a mariadb dedicatedcluster_db_instance - -Example Usage - -```hcl -resource "tencentcloud_mariadb_dedicatedcluster_db_instance" "dedicatedcluster_db_instance" { - goods_num = 1 - memory = 2 - storage = 10 - cluster_id = "dbdc-24odnuhr" - vpc_id = "vpc-ii1jfbhl" - subnet_id = "subnet-3ku415by" - db_version_id = "8.0" - instance_name = "cluster-mariadb-test-1" -} - -``` -Import - -mariadb dedicatedcluster_db_instance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_mariadb_dedicatedcluster_db_instance.dedicatedcluster_db_instance tdsql-050g3fmv -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_flush_binlog.go b/tencentcloud/resource_tc_mariadb_flush_binlog.go index 18d4600885..696cbe35eb 100644 --- a/tencentcloud/resource_tc_mariadb_flush_binlog.go +++ b/tencentcloud/resource_tc_mariadb_flush_binlog.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a mariadb flush_binlog - -Example Usage - -```hcl -resource "tencentcloud_mariadb_flush_binlog" "flush_binlog" { - instance_id = "tdsql-9vqvls95" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_hour_db_instance.go b/tencentcloud/resource_tc_mariadb_hour_db_instance.go index 0fbd65e02e..e9efe4fed7 100644 --- a/tencentcloud/resource_tc_mariadb_hour_db_instance.go +++ b/tencentcloud/resource_tc_mariadb_hour_db_instance.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a mariadb hour_db_instance - -Example Usage - -```hcl -resource "tencentcloud_mariadb_hour_db_instance" "basic" { - db_version_id = "10.0" - instance_name = "db-test-del" - memory = 2 - node_count = 2 - storage = 10 - subnet_id = "subnet-jdi5xn22" - vpc_id = "vpc-k1t8ickr" - vip = "10.0.0.197" - zones = [ - "ap-guangzhou-6", - "ap-guangzhou-7", - ] - tags = { - createdBy = "terraform" - } -} - -``` -Import - -mariadb hour_db_instance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_mariadb_hour_db_instance.hour_db_instance tdsql-kjqih9nn -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_instance.go b/tencentcloud/resource_tc_mariadb_instance.go index a1e0f93eea..32f80d74d0 100644 --- a/tencentcloud/resource_tc_mariadb_instance.go +++ b/tencentcloud/resource_tc_mariadb_instance.go @@ -1,55 +1,3 @@ -/* -Provides a resource to create a mariadb instance - -Example Usage - -```hcl -resource "tencentcloud_mariadb_instance" "instance" { - zones = ["ap-guangzhou-3",] - node_count = 2 - memory = 8 - storage = 10 - period = 1 - # auto_voucher = - # voucher_ids = - vpc_id = "vpc-ii1jfbhl" - subnet_id = "subnet-3ku415by" - # project_id = "" - db_version_id = "8.0" - instance_name = "terraform-test" - # security_group_ids = "" - auto_renew_flag = 1 - ipv6_flag = 0 - tags = { - "createby" = "terrafrom-2" - } - init_params { - param = "character_set_server" - value = "utf8mb4" - } - init_params { - param = "lower_case_table_names" - value = "0" - } - init_params { - param = "innodb_page_size" - value = "16384" - } - init_params { - param = "sync_mode" - value = "1" - } - dcn_region = "" - dcn_instance_id = "" -} -``` -Import - -mariadb tencentcloud_mariadb_instance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_mariadb_instance.instance tdsql-4pzs5b67 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_instance_config.go b/tencentcloud/resource_tc_mariadb_instance_config.go index 6e3a8a675e..728f770932 100644 --- a/tencentcloud/resource_tc_mariadb_instance_config.go +++ b/tencentcloud/resource_tc_mariadb_instance_config.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a mariadb instance_config - -Example Usage - -```hcl -resource "tencentcloud_mariadb_instance_config" "test" { - instance_id = "tdsql-9vqvls95" - vpc_id = "vpc-ii1jfbhl" - subnet_id = "subnet-3ku415by" - rs_access_strategy = 1 - extranet_access = 0 - vip = "127.0.0.1" -} -``` - -Import - -mariadb instance_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_mariadb_instance_config.test id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_log_file_retention_period.go b/tencentcloud/resource_tc_mariadb_log_file_retention_period.go index d67d06c3a8..e79626107b 100644 --- a/tencentcloud/resource_tc_mariadb_log_file_retention_period.go +++ b/tencentcloud/resource_tc_mariadb_log_file_retention_period.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a mariadb log_file_retention_period - -Example Usage - -```hcl -resource "tencentcloud_mariadb_log_file_retention_period" "log_file_retention_period" { - instance_id = "tdsql-4pzs5b67" - days = "8" -} - -``` -Import - -mariadb log_file_retention_period can be imported using the id, e.g. -``` -$ terraform import tencentcloud_mariadb_log_file_retention_period.log_file_retention_period tdsql-4pzs5b67 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_operate_hour_db_instance.go b/tencentcloud/resource_tc_mariadb_operate_hour_db_instance.go index 3b1651b640..30aaf4429d 100644 --- a/tencentcloud/resource_tc_mariadb_operate_hour_db_instance.go +++ b/tencentcloud/resource_tc_mariadb_operate_hour_db_instance.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a mariadb activate_hour_db_instance - -Example Usage - -```hcl -resource "tencentcloud_mariadb_operate_hour_db_instance" "activate_hour_db_instance" { - instance_id = "tdsql-9vqvls95" - operate = "activate" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_parameters.go b/tencentcloud/resource_tc_mariadb_parameters.go index 619ae70bc6..035e4c9953 100644 --- a/tencentcloud/resource_tc_mariadb_parameters.go +++ b/tencentcloud/resource_tc_mariadb_parameters.go @@ -1,282 +1,3 @@ -/* -Provides a resource to create a mariadb parameters - -Example Usage - -```hcl -resource "tencentcloud_mariadb_parameters" "parameters" { - instance_id = "tdsql-4pzs5b67" - - params { - param = "auto_increment_increment" - value = "1" - } - params { - param = "auto_increment_offset" - value = "1" - } - params { - param = "autocommit" - value = "ON" - } - params { - param = "character_set_server" - value = "utf8mb4" - } - params { - param = "collation_connection" - value = "utf8mb4_general_ci" - } - params { - param = "collation_database" - value = "utf8mb4_general_ci" - } - params { - param = "collation_server" - value = "utf8mb4_general_ci" - } - params { - param = "connect_timeout" - value = "10" - } - params { - param = "default_collation_for_utf8mb4" - value = "utf8mb4_general_ci" - } - params { - param = "default_week_format" - value = "0" - } - params { - param = "delay_key_write" - value = "ON" - } - params { - param = "delayed_insert_limit" - value = "100" - } - params { - param = "delayed_insert_timeout" - value = "300" - } - params { - param = "delayed_queue_size" - value = "1000" - } - params { - param = "div_precision_increment" - value = "4" - } - params { - param = "event_scheduler" - value = "ON" - } - params { - param = "group_concat_max_len" - value = "1024" - } - params { - param = "innodb_concurrency_tickets" - value = "5000" - } - params { - param = "innodb_flush_log_at_trx_commit" - value = "1" - } - params { - param = "innodb_lock_wait_timeout" - value = "20" - } - params { - param = "innodb_max_dirty_pages_pct" - value = "70.000000" - } - params { - param = "innodb_old_blocks_pct" - value = "37" - } - params { - param = "innodb_old_blocks_time" - value = "1000" - } - params { - param = "innodb_purge_batch_size" - value = "1000" - } - params { - param = "innodb_read_ahead_threshold" - value = "56" - } - params { - param = "innodb_stats_method" - value = "nulls_equal" - } - params { - param = "innodb_stats_on_metadata" - value = "OFF" - } - params { - param = "innodb_strict_mode" - value = "OFF" - } - params { - param = "innodb_table_locks" - value = "ON" - } - params { - param = "innodb_thread_concurrency" - value = "0" - } - params { - param = "interactive_timeout" - value = "28800" - } - params { - param = "key_cache_age_threshold" - value = "300" - } - params { - param = "key_cache_block_size" - value = "1024" - } - params { - param = "key_cache_division_limit" - value = "100" - } - params { - param = "local_infile" - value = "OFF" - } - params { - param = "lock_wait_timeout" - value = "5" - } - params { - param = "log_queries_not_using_indexes" - value = "OFF" - } - params { - param = "long_query_time" - value = "1.000000" - } - params { - param = "low_priority_updates" - value = "OFF" - } - params { - param = "max_allowed_packet" - value = "1073741824" - } - params { - param = "max_binlog_size" - value = "536870912" - } - params { - param = "max_connect_errors" - value = "2000" - } - params { - param = "max_connections" - value = "10000" - } - params { - param = "max_execution_time" - value = "0" - } - params { - param = "max_prepared_stmt_count" - value = "200000" - } - params { - param = "myisam_sort_buffer_size" - value = "4194304" - } - params { - param = "net_buffer_length" - value = "16384" - } - params { - param = "net_read_timeout" - value = "150" - } - params { - param = "net_retry_count" - value = "10" - } - params { - param = "net_write_timeout" - value = "300" - } - params { - param = "query_alloc_block_size" - value = "16384" - } - params { - param = "query_prealloc_size" - value = "24576" - } - params { - param = "slow_launch_time" - value = "2" - } - params { - param = "sort_buffer_size" - value = "2097152" - } - params { - param = "sql_mode" - value = "NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" - } - params { - param = "sql_require_primary_key" - value = "ON" - } - params { - param = "sql_safe_updates" - value = "OFF" - } - params { - param = "sqlasyntimeout" - value = "30" - } - params { - param = "sync_binlog" - value = "1" - } - params { - param = "table_definition_cache" - value = "10240" - } - params { - param = "table_open_cache" - value = "20480" - } - params { - param = "time_zone" - value = "+08:00" - } - params { - param = "tmp_table_size" - value = "33554432" - } - params { - param = "tx_isolation" - value = "READ-COMMITTED" - } - params { - param = "wait_timeout" - value = "28800" - } -} - -``` -Import - -mariadb parameters can be imported using the id, e.g. -``` -$ terraform import tencentcloud_mariadb_parameters.parameters tdsql-4pzs5b67 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_renew_instance.go b/tencentcloud/resource_tc_mariadb_renew_instance.go index 61cf818d04..6305da06ef 100644 --- a/tencentcloud/resource_tc_mariadb_renew_instance.go +++ b/tencentcloud/resource_tc_mariadb_renew_instance.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a mariadb renew_instance - -Example Usage - -```hcl -resource "tencentcloud_mariadb_renew_instance" "renew_instance" { - instance_id = "tdsql-9vqvls95" - period = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_restart_instance.go b/tencentcloud/resource_tc_mariadb_restart_instance.go index 87b6ba5227..a4cd6810c3 100644 --- a/tencentcloud/resource_tc_mariadb_restart_instance.go +++ b/tencentcloud/resource_tc_mariadb_restart_instance.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a mariadb restart_instance - -Example Usage - -```hcl -resource "tencentcloud_mariadb_restart_instance" "restart_instance" { - instance_id = "tdsql-9vqvls95" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_security_groups.go b/tencentcloud/resource_tc_mariadb_security_groups.go index aa51b0f8f4..3de43acd72 100644 --- a/tencentcloud/resource_tc_mariadb_security_groups.go +++ b/tencentcloud/resource_tc_mariadb_security_groups.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a mariadb security_groups - -~> **NOTE:** If you use this resource, please do not use security_group_ids in tencentcloud_mariadb_instance resource - -Example Usage - -```hcl -resource "tencentcloud_mariadb_security_groups" "security_groups" { - instance_id = "tdsql-4pzs5b67" - security_group_id = "sg-7kpsbxdb" - product = "mariadb" -} - -``` -Import - -mariadb security_groups can be imported using the id, e.g. -``` -$ terraform import tencentcloud_mariadb_security_groups.security_groups tdsql-4pzs5b67#sg-7kpsbxdb#mariadb -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mariadb_switch_ha.go b/tencentcloud/resource_tc_mariadb_switch_ha.go index 645f23cc7e..fdb505d9fe 100644 --- a/tencentcloud/resource_tc_mariadb_switch_ha.go +++ b/tencentcloud/resource_tc_mariadb_switch_ha.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a mariadb switch_h_a - -Example Usage - -```hcl -resource "tencentcloud_mariadb_switch_ha" "switch_ha" { - instance_id = "tdsql-9vqvls95" - zone = "ap-guangzhou-2" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mdl_stream_live_input.go b/tencentcloud/resource_tc_mdl_stream_live_input.go index 22df9fd04b..2bdd367a7f 100644 --- a/tencentcloud/resource_tc_mdl_stream_live_input.go +++ b/tencentcloud/resource_tc_mdl_stream_live_input.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a mdl streamlive_input - -Example Usage - -```hcl -resource "tencentcloud_mdl_stream_live_input" "stream_live_input" { - name = "terraform_test" - type = "RTP_PUSH" - security_group_ids = [ - "6405DF9D000007DFB4EC" - ] -} -``` - -Import - -mdl stream_live_input can be imported using the id, e.g. - -``` -terraform import tencentcloud_mdl_stream_live_input.stream_live_input id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mongodb_instance.go b/tencentcloud/resource_tc_mongodb_instance.go index f8e8db53bd..f091a1f1bc 100644 --- a/tencentcloud/resource_tc_mongodb_instance.go +++ b/tencentcloud/resource_tc_mongodb_instance.go @@ -1,31 +1,3 @@ -/* -Provide a resource to create a Mongodb instance. - -Example Usage - -```hcl -resource "tencentcloud_mongodb_instance" "mongodb" { - instance_name = "mongodb" - memory = 4 - volume = 100 - engine_version = "MONGO_36_WT" - machine_type = "HIO10G" - available_zone = "ap-guangzhou-2" - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxxx" - project_id = 0 - password = "password1234" -} -``` - -Import - -Mongodb instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_mongodb_instance.mongodb cmgo-41s6jwy4 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mongodb_instance_account.go b/tencentcloud/resource_tc_mongodb_instance_account.go index c9384a677f..50647cb283 100644 --- a/tencentcloud/resource_tc_mongodb_instance_account.go +++ b/tencentcloud/resource_tc_mongodb_instance_account.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a mongodb instance_account - -Example Usage - -```hcl -resource "tencentcloud_mongodb_instance_account" "instance_account" { - instance_id = "cmgo-lxaz2c9b" - user_name = "test_account" - password = "xxxxxxxx" - mongo_user_password = "xxxxxxxxx" - user_desc = "test account" - auth_role { - mask = 0 - namespace = "*" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mongodb_instance_backup.go b/tencentcloud/resource_tc_mongodb_instance_backup.go index 5c8fb0fd3d..8e868e25b0 100644 --- a/tencentcloud/resource_tc_mongodb_instance_backup.go +++ b/tencentcloud/resource_tc_mongodb_instance_backup.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a mongodb instance_backup - -Example Usage - -```hcl -resource "tencentcloud_mongodb_instance_backup" "instance_backup" { - instance_id = "cmgo-9d0p6umb" - backup_method = 0 - backup_remark = "my backup" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mongodb_sharding_instance.go b/tencentcloud/resource_tc_mongodb_sharding_instance.go index acf7d5ccb9..a87b4148b8 100644 --- a/tencentcloud/resource_tc_mongodb_sharding_instance.go +++ b/tencentcloud/resource_tc_mongodb_sharding_instance.go @@ -1,36 +1,3 @@ -/* -Provide a resource to create a Mongodb sharding instance. - -Example Usage - -```hcl -resource "tencentcloud_mongodb_sharding_instance" "mongodb" { - instance_name = "mongodb" - shard_quantity = 2 - nodes_per_shard = 3 - memory = 4 - volume = 100 - engine_version = "MONGO_36_WT" - machine_type = "HIO10G" - available_zone = "ap-guangzhou-3" - vpc_id = "vpc-mz3efvbw" - subnet_id = "subnet-lk0svi3p" - project_id = 0 - password = "password1234" - mongos_cpu = 1 - mongos_memory = 2 - mongos_node_num = 3 -} -``` - -Import - -Mongodb sharding instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_mongodb_sharding_instance.mongodb cmgo-41s6jwy4 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mongodb_standby_instance.go b/tencentcloud/resource_tc_mongodb_standby_instance.go index 494f005a31..34986e80fe 100644 --- a/tencentcloud/resource_tc_mongodb_standby_instance.go +++ b/tencentcloud/resource_tc_mongodb_standby_instance.go @@ -1,57 +1,3 @@ -/* -Provide a resource to create a Mongodb standby instance. - -Example Usage - -```hcl -provider "tencentcloud" { - region = "ap-guangzhou" -} - -provider "tencentcloud" { - alias = "shanghai" - region = "ap-shanghai" -} - -resource "tencentcloud_mongodb_instance" "mongodb" { - instance_name = "tf-mongodb-test" - memory = 4 - volume = 100 - engine_version = "MONGO_40_WT" - machine_type = "HIO10G" - available_zone = var.availability_zone - project_id = 0 - password = "test1234" - - tags = { - test = "test" - } -} - -resource "tencentcloud_mongodb_standby_instance" "mongodb" { - provider = tencentcloud.shanghai - instance_name = "tf-mongodb-standby-test" - memory = 4 - volume = 100 - available_zone = "ap-shanghai-2" - project_id = 0 - father_instance_id = tencentcloud_mongodb_instance.mongodb.id - father_instance_region = "ap-guangzhou" - - tags = { - test = "test" - } -} -``` - -Import - -Mongodb instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_mongodb_standby_instance.mongodb cmgo-41s6jwy4 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_alarm_notice.go b/tencentcloud/resource_tc_monitor_alarm_notice.go index be59beb7f9..ddb3b75fa2 100644 --- a/tencentcloud/resource_tc_monitor_alarm_notice.go +++ b/tencentcloud/resource_tc_monitor_alarm_notice.go @@ -1,71 +1,3 @@ -/* -Provides a alarm notice resource for monitor. - -Example Usage - -```hcl -resource "tencentcloud_monitor_alarm_notice" "example" { - name = "test_alarm_notice" - notice_language = "zh-CN" - notice_type = "ALL" - - url_notices { - end_time = 86399 - is_valid = 0 - start_time = 0 - url = "https://www.mytest.com/validate" - weekday = [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - ] - } - - user_notices { - end_time = 86399 - group_ids = [] - need_phone_arrive_notice = 1 - notice_way = [ - "EMAIL", - "SMS", - ] - phone_call_type = "CIRCLE" - phone_circle_interval = 180 - phone_circle_times = 2 - phone_inner_interval = 180 - phone_order = [] - receiver_type = "USER" - start_time = 0 - user_ids = [ - 11082189, - 11082190, - ] - weekday = [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - ] - } -} -``` - -Import - -Monitor Alarm Notice can be imported, e.g. - -``` -$ terraform import tencentcloud_monitor_alarm_notice.import-test noticeId -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_alarm_policy.go b/tencentcloud/resource_tc_monitor_alarm_policy.go index 676c5db3d0..f44003866f 100644 --- a/tencentcloud/resource_tc_monitor_alarm_policy.go +++ b/tencentcloud/resource_tc_monitor_alarm_policy.go @@ -1,256 +1,3 @@ -/* -Provides a alarm policy resource for monitor. - -Example Usage - -cvm_device alarm policy - -```hcl -resource "tencentcloud_monitor_alarm_notice" "foo" { - name = "tf-alarm_notice" - notice_type = "ALL" - notice_language = "zh-CN" - - user_notices { - receiver_type = "USER" - start_time = 0 - end_time = 1 - notice_way = ["SMS","EMAIL"] - user_ids = [10001] - group_ids = [] - phone_order = [10001] - phone_circle_times = 2 - phone_circle_interval = 50 - phone_inner_interval = 60 - need_phone_arrive_notice = 1 - phone_call_type = "CIRCLE" - weekday =[1,2,3,4,5,6,7] - } - - url_notices { - url = "https://www.mytest.com/validate" - end_time = 0 - start_time = 1 - weekday = [1,2,3,4,5,6,7] - } - -} - -resource "tencentcloud_monitor_alarm_policy" "foo" { - policy_name = "tf-policy" - monitor_type = "MT_QCE" - enable = 1 - project_id = 0 - namespace = "cvm_device" - conditions { - is_union_rule = 1 - rules { - metric_name = "CpuUsage" - period = 60 - operator = "ge" - value = "89.9" - continue_period = 1 - notice_frequency = 3600 - is_power_notice = 0 - } - } - event_conditions { - metric_name = "ping_unreachable" - } - event_conditions { - metric_name = "guest_reboot" - } - notice_ids = [tencentcloud_monitor_alarm_notice.foo.id] - - trigger_tasks { - type = "AS" - task_config = "{\"Region\":\"ap-guangzhou\",\"Group\":\"asg-0z312312x\",\"Policy\":\"asp-ganig28\"}" - } -} -``` - -k8s_cluster alarm policy - -```hcl -resource "tencentcloud_monitor_alarm_policy" "policy" { - enable = 1 - monitor_type = "MT_QCE" - namespace = "k8s_cluster" - notice_ids = [ - "notice-l9ziyxw6", - ] - policy_name = "TkeClusterNew" - project_id = 1244035 - - conditions { - is_union_rule = 0 - - rules { - continue_period = 3 - description = "Allocatable Pods" - is_power_notice = 0 - metric_name = "K8sClusterAllocatablePodsTotal" - notice_frequency = 3600 - operator = "gt" - period = 60 - rule_type = "STATIC" - unit = "Count" - value = "10" - - filter { - dimensions = jsonencode( - [ - [ - { - Key = "region" - Operator = "eq" - Value = [ - "ap-guangzhou", - ] - }, - { - Key = "tke_cluster_instance_id" - Operator = "in" - Value = [ - "cls-czhtobea", - ] - }, - ], - ] - ) - type = "DIMENSION" - } - } - rules { - continue_period = 3 - description = "Total CPU Cores" - is_power_notice = 0 - metric_name = "K8sClusterCpuCoreTotal" - notice_frequency = 3600 - operator = "gt" - period = 60 - rule_type = "STATIC" - unit = "Core" - value = "2" - - filter { - dimensions = jsonencode( - [ - [ - { - Key = "region" - Operator = "eq" - Value = [ - "ap-guangzhou", - ] - }, - { - Key = "tke_cluster_instance_id" - Operator = "in" - Value = [ - "cls-czhtobea", - ] - }, - ], - ] - ) - type = "DIMENSION" - } - } - } -} -``` - -cvm_device alarm policy binding cvm by tag -``` -resource "tencentcloud_monitor_alarm_policy" "policy" { - enable = 1 - monitor_type = "MT_QCE" - namespace = "cvm_device" - notice_ids = [ - "notice-l9ziyxw6", - ] - policy_name = "policy" - project_id = 0 - - conditions { - is_union_rule = 0 - - rules { - continue_period = 5 - description = "CPUUtilization" - is_power_notice = 0 - metric_name = "CpuUsage" - notice_frequency = 7200 - operator = "gt" - period = 60 - rule_type = "STATIC" - unit = "%" - value = "95" - } - rules { - continue_period = 5 - description = "PublicBandwidthUtilization" - is_power_notice = 0 - metric_name = "Outratio" - notice_frequency = 7200 - operator = "gt" - period = 60 - rule_type = "STATIC" - unit = "%" - value = "95" - } - rules { - continue_period = 5 - description = "MemoryUtilization" - is_power_notice = 0 - metric_name = "MemUsage" - notice_frequency = 7200 - operator = "gt" - period = 60 - rule_type = "STATIC" - unit = "%" - value = "95" - } - rules { - continue_period = 5 - description = "DiskUtilization" - is_power_notice = 0 - metric_name = "CvmDiskUsage" - notice_frequency = 7200 - operator = "gt" - period = 60 - rule_type = "STATIC" - unit = "%" - value = "95" - } - } - - event_conditions { - continue_period = 0 - description = "DiskReadonly" - is_power_notice = 0 - metric_name = "disk_readonly" - notice_frequency = 0 - period = 0 - } - - policy_tag { - key = "test-tag" - value = "unit-test" - } -} -``` - -Import - -Alarm policy instance can be imported, e.g. - -``` -$ terraform import tencentcloud_monitor_alarm_policy.policy policy-id -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_alarm_policy_set_default.go b/tencentcloud/resource_tc_monitor_alarm_policy_set_default.go index 85f72f3168..76ece17754 100644 --- a/tencentcloud/resource_tc_monitor_alarm_policy_set_default.go +++ b/tencentcloud/resource_tc_monitor_alarm_policy_set_default.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a monitor policy_set_default - -Example Usage - -```hcl -resource "tencentcloud_monitor_alarm_policy_set_default" "policy_set_default" { - module = "monitor" - policy_id = "policy-u4iykjkt" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_binding_object.go b/tencentcloud/resource_tc_monitor_binding_object.go index 8390942f1c..1d11751683 100644 --- a/tencentcloud/resource_tc_monitor_binding_object.go +++ b/tencentcloud/resource_tc_monitor_binding_object.go @@ -1,39 +1,3 @@ -/* -Provides a resource for bind objects to a policy group resource. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_monitor_policy_binding_object. - -Example Usage - -```hcl -data "tencentcloud_instances" "instances" { -} -resource "tencentcloud_monitor_policy_group" "group" { - group_name = "terraform_test" - policy_view_name = "cvm_device" - remark = "this is a test policy group" - is_union_rule = 1 - conditions { - metric_id = 33 - alarm_notify_type = 1 - alarm_notify_period = 600 - calc_type = 1 - calc_value = 3 - calc_period = 300 - continue_period = 2 - } -} - -#for cvm -resource "tencentcloud_monitor_binding_object" "binding" { - group_id = tencentcloud_monitor_policy_group.group.id - dimensions { - dimensions_json = "{\"unInstanceId\":\"${data.tencentcloud_instances.instances.instance_list[0].instance_id}\"}" - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_binding_receiver.go b/tencentcloud/resource_tc_monitor_binding_receiver.go index eb08473ac2..fb2c1d7149 100644 --- a/tencentcloud/resource_tc_monitor_binding_receiver.go +++ b/tencentcloud/resource_tc_monitor_binding_receiver.go @@ -1,41 +1,3 @@ -/* -Provides a resource for bind receivers to a policy group resource. - -Example Usage - -```hcl -data "tencentcloud_cam_groups" "groups" { - //You should first create a user group with CAM -} - -resource "tencentcloud_monitor_policy_group" "group" { - group_name = "nice_group" - policy_view_name = "cvm_device" - remark = "this is a test policy group" - conditions { - metric_id = 33 - alarm_notify_type = 1 - alarm_notify_period = 600 - calc_type = 1 - calc_value = 3 - calc_period = 300 - continue_period = 2 - } -} - -resource "tencentcloud_monitor_binding_receiver" "receiver" { - group_id = tencentcloud_monitor_policy_group.group.id - receivers { - start_time = 0 - end_time = 86399 - notify_way = ["SMS"] - receiver_type = "group" - receiver_group_list = [data.tencentcloud_cam_groups.groups.group_list[0].group_id] - receive_language = "en-US" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_dns_config.go b/tencentcloud/resource_tc_monitor_grafana_dns_config.go index 3f0b64f8aa..53d1ee6d39 100644 --- a/tencentcloud/resource_tc_monitor_grafana_dns_config.go +++ b/tencentcloud/resource_tc_monitor_grafana_dns_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a monitor grafana_dns_config - -Example Usage - -```hcl -resource "tencentcloud_monitor_grafana_dns_config" "grafana_dns_config" { - instance_id = "grafana-dp2hnnfa" - name_servers = ["10.1.2.1", "10.1.2.2", "10.1.2.3"] -} -``` - -Import - -monitor grafana_dns_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_grafana_dns_config.grafana_dns_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_env_config.go b/tencentcloud/resource_tc_monitor_grafana_env_config.go index c889884a8e..83d4f89a72 100644 --- a/tencentcloud/resource_tc_monitor_grafana_env_config.go +++ b/tencentcloud/resource_tc_monitor_grafana_env_config.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a monitor grafana_env_config - -Example Usage - -```hcl -resource "tencentcloud_monitor_grafana_env_config" "grafana_env_config" { - instance_id = "grafana-dp2hnnfa" - envs = { - "aaa" = "ccc" - "bbb" = "ccc" - } -} -``` - -Import - -monitor grafana_env_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_grafana_env_config.grafana_env_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_instance.go b/tencentcloud/resource_tc_monitor_grafana_instance.go index 374791289f..63ef249e1f 100644 --- a/tencentcloud/resource_tc_monitor_grafana_instance.go +++ b/tencentcloud/resource_tc_monitor_grafana_instance.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a monitor grafanaInstance - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-6" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "test-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - is_destroy = true - - tags = { - "createdBy" = "test" - } -} - -``` -Import - -monitor grafanaInstance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_monitor_grafana_instance.foo grafanaInstance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_integration.go b/tencentcloud/resource_tc_monitor_grafana_integration.go index 43e117467c..20b7a3bfc0 100644 --- a/tencentcloud/resource_tc_monitor_grafana_integration.go +++ b/tencentcloud/resource_tc_monitor_grafana_integration.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a monitor grafanaIntegration - -Example Usage - -Create a grafan instance and integrate the configuration - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-6" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "test-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - - tags = { - "createdBy" = "test" - } -} - -resource "tencentcloud_monitor_grafana_integration" "grafanaIntegration" { - instance_id = tencentcloud_monitor_grafana_instance.foo.id - kind = "tencentcloud-monitor-app" - content = "{\"kind\":\"tencentcloud-monitor-app\",\"spec\":{\"dataSourceSpec\":{\"authProvider\":{\"__anyOf\":\"使用密钥\",\"useRole\":true,\"secretId\":\"arunma@tencent.com\",\"secretKey\":\"12345678\"},\"name\":\"uint-test\"},\"grafanaSpec\":{\"organizationIds\":[]}}}" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_notification_channel.go b/tencentcloud/resource_tc_monitor_grafana_notification_channel.go index b3aa39679e..2f4283e980 100644 --- a/tencentcloud/resource_tc_monitor_grafana_notification_channel.go +++ b/tencentcloud/resource_tc_monitor_grafana_notification_channel.go @@ -1,76 +1,3 @@ -/* -Provides a resource to create a monitor grafanaNotificationChannel - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-6" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "test-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - - tags = { - "createdBy" = "test" - } -} - -resource "tencentcloud_monitor_alarm_notice" "foo" { - name = "tf_alarm_notice" - notice_type = "ALL" - notice_language = "zh-CN" - - user_notices { - receiver_type = "USER" - start_time = 0 - end_time = 1 - notice_way = ["SMS","EMAIL"] - user_ids = [10001] - group_ids = [] - phone_order = [10001] - phone_circle_times = 2 - phone_circle_interval = 50 - phone_inner_interval = 60 - need_phone_arrive_notice = 1 - phone_call_type = "CIRCLE" - weekday =[1,2,3,4,5,6,7] - } - - url_notices { - url = "https://www.mytest.com/validate" - end_time = 0 - start_time = 1 - weekday = [1,2,3,4,5,6,7] - } -} - -resource "tencentcloud_monitor_grafana_notification_channel" "grafanaNotificationChannel" { - instance_id = tencentcloud_monitor_grafana_instance.foo.id - channel_name = "tf-channel" - org_id = 1 - receivers = [tencentcloud_monitor_alarm_notice.foo.amp_consumer_id] - extra_org_ids = ["1"] -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_plugin.go b/tencentcloud/resource_tc_monitor_grafana_plugin.go index 5407b4b2c0..aabfecf3a5 100644 --- a/tencentcloud/resource_tc_monitor_grafana_plugin.go +++ b/tencentcloud/resource_tc_monitor_grafana_plugin.go @@ -1,51 +1,3 @@ -/* -Provides a resource to create a monitor grafanaPlugin - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-6" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "test-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - - tags = { - "createdBy" = "test" - } -} - -resource "tencentcloud_monitor_grafana_plugin" "grafanaPlugin" { - instance_id = tencentcloud_monitor_grafana_instance.foo.id - plugin_id = "grafana-piechart-panel" - version = "1.6.2" -} - -``` -Import - -monitor grafanaPlugin can be imported using the instance_id#plugin_id, e.g. -``` -$ terraform import tencentcloud_monitor_grafana_plugin.grafanaPlugin grafana-50nj6v00#grafana-piechart-panel -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_sso_account.go b/tencentcloud/resource_tc_monitor_grafana_sso_account.go index 868996acb8..60fe426057 100644 --- a/tencentcloud/resource_tc_monitor_grafana_sso_account.go +++ b/tencentcloud/resource_tc_monitor_grafana_sso_account.go @@ -1,55 +1,3 @@ -/* -Provides a resource to create a monitor grafana ssoAccount - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-6" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "test-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - - tags = { - "createdBy" = "test" - } -} - -resource "tencentcloud_monitor_grafana_sso_account" "ssoAccount" { - instance_id = tencentcloud_monitor_grafana_instance.foo.id - user_id = "111" - notes = "desc12222" - role { - organization = "Main Org." - role = "Admin" - } -} - -``` -Import - -monitor grafana ssoAccount can be imported using the instance_id#user_id, e.g. -``` -$ terraform import tencentcloud_monitor_grafana_sso_account.ssoAccount grafana-50nj6v00#111 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_sso_cam_config.go b/tencentcloud/resource_tc_monitor_grafana_sso_cam_config.go index bba58b63e3..c6942b877a 100644 --- a/tencentcloud/resource_tc_monitor_grafana_sso_cam_config.go +++ b/tencentcloud/resource_tc_monitor_grafana_sso_cam_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a monitor grafana_sso_cam_config - -Example Usage - -```hcl -resource "tencentcloud_monitor_grafana_sso_cam_config" "grafana_sso_cam_config" { - instance_id = "grafana-dp2hnnfa" - enable_sso_cam_check = false -} -``` - -Import - -monitor grafana_sso_cam_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_grafana_sso_cam_config.grafana_sso_cam_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_sso_config.go b/tencentcloud/resource_tc_monitor_grafana_sso_config.go index bada5f3ef1..d4f3171144 100644 --- a/tencentcloud/resource_tc_monitor_grafana_sso_config.go +++ b/tencentcloud/resource_tc_monitor_grafana_sso_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a monitor grafana_sso_config - -Example Usage - -```hcl -resource "tencentcloud_monitor_grafana_sso_config" "grafana_sso_config" { - instance_id = "grafana-dp2hnnfa" - enable_sso = false -} -``` - -Import - -monitor grafana_sso_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_grafana_sso_config.grafana_sso_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_version_upgrade.go b/tencentcloud/resource_tc_monitor_grafana_version_upgrade.go index b748715315..0ad8907625 100644 --- a/tencentcloud/resource_tc_monitor_grafana_version_upgrade.go +++ b/tencentcloud/resource_tc_monitor_grafana_version_upgrade.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a monitor grafana_version_upgrade - -Example Usage - -```hcl -resource "tencentcloud_monitor_grafana_version_upgrade" "grafana_version_upgrade" { - instance_id = "grafana-dp2hnnfa" - alias = "v8.2.7" -} -``` - -Import - -monitor grafana_version_upgrade can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_grafana_version_upgrade.grafana_version_upgrade instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_grafana_whitelist_config.go b/tencentcloud/resource_tc_monitor_grafana_whitelist_config.go index 51f0f83e3a..7308585422 100644 --- a/tencentcloud/resource_tc_monitor_grafana_whitelist_config.go +++ b/tencentcloud/resource_tc_monitor_grafana_whitelist_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a monitor grafana_whitelist_config - -Example Usage - -```hcl -resource "tencentcloud_monitor_grafana_whitelist_config" "grafana_whitelist_config" { - instance_id = "grafana-dp2hnnfa" - whitelist = ["10.1.1.1", "10.1.1.2", "10.1.1.3"] -} -``` - -Import - -monitor grafana_whitelist_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_grafana_whitelist_config.grafana_whitelist_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_policy_binding_object.go b/tencentcloud/resource_tc_monitor_policy_binding_object.go index cb9d87fd95..bb2576488d 100644 --- a/tencentcloud/resource_tc_monitor_policy_binding_object.go +++ b/tencentcloud/resource_tc_monitor_policy_binding_object.go @@ -1,67 +1,3 @@ -/* -Provides a resource for bind objects to a alarm policy resource. - -Example Usage - -```hcl -data "tencentcloud_instances" "instances" { -} -resource "tencentcloud_monitor_alarm_policy" "policy" { - policy_name = "hello" - monitor_type = "MT_QCE" - enable = 1 - project_id = 1244035 - namespace = "cvm_device" - - conditions { - is_union_rule = 1 - rules { - metric_name = "CpuUsage" - period = 60 - operator = "ge" - value = "89.9" - continue_period = 1 - notice_frequency = 3600 - is_power_notice = 0 - } - } - - event_conditions { - metric_name = "ping_unreachable" - } - - event_conditions { - metric_name = "guest_reboot" - } - - notice_ids = ["notice-l9ziyxw6"] - - trigger_tasks { - type = "AS" - task_config = "{\"Region\":\"ap-guangzhou\",\"Group\":\"asg-0z312312x\",\"Policy\":\"asp-ganig28\"}" - } - -} - -#for cvm -resource "tencentcloud_monitor_policy_binding_object" "binding" { - policy_id = tencentcloud_monitor_alarm_policy.policy.id - - dimensions { - dimensions_json = "{\"unInstanceId\":\"${data.tencentcloud_instances.instances.instance_list[0].instance_id}\"}" - } -} - -``` -Import - -Monitor Policy Binding Object can be imported, e.g. - -``` -$ terraform import tencentcloud_monitor_policy_binding_object.binding policyId -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_alert_rule.go b/tencentcloud/resource_tc_monitor_tmp_alert_rule.go index 24c6661867..5de2e46e43 100644 --- a/tencentcloud/resource_tc_monitor_tmp_alert_rule.go +++ b/tencentcloud/resource_tc_monitor_tmp_alert_rule.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a monitor tmpAlertRule - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - - -resource "tencentcloud_monitor_tmp_instance" "foo" { - instance_name = "tf-tmp-instance" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - data_retention_time = 30 - zone = var.availability_zone - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_monitor_tmp_cvm_agent" "foo" { - instance_id = tencentcloud_monitor_tmp_instance.foo.id - name = "tf-agent" -} - -resource "tencentcloud_monitor_tmp_alert_rule" "foo" { - duration = "2m" - expr = "avg by (instance) (mysql_global_status_threads_connected) / avg by (instance) (mysql_global_variables_max_connections) > 0.8" - instance_id = tencentcloud_monitor_tmp_instance.foo.id - receivers = ["notice-f2svbu3w"] - rule_name = "MySQL 连接数过多" - rule_state = 2 - type = "MySQL/MySQL 连接数过多" - - annotations { - key = "description" - value = "MySQL 连接数过多, 实例: {{$labels.instance}},当前值: {{ $value | humanizePercentage }}。" - } - annotations { - key = "summary" - value = "MySQL 连接数过多(>80%)" - } - - labels { - key = "severity" - value = "warning" - } -} - -``` -Import - -monitor tmpAlertRule can be imported using the id, e.g. -``` -$ terraform import tencentcloud_monitor_tmp_alert_rule.tmpAlertRule instanceId#Rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_cvm_agent.go b/tencentcloud/resource_tc_monitor_tmp_cvm_agent.go index 0a4d47c8b9..0798218ce1 100644 --- a/tencentcloud/resource_tc_monitor_tmp_cvm_agent.go +++ b/tencentcloud/resource_tc_monitor_tmp_cvm_agent.go @@ -1,50 +1,3 @@ -/* -Provides a resource to create a monitor tmpCvmAgent - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - - -resource "tencentcloud_monitor_tmp_instance" "foo" { - instance_name = "tf-tmp-instance" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - data_retention_time = 30 - zone = var.availability_zone - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_monitor_tmp_cvm_agent" "foo" { - instance_id = tencentcloud_monitor_tmp_instance.foo.id - name = "tf-agent" -} - -``` -Import - -monitor tmpCvmAgent can be imported using the id, e.g. -``` -$ terraform import tencentcloud_monitor_tmp_cvm_agent.tmpCvmAgent instance_id#agent_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_exporter_integration.go b/tencentcloud/resource_tc_monitor_tmp_exporter_integration.go index 83ebef88a4..eb3777c3f9 100644 --- a/tencentcloud/resource_tc_monitor_tmp_exporter_integration.go +++ b/tencentcloud/resource_tc_monitor_tmp_exporter_integration.go @@ -1,56 +1,3 @@ -/* -Provides a resource to create a monitor tmpExporterIntegration - -~> **NOTE:** If you only want to upgrade the exporter version with same config, you can set `version` under `instanceSpec` with any value to trigger the change. - - -Example Usage - -Use blackbox-exporter - -```hcl -resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration" { - instance_id = "prom-dko9d0nu" - kind = "blackbox-exporter" - content = "{\"name\":\"test\",\"kind\":\"blackbox-exporter\",\"spec\":{\"instanceSpec\":{\"module\":\"http_get\",\"urls\":[\"xx\"]}}}" - kube_type = 1 - cluster_id = "cls-bmuaukfu" -} -``` - -Use es-exporter - -``` -resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationEs" { - instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id - kind = "es-exporter" - content = jsonencode({ - "name": "ex-exporter-example", - "kind": "es-exporter", - "spec": { - "instanceSpec": { - "url": "http://127.0.0.1:9123", - "labels": { - "instance": "es-abcd" - }, - "version": "1.70.1", - "user": "fugiat Duis minim", - "password": "exercitation cillum velit" - }, - "exporterSpec": { - "all": true, - "indicesSettings": false, - "snapshots": false, - "indices": true, - "shards": false - } - } - }) - cluster_id = "" - kube_type = 3 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_grafana_config.go b/tencentcloud/resource_tc_monitor_tmp_grafana_config.go index b901057ed1..b5806c160b 100644 --- a/tencentcloud/resource_tc_monitor_tmp_grafana_config.go +++ b/tencentcloud/resource_tc_monitor_tmp_grafana_config.go @@ -1,60 +1,3 @@ -/* -Provides a resource to create a monitor tmp_grafana_config - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "tf-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - is_destroy = true - - tags = { - "createdBy" = "test" - } -} - -resource "tencentcloud_monitor_tmp_grafana_config" "foo" { - config = jsonencode( - { - server = { - http_port = 8080 - root_url = "https://cloud-grafana.woa.com/grafana-ffrdnrfa/" - serve_from_sub_path = true - } - } - ) - instance_id = tencentcloud_monitor_grafana_instance.foo.id -} -``` - -Import - -monitor tmp_grafana_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_tmp_grafana_config.tmp_grafana_config tmp_grafana_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_instance.go b/tencentcloud/resource_tc_monitor_tmp_instance.go index 037b3817c5..fb7f90ecb3 100644 --- a/tencentcloud/resource_tc_monitor_tmp_instance.go +++ b/tencentcloud/resource_tc_monitor_tmp_instance.go @@ -1,45 +1,3 @@ -/* -Provides a resource to create a monitor tmpInstance - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - - -resource "tencentcloud_monitor_tmp_instance" "foo" { - instance_name = "tf-tmp-instance" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - data_retention_time = 30 - zone = var.availability_zone - tags = { - "createdBy" = "terraform" - } -} - -``` -Import - -monitor tmpInstance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_monitor_tmp_instance.tmpInstance tmpInstance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_manage_grafana_attachment.go b/tencentcloud/resource_tc_monitor_tmp_manage_grafana_attachment.go index 73bf614599..17b362a563 100644 --- a/tencentcloud/resource_tc_monitor_tmp_manage_grafana_attachment.go +++ b/tencentcloud/resource_tc_monitor_tmp_manage_grafana_attachment.go @@ -1,64 +1,3 @@ -/* -Provides a resource to create a monitor tmp_manage_grafana_attachment - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - - -resource "tencentcloud_monitor_tmp_instance" "foo" { - instance_name = "tf-tmp-instance" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - data_retention_time = 30 - zone = var.availability_zone - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_monitor_grafana_instance" "foo" { - instance_name = "tf-grafana" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [tencentcloud_subnet.subnet.id] - grafana_init_password = "1234567890" - enable_internet = false - is_destroy = true - - tags = { - "createdBy" = "test" - } -} - -resource "tencentcloud_monitor_tmp_manage_grafana_attachment" "foo" { - grafana_id = tencentcloud_monitor_grafana_instance.foo.id - instance_id = tencentcloud_monitor_tmp_instance.foo.id -} -``` - -Import - -monitor tmp_manage_grafana_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_monitor_tmp_manage_grafana_attachment.manage_grafana_attachment prom-xxxxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_monitor_tmp_recording_rule.go b/tencentcloud/resource_tc_monitor_tmp_recording_rule.go index 7ae11fe334..a8d0283e0f 100644 --- a/tencentcloud/resource_tc_monitor_tmp_recording_rule.go +++ b/tencentcloud/resource_tc_monitor_tmp_recording_rule.go @@ -1,57 +1,3 @@ -/* -Provides a resource to create a monitor tmp recordingRule - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_monitor_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_monitor_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_monitor_tmp_instance" "foo" { - instance_name = "tf-tmp-instance" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - data_retention_time = 30 - zone = var.availability_zone - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_monitor_tmp_recording_rule" "recordingRule" { - instance_id = tencentcloud_monitor_tmp_instance.foo.id - rule_state = 2 - name = "tf-recording-rule" - group = < **NOTE:** It has been deprecated and replaced by tencentcloud_mysql_privilege. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_account" "example" { - mysql_id = tencentcloud_mysql_instance.example.id - name = "tf_example" - password = "Qwer@234" - description = "desc." - max_user_connections = 10 -} - -resource "tencentcloud_mysql_account_privilege" "default" { - mysql_id = tencentcloud_mysql_instance.example.id - account_name = tencentcloud_mysql_account.example.name - privileges = ["SELECT", "INSERT", "UPDATE", "DELETE"] - database_names = ["dbname1", "dbname2"] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_audit_log_file.go b/tencentcloud/resource_tc_mysql_audit_log_file.go index 9e10aacb2d..cd863cf11a 100644 --- a/tencentcloud/resource_tc_mysql_audit_log_file.go +++ b/tencentcloud/resource_tc_mysql_audit_log_file.go @@ -1,84 +1,3 @@ -/* -Provides a resource to create a mysql audit_log_file - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_audit_log_file" "example" { - instance_id = tencentcloud_mysql_instance.example.id - start_time = "2023-07-01 00:00:00" - end_time = "2023-10-01 00:00:00" - order = "ASC" - order_by = "timestamp" -} -``` - -Add filter - -```hcl -resource "tencentcloud_mysql_audit_log_file" "example" { - instance_id = tencentcloud_mysql_instance.example.id - start_time = "2023-07-01 00:00:00" - end_time = "2023-10-01 00:00:00" - order = "ASC" - order_by = "timestamp" - - filter { - host = ["30.50.207.46"] - user = ["keep_dbbrain"] - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_backup_download_restriction.go b/tencentcloud/resource_tc_mysql_backup_download_restriction.go index b87d1dfc68..46e503a92d 100644 --- a/tencentcloud/resource_tc_mysql_backup_download_restriction.go +++ b/tencentcloud/resource_tc_mysql_backup_download_restriction.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a mysql backup_download_restriction - -Example Usage - -```hcl -resource "tencentcloud_mysql_backup_download_restriction" "example" { - limit_type = "Customize" - vpc_comparison_symbol = "In" - ip_comparison_symbol = "In" - limit_vpc { - region = "ap-guangzhou" - vpc_list = ["vpc-4owdpnwr"] - } - limit_ip = ["127.0.0.1"] -} -``` - -Import - -mysql backup_download_restriction can be imported using the "BackupDownloadRestriction", as follows. - -``` -terraform import tencentcloud_mysql_backup_download_restriction.backup_download_restriction BackupDownloadRestriction -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_backup_encryption_status.go b/tencentcloud/resource_tc_mysql_backup_encryption_status.go index 6397fc7163..9bad425f83 100644 --- a/tencentcloud/resource_tc_mysql_backup_encryption_status.go +++ b/tencentcloud/resource_tc_mysql_backup_encryption_status.go @@ -1,82 +1,3 @@ -/* -Provides a resource to create a mysql backup_encryption_status - -Example Usage - -Enable encryption - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_backup_encryption_status" "example" { - instance_id = tencentcloud_mysql_instance.example.id - encryption_status = "on" -} -``` - -Disable encryption - -```hcl -resource "tencentcloud_mysql_backup_encryption_status" "example" { - instance_id = tencentcloud_mysql_instance.example.id - encryption_status = "off" -} -``` - -Import - -mysql backup_encryption_status can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_backup_encryption_status.backup_encryption_status backup_encryption_status_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_backup_policy.go b/tencentcloud/resource_tc_mysql_backup_policy.go index b14cff9c9e..c4037f001f 100644 --- a/tencentcloud/resource_tc_mysql_backup_policy.go +++ b/tencentcloud/resource_tc_mysql_backup_policy.go @@ -1,70 +1,3 @@ -/* -Provides a mysql policy resource to create a backup policy. - -~> **NOTE:** This attribute `backup_model` only support 'physical' in Terraform TencentCloud provider version 1.16.2 - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_backup_policy" "example" { - mysql_id = tencentcloud_mysql_instance.example.id - retention_period = 7 - backup_model = "physical" - backup_time = "22:00-02:00" - binlog_period = 32 - enable_binlog_standby = "off" - binlog_standby_days = 31 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_database.go b/tencentcloud/resource_tc_mysql_database.go index e9bf3810ff..883f4eb521 100644 --- a/tencentcloud/resource_tc_mysql_database.go +++ b/tencentcloud/resource_tc_mysql_database.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a mysql database - -Example Usage - -```hcl -resource "tencentcloud_mysql_database" "database" { - instance_id = "cdb-i9xfdf7z" - db_name = "for_tf_test" - character_set_name = "utf8" -} -``` - -Import - -mysql database can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_database.database instanceId#dbName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_deploy_group.go b/tencentcloud/resource_tc_mysql_deploy_group.go index 12d1fc07b3..d2560f02d2 100644 --- a/tencentcloud/resource_tc_mysql_deploy_group.go +++ b/tencentcloud/resource_tc_mysql_deploy_group.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a mysql deploy_group - -Example Usage - -```hcl -resource "tencentcloud_mysql_deploy_group" "example" { - deploy_group_name = "tf-example" - description = "desc." - limit_num = 1 - dev_class = ["TS85"] -} -``` - -Import - -mysql deploy_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_deploy_group.deploy_group deploy_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_dr_instance_to_mater.go b/tencentcloud/resource_tc_mysql_dr_instance_to_mater.go index 25d292456e..6a434fcb11 100644 --- a/tencentcloud/resource_tc_mysql_dr_instance_to_mater.go +++ b/tencentcloud/resource_tc_mysql_dr_instance_to_mater.go @@ -1,70 +1,3 @@ -/* -Provides a resource to create a mysql dr_instance_to_mater - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_dr_instance_to_mater" "example" { - instance_id = tencentcloud_mysql_instance.example.id -} -``` - -Import - -mysql dr_instance_to_mater can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_dr_instance_to_mater.dr_instance_to_mater dr_instance_to_mater_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_instance.go b/tencentcloud/resource_tc_mysql_instance.go index 75b88430b2..a493273500 100644 --- a/tencentcloud/resource_tc_mysql_instance.go +++ b/tencentcloud/resource_tc_mysql_instance.go @@ -1,136 +1,3 @@ -/* -Provides a mysql instance resource to create master database instances. - -~> **NOTE:** If this mysql has readonly instance, the terminate operation of the mysql does NOT take effect immediately, maybe takes for several hours. so during that time, VPCs associated with that mysql instance can't be terminated also. - -~> **NOTE:** The value of parameter `parameters` can be used with tencentcloud_mysql_parameter_list to obtain. - -Example Usage - -Create a single node instance - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} -``` - -Create a double node instance - -```hcl -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} -``` - -Create a three node instance - -```hcl -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} -``` - -Import - -MySQL instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_mysql_instance.foo cdb-12345678 -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_instance_encryption_operation.go b/tencentcloud/resource_tc_mysql_instance_encryption_operation.go index 694c8a623c..8fc81c860d 100644 --- a/tencentcloud/resource_tc_mysql_instance_encryption_operation.go +++ b/tencentcloud/resource_tc_mysql_instance_encryption_operation.go @@ -1,65 +1,3 @@ -/* -Provides a resource to create a mysql instance_encryption_operation - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_instance_encryption_operation" "example" { - instance_id = tencentcloud_mysql_instance.example.id - key_id = "KMS-CDB" - key_region = "ap-guangzhou" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_isolate_instance.go b/tencentcloud/resource_tc_mysql_isolate_instance.go index 4a5b360782..c4385354e7 100644 --- a/tencentcloud/resource_tc_mysql_isolate_instance.go +++ b/tencentcloud/resource_tc_mysql_isolate_instance.go @@ -1,63 +1,3 @@ -/* -Provides a resource to create a mysql isolate_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_isolate_instance" "example" { - instance_id = tencentcloud_mysql_instance.example.id - operate = "recover" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_local_binlog_config.go b/tencentcloud/resource_tc_mysql_local_binlog_config.go index f9c4918701..3eb6f44da1 100644 --- a/tencentcloud/resource_tc_mysql_local_binlog_config.go +++ b/tencentcloud/resource_tc_mysql_local_binlog_config.go @@ -1,72 +1,3 @@ -/* -Provides a resource to create a mysql local_binlog_config - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_local_binlog_config" "example" { - instance_id = tencentcloud_mysql_instance.example.id - save_hours = 140 - max_usage = 50 -} -``` - -Import - -mysql local_binlog_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_local_binlog_config.local_binlog_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_param_template.go b/tencentcloud/resource_tc_mysql_param_template.go index bdbbc6ca42..e3a396fe65 100644 --- a/tencentcloud/resource_tc_mysql_param_template.go +++ b/tencentcloud/resource_tc_mysql_param_template.go @@ -1,86 +1,3 @@ -/* -Provides a resource to create a mysql param template - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_param_template" "example" { - name = "tf-example" - description = "desc." - engine_version = "8.0" - param_list { - current_value = "1" - name = "auto_increment_increment" - } - param_list { - current_value = "1" - name = "auto_increment_offset" - } - param_list { - current_value = "ON" - name = "automatic_sp_privileges" - } - template_type = "HIGH_STABILITY" - engine_type = "InnoDB" -} -``` - -Import - -mysql param template can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_param_template.param_template template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_password_complexity.go b/tencentcloud/resource_tc_mysql_password_complexity.go index d79e5dc40a..86aa728d4b 100644 --- a/tencentcloud/resource_tc_mysql_password_complexity.go +++ b/tencentcloud/resource_tc_mysql_password_complexity.go @@ -1,79 +1,3 @@ -/* -Provides a resource to create a mysql password_complexity - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_password_complexity" "example" { - instance_id = tencentcloud_mysql_instance.example.id - param_list { - name = "validate_password_length" - current_value = "8" - } - param_list { - name = "validate_password_mixed_case_count" - current_value = "2" - } - param_list { - name = "validate_password_number_count" - current_value = "2" - } - param_list { - name = "validate_password_special_char_count" - current_value = "2" - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_privilege.go b/tencentcloud/resource_tc_mysql_privilege.go index 6d4f74ab74..74af2091fd 100644 --- a/tencentcloud/resource_tc_mysql_privilege.go +++ b/tencentcloud/resource_tc_mysql_privilege.go @@ -1,99 +1,3 @@ -/* -Provides a mysql account privilege resource to grant different access privilege to different database. A database can be granted by multiple account. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_account" "example" { - mysql_id = tencentcloud_mysql_instance.example.id - name = "tf_example" - password = "Qwer@234" - description = "desc." - max_user_connections = 10 -} - -resource "tencentcloud_mysql_privilege" "example" { - mysql_id = tencentcloud_mysql_instance.example.id - account_name = tencentcloud_mysql_account.example.name - global = ["TRIGGER"] - database { - privileges = ["SELECT", "INSERT", "UPDATE", "DELETE", "CREATE"] - database_name = "sys" - } - database { - privileges = ["SELECT"] - database_name = "performance_schema" - } - - table { - privileges = ["SELECT", "INSERT", "UPDATE", "DELETE", "CREATE"] - database_name = "mysql" - table_name = "slow_log" - } - - table { - privileges = ["SELECT", "INSERT", "UPDATE"] - database_name = "mysql" - table_name = "user" - } - - column { - privileges = ["SELECT", "INSERT", "UPDATE", "REFERENCES"] - database_name = "mysql" - table_name = "user" - column_name = "host" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_proxy.go b/tencentcloud/resource_tc_mysql_proxy.go index 5e9cef7d23..873b564cef 100644 --- a/tencentcloud/resource_tc_mysql_proxy.go +++ b/tencentcloud/resource_tc_mysql_proxy.go @@ -1,77 +1,3 @@ -/* -Provides a resource to create a mysql proxy - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_proxy" "example" { - instance_id = tencentcloud_mysql_instance.example.id - uniq_vpc_id = tencentcloud_vpc.vpc.id - uniq_subnet_id = tencentcloud_subnet.subnet.id - proxy_node_custom { - node_count = 1 - cpu = 2 - mem = 4000 - region = "ap-guangzhou" - zone = "ap-guangzhou-3" - } - security_group = [tencentcloud_security_group.security_group.id] - desc = "desc." - connection_pool_limit = 2 - vip = "10.0.0.120" - vport = 3306 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_readonly_instance.go b/tencentcloud/resource_tc_mysql_readonly_instance.go index a1b847e028..02d50791bd 100644 --- a/tencentcloud/resource_tc_mysql_readonly_instance.go +++ b/tencentcloud/resource_tc_mysql_readonly_instance.go @@ -1,82 +1,3 @@ -/* -Provides a mysql instance resource to create read-only database instances. - -~> **NOTE:** Read-only instances can be purchased only for two-node or three-node source instances on MySQL 5.6 or above with the InnoDB engine at a specification of 1 GB memory and 50 GB disk capacity or above. -~> **NOTE:** The terminate operation of read only mysql does NOT take effect immediately, maybe takes for several hours. so during that time, VPCs associated with that mysql instance can't be terminated also. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "UTF8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_readonly_instance" "example" { - master_instance_id = tencentcloud_mysql_instance.example.id - instance_name = "tf-example" - mem_size = 128000 - volume_size = 255 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - createBy = "terraform" - } -} -``` -Import - -mysql read-only database instances can be imported using the id, e.g. -``` -terraform import tencentcloud_mysql_readonly_instance.default cdb-dnqksd9f -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_reload_balance_proxy_node.go b/tencentcloud/resource_tc_mysql_reload_balance_proxy_node.go index c257a1fe85..3e5b5d7ba7 100644 --- a/tencentcloud/resource_tc_mysql_reload_balance_proxy_node.go +++ b/tencentcloud/resource_tc_mysql_reload_balance_proxy_node.go @@ -1,82 +1,3 @@ -/* -Provides a resource to create a mysql reload_balance_proxy_node - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_proxy" "example" { - instance_id = tencentcloud_mysql_instance.example.id - uniq_vpc_id = tencentcloud_vpc.vpc.id - uniq_subnet_id = tencentcloud_subnet.subnet.id - proxy_node_custom { - node_count = 1 - cpu = 2 - mem = 4000 - region = "ap-guangzhou" - zone = "ap-guangzhou-3" - } - security_group = [tencentcloud_security_group.security_group.id] - desc = "desc." - connection_pool_limit = 2 - vip = "10.0.0.120" - vport = 3306 -} - -resource "tencentcloud_mysql_reload_balance_proxy_node" "example" { - proxy_group_id = tencentcloud_mysql_proxy.example.proxy_group_id - proxy_address_id = tencentcloud_mysql_proxy.example.proxy_address_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_remote_backup_config.go b/tencentcloud/resource_tc_mysql_remote_backup_config.go index 9fd58da759..62ca510608 100644 --- a/tencentcloud/resource_tc_mysql_remote_backup_config.go +++ b/tencentcloud/resource_tc_mysql_remote_backup_config.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a mysql remote_backup_config - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_remote_backup_config" "example" { - instance_id = tencentcloud_mysql_instance.example.id - remote_backup_save = "on" - remote_binlog_save = "on" - remote_region = ["ap-shanghai"] - expire_days = 7 -} -``` - -Import - -mysql remote_backup_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_remote_backup_config.remote_backup_config remote_backup_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_renew_db_instance_operation.go b/tencentcloud/resource_tc_mysql_renew_db_instance_operation.go index d95ce5a1d9..fffa63fd34 100644 --- a/tencentcloud/resource_tc_mysql_renew_db_instance_operation.go +++ b/tencentcloud/resource_tc_mysql_renew_db_instance_operation.go @@ -1,70 +1,3 @@ -/* -Provides a resource to create a mysql renew_db_instance_operation - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -data "tencentcloud_mysql_rollback_range_time" "example" { - instance_ids = [tencentcloud_mysql_instance.example.id] -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "PREPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_renew_db_instance_operation" "example" { - instance_id = tencentcloud_mysql_instance.example.id - time_span = 1 - modify_pay_type = "PREPAID" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_reset_root_account.go b/tencentcloud/resource_tc_mysql_reset_root_account.go index 8a2a7fa840..5def4deb30 100644 --- a/tencentcloud/resource_tc_mysql_reset_root_account.go +++ b/tencentcloud/resource_tc_mysql_reset_root_account.go @@ -1,63 +1,3 @@ -/* -Provides a resource to create a mysql reset_root_account - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_reset_root_account" "example" { - instance_id = tencentcloud_mysql_instance.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_restart_db_instances_operation.go b/tencentcloud/resource_tc_mysql_restart_db_instances_operation.go index c102f1560f..a79caf34af 100644 --- a/tencentcloud/resource_tc_mysql_restart_db_instances_operation.go +++ b/tencentcloud/resource_tc_mysql_restart_db_instances_operation.go @@ -1,70 +1,3 @@ -/* -Provides a resource to create a mysql restart_db_instances_operation - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_restart_db_instances_operation" "example" { - instance_id = tencentcloud_mysql_instance.example.id -} -``` - -Import - -mysql restart_db_instances_operation can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_restart_db_instances_operation.restart_db_instances_operation restart_db_instances_operation_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_ro_group.go b/tencentcloud/resource_tc_mysql_ro_group.go index 659d60a73a..c1c45669ba 100644 --- a/tencentcloud/resource_tc_mysql_ro_group.go +++ b/tencentcloud/resource_tc_mysql_ro_group.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a mysql ro_group - -Example Usage - -```hcl -resource "tencentcloud_mysql_ro_group" "example" { - instance_id = "cdb-e8i766hx" - ro_group_id = "cdbrg-f49t0gnj" - ro_group_info { - ro_group_name = "keep-ro" - ro_max_delay_time = 1 - ro_offline_delay = 1 - min_ro_in_group = 1 - weight_mode = "custom" - replication_delay_time = 1 - } - ro_weight_values { - instance_id = "cdbro-f49t0gnj" - weight = 10 - } - is_balance_ro_load = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_ro_group_load_operation.go b/tencentcloud/resource_tc_mysql_ro_group_load_operation.go index a07266e6e5..440150d005 100644 --- a/tencentcloud/resource_tc_mysql_ro_group_load_operation.go +++ b/tencentcloud/resource_tc_mysql_ro_group_load_operation.go @@ -1,84 +1,3 @@ -/* -Provides a resource to create a mysql ro_group_load_operation - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -data "tencentcloud_mysql_instance" "example" { - mysql_id = tencentcloud_mysql_instance.example.id - - depends_on = [tencentcloud_mysql_readonly_instance.example] -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_readonly_instance" "example" { - master_instance_id = tencentcloud_mysql_instance.example.id - instance_name = "tf-mysql" - mem_size = 2000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - createBy = "terraform" - } -} - -resource "tencentcloud_mysql_ro_group_load_operation" "ro_group_load_operation" { - ro_group_id = data.tencentcloud_mysql_instance.example.instance_list.0.ro_groups.0.group_id -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_ro_instance_ip.go b/tencentcloud/resource_tc_mysql_ro_instance_ip.go index 90d2ff0e98..88ead3b298 100644 --- a/tencentcloud/resource_tc_mysql_ro_instance_ip.go +++ b/tencentcloud/resource_tc_mysql_ro_instance_ip.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a mysql ro_instance_ip - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_mysql_ro_instance_ip" "example" { - instance_id = "cdbro-bdlvcfpj" - uniq_subnet_id = tencentcloud_subnet.subnet.id - uniq_vpc_id = tencentcloud_vpc.vpc.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_ro_start_replication.go b/tencentcloud/resource_tc_mysql_ro_start_replication.go index c028f44369..40c5e937da 100644 --- a/tencentcloud/resource_tc_mysql_ro_start_replication.go +++ b/tencentcloud/resource_tc_mysql_ro_start_replication.go @@ -1,81 +1,3 @@ -/* -Provides a resource to create a mysql ro_start_replication - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_proxy" "example" { - instance_id = tencentcloud_mysql_instance.example.id - uniq_vpc_id = tencentcloud_vpc.vpc.id - uniq_subnet_id = tencentcloud_subnet.subnet.id - proxy_node_custom { - node_count = 1 - cpu = 2 - mem = 4000 - region = "ap-guangzhou" - zone = "ap-guangzhou-3" - } - security_group = [tencentcloud_security_group.security_group.id] - desc = "desc." - connection_pool_limit = 2 - vip = "10.0.0.120" - vport = 3306 -} - -resource "tencentcloud_mysql_ro_start_replication" "example" { - instance_id = tencentcloud_mysql_proxy.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_ro_stop_replication.go b/tencentcloud/resource_tc_mysql_ro_stop_replication.go index 00cd49d5ae..364c862c8e 100644 --- a/tencentcloud/resource_tc_mysql_ro_stop_replication.go +++ b/tencentcloud/resource_tc_mysql_ro_stop_replication.go @@ -1,81 +1,3 @@ -/* -Provides a resource to create a mysql ro_stop_replication - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_proxy" "example" { - instance_id = tencentcloud_mysql_instance.example.id - uniq_vpc_id = tencentcloud_vpc.vpc.id - uniq_subnet_id = tencentcloud_subnet.subnet.id - proxy_node_custom { - node_count = 1 - cpu = 2 - mem = 4000 - region = "ap-guangzhou" - zone = "ap-guangzhou-3" - } - security_group = [tencentcloud_security_group.security_group.id] - desc = "desc." - connection_pool_limit = 2 - vip = "10.0.0.120" - vport = 3306 -} - -resource "tencentcloud_mysql_ro_stop_replication" "example" { - instance_id = tencentcloud_mysql_proxy.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_rollback.go b/tencentcloud/resource_tc_mysql_rollback.go index 5471ec569b..89c2af8a3e 100644 --- a/tencentcloud/resource_tc_mysql_rollback.go +++ b/tencentcloud/resource_tc_mysql_rollback.go @@ -1,80 +1,3 @@ -/* -Provides a resource to create a mysql rollback - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -data "tencentcloud_mysql_rollback_range_time" "example" { - instance_ids = [tencentcloud_mysql_instance.example.id] -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_rollback" "example" { - instance_id = tencentcloud_mysql_instance.example.id - strategy = "full" - rollback_time = data.tencentcloud_mysql_rollback_range_time.example.item.0.times.0.start - databases { - database_name = "tf_db_bak" - new_database_name = "tf_db_bak_new" - } - tables { - database = "tf_db_bak1" - table { - table_name = "tf_table" - new_table_name = "tf_table_new" - } - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_rollback_stop.go b/tencentcloud/resource_tc_mysql_rollback_stop.go index a6c018500d..9c612cbd8a 100644 --- a/tencentcloud/resource_tc_mysql_rollback_stop.go +++ b/tencentcloud/resource_tc_mysql_rollback_stop.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a mysql rollback_stop - -Example Usage - -Revoke the ongoing rollback task of the instance - -```hcl -resource "tencentcloud_mysql_rollback_stop" "example" { - instance_id = "cdb-fitq5t9h" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_security_groups_attachment.go b/tencentcloud/resource_tc_mysql_security_groups_attachment.go index e8c9773e09..42d98258a1 100644 --- a/tencentcloud/resource_tc_mysql_security_groups_attachment.go +++ b/tencentcloud/resource_tc_mysql_security_groups_attachment.go @@ -1,71 +1,3 @@ -/* -Provides a resource to create a mysql security_groups_attachment - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_security_groups_attachment" "example" { - security_group_id = tencentcloud_security_group.security_group.id - instance_id = tencentcloud_mysql_instance.example.id -} -``` - -Import - -mysql security_groups_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_security_groups_attachment.security_groups_attachment securityGroupId#instanceId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_switch_for_upgrade.go b/tencentcloud/resource_tc_mysql_switch_for_upgrade.go index 54a0d65822..8d1a3b2ee5 100644 --- a/tencentcloud/resource_tc_mysql_switch_for_upgrade.go +++ b/tencentcloud/resource_tc_mysql_switch_for_upgrade.go @@ -1,62 +1,3 @@ -/* -Provides a resource to create a mysql switch_for_upgrade - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_switch_for_upgrade" "example" { - instance_id = tencentcloud_mysql_instance.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_switch_master_slave_operation.go b/tencentcloud/resource_tc_mysql_switch_master_slave_operation.go index be8bf6b69e..7258be5e8d 100644 --- a/tencentcloud/resource_tc_mysql_switch_master_slave_operation.go +++ b/tencentcloud/resource_tc_mysql_switch_master_slave_operation.go @@ -1,66 +1,3 @@ -/* -Provides a resource to create a mysql switch_master_slave_operation - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_switch_master_slave_operation" "example" { - instance_id = tencentcloud_mysql_instance.example.id - dst_slave = "second" - force_switch = true - wait_switch = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_time_window.go b/tencentcloud/resource_tc_mysql_time_window.go index 1927a478a1..f6f341a4e8 100644 --- a/tencentcloud/resource_tc_mysql_time_window.go +++ b/tencentcloud/resource_tc_mysql_time_window.go @@ -1,82 +1,3 @@ -/* -Provides a resource to create a mysql time_window - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_time_window" "example" { - instance_id = tencentcloud_mysql_instance.example.id - max_delay_time = 10 - time_ranges = [ - "01:00-02:01" - ] - weekdays = [ - "friday", - "monday", - "saturday", - "thursday", - "tuesday", - "wednesday", - ] -} -``` - -Import - -mysql time_window can be imported using the id, e.g. - -``` -terraform import tencentcloud_mysql_time_window.time_window instanceId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_mysql_verify_root_account.go b/tencentcloud/resource_tc_mysql_verify_root_account.go index 7a62d3039a..10c25bb5de 100644 --- a/tencentcloud/resource_tc_mysql_verify_root_account.go +++ b/tencentcloud/resource_tc_mysql_verify_root_account.go @@ -1,64 +1,3 @@ -/* -Provides a resource to create a mysql verify_root_account - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-mysql" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-mysql" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-mysql" - description = "mysql test" -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 1 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - first_slave_zone = data.tencentcloud_availability_zones_by_product.zones.zones.1.name - slave_sync_mode = 1 - instance_name = "tf-example-mysql" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - name = "test" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_mysql_verify_root_account" "example" { - instance_id = tencentcloud_mysql_instance.example.id - password = "Qwer@234" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_nat_gateway.go b/tencentcloud/resource_tc_nat_gateway.go index 13270eb6b3..14a6de15f3 100644 --- a/tencentcloud/resource_tc_nat_gateway.go +++ b/tencentcloud/resource_tc_nat_gateway.go @@ -1,84 +1,3 @@ -/* -Provides a resource to create a NAT gateway. - -Example Usage - -Create a traditional NAT gateway. - -```hcl -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_nat_gateway_vpc" -} - -resource "tencentcloud_eip" "eip_example1" { - name = "tf_nat_gateway_eip1" -} - -resource "tencentcloud_eip" "eip_example2" { - name = "tf_nat_gateway_eip2" -} - -resource "tencentcloud_nat_gateway" "example" { - name = "tf_example_nat_gateway" - vpc_id = tencentcloud_vpc.vpc.id - bandwidth = 100 - max_concurrent = 1000000 - assigned_eip_set = [ - tencentcloud_eip.eip_example1.public_ip, - tencentcloud_eip.eip_example2.public_ip, - ] - tags = { - tf_tag_key = "tf_tag_value" - } -} -``` - -Create a standard NAT gateway. - -```hcl -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_nat_gateway_vpc" -} - -resource "tencentcloud_eip" "eip_example1" { - name = "tf_nat_gateway_eip1" -} - -resource "tencentcloud_eip" "eip_example2" { - name = "tf_nat_gateway_eip2" -} - -resource "tencentcloud_nat_gateway" "example" { - name = "tf_example_nat_gateway" - vpc_id = tencentcloud_vpc.vpc.id - assigned_eip_set = [ - tencentcloud_eip.eip_example1.public_ip, - tencentcloud_eip.eip_example2.public_ip, - ] - nat_product_version = 2 - tags = { - tf_tag_key = "tf_tag_value" - } - lifecycle { - ignore_changes = [ - // standard nat will set default values for bandwidth and max_concurrent - bandwidth, - max_concurrent, - ] - } -} -``` - -Import - -NAT gateway can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_nat_gateway.foo nat-1asg3t63 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_nat_gateway_snat.go b/tencentcloud/resource_tc_nat_gateway_snat.go index c58d4ef969..0bbe04875a 100644 --- a/tencentcloud/resource_tc_nat_gateway_snat.go +++ b/tencentcloud/resource_tc_nat_gateway_snat.go @@ -1,133 +1,3 @@ -/* -Provides a resource to create a NAT Gateway SNat rule. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "nat" -} - -data "tencentcloud_images" "image" { - os_name = "centos" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - route_table_id = tencentcloud_route_table.route_table.id -} - -resource "tencentcloud_eip" "eip_example1" { - name = "eip_example1" -} - -resource "tencentcloud_eip" "eip_example2" { - name = "eip_example2" -} - -# Create NAT Gateway -resource "tencentcloud_nat_gateway" "my_nat" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf_example_nat_gateway" - max_concurrent = 3000000 - bandwidth = 500 - - assigned_eip_set = [ - tencentcloud_eip.eip_example1.public_ip, - tencentcloud_eip.eip_example2.public_ip, - ] -} - -# Create route_table and entry -resource "tencentcloud_route_table" "route_table" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf_example" -} - -resource "tencentcloud_route_table_entry" "route_entry" { - route_table_id = tencentcloud_route_table.route_table.id - destination_cidr_block = "10.0.0.0/8" - next_type = "NAT" - next_hub = tencentcloud_nat_gateway.my_nat.id -} - -# Subnet Nat gateway snat -resource "tencentcloud_nat_gateway_snat" "subnet_snat" { - nat_gateway_id = tencentcloud_nat_gateway.my_nat.id - resource_type = "SUBNET" - subnet_id = tencentcloud_subnet.subnet.id - subnet_cidr_block = tencentcloud_subnet.subnet.cidr_block - description = "terraform test" - public_ip_addr = [ - tencentcloud_eip.eip_example1.public_ip, - tencentcloud_eip.eip_example2.public_ip, - ] -} - -# Create instance -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -# NetWorkInterface Nat gateway snat -resource "tencentcloud_nat_gateway_snat" "my_instance_snat" { - nat_gateway_id = tencentcloud_nat_gateway.my_nat.id - resource_type = "NETWORKINTERFACE" - instance_id = tencentcloud_instance.example.id - instance_private_ip_addr = tencentcloud_instance.example.private_ip - description = "terraform test" - public_ip_addr = [ - tencentcloud_eip.eip_example1.public_ip, - ] -} -``` - -Import - -VPN gateway route can be imported using the id, the id format must be '{nat_gateway_id}#{resource_id}', resource_id range `subnet_id`, `instance_id`, e.g. - -SUBNET SNat -``` -$ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#subnet-2ap74y35 -``` - -NETWORKINTERFACT SNat -``` -$ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#ins-da412f5a -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_nat_refresh_nat_dc_route.go b/tencentcloud/resource_tc_nat_refresh_nat_dc_route.go index 1311303cc6..e4a6e3ef07 100644 --- a/tencentcloud/resource_tc_nat_refresh_nat_dc_route.go +++ b/tencentcloud/resource_tc_nat_refresh_nat_dc_route.go @@ -1,56 +1,3 @@ -/* -Provides a resource to create a vpc refresh_nat_dc_route - -Example Usage - -If `dry_run` is True - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_eip" "eip_example" { - name = "eip_example" -} - -resource "tencentcloud_nat_gateway" "nat" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf_example_nat_gateway" - max_concurrent = 3000000 - bandwidth = 500 - - assigned_eip_set = [ - tencentcloud_eip.eip_example.public_ip, - ] -} - -resource "tencentcloud_nat_refresh_nat_dc_route" "refresh_nat_dc_route" { - nat_gateway_id = tencentcloud_nat_gateway.nat.id - vpc_id = tencentcloud_vpc.vpc.id - dry_run = true -} -``` - -Or `dry_run` is False - -```hcl -resource "tencentcloud_nat_refresh_nat_dc_route" "refresh_nat_dc_route" { - nat_gateway_id = tencentcloud_nat_gateway.nat.id - vpc_id = tencentcloud_vpc.vpc.id - dry_run = false -} -``` - -Import - -vpc refresh_nat_dc_route can be imported using the id, e.g. - -``` -terraform import tencentcloud_nat_refresh_nat_dc_route.refresh_nat_dc_route vpc_id#nat_gateway_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_folder.go b/tencentcloud/resource_tc_oceanus_folder.go index 9db542d556..3ae9d8ef12 100644 --- a/tencentcloud/resource_tc_oceanus_folder.go +++ b/tencentcloud/resource_tc_oceanus_folder.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a oceanus folder - -Example Usage - -```hcl -resource "tencentcloud_oceanus_folder" "example" { - folder_name = "tf_example" - parent_id = "folder-lfqkt11s" - folder_type = 0 - work_space_id = "space-125703345ap-shenzhen-fsi" -} -``` - -Import - -oceanus folder can be imported using the id, e.g. - -``` -terraform import tencentcloud_oceanus_folder.example space-125703345ap-shenzhen-fsi#folder-f40fq79g#0 -``` -*/ package tencentcloud import ( @@ -32,6 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" oceanus "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/oceanus/v20190422" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" ) diff --git a/tencentcloud/resource_tc_oceanus_job.go b/tencentcloud/resource_tc_oceanus_job.go index ed436fea1c..cce423edbc 100644 --- a/tencentcloud/resource_tc_oceanus_job.go +++ b/tencentcloud/resource_tc_oceanus_job.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a oceanus job - -Example Usage - -```hcl -resource "tencentcloud_oceanus_job" "example" { - name = "tf_example_job" - job_type = 1 - cluster_type = 2 - cluster_id = "cluster-1kcd524h" - cu_mem = 4 - remark = "remark." - folder_id = "folder-7ctl246z" - flink_version = "Flink-1.16" - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_job_config.go b/tencentcloud/resource_tc_oceanus_job_config.go index 28604d1ce1..663993363e 100644 --- a/tencentcloud/resource_tc_oceanus_job_config.go +++ b/tencentcloud/resource_tc_oceanus_job_config.go @@ -1,71 +1,3 @@ -/* -Provides a resource to create a oceanus job_config - -Example Usage - -If `log_collect_type` is 2 - -```hcl -resource "tencentcloud_oceanus_job_config" "example" { - job_id = "cql-4xwincyn" - entrypoint_class = "tf_example" - program_args = "--conf Key=Value" - remark = "remark." - resource_refs { - resource_id = "resource-q22ntswy" - version = 1 - type = 1 - } - default_parallelism = 1 - properties { - key = "pipeline.max-parallelism" - value = "2048" - } - log_collect = true - job_manager_spec = "1" - task_manager_spec = "1" - cls_logset_id = "cd9adbb5-6b7d-48d2-9870-77658959c7a4" - cls_topic_id = "cec4c2f1-0bf3-470e-b1a5-b1c451e88838" - log_collect_type = 2 - work_space_id = "space-2idq8wbr" - log_level = "INFO" - auto_recover = 1 - expert_mode_on = false -} -``` - -If `log_collect_type` is 3 - -```hcl -resource "tencentcloud_oceanus_job_config" "example" { - job_id = "cql-4xwincyn" - entrypoint_class = "tf_example" - program_args = "--conf Key=Value" - remark = "remark." - resource_refs { - resource_id = "resource-q22ntswy" - version = 1 - type = 1 - } - default_parallelism = 1 - properties { - key = "pipeline.max-parallelism" - value = "2048" - } - log_collect = true - job_manager_spec = "1" - task_manager_spec = "1" - cls_logset_id = "cd9adbb5-6b7d-48d2-9870-77658959c7a4" - cls_topic_id = "cec4c2f1-0bf3-470e-b1a5-b1c451e88838" - log_collect_type = 3 - work_space_id = "space-2idq8wbr" - log_level = "INFO" - auto_recover = 1 - expert_mode_on = false - cos_bucket = "autotest-gz-bucket-1257058945" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_job_copy.go b/tencentcloud/resource_tc_oceanus_job_copy.go index a897ea8627..d28d1a5f2f 100644 --- a/tencentcloud/resource_tc_oceanus_job_copy.go +++ b/tencentcloud/resource_tc_oceanus_job_copy.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a oceanus job_copy - -Example Usage - -```hcl -resource "tencentcloud_oceanus_job_copy" "example" { - source_id = "cql-0nob2hx8" - target_cluster_id = "cluster-1kcd524h" - source_name = "keep_jar" - target_name = "tf_copy_example" - target_folder_id = "folder-7ctl246z" - job_type = 2 - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_resource.go b/tencentcloud/resource_tc_oceanus_resource.go index 58f9e846f3..2891ce82f0 100644 --- a/tencentcloud/resource_tc_oceanus_resource.go +++ b/tencentcloud/resource_tc_oceanus_resource.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a oceanus resource - -Example Usage - -```hcl -resource "tencentcloud_oceanus_resource" "example" { - resource_loc { - storage_type = 1 - param { - bucket = "keep-terraform-1257058945" - path = "OceanusResource/junit-4.13.2.jar" - region = "ap-guangzhou" - } - } - - resource_type = 1 - remark = "remark." - name = "tf_example" - resource_config_remark = "config remark." - folder_id = "folder-7ctl246z" - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_resource_config.go b/tencentcloud/resource_tc_oceanus_resource_config.go index 6c579cf232..ef84a13c93 100644 --- a/tencentcloud/resource_tc_oceanus_resource_config.go +++ b/tencentcloud/resource_tc_oceanus_resource_config.go @@ -1,43 +1,3 @@ -/* -Provides a resource to create a oceanus resource_config - -Example Usage - -```hcl -resource "tencentcloud_oceanus_resource" "example" { - resource_loc { - storage_type = 1 - param { - bucket = "keep-terraform-1257058945" - path = "OceanusResource/junit-4.13.1.jar" - region = "ap-guangzhou" - } - } - - resource_type = 1 - remark = "remark." - name = "tf_example" - resource_config_remark = "config remark." - folder_id = "folder-7ctl246z" - work_space_id = "space-2idq8wbr" -} - -resource "tencentcloud_oceanus_resource_config" "example" { - resource_id = tencentcloud_oceanus_resource.example.resource_id - resource_loc { - storage_type = 1 - param { - bucket = "keep-terraform-1257058945" - path = "OceanusResource/junit-4.13.2.jar" - region = "ap-guangzhou" - } - } - - remark = "config remark." - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_run_job.go b/tencentcloud/resource_tc_oceanus_run_job.go index cbd6fc39e7..13ca197e0c 100644 --- a/tencentcloud/resource_tc_oceanus_run_job.go +++ b/tencentcloud/resource_tc_oceanus_run_job.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a oceanus run_job - -Example Usage - -```hcl -resource "tencentcloud_oceanus_run_job" "example" { - run_job_descriptions { - job_id = "cql-4xwincyn" - run_type = 1 - start_mode = "LATEST" - job_config_version = 10 - use_old_system_connector = false - } - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_stop_job.go b/tencentcloud/resource_tc_oceanus_stop_job.go index 362340a3da..362f024dba 100644 --- a/tencentcloud/resource_tc_oceanus_stop_job.go +++ b/tencentcloud/resource_tc_oceanus_stop_job.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a oceanus stop_job - -Example Usage - -```hcl -resource "tencentcloud_oceanus_stop_job" "example" { - stop_job_descriptions { - job_id = "cql-4xwincyn" - stop_type = 1 - } - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_trigger_job_savepoint.go b/tencentcloud/resource_tc_oceanus_trigger_job_savepoint.go index 5568c62dfc..a3c0d49d2a 100644 --- a/tencentcloud/resource_tc_oceanus_trigger_job_savepoint.go +++ b/tencentcloud/resource_tc_oceanus_trigger_job_savepoint.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a oceanus trigger_job_savepoint - -Example Usage - -```hcl -resource "tencentcloud_oceanus_trigger_job_savepoint" "example" { - job_id = "cql-4xwincyn" - description = "description." - work_space_id = "space-2idq8wbr" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_oceanus_work_space.go b/tencentcloud/resource_tc_oceanus_work_space.go index 419cda693e..1a45ce6563 100644 --- a/tencentcloud/resource_tc_oceanus_work_space.go +++ b/tencentcloud/resource_tc_oceanus_work_space.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a oceanus work_space - -Example Usage - -```hcl -resource "tencentcloud_oceanus_work_space" "example" { - work_space_name = "tf_example" - description = "example description." -} -``` - -Import - -oceanus work_space can be imported using the id, e.g. - -``` -terraform import tencentcloud_oceanus_work_space.example space-0dan3yux#tf_example -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_instance.go b/tencentcloud/resource_tc_organization_instance.go index 88f1d88d27..09a20e2c0f 100644 --- a/tencentcloud/resource_tc_organization_instance.go +++ b/tencentcloud/resource_tc_organization_instance.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a organization organization - -Example Usage - -```hcl -resource "tencentcloud_organization_instance" "organization" { - } -``` - -Import - -organization organization can be imported using the id, e.g. - -``` -terraform import tencentcloud_organization_instance.organization organization_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_org_identity.go b/tencentcloud/resource_tc_organization_org_identity.go index cca3163ba3..bebd679134 100644 --- a/tencentcloud/resource_tc_organization_org_identity.go +++ b/tencentcloud/resource_tc_organization_org_identity.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a organization org_identity - -Example Usage - -```hcl -resource "tencentcloud_organization_org_identity" "org_identity" { - identity_alias_name = "example-iac-test" - identity_policy { - policy_id = 1 - policy_name = "AdministratorAccess" - policy_type = 2 - } - description = "iac-test" -} -``` - -Import - -organization org_identity can be imported using the id, e.g. - -``` -terraform import tencentcloud_organization_org_identity.org_identity org_identity_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_org_member.go b/tencentcloud/resource_tc_organization_org_member.go index fc493b2ca9..f0247efada 100644 --- a/tencentcloud/resource_tc_organization_org_member.go +++ b/tencentcloud/resource_tc_organization_org_member.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a organization org_member - -Example Usage - -```hcl -resource "tencentcloud_organization_org_member" "org_member" { - name = "terraform_test" - node_id = 2003721 - permission_ids = [ - 1, - 2, - 3, - 4, - ] - policy_type = "Financial" - remark = "for terraform test" -} - -``` -Import - -organization org_member can be imported using the id, e.g. -``` -$ terraform import tencentcloud_organization_org_member.org_member orgMember_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_org_member_auth_identity_attachment.go b/tencentcloud/resource_tc_organization_org_member_auth_identity_attachment.go index 91ce86eabe..fe5c8a3e02 100644 --- a/tencentcloud/resource_tc_organization_org_member_auth_identity_attachment.go +++ b/tencentcloud/resource_tc_organization_org_member_auth_identity_attachment.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a organization org_member_auth_identity - -Example Usage - -```hcl -resource "tencentcloud_organization_org_member_auth_identity_attachment" "org_member_auth_identity" { - member_uin = 100033704327 - identity_ids = [1657] -} -``` - -Import - -organization org_member_auth_identity can be imported using the id, e.g. - -``` -terraform import tencentcloud_organization_org_member_auth_identity.org_member_auth_identity org_member_auth_identity_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_org_member_email.go b/tencentcloud/resource_tc_organization_org_member_email.go index ce596c2e0b..13b4786b78 100644 --- a/tencentcloud/resource_tc_organization_org_member_email.go +++ b/tencentcloud/resource_tc_organization_org_member_email.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a organization org_member_email - -Example Usage - -```hcl -resource "tencentcloud_organization_org_member_email" "org_member_email" { - member_uin = 100033704327 - email = "iac-example@qq.com" - country_code = "86" - phone = "12345678901" - } -``` - -Import - -organization org_member_email can be imported using the id, e.g. - -``` -terraform import tencentcloud_organization_org_member_email.org_member_email org_member_email_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_org_member_policy_attachment.go b/tencentcloud/resource_tc_organization_org_member_policy_attachment.go index 034865a0f2..ef0801bb6d 100644 --- a/tencentcloud/resource_tc_organization_org_member_policy_attachment.go +++ b/tencentcloud/resource_tc_organization_org_member_policy_attachment.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a organization org_member_policy_attachment - -Example Usage - -```hcl -resource "tencentcloud_organization_org_member_policy_attachment" "org_member_policy_attachment" { - member_uins = [100033905366,100033905356] - policy_name = "example-iac" - identity_id = 1 -} -``` - -Import - -organization org_member_policy_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_organization_org_member_policy_attachment.org_member_policy_attachment org_member_policy_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_org_node.go b/tencentcloud/resource_tc_organization_org_node.go index f597676a94..707174e872 100644 --- a/tencentcloud/resource_tc_organization_org_node.go +++ b/tencentcloud/resource_tc_organization_org_node.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a organization org_node - -Example Usage - -```hcl -resource "tencentcloud_organization_org_node" "org_node" { - name = "terraform_test" - parent_node_id = 2003721 - remark = "for terraform test" -} - - -``` -Import - -organization org_node can be imported using the id, e.g. -``` -$ terraform import tencentcloud_organization_org_node.org_node orgNode_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_policy_sub_account_attachment.go b/tencentcloud/resource_tc_organization_policy_sub_account_attachment.go index 6a20537f6d..7b0d9fbe67 100644 --- a/tencentcloud/resource_tc_organization_policy_sub_account_attachment.go +++ b/tencentcloud/resource_tc_organization_policy_sub_account_attachment.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a organization policy_sub_account_attachment - -Example Usage - -```hcl -resource "tencentcloud_organization_policy_sub_account_attachment" "policy_sub_account_attachment" { - member_uin = 100028582828 - org_sub_account_uin = 100028223737 - policy_id = 144256499 -} -``` -Import - -organization policy_sub_account_attachment can be imported using the id, e.g. -``` -$ terraform import tencentcloud_organization_policy_sub_account_attachment.policy_sub_account_attachment policyId#memberUin#orgSubAccountUin -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_organization_quit_organization_operation.go b/tencentcloud/resource_tc_organization_quit_organization_operation.go index f495d910f3..b84ec8cc12 100644 --- a/tencentcloud/resource_tc_organization_quit_organization_operation.go +++ b/tencentcloud/resource_tc_organization_quit_organization_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a organization quit_organization_operation - -Example Usage - -```hcl -resource "tencentcloud_organization_quit_organization_operation" "quit_organization_operation" { - org_id = 45155 -} -``` - -Import - -organization quit_organization_operation can be imported using the id, e.g. - -``` -terraform import tencentcloud_organization_quit_organization_operation.quit_organization_operation quit_organization_operation_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_placement_group.go b/tencentcloud/resource_tc_placement_group.go index de667ba34a..5e39bf2c76 100644 --- a/tencentcloud/resource_tc_placement_group.go +++ b/tencentcloud/resource_tc_placement_group.go @@ -1,23 +1,3 @@ -/* -Provide a resource to create a placement group. - -Example Usage - -```hcl -resource "tencentcloud_placement_group" "foo" { - name = "test" - type = "HOST" -} -``` - -Import - -Placement group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_placement_group.foo ps-ilan8vjf -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_backup_download_restriction_config.go b/tencentcloud/resource_tc_postgresql_backup_download_restriction_config.go index ffb747ad40..5342d90690 100644 --- a/tencentcloud/resource_tc_postgresql_backup_download_restriction_config.go +++ b/tencentcloud/resource_tc_postgresql_backup_download_restriction_config.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a postgresql backup_download_restriction_config - -Example Usage - -Unlimit the restriction of the backup file download. -```hcl -resource "tencentcloud_postgresql_backup_download_restriction_config" "backup_download_restriction_config" { - restriction_type = "NONE" -} -``` - -Set the download only to allow the intranet downloads. -```hcl -resource "tencentcloud_postgresql_backup_download_restriction_config" "backup_download_restriction_config" { - restriction_type = "INTRANET" -} -``` - -Restrict the backup file download by customizing. -```hcl -resource "tencentcloud_vpc" "pg_vpc" { - name = var.instance_name - cidr_block = var.vpc_cidr -} - -resource "tencentcloud_postgresql_backup_download_restriction_config" "backup_download_restriction_config" { - restriction_type = "CUSTOMIZE" - vpc_restriction_effect = "DENY" - vpc_id_set = [tencentcloud_vpc.pg_vpc2.id] - ip_restriction_effect = "DENY" - ip_set = ["192.168.0.0"] -} -``` - -Import - -postgresql backup_download_restriction_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_postgresql_backup_download_restriction_config.backup_download_restriction_config backup_download_restriction_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_backup_plan_config.go b/tencentcloud/resource_tc_postgresql_backup_plan_config.go index 419312d32c..eedb3180be 100644 --- a/tencentcloud/resource_tc_postgresql_backup_plan_config.go +++ b/tencentcloud/resource_tc_postgresql_backup_plan_config.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a postgres backup_plan_config - -Example Usage - -```hcl -resource "tencentcloud_postgresql_backup_plan_config" "backup_plan_config" { - db_instance_id = local.pgsql_id - min_backup_start_time = "01:00:00" - max_backup_start_time = "02:00:00" - base_backup_retention_period = 7 - backup_period = ["monday","wednesday","friday"] -} -``` - -Import - -postgres backup_plan_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_postgresql_backup_plan_config.backup_plan_config backup_plan_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_base_backup.go b/tencentcloud/resource_tc_postgresql_base_backup.go index ee6bed3b8f..f0a46f6fff 100644 --- a/tencentcloud/resource_tc_postgresql_base_backup.go +++ b/tencentcloud/resource_tc_postgresql_base_backup.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a postgresql base_backup - -Example Usage - -```hcl -resource "tencentcloud_postgresql_base_backup" "base_backup" { - db_instance_id = local.pgsql_id - tags = { - "createdBy" = "terraform" - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_delete_log_backup_operation.go b/tencentcloud/resource_tc_postgresql_delete_log_backup_operation.go index 55a0f19657..fe41343755 100644 --- a/tencentcloud/resource_tc_postgresql_delete_log_backup_operation.go +++ b/tencentcloud/resource_tc_postgresql_delete_log_backup_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a postgresql delete_log_backup_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_delete_log_backup_operation" "delete_log_backup_operation" { - db_instance_id = "local.pg_id" - log_backup_id = "local.pg_log_backup_id" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_disisolate_db_instance_operation.go b/tencentcloud/resource_tc_postgresql_disisolate_db_instance_operation.go index 4c738fc57c..e5c03a276d 100644 --- a/tencentcloud/resource_tc_postgresql_disisolate_db_instance_operation.go +++ b/tencentcloud/resource_tc_postgresql_disisolate_db_instance_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a postgresql disisolate_db_instance_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_disisolate_db_instance_operation" "disisolate_db_instance_operation" { - db_instance_id_set = [local.pgsql_id] - period = 1 - auto_voucher = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_instance.go b/tencentcloud/resource_tc_postgresql_instance.go index 867a94df52..fa634225b9 100644 --- a/tencentcloud/resource_tc_postgresql_instance.go +++ b/tencentcloud/resource_tc_postgresql_instance.go @@ -1,178 +1,3 @@ -/* -Use this resource to create postgresql instance. - --> **Note:** To update the charge type, please update the `charge_type` and specify the `period` for the charging period. It only supports updating from `POSTPAID_BY_HOUR` to `PREPAID`, and the `period` field only valid in that upgrading case. - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-1" -} - -# create vpc -resource "tencentcloud_vpc" "vpc" { - name = "guagua_vpc_instance_test" - cidr_block = "10.0.0.0/16" -} - -# create vpc subnet -resource "tencentcloud_subnet" "subnet" { - availability_zone = var.availability_zone - name = "guagua_vpc_subnet_test" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.20.0/28" - is_multicast = false -} - -# create postgresql -resource "tencentcloud_postgresql_instance" "foo" { - name = "example" - availability_zone = var.availability_zone - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - engine_version = "10.4" - root_user = "root123" - root_password = "Root123$" - charset = "UTF8" - project_id = 0 - memory = 2 - storage = 10 - - tags = { - test = "tf" - } -} -``` - -Create a multi available zone bucket - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-6" -} - -variable "standby_availability_zone" { - default = "ap-guangzhou-7" -} - -# create vpc -resource "tencentcloud_vpc" "vpc" { - name = "guagua_vpc_instance_test" - cidr_block = "10.0.0.0/16" -} - -# create vpc subnet -resource "tencentcloud_subnet" "subnet" { - availability_zone = var.availability_zone - name = "guagua_vpc_subnet_test" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.20.0/28" - is_multicast = false -} - -# create postgresql -resource "tencentcloud_postgresql_instance" "foo" { - name = "example" - availability_zone = var.availability_zone - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - engine_version = "10.4" - root_user = "root123" - root_password = "Root123$" - charset = "UTF8" - project_id = 0 - memory = 2 - storage = 10 - - db_node_set { - role = "Primary" - zone = var.availability_zone - } - db_node_set { - zone = var.standby_availability_zone - } - - tags = { - test = "tf" - } -} -``` - -create pgsql with kms key -``` -resource "tencentcloud_postgresql_instance" "pg" { - name = "tf_postsql_instance" - availability_zone = "ap-guangzhou-6" - charge_type = "POSTPAID_BY_HOUR" - vpc_id = "vpc-86v957zb" - subnet_id = "subnet-enm92y0m" - engine_version = "11.12" - # db_major_vesion = "11" - db_kernel_version = "v11.12_r1.3" - need_support_tde = 1 - kms_key_id = "788c606a-c7b7-11ec-82d1-5254001e5c4e" - kms_region = "ap-guangzhou" - root_password = "xxxxxxxxxx" - charset = "LATIN1" - project_id = 0 - memory = 4 - storage = 100 - - backup_plan { - min_backup_start_time = "00:10:11" - max_backup_start_time = "01:10:11" - base_backup_retention_period = 7 - backup_period = ["tuesday", "wednesday"] - } - - tags = { - tf = "test" - } -} -``` - -upgrade kernel version -``` -resource "tencentcloud_postgresql_instance" "test" { - name = "tf_postsql_instance_update" - availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[5].name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - engine_version = "13.3" - root_password = "*" - charset = "LATIN1" - project_id = 0 - public_access_switch = false - security_groups = [local.sg_id] - memory = 4 - storage = 250 - backup_plan { - min_backup_start_time = "01:10:11" - max_backup_start_time = "02:10:11" - base_backup_retention_period = 5 - backup_period = ["monday", "thursday", "sunday"] - } - - db_kernel_version = "v13.3_r1.4" # eg:from v13.3_r1.1 to v13.3_r1.4 - - tags = { - tf = "teest" - } -} -``` - -Import - -postgresql instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_postgresql_instance.foo postgres-cda1iex1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_isolate_db_instance_operation.go b/tencentcloud/resource_tc_postgresql_isolate_db_instance_operation.go index 111122a3d8..c9283c96a1 100644 --- a/tencentcloud/resource_tc_postgresql_isolate_db_instance_operation.go +++ b/tencentcloud/resource_tc_postgresql_isolate_db_instance_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a postgresql isolate_db_instance_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_isolate_db_instance_operation" "isolate_db_instance_operation" { - db_instance_id_set = [local.pgsql_id] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_modify_account_remark_operation.go b/tencentcloud/resource_tc_postgresql_modify_account_remark_operation.go index 4c5b2d627f..384efd39de 100644 --- a/tencentcloud/resource_tc_postgresql_modify_account_remark_operation.go +++ b/tencentcloud/resource_tc_postgresql_modify_account_remark_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a postgresql modify_account_remark_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_modify_account_remark_operation" "modify_account_remark_operation" { - db_instance_id = local.pgsql_id - user_name = "root" - remark = "hello_world" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_modify_switch_time_period_operation.go b/tencentcloud/resource_tc_postgresql_modify_switch_time_period_operation.go index f8b5be319c..45d6d3cef0 100644 --- a/tencentcloud/resource_tc_postgresql_modify_switch_time_period_operation.go +++ b/tencentcloud/resource_tc_postgresql_modify_switch_time_period_operation.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a postgresql modify_switch_time_period_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_modify_switch_time_period_operation" "modify_switch_time_period_operation" { - db_instance_id = local.pgsql_id - switch_tag = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_parameter_template.go b/tencentcloud/resource_tc_postgresql_parameter_template.go index c888b2f7db..0b2d5847fc 100644 --- a/tencentcloud/resource_tc_postgresql_parameter_template.go +++ b/tencentcloud/resource_tc_postgresql_parameter_template.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a postgresql parameter_template - -Example Usage - -```hcl -resource "tencentcloud_postgresql_parameter_template" "parameter_template" { - template_name = "your_temp_name" - db_major_version = "13" - db_engine = "postgresql" - template_description = "For_tf_test" - - modify_param_entry_set { - name = "timezone" - expected_value = "UTC" - } - modify_param_entry_set { - name = "lock_timeout" - expected_value = "123" - } - - delete_param_set = ["lc_time"] -} -``` - -Import - -postgresql parameter_template can be imported using the id, e.g. - -Notice: `modify_param_entry_set` and `delete_param_set` do not support import. - -``` -terraform import tencentcloud_postgresql_parameter_template.parameter_template parameter_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_readonly_attachment.go b/tencentcloud/resource_tc_postgresql_readonly_attachment.go index 0f85fee8ea..524344022a 100644 --- a/tencentcloud/resource_tc_postgresql_readonly_attachment.go +++ b/tencentcloud/resource_tc_postgresql_readonly_attachment.go @@ -1,15 +1,3 @@ -/* -Use this resource to create postgresql readonly attachment. - -Example Usage - -```hcl -resource "tencentcloud_postgresql_readonly_attachment" "attach" { - db_instance_id = tencentcloud_postgresql_readonly_instance.foo.id - read_only_group_id = tencentcloud_postgresql_readonly_group.group.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_readonly_group.go b/tencentcloud/resource_tc_postgresql_readonly_group.go index e7cd699352..9d79fbc409 100644 --- a/tencentcloud/resource_tc_postgresql_readonly_group.go +++ b/tencentcloud/resource_tc_postgresql_readonly_group.go @@ -1,24 +1,3 @@ -/* -Use this resource to create postgresql readonly group. - -Example Usage - -```hcl -resource "tencentcloud_postgresql_readonly_group" "group" { - master_db_instance_id = "postgres-gzg9jb2n" - name = "world" - project_id = 0 - vpc_id = "vpc-86v957zb" - subnet_id = "subnet-enm92y0m" - replay_lag_eliminate = 1 - replay_latency_eliminate = 1 - max_replay_lag = 100 - max_replay_latency = 512 - min_delay_eliminate_reserve = 1 -# security_groups_ids = [] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_readonly_instance.go b/tencentcloud/resource_tc_postgresql_readonly_instance.go index 0fa78c96ad..2980d7c303 100644 --- a/tencentcloud/resource_tc_postgresql_readonly_instance.go +++ b/tencentcloud/resource_tc_postgresql_readonly_instance.go @@ -1,49 +1,3 @@ -/* -Use this resource to create postgresql readonly instance. - -Example Usage - -```hcl -resource "tencentcloud_postgresql_readonly_instance" "foo" { - auto_renew_flag = 0 - db_version = "10.4" - instance_charge_type = "POSTPAID_BY_HOUR" - master_db_instance_id = "postgres-j4pm65id" - memory = 4 - name = "hello" - need_support_ipv6 = 0 - project_id = 0 - security_groups_ids = [ - "sg-fefj5n6r", - ] - storage = 250 - subnet_id = "subnet-enm92y0m" - vpc_id = "vpc-86v957zb" - read_only_group_id = tencentcloud_postgresql_readonly_group.new_ro_group.id -} - - resource "tencentcloud_postgresql_readonly_group" "new_ro_group" { - master_db_instance_id = local.pgsql_id - name = "tf_ro_group_test_new" - project_id = 0 - vpc_id = local.vpc_id - subnet_id = local.subnet_id - replay_lag_eliminate = 1 - replay_latency_eliminate = 1 - max_replay_lag = 100 - max_replay_latency = 512 - min_delay_eliminate_reserve = 1 - } -``` - -Import - -postgresql readonly instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_postgresql_readonly_instance.foo instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_rebalance_readonly_group_operation.go b/tencentcloud/resource_tc_postgresql_rebalance_readonly_group_operation.go index a8cf6a2703..892551e21a 100644 --- a/tencentcloud/resource_tc_postgresql_rebalance_readonly_group_operation.go +++ b/tencentcloud/resource_tc_postgresql_rebalance_readonly_group_operation.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a postgresql rebalance_readonly_group_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_readonly_group" "group_rebalance" { - master_db_instance_id = local.pgsql_id - name = "test-pg-readonly-group-rebalance" - project_id = 0 - vpc_id = "vpc-86v957zb" - subnet_id = "subnet-enm92y0m" - replay_lag_eliminate = 1 - replay_latency_eliminate = 1 - max_replay_lag = 100 - max_replay_latency = 512 - min_delay_eliminate_reserve = 1 -} - -resource "tencentcloud_postgresql_rebalance_readonly_group_operation" "rebalance_readonly_group_operation" { - read_only_group_id = tencentcloud_postgresql_readonly_group.group_rebalance.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_renew_db_instance_operation.go b/tencentcloud/resource_tc_postgresql_renew_db_instance_operation.go index e75785d1ec..5460995669 100644 --- a/tencentcloud/resource_tc_postgresql_renew_db_instance_operation.go +++ b/tencentcloud/resource_tc_postgresql_renew_db_instance_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a postgresql renew_db_instance_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_renew_db_instance_operation" "renew_db_instance_operation" { - db_instance_id = tencentcloud_postgresql_instance.oper_test_PREPAID.id - period = 1 - auto_voucher = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_restart_db_instance_operation.go b/tencentcloud/resource_tc_postgresql_restart_db_instance_operation.go index 7758f62077..20d7f36084 100644 --- a/tencentcloud/resource_tc_postgresql_restart_db_instance_operation.go +++ b/tencentcloud/resource_tc_postgresql_restart_db_instance_operation.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a postgresql restart_db_instance_operation - -Example Usage - -```hcl -resource "tencentcloud_postgresql_restart_db_instance_operation" "restart_db_instance_operation" { - db_instance_id = local.pgsql_id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_postgresql_security_group_config.go b/tencentcloud/resource_tc_postgresql_security_group_config.go index a637fd4982..a7acf67b1a 100644 --- a/tencentcloud/resource_tc_postgresql_security_group_config.go +++ b/tencentcloud/resource_tc_postgresql_security_group_config.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a postgresql security_group_config - -Example Usage - -Set security group for the sepcified postgres instance -```hcl -resource "tencentcloud_postgresql_security_group_config" "security_group_config" { - security_group_id_set = [local.sg_id, local.sg_id2] - db_instance_id = local.pgsql_id -} -``` - -Set security group for the specified readonly group -```hcl -resource "tencentcloud_postgresql_readonly_group" "group" { - master_db_instance_id = local.pgsql_id - name = "tf_test_ro_sg" - project_id = 0 - subnet_id = local.subnet_id - vpc_id = local.vpc_id - replay_lag_eliminate = 1 - replay_latency_eliminate = 1 - max_replay_lag = 100 - max_replay_latency = 512 - min_delay_eliminate_reserve = 1 - } - -resource "tencentcloud_postgresql_security_group_config" "security_group_config" { - security_group_id_set = [local.sg_id, local.sg_id2] - read_only_group_id = tencentcloud_postgresql_readonly_group.group.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_private_dns_record.go b/tencentcloud/resource_tc_private_dns_record.go index 43a6699ca0..8f2a63b719 100644 --- a/tencentcloud/resource_tc_private_dns_record.go +++ b/tencentcloud/resource_tc_private_dns_record.go @@ -1,28 +1,3 @@ -/* -Provide a resource to create a Private Dns Record. - -Example Usage - -```hcl -resource "tencentcloud_private_dns_record" "foo" { - zone_id = "zone-rqndjnki" - record_type = "A" - record_value = "192.168.1.2" - sub_domain = "www" - ttl = 300 - weight = 1 - mx = 0 -} -``` - -Import - -Private Dns Record can be imported, e.g. - -``` -$ terraform import tencentcloud_private_dns_zone.foo zone_id#record_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_private_dns_zone.go b/tencentcloud/resource_tc_private_dns_zone.go index 2f9c2dbbf9..1535cdb20c 100644 --- a/tencentcloud/resource_tc_private_dns_zone.go +++ b/tencentcloud/resource_tc_private_dns_zone.go @@ -1,70 +1,3 @@ -/* -Provide a resource to create a Private Dns Zone. - -Example Usage - -Create a basic Private Dns Zone - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_private_dns_zone" "example" { - domain = "domain.com" - remark = "remark." - - vpc_set { - region = "ap-guangzhou" - uniq_vpc_id = tencentcloud_vpc.vpc.id - } - - dns_forward_status = "DISABLED" - cname_speedup_status = "ENABLED" - - tags = { - createdBy : "terraform" - } -} -``` - -Create a Private Dns Zone domain and bind associated accounts'VPC - -```hcl -resource "tencentcloud_private_dns_zone" "example" { - domain = "domain.com" - remark = "remark." - - vpc_set { - region = "ap-guangzhou" - uniq_vpc_id = tencentcloud_vpc.vpc.id - } - - account_vpc_set { - uin = "123456789" - uniq_vpc_id = "vpc-adsebmya" - region = "ap-guangzhou" - vpc_name = "vpc-name" - } - - dns_forward_status = "DISABLED" - cname_speedup_status = "ENABLED" - - tags = { - createdBy : "terraform" - } -} -``` - -Import - -Private Dns Zone can be imported, e.g. - -``` -$ terraform import tencentcloud_private_dns_zone.foo zone_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_private_dns_zone_vpc_attachment.go b/tencentcloud/resource_tc_private_dns_zone_vpc_attachment.go index 3bf08a81b3..1e76ba75a4 100644 --- a/tencentcloud/resource_tc_private_dns_zone_vpc_attachment.go +++ b/tencentcloud/resource_tc_private_dns_zone_vpc_attachment.go @@ -1,62 +1,3 @@ -/* -Provides a resource to create a PrivateDns zone_vpc_attachment - -~> **NOTE:** If you need to bind account A to account B's VPC resources, you need to first grant role authorization to account A. - -Example Usage - -Append VPC associated with private dns zone - -```hcl -resource "tencentcloud_private_dns_zone" "example" { - domain = "domain.com" - remark = "remark." - - dns_forward_status = "DISABLED" - cname_speedup_status = "ENABLED" - - tags = { - createdBy : "terraform" - } -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_private_dns_zone_vpc_attachment" "example" { - zone_id = tencentcloud_private_dns_zone.example.id - - vpc_set { - uniq_vpc_id = tencentcloud_vpc.vpc.id - region = "ap-guangzhou" - } -} -``` - -Add VPC information for associated accounts in the private dns zone - -```hcl -resource "tencentcloud_private_dns_zone_vpc_attachment" "example" { - zone_id = tencentcloud_private_dns_zone.example.id - - account_vpc_set { - uniq_vpc_id = "vpc-82znjzn3" - region = "ap-guangzhou" - uin = "100017155920" - } -} -``` - -Import - -PrivateDns zone_vpc_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_private_dns_zone_vpc_attachment.example zone-6t11lof0#vpc-jdx11z0t -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_project.go b/tencentcloud/resource_tc_project.go index 921904024c..d587973d93 100644 --- a/tencentcloud/resource_tc_project.go +++ b/tencentcloud/resource_tc_project.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a project - -~> **NOTE:** Project can not be destroyed. If run `terraform destroy`, project will be set invisible. - -Example Usage - -```hcl -resource "tencentcloud_project" "project" { - project_name = "terraform-test" - info = "for terraform test" -} -``` - -Import - -tag project can be imported using the id, e.g. - -``` -terraform import tencentcloud_project.project project_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_protocol_template.go b/tencentcloud/resource_tc_protocol_template.go index 5206f3b41d..70f11318c1 100644 --- a/tencentcloud/resource_tc_protocol_template.go +++ b/tencentcloud/resource_tc_protocol_template.go @@ -1,23 +1,3 @@ -/* -Provides a resource to manage protocol template. - -Example Usage - -```hcl -resource "tencentcloud_protocol_template" "foo" { - name = "protocol-template-test" - protocols = ["tcp:80","udp:all","icmp:10-30"] -} -``` - -Import - -Protocol template can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_protocol_template.foo ppm-nwrggd14 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_protocol_template_group.go b/tencentcloud/resource_tc_protocol_template_group.go index cc0fbc0475..4e25dce84b 100644 --- a/tencentcloud/resource_tc_protocol_template_group.go +++ b/tencentcloud/resource_tc_protocol_template_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to manage protocol template group. - -Example Usage - -```hcl -resource "tencentcloud_protocol_template_group" "foo" { - name = "group-test" - template_ids = ["ipl-axaf24151","ipl-axaf24152"] -} -``` - -Import - -Protocol template group can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_protocol_template_group.foo ppmg-0np3u974 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_alert_channel.go b/tencentcloud/resource_tc_pts_alert_channel.go index cbabe8dba3..5b621b560d 100644 --- a/tencentcloud/resource_tc_pts_alert_channel.go +++ b/tencentcloud/resource_tc_pts_alert_channel.go @@ -1,64 +1,3 @@ -/* -Provides a resource to create a pts alert_channel - -~> **NOTE:** Modification is not currently supported, please go to the console to modify. - -Example Usage - -```hcl -resource "tencentcloud_monitor_alarm_notice" "example" { - name = "test_alarm_notice_1" - notice_type = "ALL" - notice_language = "zh-CN" - - user_notices { - receiver_type = "USER" - start_time = 0 - end_time = 1 - notice_way = ["EMAIL", "SMS", "WECHAT"] - user_ids = [10001] - group_ids = [] - phone_order = [10001] - phone_circle_times = 2 - phone_circle_interval = 50 - phone_inner_interval = 60 - need_phone_arrive_notice = 1 - phone_call_type = "CIRCLE" - weekday =[1,2,3,4,5,6,7] - } - - url_notices { - url = "https://www.mytest.com/validate" - end_time = 0 - start_time = 1 - weekday = [1,2,3,4,5,6,7] - } - -} - -resource "tencentcloud_pts_project" "project" { - name = "ptsObjectName" - description = "desc" - tags { - tag_key = "createdBy" - tag_value = "terraform" - } -} - -resource "tencentcloud_pts_alert_channel" "alert_channel" { - notice_id = tencentcloud_monitor_alarm_notice.example.id - project_id = tencentcloud_pts_project.project.id - amp_consumer_id = "Consumer-vvy1xxxxxx" -} - -``` -Import - -pts alert_channel can be imported using the project_id#notice_id, e.g. -``` -$ terraform import tencentcloud_pts_alert_channel.alert_channel project-kww5v8se#notice-kl66t6y9 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_cron_job.go b/tencentcloud/resource_tc_pts_cron_job.go index 02b0579082..500d5977df 100644 --- a/tencentcloud/resource_tc_pts_cron_job.go +++ b/tencentcloud/resource_tc_pts_cron_job.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a pts cron_job - -Example Usage - -```hcl -resource "tencentcloud_pts_cron_job" "cron_job" { - name = "iac-cron_job-update" - project_id = "project-7qkzxhea" - scenario_id = "scenario-c22lqb1w" - scenario_name = "pts-js(2022-11-10 21:53:53)" - frequency_type = 2 - cron_expression = "* 1 * * *" - job_owner = "userName" - # end_time = "" - notice_id = "notice-vp6i38jt" - note = "desc" -} - -``` -Import - -pts cron_job can be imported using the projectId#cronJobId, e.g. -``` -$ terraform import tencentcloud_pts_cron_job.cron_job project-7qkzxhea#scenario-c22lqb1w -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_cron_job_abort.go b/tencentcloud/resource_tc_pts_cron_job_abort.go index 1ffec28ae0..58db94534a 100644 --- a/tencentcloud/resource_tc_pts_cron_job_abort.go +++ b/tencentcloud/resource_tc_pts_cron_job_abort.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a pts cron_job_abort - -Example Usage - -```hcl -resource "tencentcloud_pts_cron_job_abort" "cron_job_abort" { - project_id = "project-abc" - cron_job_id = "job-dtm93vx0" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_cron_job_restart.go b/tencentcloud/resource_tc_pts_cron_job_restart.go index d867354ba5..ae0c6dab27 100644 --- a/tencentcloud/resource_tc_pts_cron_job_restart.go +++ b/tencentcloud/resource_tc_pts_cron_job_restart.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a pts cron_job_restart, restart a scheduled task whose status is `JobAborting` - -Example Usage - -```hcl -resource "tencentcloud_pts_cron_job_restart" "cron_job_restart" { - project_id = "project-abc" - cron_job_id = "job-dtm93vx0" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_file.go b/tencentcloud/resource_tc_pts_file.go index 2570f2eea2..6efbc9b596 100644 --- a/tencentcloud/resource_tc_pts_file.go +++ b/tencentcloud/resource_tc_pts_file.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a pts file - -~> **NOTE:** Modification is not currently supported, please go to the console to modify. - -Example Usage - -```hcl -resource "tencentcloud_pts_file" "file" { - file_id = "file-de2dbaf8" - header_in_file = false - kind = 3 - line_count = 0 - name = "iac.txt" - project_id = "project-45vw7v82" - size = 10799 - type = "text/plain" - # header_columns = "" - # file_infos { - # name = "" - # size = "" - # type = "" - # updated_at = "" - # } -} - -``` -Import - -pts file can be imported using the project_id#file_id, e.g. -``` -$ terraform import tencentcloud_pts_file.file project-45vw7v82#file-de2dbaf8 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_job.go b/tencentcloud/resource_tc_pts_job.go index daf451a820..666fdab370 100644 --- a/tencentcloud/resource_tc_pts_job.go +++ b/tencentcloud/resource_tc_pts_job.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a pts job - -Example Usage - -```hcl -resource "tencentcloud_pts_job" "job" { - scenario_id = "scenario-22q19f3k" - job_owner = "username" - project_id = "project-45vw7v82" - # debug = "" - note = "desc" -} - -``` -Import - -pts job can be imported using the projectId#scenarioId#jobId, e.g. -``` -$ terraform import tencentcloud_pts_job.job project-45vw7v82#scenario-22q19f3k#job-dtm93vx0 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_job_abort.go b/tencentcloud/resource_tc_pts_job_abort.go index 79d7b0b3be..86df9b2f1a 100644 --- a/tencentcloud/resource_tc_pts_job_abort.go +++ b/tencentcloud/resource_tc_pts_job_abort.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a pts job_abort - -Example Usage - -```hcl -resource "tencentcloud_pts_job_abort" "job_abort" { - job_id = "job-my644ozi" - project_id = "project-45vw7v82" - scenario_id = "scenario-22q19f3k" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_project.go b/tencentcloud/resource_tc_pts_project.go index b4588d36bd..537c8e7341 100644 --- a/tencentcloud/resource_tc_pts_project.go +++ b/tencentcloud/resource_tc_pts_project.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a pts project - -Example Usage - -```hcl -resource "tencentcloud_pts_project" "project" { - name = "ptsObjectName-1" - description = "desc" - tags { - tag_key = "createdBy" - tag_value = "terraform" - } -} - -``` -Import - -pts project can be imported using the id, e.g. -``` -$ terraform import tencentcloud_pts_project.project project-1ep27k1m -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_scenario.go b/tencentcloud/resource_tc_pts_scenario.go index 71fb107c62..209b4abc9f 100644 --- a/tencentcloud/resource_tc_pts_scenario.go +++ b/tencentcloud/resource_tc_pts_scenario.go @@ -1,102 +1,3 @@ -/* -Provides a resource to create a pts scenario - -Example Usage - -```hcl -resource "tencentcloud_pts_scenario" "scenario" { - name = "pts-js" - project_id = "project-45vw7v82" - type = "pts-js" - - domain_name_config { - } - - load { - geo_regions_load_distribution { - percentage = 100 - region = "ap-guangzhou" - region_id = 1 - } - - load_spec { - concurrency { - graceful_stop_seconds = 3 - iteration_count = 0 - max_requests_per_second = 0 - - stages { - duration_seconds = 120 - target_virtual_users = 2 - } - stages { - duration_seconds = 120 - target_virtual_users = 4 - } - stages { - duration_seconds = 120 - target_virtual_users = 5 - } - stages { - duration_seconds = 240 - target_virtual_users = 5 - } - } - } - } - - sla_policy { - } - - test_scripts { - encoded_content = <<-EOT - // Send a http get request - import http from 'pts/http'; - import { check, sleep } from 'pts'; - - export default function () { - // simple get request - const resp1 = http.get('http://httpbin.org/get'); - console.log(resp1.body); - // if resp1.body is a json string, resp1.json() transfer json format body to a json object - console.log(resp1.json()); - check('status is 200', () => resp1.statusCode === 200); - - // sleep 1 second - sleep(1); - - // get request with headers and parameters - const resp2 = http.get('http://httpbin.org/get', { - headers: { - Connection: 'keep-alive', - 'User-Agent': 'pts-engine', - }, - query: { - name1: 'value1', - name2: 'value2', - }, - }); - - console.log(resp2.json().args.name1); // 'value1' - check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1'); - } - EOT - load_weight = 100 - name = "script.js" - size = 838 - type = "js" - updated_at = "2022-11-11T16:18:37+08:00" - } -} - -``` -Import - -pts scenario can be imported using the id, e.g. -``` -$ terraform import tencentcloud_pts_scenario.scenario scenario_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_pts_tmp_key_generate.go b/tencentcloud/resource_tc_pts_tmp_key_generate.go index fb11e06f15..ded68a9d6a 100644 --- a/tencentcloud/resource_tc_pts_tmp_key_generate.go +++ b/tencentcloud/resource_tc_pts_tmp_key_generate.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a pts tmp_key - -Example Usage - -```hcl -resource "tencentcloud_pts_tmp_key_generate" "tmp_key" { - project_id = "project-1b0zqmhg" - scenario_id = "scenario-abc" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_account.go b/tencentcloud/resource_tc_redis_account.go index 7f5f470a2c..2513cbd4dc 100644 --- a/tencentcloud/resource_tc_redis_account.go +++ b/tencentcloud/resource_tc_redis_account.go @@ -1,100 +1,3 @@ -/* -Provides a resource to create a redis account - -Example Usage - -Create an account with read and write permissions - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_redis_account" "account" { - instance_id = tencentcloud_redis_instance.foo.id - account_name = "account_test" - account_password = "test1234" - remark = "master" - readonly_policy = ["master"] - privilege = "rw" -} -``` - -Create an account with read-only permissions - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_redis_account" "account" { - instance_id = tencentcloud_redis_instance.foo.id - account_name = "account_test" - account_password = "test1234" - remark = "master" - readonly_policy = ["master"] - privilege = "r" -} -``` - -Import - -redis account can be imported using the id, e.g. - -``` -terraform import tencentcloud_redis_account.account crs-xxxxxx#account_test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_backup_config.go b/tencentcloud/resource_tc_redis_backup_config.go index 443d01ff54..5491f52666 100644 --- a/tencentcloud/resource_tc_redis_backup_config.go +++ b/tencentcloud/resource_tc_redis_backup_config.go @@ -1,55 +1,3 @@ -/* -Use this resource to create a backup config of redis. - -Example Usage - -Set configuration for automatic backups - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_redis_backup_config" "foo" { - redis_id = tencentcloud_redis_instance.foo.id - backup_time = "04:00-05:00" - backup_period = ["Monday"] -} -``` - -Import - -Redis backup config can be imported, e.g. - -``` -$ terraform import tencentcloud_redis_backup_config.foo redis-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_backup_download_restriction.go b/tencentcloud/resource_tc_redis_backup_download_restriction.go index 18073758c3..efcbf7e962 100644 --- a/tencentcloud/resource_tc_redis_backup_download_restriction.go +++ b/tencentcloud/resource_tc_redis_backup_download_restriction.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a redis backup_download_restriction - -Example Usage - -Modify the network information and address of the current region backup file download - -```hcl -resource "tencentcloud_redis_backup_download_restriction" "foo" { - limit_type = "Customize" - vpc_comparison_symbol = "In" - ip_comparison_symbol = "In" - limit_vpc { - region = "ap-guangzhou" - vpc_list = [var.vpc_id] - } - limit_ip = ["10.1.1.12", "10.1.1.13"] -} -``` - -Import - -redis backup_download_restriction can be imported using the region, e.g. - -``` -terraform import tencentcloud_redis_backup_download_restriction.foo ap-guangzhou -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_backup_operation.go b/tencentcloud/resource_tc_redis_backup_operation.go index 0b107e408e..f778e13ee5 100644 --- a/tencentcloud/resource_tc_redis_backup_operation.go +++ b/tencentcloud/resource_tc_redis_backup_operation.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a redis backup_operation - -Example Usage - -Manually back up the Redis instance, and the backup data is kept for 7 days - -```hcl -data "tencentcloud_mysql_instance" "foo" {} - -resource "tencentcloud_redis_backup_operation" "backup_operation" { - instance_id = data.tencentcloud_mysql_instance.foo.instance_list[0].mysql_id - remark = "manually back" - storage_days = 7 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_clear_instance_operation.go b/tencentcloud/resource_tc_redis_clear_instance_operation.go index a15e315fb6..f2efb51102 100644 --- a/tencentcloud/resource_tc_redis_clear_instance_operation.go +++ b/tencentcloud/resource_tc_redis_clear_instance_operation.go @@ -1,50 +1,3 @@ -/* -Provides a resource to create a redis clear_instance_operation - -Example Usage - -Clear the instance data of the Redis instance - -```hcl -variable "password" { - default = "test12345789" -} - -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id - password = var.password - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_redis_clear_instance_operation" "clear_instance_operation" { - instance_id = tencentcloud_redis_instance.foo.id - password = var.password -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_connection_config.go b/tencentcloud/resource_tc_redis_connection_config.go index fa8db6f0b4..f76199ef08 100644 --- a/tencentcloud/resource_tc_redis_connection_config.go +++ b/tencentcloud/resource_tc_redis_connection_config.go @@ -1,56 +1,3 @@ -/* -Provides a resource to create a redis connection_config - -Example Usage - -Modify the maximum number of connections and maximum network throughput of an instance - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_redis_connection_config" "connection_config" { - instance_id = "crs-fhm9fnv1" - client_limit = "20000" - add_bandwidth = "30" -} - -``` - -Import - -Redis connectionConfig can be imported, e.g. - -``` -$ terraform import tencentcloud_redis_connection_config.connection_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_instance.go b/tencentcloud/resource_tc_redis_instance.go index 9a91fbc783..cd9de0bf63 100644 --- a/tencentcloud/resource_tc_redis_instance.go +++ b/tencentcloud/resource_tc_redis_instance.go @@ -1,237 +1,3 @@ -/* -Provides a resource to create a Redis instance and set its attributes. - -~> **NOTE:** The argument vpc_id and subnet_id is now required because Basic Network Instance is no longer supported. - -~> **NOTE:** Both adding and removing replications in one change is supported but not recommend. - -Example Usage - -Create a base version of redis - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} -``` - -Using multi replica zone set - -```hcl -variable "redis_replicas_num" { - default = 3 -} - -variable "redis_type_id" { - default = 7 -} - -data "tencentcloud_availability_zones_by_product" "az" { - product = "redis" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_availability_zones_by_product.az.zones[0].name - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "red1" { - availability_zone = data.tencentcloud_availability_zones_by_product.az.zones[0].name - type_id = var.redis_type_id - charge_type = "POSTPAID" - mem_size = 1024 - name = "test-redis" - port = 6379 - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - password = "a12121312334" - security_groups = [tencentcloud_security_group.foo.id] - redis_replicas_num = var.redis_replicas_num - redis_shard_num = 1 - replica_zone_ids = [ - for i in range(var.redis_replicas_num) - : data.tencentcloud_availability_zones_by_product.az.zones[i % length(data.tencentcloud_availability_zones_by_product.az.zones)].id - ] -} -``` - -Buy a month of prepaid instances - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] - charge_type = "PREPAID" - prepaid_period = 1 -} -``` - -Create a multi-AZ instance - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 - region = "ap-guangzhou" -} - -variable "replica_zone_ids" { - default = [100004,100006] -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = 2 - replica_zone_ids = var.replica_zone_ids - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} -``` - -Import - -Redis instance can be imported, e.g. - -``` -$ terraform import tencentcloud_redis_instance.redislab redis-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_maintenance_window.go b/tencentcloud/resource_tc_redis_maintenance_window.go index 6b46189ca0..994c251637 100644 --- a/tencentcloud/resource_tc_redis_maintenance_window.go +++ b/tencentcloud/resource_tc_redis_maintenance_window.go @@ -1,53 +1,3 @@ -/* -Provides a resource to create a redis maintenance_window - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_redis_maintenance_window" "foo" { - instance_id = tencentcloud_redis_instance.foo.id - start_time = "17:00" - end_time = "19:00" -} -``` - -Import - -redis maintenance_window can be imported using the id, e.g. - -``` -terraform import tencentcloud_redis_maintenance_window.foo instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_param_template.go b/tencentcloud/resource_tc_redis_param_template.go index bd9f7429af..dcdc896b4c 100644 --- a/tencentcloud/resource_tc_redis_param_template.go +++ b/tencentcloud/resource_tc_redis_param_template.go @@ -1,48 +1,3 @@ -/* -Provides a resource to create a redis parameter template - -Example Usage - -```hcl -resource "tencentcloud_redis_param_template" "param_template" { - name = "example-template" - description = "This is an example redis param template." - product_type = 6 - params_override { - key = "timeout" - value = "7200" - } -} -``` - -Copy from another template - -```hcl -resource "tencentcloud_redis_param_template" "foo" { - name = "tf-template" - description = "This is an example redis param template." - product_type = 6 - params_override { - key = "timeout" - value = "7200" - } -} - -resource "tencentcloud_redis_param_template" "param_template" { - name = "tf-template-copied" - description = "This is an copied redis param template from tf-template." - template_id = tencentcloud_redis_param_template.foo.id -} -``` - - -Import - -redis param_template can be imported using the id, e.g. -``` -$ terraform import tencentcloud_redis_param_template.param_template param_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_read_only.go b/tencentcloud/resource_tc_redis_read_only.go index e5c1e6b3a9..b485dbf440 100644 --- a/tencentcloud/resource_tc_redis_read_only.go +++ b/tencentcloud/resource_tc_redis_read_only.go @@ -1,75 +1,3 @@ -/* -Provides a resource to create a redis read_only - -Example Usage - -Set instance input mode - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - -resource "tencentcloud_redis_read_only" "read_only" { - instance_id = tencentcloud_redis_instance.foo.id - input_mode = "0" -} -``` - -Import - -redis read_only can be imported using the instanceId, e.g. - -``` -terraform import tencentcloud_redis_read_only.read_only crs-c1nl9rpv -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_renew_instance_operation.go b/tencentcloud/resource_tc_redis_renew_instance_operation.go index e55c3be51f..3cc515e127 100644 --- a/tencentcloud/resource_tc_redis_renew_instance_operation.go +++ b/tencentcloud/resource_tc_redis_renew_instance_operation.go @@ -1,68 +1,3 @@ -/* -Provides a resource to create a redis renew_instance_operation - -Example Usage - -Renew Subscription Instances - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -data "tencentcloud_vpc" "vpc" { - name = "Default-VPC" -} - -data "tencentcloud_vpc_subnets" "subnet" { - vpc_id = data.tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = data.tencentcloud_vpc.vpc.id - subnet_id = data.tencentcloud_vpc_subnets.subnet.instance_list[0].subnet_id - security_groups = [tencentcloud_security_group.foo.id] - charge_type = "PREPAID" - prepaid_period = 1 -} - -resource "tencentcloud_redis_renew_instance_operation" "foo" { - instance_id = tencentcloud_redis_instance.foo.id - period = 1 - modify_pay_mode = "prepaid" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_replica_readonly.go b/tencentcloud/resource_tc_redis_replica_readonly.go index 260c832652..0fc2643231 100644 --- a/tencentcloud/resource_tc_redis_replica_readonly.go +++ b/tencentcloud/resource_tc_redis_replica_readonly.go @@ -1,66 +1,3 @@ -/* -Provides a resource to create a redis replica_readonly - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - -resource "tencentcloud_redis_replica_readonly" "replica_readonly" { - instance_id = tencentcloud_redis_instance.foo.id - readonly_policy = ["master"] - operate = "enable" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_replicate_attachment.go b/tencentcloud/resource_tc_redis_replicate_attachment.go index 1777e8cfc8..b287934987 100644 --- a/tencentcloud/resource_tc_redis_replicate_attachment.go +++ b/tencentcloud/resource_tc_redis_replicate_attachment.go @@ -1,90 +1,3 @@ -/* -Provides a resource to create a redis replicate_attachment - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 - region = "ap-guangzhou" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - -resource "tencentcloud_redis_instance" "instance" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] - name = "terrform_test_instance" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - - -resource "tencentcloud_redis_replicate_attachment" "replicate_attachment" { - group_id = "crs-rpl-orfiwmn5" - master_instance_id = tencentcloud_redis_instance.foo.id - instance_ids = [tencentcloud_redis_instance.instance.id] -} -``` - -Import - -redis replicate_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_redis_replicate_attachment.replicate_attachment replicate_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_security_group_attachment.go b/tencentcloud/resource_tc_redis_security_group_attachment.go index 4592e0a503..d4758a0cd6 100644 --- a/tencentcloud/resource_tc_redis_security_group_attachment.go +++ b/tencentcloud/resource_tc_redis_security_group_attachment.go @@ -1,90 +1,3 @@ -/* -Provides a resource to create a redis security_group_attachment - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 - region = "ap-guangzhou" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - -resource "tencentcloud_redis_instance" "instance" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] - name = "terrform_test_instance" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - - -resource "tencentcloud_redis_replicate_attachment" "replicate_attachment" { - group_id = "crs-rpl-orfiwmn5" - master_instance_id = tencentcloud_redis_instance.foo.id - instance_ids = [tencentcloud_redis_instance.instance.id] -} -``` - -Import - -redis security_group_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_redis_security_group_attachment.security_group_attachment instance_id#security_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_ssl.go b/tencentcloud/resource_tc_redis_ssl.go index f29596836f..cc0e01561d 100644 --- a/tencentcloud/resource_tc_redis_ssl.go +++ b/tencentcloud/resource_tc_redis_ssl.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a redis ssl - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 - region = "ap-guangzhou" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_replicas_nums[0] - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - -resource "tencentcloud_redis_ssl" "ssl" { - instance_id = tencentcloud_redis_instance.foo.id - ssl_config = "disabled" -} -``` - -Import - -redis ssl can be imported using the instanceId, e.g. - -``` -terraform import tencentcloud_redis_ssl.ssl crs-c1nl9rpv -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_startup_instance_operation.go b/tencentcloud/resource_tc_redis_startup_instance_operation.go index 2def3a2d2a..faf451250b 100644 --- a/tencentcloud/resource_tc_redis_startup_instance_operation.go +++ b/tencentcloud/resource_tc_redis_startup_instance_operation.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a redis startup_instance_operation - -Example Usage - -Recover the redis instance that has been isolated - -```hcl -resource "tencentcloud_redis_startup_instance_operation" "foo" { - instance_id = "crs-c1nl9rpv" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_switch_master.go b/tencentcloud/resource_tc_redis_switch_master.go index 57f1ccfc9b..c5c79ad1cd 100644 --- a/tencentcloud/resource_tc_redis_switch_master.go +++ b/tencentcloud/resource_tc_redis_switch_master.go @@ -1,76 +1,3 @@ -/* -Provides a resource to create a redis switch_master - -Example Usage - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 7 - region = "ap-guangzhou" -} - -variable "replica_zone_ids" { - default = [100004,100006] -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_redis_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - name = "tf_redis_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_security_group" "foo" { - name = "tf-redis-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "DROP#0.0.0.0/0#80-90#TCP", - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} - -resource "tencentcloud_redis_instance" "foo" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[2].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[2].type_id - password = "test12345789" - mem_size = 8192 - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[2].redis_shard_nums[0] - redis_replicas_num = 2 - replica_zone_ids = var.replica_zone_ids - name = "terrform_test" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.foo.id] -} - -data "tencentcloud_redis_instance_zone_info" "foo" { - instance_id = tencentcloud_redis_instance.foo.id -} - -resource "tencentcloud_redis_switch_master" "switch_master" { - instance_id = tencentcloud_redis_instance.foo.id - group_id = data.tencentcloud_redis_instance_zone_info.foo.replica_groups[1].group_id -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_upgrade_cache_version_operation.go b/tencentcloud/resource_tc_redis_upgrade_cache_version_operation.go index b278630b48..f8ade39dcc 100644 --- a/tencentcloud/resource_tc_redis_upgrade_cache_version_operation.go +++ b/tencentcloud/resource_tc_redis_upgrade_cache_version_operation.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a redis upgrade_cache_version_operation - -Example Usage - -```hcl -resource "tencentcloud_redis_upgrade_cache_version_operation" "upgrade_cache_version_operation" { - instance_id = "crs-c1nl9rpv" - current_redis_version = "5.0.0" - upgrade_redis_version = "5.0.0" - instance_type_upgrade_now = 1 -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_upgrade_multi_zone_operation.go b/tencentcloud/resource_tc_redis_upgrade_multi_zone_operation.go index 468d201522..c69172bf0a 100644 --- a/tencentcloud/resource_tc_redis_upgrade_multi_zone_operation.go +++ b/tencentcloud/resource_tc_redis_upgrade_multi_zone_operation.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a redis upgrade_multi_zone_operation - -Example Usage - -```hcl -resource "tencentcloud_redis_upgrade_multi_zone_operation" "upgrade_multi_zone_operation" { - instance_id = "crs-c1nl9rpv" - upgrade_proxy_and_redis_server = true -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_redis_upgrade_proxy_version_operation.go b/tencentcloud/resource_tc_redis_upgrade_proxy_version_operation.go index 2db350edaa..b7360ce90c 100644 --- a/tencentcloud/resource_tc_redis_upgrade_proxy_version_operation.go +++ b/tencentcloud/resource_tc_redis_upgrade_proxy_version_operation.go @@ -1,18 +1,3 @@ -/* -Provides a resource to create a redis upgrade_proxy_version_operation - -Example Usage - -```hcl -resource "tencentcloud_redis_upgrade_proxy_version_operation" "upgrade_proxy_version_operation" { - instance_id = "crs-c1nl9rpv" - current_proxy_version = "5.0.0" - upgrade_proxy_version = "5.0.0" - instance_type_upgrade_now = 1 -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_reserved_instance.go b/tencentcloud/resource_tc_reserved_instance.go index 38b08787eb..051e001f34 100644 --- a/tencentcloud/resource_tc_reserved_instance.go +++ b/tencentcloud/resource_tc_reserved_instance.go @@ -1,25 +1,3 @@ -/* -Provides a reserved instance resource. - -~> **NOTE:** Reserved instance cannot be deleted and updated. The reserved instance still exist which can be extracted by reserved_instances data source when reserved instance is destroied. - -Example Usage - -```hcl -resource "tencentcloud_reserved_instance" "ri" { - config_id = "469043dd-28b9-4d89-b557-74f6a8326259" - instance_count = 2 -} -``` - -Import - -Reserved instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_reserved_instance.foo 6cc16e7c-47d7-4fae-9b44-ce5c0f59a920 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_route_entry.go b/tencentcloud/resource_tc_route_entry.go index 048cb20627..85be6e509c 100644 --- a/tencentcloud/resource_tc_route_entry.go +++ b/tencentcloud/resource_tc_route_entry.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a routing entry in a VPC routing table. - -~> **NOTE:** It has been deprecated and replaced by tencentcloud_route_table_entry. - -Example Usage - -```hcl -resource "tencentcloud_vpc" "main" { - name = "Used to test the routing entry" - cidr_block = "10.4.0.0/16" -} - -resource "tencentcloud_route_table" "r" { - name = "Used to test the routing entry" - vpc_id = tencentcloud_vpc.main.id -} - -resource "tencentcloud_route_entry" "rtb_entry_instance" { - vpc_id = tencentcloud_route_table.main.vpc_id - route_table_id = tencentcloud_route_table.r.id - cidr_block = "10.4.8.0/24" - next_type = "instance" - next_hub = "10.16.1.7" -} - -resource "tencentcloud_route_entry" "rtb_entry_instance" { - vpc_id = tencentcloud_route_table.main.vpc_id - route_table_id = tencentcloud_route_table.r.id - cidr_block = "10.4.5.0/24" - next_type = "vpn_gateway" - next_hub = "vpngw-db52irtl" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_route_table.go b/tencentcloud/resource_tc_route_table.go index ac0aa98d30..b0330d6b26 100644 --- a/tencentcloud/resource_tc_route_table.go +++ b/tencentcloud/resource_tc_route_table.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a VPC routing table. - -Example Usage - -```hcl -resource "tencentcloud_vpc" "foo" { - name = "ci-temp-test" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_route_table" "foo" { - vpc_id = tencentcloud_vpc.foo.id - name = "ci-temp-test-rt" -} -``` - -Import - -Vpc routetable instance can be imported, e.g. - -``` -$ terraform import tencentcloud_route_table.test route_table_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_route_table_association.go b/tencentcloud/resource_tc_route_table_association.go index 4f079b2d95..6181e5d014 100644 --- a/tencentcloud/resource_tc_route_table_association.go +++ b/tencentcloud/resource_tc_route_table_association.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a vpc route_table - -Example Usage - -```hcl -resource "tencentcloud_route_table_association" "route_table_association" { - route_table_id = "rtb-5toos5sy" - subnet_id = "subnet-2y2omd4k" -} -``` - -Import - -vpc route_table can be imported using the id, e.g. - -``` -terraform import tencentcloud_route_table_association.route_table_association subnet_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_route_table_entry.go b/tencentcloud/resource_tc_route_table_entry.go index 10b82d82de..c46324a30b 100644 --- a/tencentcloud/resource_tc_route_table_entry.go +++ b/tencentcloud/resource_tc_route_table_entry.go @@ -1,48 +1,3 @@ -/* -Provides a resource to create an entry of a routing table. - -Example Usage - -```hcl -variable "availability_zone" { - default = "na-siliconvalley-1" -} - -resource "tencentcloud_vpc" "foo" { - name = "ci-temp-test" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "foo" { - vpc_id = tencentcloud_vpc.foo.id - name = "terraform test subnet" - cidr_block = "10.0.12.0/24" - availability_zone = var.availability_zone - route_table_id = tencentcloud_route_table.foo.id -} - -resource "tencentcloud_route_table" "foo" { - vpc_id = tencentcloud_vpc.foo.id - name = "ci-temp-test-rt" -} - -resource "tencentcloud_route_table_entry" "instance" { - route_table_id = tencentcloud_route_table.foo.id - destination_cidr_block = "10.4.4.0/24" - next_type = "EIP" - next_hub = "0" - description = "ci-test-route-table-entry" -} -``` - -Import - -Route table entry can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_route_table_entry.foo 83517.rtb-mlhpg09u -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_rum_instance_status_config.go b/tencentcloud/resource_tc_rum_instance_status_config.go index be7f7a93c9..0933952dae 100644 --- a/tencentcloud/resource_tc_rum_instance_status_config.go +++ b/tencentcloud/resource_tc_rum_instance_status_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a rum instance_status_config - -Example Usage - -```hcl -resource "tencentcloud_rum_instance_status_config" "instance_status_config" { - instance_id = "rum-pasZKEI3RLgakj" - operate = "stop" -} -``` - -Import - -rum instance_status_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_rum_instance_status_config.instance_status_config instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_rum_offline_log_config_attachment.go b/tencentcloud/resource_tc_rum_offline_log_config_attachment.go index c5c432e377..569c60ecd5 100644 --- a/tencentcloud/resource_tc_rum_offline_log_config_attachment.go +++ b/tencentcloud/resource_tc_rum_offline_log_config_attachment.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a rum offline_log_config_attachment - -Example Usage - -```hcl -resource "tencentcloud_rum_offline_log_config_attachment" "offline_log_config_attachment" { - project_key = "ZEYrYfvaYQ30jRdmPx" - unique_id = "100027012454" -} - -``` -Import - -rum offline_log_config_attachment can be imported using the id, e.g. -``` -$ terraform import tencentcloud_rum_offline_log_config_attachment.offline_log_config_attachment ZEYrYfvaYQ30jRdmPx#100027012454 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_rum_project.go b/tencentcloud/resource_tc_rum_project.go index fca0a8fb39..7ab3b17bdc 100644 --- a/tencentcloud/resource_tc_rum_project.go +++ b/tencentcloud/resource_tc_rum_project.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a rum project - -Example Usage - -```hcl -resource "tencentcloud_rum_project" "project" { - name = "projectName" - instance_id = "rum-pasZKEI3RLgakj" - rate = "100" - enable_url_group = "0" - type = "web" - repo = "" - url = "iac-tf.com" - desc = "projectDesc-1" -} - -``` -Import - -rum project can be imported using the id, e.g. -``` -$ terraform import tencentcloud_rum_project.project project_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_rum_project_status_config.go b/tencentcloud/resource_tc_rum_project_status_config.go index 97c45bf1a9..39a42feb2d 100644 --- a/tencentcloud/resource_tc_rum_project_status_config.go +++ b/tencentcloud/resource_tc_rum_project_status_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a rum project_status_config - -Example Usage - -```hcl -resource "tencentcloud_rum_project_status_config" "project_status_config" { - project_id = 131407 - operate = "stop" -} -``` - -Import - -rum project_status_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_rum_project_status_config.project_status_config project_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_rum_taw_instance.go b/tencentcloud/resource_tc_rum_taw_instance.go index ca10fb7f92..8662896708 100644 --- a/tencentcloud/resource_tc_rum_taw_instance.go +++ b/tencentcloud/resource_tc_rum_taw_instance.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a rum taw_instance - -Example Usage - -```hcl -resource "tencentcloud_rum_taw_instance" "taw_instance" { - area_id = "1" - charge_type = "1" - data_retention_days = "30" - instance_name = "instanceName-1" - tags = { - createdBy = "terraform" - } - instance_desc = "instanceDesc-1" -} - -``` -Import - -rum taw_instance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_rum_taw_instance.taw_instance tawInstance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_rum_whitelist.go b/tencentcloud/resource_tc_rum_whitelist.go index 210c10e47e..2671305ad3 100644 --- a/tencentcloud/resource_tc_rum_whitelist.go +++ b/tencentcloud/resource_tc_rum_whitelist.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a rum whitelist - -Example Usage - -```hcl -resource "tencentcloud_rum_whitelist" "whitelist" { - instance_id = "rum-pasZKEI3RLgakj" - remark = "white list remark" - whitelist_uin = "20221122" - # aid = "" -} - -``` -Import - -rum whitelist can be imported using the id, e.g. -``` -$ terraform import tencentcloud_rum_whitelist.whitelist whitelist_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_function.go b/tencentcloud/resource_tc_scf_function.go index d251fb74e3..939cd7babe 100644 --- a/tencentcloud/resource_tc_scf_function.go +++ b/tencentcloud/resource_tc_scf_function.go @@ -1,69 +1,3 @@ -/* -Provide a resource to create a SCF function. - -Example Usage - -```hcl -resource "tencentcloud_scf_function" "foo" { - name = "ci-test-function" - handler = "main.do_it" - runtime = "Python3.6" - - cos_bucket_name = "scf-code-1234567890" - cos_object_name = "code.zip" - cos_bucket_region = "ap-guangzhou" -} -``` - -Using Zip file -``` -resource "tencentcloud_scf_function" "foo" { - name = "ci-test-function" - handler = "first.do_it_first" - runtime = "Python3.6" - enable_public_net = true - dns_cache = true - intranet_config { - ip_fixed = "ENABLE" - } - vpc_id = "vpc-391sv4w3" - subnet_id = "subnet-ljyn7h30" - - zip_file = "/scf/first.zip" - - tags = { - "env" = "test" - } -} - -Using CFS config -``` -resource "tencentcloud_scf_function" "foo" { - name = "ci-test-function" - handler = "main.do_it" - runtime = "Python3.6" - - cfs_config { - user_id = "10000" - user_group_id = "10000" - cfs_id = "cfs-xxxxxxxx" - mount_ins_id = "cfs-xxxxxxxx" - local_mount_dir = "/mnt" - remote_mount_dir = "/" - } -} -``` - -Import - -SCF function can be imported, e.g. - --> **NOTE:** function id is `+` - -``` -$ terraform import tencentcloud_scf_function.test default+test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_function_alias.go b/tencentcloud/resource_tc_scf_function_alias.go index e50255368f..0c33e114aa 100644 --- a/tencentcloud/resource_tc_scf_function_alias.go +++ b/tencentcloud/resource_tc_scf_function_alias.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a scf function_alias - -Example Usage - -```hcl -// by weight -resource "tencentcloud_scf_function_alias" "function_alias" { - description = "weight test" - function_name = "keep-1676351130" - function_version = "$LATEST" - name = "weight" - namespace = "default" - - routing_config { - additional_version_weights { - version = "2" - weight = 0.4 - } - } -} - -// by route -resource "tencentcloud_scf_function_alias" "function_alias" { - description = "matchs for test 12312312" - function_name = "keep-1676351130" - function_version = "3" - name = "matchs" - namespace = "default" - - routing_config { - additional_version_matches { - expression = "testuser" - key = "invoke.headers.User" - method = "exact" - version = "2" - } - } -} -``` - -Import - -scf function_alias can be imported using the id, e.g. - -``` -terraform import tencentcloud_scf_function_alias.function_alias namespace#functionName#name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_function_event_invoke_config.go b/tencentcloud/resource_tc_scf_function_event_invoke_config.go index be5c71a152..5c9cba2bfa 100644 --- a/tencentcloud/resource_tc_scf_function_event_invoke_config.go +++ b/tencentcloud/resource_tc_scf_function_event_invoke_config.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a scf function_event_invoke_config - -Example Usage - -```hcl -resource "tencentcloud_scf_function_event_invoke_config" "function_event_invoke_config" { - function_name = "keep-1676351130" - namespace = "default" - async_trigger_config { - retry_config { - retry_num = 2 - } - msg_ttl = 24 - } -} -``` - -Import - -scf function_event_invoke_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_scf_function_event_invoke_config.function_event_invoke_config function_name#namespace -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_function_version.go b/tencentcloud/resource_tc_scf_function_version.go index d3088ffdb0..764ab24a82 100644 --- a/tencentcloud/resource_tc_scf_function_version.go +++ b/tencentcloud/resource_tc_scf_function_version.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a scf function_version - -Example Usage - -```hcl -resource "tencentcloud_scf_function_version" "function_version" { - function_name = "keep-1676351130" - namespace = "default" - description = "for-terraform-test" -} - -``` - -Import - -scf function_version can be imported using the id, e.g. - -``` -terraform import tencentcloud_scf_function_version.function_version functionName#namespace#functionVersion -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_invoke_function.go b/tencentcloud/resource_tc_scf_invoke_function.go index 2f9bca118c..0b89e42c50 100644 --- a/tencentcloud/resource_tc_scf_invoke_function.go +++ b/tencentcloud/resource_tc_scf_invoke_function.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a scf invoke_function - -Example Usage - -```hcl -resource "tencentcloud_scf_invoke_function" "invoke_function" { - function_name = "keep-1676351130" - qualifier = "2" - namespace = "default" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_layer.go b/tencentcloud/resource_tc_scf_layer.go index b565bbcae9..21a92af707 100644 --- a/tencentcloud/resource_tc_scf_layer.go +++ b/tencentcloud/resource_tc_scf_layer.go @@ -1,30 +1,3 @@ -/* -Provide a resource to create a SCF layer. - -Example Usage - -```hcl -resource "tencentcloud_scf_layer" "foo" { - layer_name = "foo" - compatible_runtimes = ["Python3.6"] - content { - cos_bucket_name = "test-bucket" - cos_object_name = "/foo.zip" - cos_bucket_region = "ap-guangzhou" - } - description = "foo" - license_info = "foo" -} -``` -Import - -Scf layer can be imported, e.g. - -``` -$ terraform import tencentcloud_scf_layer.layer layerId#layerVersion -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_namespace.go b/tencentcloud/resource_tc_scf_namespace.go index 4db5adcce7..bbeedc845d 100644 --- a/tencentcloud/resource_tc_scf_namespace.go +++ b/tencentcloud/resource_tc_scf_namespace.go @@ -1,22 +1,3 @@ -/* -Provide a resource to create a SCF namespace. - -Example Usage - -```hcl -resource "tencentcloud_scf_namespace" "foo" { - namespace = "ci-test-scf" -} -``` - -Import - -SCF namespace can be imported, e.g. - -``` -$ terraform import tencentcloud_scf_function.test default -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_provisioned_concurrency_config.go b/tencentcloud/resource_tc_scf_provisioned_concurrency_config.go index d90bb7420d..d411110c63 100644 --- a/tencentcloud/resource_tc_scf_provisioned_concurrency_config.go +++ b/tencentcloud/resource_tc_scf_provisioned_concurrency_config.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a scf provisioned_concurrency_config - -Example Usage - -```hcl -resource "tencentcloud_scf_provisioned_concurrency_config" "provisioned_concurrency_config" { - function_name = "keep-1676351130" - qualifier = "2" - version_provisioned_concurrency_num = 2 - namespace = "default" - trigger_actions { - trigger_name = "test" - trigger_provisioned_concurrency_num = 2 - trigger_cron_config = "29 45 12 29 05 * 2023" - provisioned_type = "Default" - } - provisioned_type = "Default" - tracking_target = 0.5 - min_capacity = 1 - max_capacity = 2 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_reserved_concurrency_config.go b/tencentcloud/resource_tc_scf_reserved_concurrency_config.go index 10cdbb484d..bcb8e1289d 100644 --- a/tencentcloud/resource_tc_scf_reserved_concurrency_config.go +++ b/tencentcloud/resource_tc_scf_reserved_concurrency_config.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a scf reserved_concurrency_config - -Example Usage - -```hcl -resource "tencentcloud_scf_reserved_concurrency_config" "reserved_concurrency_config" { - function_name = "keep-1676351130" - reserved_concurrency_mem = 128000 - namespace = "default" -} -``` - -Import - -scf reserved_concurrency_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_scf_reserved_concurrency_config.reserved_concurrency_config reserved_concurrency_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_sync_invoke_function.go b/tencentcloud/resource_tc_scf_sync_invoke_function.go index 95907961b3..a4576c3dc7 100644 --- a/tencentcloud/resource_tc_scf_sync_invoke_function.go +++ b/tencentcloud/resource_tc_scf_sync_invoke_function.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a scf sync_invoke_function - -Example Usage - -```hcl -resource "tencentcloud_scf_sync_invoke_function" "invoke_function" { - function_name = "keep-1676351130" - qualifier = "2" - namespace = "default" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_terminate_async_event.go b/tencentcloud/resource_tc_scf_terminate_async_event.go index 585aa77d6b..a38559afb6 100644 --- a/tencentcloud/resource_tc_scf_terminate_async_event.go +++ b/tencentcloud/resource_tc_scf_terminate_async_event.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a scf terminate_async_event - -Example Usage - -```hcl -resource "tencentcloud_scf_terminate_async_event" "terminate_async_event" { - function_name = "keep-1676351130" - invoke_request_id = "9de9405a-e33a-498d-bb59-e80b7bed1191" - namespace = "default" - grace_shutdown = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_scf_trigger_config.go b/tencentcloud/resource_tc_scf_trigger_config.go index 5df81e5381..43143c8703 100644 --- a/tencentcloud/resource_tc_scf_trigger_config.go +++ b/tencentcloud/resource_tc_scf_trigger_config.go @@ -1,32 +1,3 @@ -/* -Provides a resource to create a scf trigger_config - -Example Usage - -```hcl - -resource "tencentcloud_scf_trigger_config" "trigger_config" { - enable = "OPEN" - function_name = "keep-1676351130" - trigger_name = "SCF-timer-1685540160" - type = "timer" - qualifier = "$DEFAULT" - namespace = "default" - trigger_desc = "* 1 2 * * * *" - description = "func" - custom_argument = "Information" -} - -``` - -Import - -scf trigger_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_scf_trigger_config.trigger_config functionName#namespace#triggerName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_security_group.go b/tencentcloud/resource_tc_security_group.go index 7e470a6679..217ed1c46e 100644 --- a/tencentcloud/resource_tc_security_group.go +++ b/tencentcloud/resource_tc_security_group.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create security group. - -Example Usage - -Create a basic security group - -```hcl -resource "tencentcloud_security_group" "example" { - name = "tf-example-sg" - description = "sg test" -} -``` - -Create a complete security group - -```hcl -resource "tencentcloud_security_group" "example" { - name = "tf-example-sg" - description = "sg test" - project_id = 0 - - tags = { - "example" = "test" - } -} -``` - -Import - -Security group can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_security_group.sglab sg-ey3wmiz1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_security_group_lite_rule.go b/tencentcloud/resource_tc_security_group_lite_rule.go index 8be27e58f8..0900326293 100644 --- a/tencentcloud/resource_tc_security_group_lite_rule.go +++ b/tencentcloud/resource_tc_security_group_lite_rule.go @@ -1,45 +1,3 @@ -/* -Provide a resource to create security group some lite rules quickly. - --> **NOTE:** It can't be used with tencentcloud_security_group_rule, and don't create multiple tencentcloud_security_group_rule resources, otherwise it may cause problems. - -Example Usage - -```hcl -resource "tencentcloud_security_group" "foo" { - name = "ci-temp-test-sg" -} - -resource "tencentcloud_security_group_lite_rule" "foo" { - security_group_id = tencentcloud_security_group.foo.id - - ingress = [ - "ACCEPT#192.168.1.0/24#80#TCP", - "DROP#8.8.8.8#80,90#UDP", - "ACCEPT#0.0.0.0/0#80-90#TCP", - "ACCEPT#sg-7ixn3foj#80-90#TCP", - "ACCEPT#ipm-epjq5kn0#80-90#TCP", - "ACCEPT#ipmg-3loavam6#80-90#TCP", - "ACCEPT#0.0.0.0/0##ppm-xxxxxxxx" - "ACCEPT#0.0.0.0/0##ppmg-xxxxxxxx" - ] - - egress = [ - "ACCEPT#192.168.0.0/16#ALL#TCP", - "ACCEPT#10.0.0.0/8#ALL#ICMP", - "DROP#0.0.0.0/0#ALL#ALL", - ] -} -``` - -Import - -Security group lite rule can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_security_group_lite_rule.foo sg-ey3wmiz1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_security_group_rule.go b/tencentcloud/resource_tc_security_group_rule.go index 029a473816..cc4cb075bc 100644 --- a/tencentcloud/resource_tc_security_group_rule.go +++ b/tencentcloud/resource_tc_security_group_rule.go @@ -1,56 +1,3 @@ -/* -Provides a resource to create security group rule. - -~> **NOTE:** This resource will be offline and no longer supported, beacause single security rule is hardly ordered. Please use 'tencentcloud_security_group_lite_rule' instead. - -Example Usage - -Source is CIDR ip - -```hcl -resource "tencentcloud_security_group" "sglab_1" { - name = "mysg_1" - description = "favourite sg_1" - project_id = 0 -} - -resource "tencentcloud_security_group_rule" "sglab_1" { - security_group_id = tencentcloud_security_group.sglab_1.id - type = "ingress" - cidr_ip = "10.0.0.0/16" - ip_protocol = "TCP" - port_range = "80" - policy = "ACCEPT" - description = "favourite sg rule_1" -} -``` - -Source is a security group id - -```hcl -resource "tencentcloud_security_group" "sglab_2" { - name = "mysg_2" - description = "favourite sg_2" - project_id = 0 -} - -resource "tencentcloud_security_group" "sglab_3" { - name = "mysg_3" - description = "favourite sg_3" - project_id = 0 -} - -resource "tencentcloud_security_group_rule" "sglab_2" { - security_group_id = tencentcloud_security_group.sglab_2.id - type = "ingress" - ip_protocol = "TCP" - port_range = "80" - policy = "ACCEPT" - source_sgid = tencentcloud_security_group.sglab_3.id - description = "favourite sg rule_2" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_security_group_rule_set.go b/tencentcloud/resource_tc_security_group_rule_set.go index 28018e939c..0aa60f6bdf 100644 --- a/tencentcloud/resource_tc_security_group_rule_set.go +++ b/tencentcloud/resource_tc_security_group_rule_set.go @@ -1,103 +1,3 @@ -/* -Provides a resource to create security group rule. This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions. - -~> **NOTE:** This resource must exclusive in one security group, do not declare additional rule resources of this security group elsewhere. - -Example Usage - -```hcl -resource "tencentcloud_security_group" "base" { - name = "test-set-sg" - description = "Testing Rule Set Security" -} - -resource "tencentcloud_security_group" "relative" { - name = "for-relative" - description = "Used for attach security policy" -} - -resource "tencentcloud_address_template" "foo" { - name = "test-set-aTemp" - addresses = ["10.0.0.1", "10.0.1.0/24", "10.0.0.1-10.0.0.100"] -} - -resource "tencentcloud_address_template_group" "foo" { - name = "test-set-atg" - template_ids = [tencentcloud_address_template.foo.id] -} - -resource "tencentcloud_security_group_rule_set" "base" { - security_group_id = tencentcloud_security_group.base.id - - ingress { - action = "ACCEPT" - cidr_block = "10.0.0.0/22" - protocol = "TCP" - port = "80-90" - description = "A:Allow Ips and 80-90" - } - - ingress { - action = "ACCEPT" - cidr_block = "10.0.2.1" - protocol = "UDP" - port = "8080" - description = "B:Allow UDP 8080" - } - - ingress { - action = "ACCEPT" - cidr_block = "10.0.2.1" - protocol = "UDP" - port = "8080" - description = "C:Allow UDP 8080" - } - - ingress { - action = "ACCEPT" - cidr_block = "172.18.1.2" - protocol = "ALL" - port = "ALL" - description = "D:Allow ALL" - } - - ingress { - action = "DROP" - protocol = "TCP" - port = "80" - source_security_id = tencentcloud_security_group.relative.id - description = "E:Block relative" - } - - egress { - action = "DROP" - cidr_block = "10.0.0.0/16" - protocol = "ICMP" - description = "A:Block ping3" - } - - egress { - action = "DROP" - address_template_id = tencentcloud_address_template.foo.id - description = "B:Allow template" - } - - egress { - action = "DROP" - address_template_group = tencentcloud_address_template_group.foo.id - description = "C:DROP template group" - } -} -``` - -Import - -Resource tencentcloud_security_group_rule_set can be imported by passing security grou id: - -``` -terraform import tencentcloud_security_group_rule_set.sglab_1 sg-xxxxxxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_batch_send_email.go b/tencentcloud/resource_tc_ses_batch_send_email.go index 53a5ac1a36..e36839b3db 100644 --- a/tencentcloud/resource_tc_ses_batch_send_email.go +++ b/tencentcloud/resource_tc_ses_batch_send_email.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a ses batch_send_email - -Example Usage - -```hcl -resource "tencentcloud_ses_batch_send_email" "batch_send_email" { - from_email_address = "aaa@iac-tf.cloud" - receiver_id = 1063742 - subject = "terraform test" - task_type = 1 - reply_to_addresses = "reply@mail.qcloud.com" - template { - template_id = 99629 - template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" - - } - - cycle_param { - begin_time = "2023-09-07 15:10:00" - interval_time = 1 - } - timed_param { - begin_time = "2023-09-07 15:20:00" - } - unsubscribe = "0" - ad_location = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_black_list_delete.go b/tencentcloud/resource_tc_ses_black_list_delete.go index e50fdb9a05..43f837922d 100644 --- a/tencentcloud/resource_tc_ses_black_list_delete.go +++ b/tencentcloud/resource_tc_ses_black_list_delete.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a ses black_list - -~> **NOTE:** Used to remove email addresses from blacklists. - -Example Usage - -```hcl -resource "tencentcloud_ses_black_list_delete" "black_list" { - email_address = "terraform-tf@gmail.com" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_domain.go b/tencentcloud/resource_tc_ses_domain.go index 029f86a915..2865c06fdf 100644 --- a/tencentcloud/resource_tc_ses_domain.go +++ b/tencentcloud/resource_tc_ses_domain.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a ses domain - -Example Usage - -```hcl -resource "tencentcloud_ses_domain" "domain" { - email_identity = "iac.cloud" -} - -``` -Import - -ses domain can be imported using the id, e.g. -``` -$ terraform import tencentcloud_ses_domain.domain iac.cloud -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_email_address.go b/tencentcloud/resource_tc_ses_email_address.go index 0fa406a454..11543a5ea4 100644 --- a/tencentcloud/resource_tc_ses_email_address.go +++ b/tencentcloud/resource_tc_ses_email_address.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ses email_address - -Example Usage - -```hcl -resource "tencentcloud_ses_email_address" "email_address" { - email_address = "aaa@iac-tf.cloud" - email_sender_name = "aaa" -} - -``` -Import - -ses email_address can be imported using the id, e.g. -``` -$ terraform import tencentcloud_ses_email_address.email_address aaa@iac-tf.cloud -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_receiver.go b/tencentcloud/resource_tc_ses_receiver.go index b9c2283939..c2b1133e31 100644 --- a/tencentcloud/resource_tc_ses_receiver.go +++ b/tencentcloud/resource_tc_ses_receiver.go @@ -1,47 +1,3 @@ -/* -Provides a resource to create a ses receiver - -Example Usage - -```hcl -resource "tencentcloud_ses_receiver" "receiver" { - receivers_name = "terraform_test" - desc = "description" - - data { - email = "abc@abc.com" - } - - data { - email = "abcd@abcd.com" - } -} -``` - -Create a template with `template_data` -```hcl -resource "tencentcloud_ses_receiver" "receiver" { - receivers_name = "terraform_test" - desc = "description" - - data { - email = "abc@abc.com" - template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" - } - - data { - email = "abcd@abcd.com" - template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" - } -} -``` -Import - -ses email_address can be imported using the id, e.g. -``` -$ terraform import tencentcloud_ses_receiver.receiver receiverId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_send_email.go b/tencentcloud/resource_tc_ses_send_email.go index c4d19558bb..19e72baf4b 100644 --- a/tencentcloud/resource_tc_ses_send_email.go +++ b/tencentcloud/resource_tc_ses_send_email.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a ses send_email - -Example Usage - -```hcl -resource "tencentcloud_ses_send_email" "send_email" { - from_email_address = "aaa@iac-tf.cloud" - destination = ["1055482519@qq.com"] - subject = "test subject" - reply_to_addresses = "aaa@iac-tf.cloud" - - template { - template_id = 99629 - template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" - } - - unsubscribe = "1" - trigger_type = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_template.go b/tencentcloud/resource_tc_ses_template.go index 60b5c8f2af..ce5310a6dd 100644 --- a/tencentcloud/resource_tc_ses_template.go +++ b/tencentcloud/resource_tc_ses_template.go @@ -1,58 +1,3 @@ -/* -Provides a resource to create a ses template. - -Example Usage - -Create a ses text template - -```hcl -resource "tencentcloud_ses_template" "example" { - template_name = "tf_example_ses_temp"" - template_content { - text = "example for the ses template" - } -} - -``` - -Create a ses html template - -```hcl -resource "tencentcloud_ses_template" "example" { - template_name = "tf_example_ses_temp" - template_content { - html = <<-EOT - - - - - - mail title - - -
-

Welcome to our service!

-

Dear user,

-

Thank you for using Tencent Cloud:

-

https://cloud.tencent.com/document/product/1653

-

If you did not request this email, please ignore it.

-

from the iac team

-
- - - EOT - } -} - -``` - -Import - -ses template can be imported using the id, e.g. -``` -$ terraform import tencentcloud_ses_template.example template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ses_verify_domain.go b/tencentcloud/resource_tc_ses_verify_domain.go index bfa25325d3..527fa2504f 100644 --- a/tencentcloud/resource_tc_ses_verify_domain.go +++ b/tencentcloud/resource_tc_ses_verify_domain.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a ses verify_domain - -~> **NOTE:** Please add the `attributes` information returned by `tencentcloud_ses_domain` to the domain name resolution record through `tencentcloud_dnspod_record`, and then verify it. - -Example Usage - -```hcl -resource "tencentcloud_ses_verify_domain" "verify_domain" { - email_identity = "example.com" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sms_sign.go b/tencentcloud/resource_tc_sms_sign.go index 1faf2fdabf..47abc88d6b 100644 --- a/tencentcloud/resource_tc_sms_sign.go +++ b/tencentcloud/resource_tc_sms_sign.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a sms sign - -Example Usage - -Create a sms sign instance - -```hcl -resource "tencentcloud_sms_sign" "example" { - sign_name = "tf_example_sms_sign" - sign_type = 1 # 1:APP, DocumentType can be chosen(0,1,2,3,4) - document_type = 4 # Screenshot of application background management (personally developed APP) - international = 0 # Mainland China SMS - sign_purpose = 0 # personal use - proof_image = "your_proof_image" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sms_template.go b/tencentcloud/resource_tc_sms_template.go index 6e196ec13c..8e3ecbb0f9 100644 --- a/tencentcloud/resource_tc_sms_template.go +++ b/tencentcloud/resource_tc_sms_template.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a sms template - -Example Usage - -Create a sms template - -```hcl -resource "tencentcloud_sms_template" "template" { - template_name = "tf_example_sms_template" - template_content = "example for sms template" - international = 0 # Mainland China SMS - sms_type = 0 # regular SMS - remark = "terraform example" -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_account.go b/tencentcloud/resource_tc_sqlserver_account.go index cf1566a902..c54e957652 100644 --- a/tencentcloud/resource_tc_sqlserver_account.go +++ b/tencentcloud/resource_tc_sqlserver_account.go @@ -1,68 +1,3 @@ -/* -Use this resource to create SQL Server account - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_account" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_account" - password = "Qwer@234" - remark = "test-remark" -} -``` - -Import - -SQL Server account can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_account.example mssql-3cdq7kx5#tf_example_account -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_account_db_attachment.go b/tencentcloud/resource_tc_sqlserver_account_db_attachment.go index fd215859b8..4c88757b88 100644 --- a/tencentcloud/resource_tc_sqlserver_account_db_attachment.go +++ b/tencentcloud/resource_tc_sqlserver_account_db_attachment.go @@ -1,82 +1,3 @@ -/* -Use this resource to create SQL Server account DB attachment - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_account" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_account" - password = "Qwer@234" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_account_db_attachment" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - account_name = tencentcloud_sqlserver_account.example.name - db_name = tencentcloud_sqlserver_db.example.name - privilege = "ReadWrite" -} -``` - -Import - -SQL Server account DB attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_account_db_attachment.example mssql-3cdq7kx5#tf_example_account#tf_example_db -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_basic_instance.go b/tencentcloud/resource_tc_sqlserver_basic_instance.go index e9a292be94..acc50f32f3 100644 --- a/tencentcloud/resource_tc_sqlserver_basic_instance.go +++ b/tencentcloud/resource_tc_sqlserver_basic_instance.go @@ -1,60 +1,3 @@ -/* -Provides a SQL Server instance resource to create basic database instances. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} -``` -Import - -SQL Server basic instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_basic_instance.example mssql-3cdq7kx5 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_business_intelligence_file.go b/tencentcloud/resource_tc_sqlserver_business_intelligence_file.go index 360e602f7a..7cdb7d5473 100644 --- a/tencentcloud/resource_tc_sqlserver_business_intelligence_file.go +++ b/tencentcloud/resource_tc_sqlserver_business_intelligence_file.go @@ -1,64 +1,3 @@ -/* -Provides a resource to create a sqlserver business_intelligence_file - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_business_intelligence_instance" "example" { - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "201603" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 4, 5, 6, 7] - start_time = "00:00" - span = 6 - instance_name = "tf_example" -} - -resource "tencentcloud_sqlserver_business_intelligence_file" "example" { - instance_id = tencentcloud_sqlserver_business_intelligence_instance.example.id - file_url = "https://tf-example-1208515315.cos.ap-guangzhou.myqcloud.com/sqlserver_business_intelligence_file.txt" - file_type = "FLAT" - remark = "desc." -} -``` - -Import - -sqlserver business_intelligence_file can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_business_intelligence_file.example mssqlbi-fo2dwujt#test.xlsx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_business_intelligence_instance.go b/tencentcloud/resource_tc_sqlserver_business_intelligence_instance.go index 6a7bc4e162..e94af9a4e8 100644 --- a/tencentcloud/resource_tc_sqlserver_business_intelligence_instance.go +++ b/tencentcloud/resource_tc_sqlserver_business_intelligence_instance.go @@ -1,57 +1,3 @@ -/* -Provides a resource to create a sqlserver business_intelligence_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_business_intelligence_instance" "example" { - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "201603" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 4, 5, 6, 7] - start_time = "00:00" - span = 6 - instance_name = "tf_example" -} -``` - -Import - -sqlserver business_intelligence_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_business_intelligence_instance.example mssqlbi-fo2dwujt -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_complete_expansion.go b/tencentcloud/resource_tc_sqlserver_complete_expansion.go index 0389bae54c..73a2709b23 100644 --- a/tencentcloud/resource_tc_sqlserver_complete_expansion.go +++ b/tencentcloud/resource_tc_sqlserver_complete_expansion.go @@ -1,83 +1,3 @@ -/* -Provides a resource to create a sqlserver complete_expansion - -Example Usage - -First, Create a basic SQL instance - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "example-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "example-vpc" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "example-sg" - description = "desc." -} - -resource "tencentcloud_sqlserver_instance" "example" { - name = "tf_example_sql" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.security_group.id] - project_id = 0 - memory = 2 - storage = 20 - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "01:00" - maintenance_time_span = 3 - tags = { - "createBy" = "tfExample" - } -} -``` - -Expand the current instance, storage: 20->40, wait_switch = 1 - -```hcl -resource "tencentcloud_sqlserver_instance" "example" { - name = "tf_example_sql" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - security_groups = [tencentcloud_security_group.security_group.id] - project_id = 0 - memory = 2 - storage = 40 - wait_switch = 1 - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "01:00" - maintenance_time_span = 3 - tags = { - "createBy" = "tfExample" - } -} -``` - -Complete the expansion task immediately - -```hcl -resource "tencentcloud_sqlserver_complete_expansion" "example" { - instance_id = tencentcloud_sqlserver_instance.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_backup_strategy.go b/tencentcloud/resource_tc_sqlserver_config_backup_strategy.go index 0832ad8aad..e0e5a7d89f 100644 --- a/tencentcloud/resource_tc_sqlserver_config_backup_strategy.go +++ b/tencentcloud/resource_tc_sqlserver_config_backup_strategy.go @@ -1,111 +1,3 @@ -/* -Provides a resource to create a sqlserver config_backup_strategy - -Example Usage - -Daily backup - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_config_backup_strategy" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - backup_type = "daily" - backup_time = 0 - backup_day = 1 - backup_model = "master_no_pkg" - backup_cycle = [1] - backup_save_days = 7 - regular_backup_enable = "disable" - regular_backup_save_days = 90 - regular_backup_strategy = "months" - regular_backup_counts = 1 -} -``` - -Weekly backup - -```hcl -resource "tencentcloud_sqlserver_config_backup_strategy" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - backup_type = "weekly" - backup_time = 0 - backup_model = "master_no_pkg" - backup_cycle = [1, 3, 5] - backup_save_days = 7 - regular_backup_enable = "disable" - regular_backup_save_days = 90 - regular_backup_strategy = "months" - regular_backup_counts = 1 -} -``` - -Regular backup - -```hcl -resource "tencentcloud_sqlserver_config_backup_strategy" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - backup_time = 0 - backup_model = "master_no_pkg" - backup_cycle = [1, 3] - backup_save_days = 7 - regular_backup_enable = "enable" - regular_backup_save_days = 120 - regular_backup_strategy = "months" - regular_backup_counts = 1 - regular_backup_start_time = "%s" -} -``` - -Import - -sqlserver config_backup_strategy can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_backup_strategy.example mssql-si2823jyl -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_database_cdc.go b/tencentcloud/resource_tc_sqlserver_config_database_cdc.go index efc578961d..04f1a09fc5 100644 --- a/tencentcloud/resource_tc_sqlserver_config_database_cdc.go +++ b/tencentcloud/resource_tc_sqlserver_config_database_cdc.go @@ -1,86 +1,3 @@ -/* -Provides a resource to create a sqlserver config_database_cdc - -Example Usage - -Turn off database data change capture (CDC) - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_config_database_cdc" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - db_name = tencentcloud_sqlserver_db.example.name - modify_type = "disable" -} -``` - -Enable Database Data Change Capture (CDC) - -```hcl -resource "tencentcloud_sqlserver_config_database_cdc" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - db_name = tencentcloud_sqlserver_db.example.name - modify_type = "enable" -} -``` - -Import - -sqlserver config_database_cdc can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_database_cdc.example mssql-i9ma6oy7#tf_example_db -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_database_ct.go b/tencentcloud/resource_tc_sqlserver_config_database_ct.go index c2ceab23f9..9370cd1e15 100644 --- a/tencentcloud/resource_tc_sqlserver_config_database_ct.go +++ b/tencentcloud/resource_tc_sqlserver_config_database_ct.go @@ -1,75 +1,3 @@ -/* -Provides a resource to create a sqlserver config_database_ct - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_config_database_ct" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - db_name = tencentcloud_sqlserver_db.example.name - modify_type = "disable" - change_retention_day = 7 -} -``` - -Import - -sqlserver tencentcloud_sqlserver_config_database_ct can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_database_ct.example mssql-i9ma6oy7#tf_example_db -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_database_mdf.go b/tencentcloud/resource_tc_sqlserver_config_database_mdf.go index 96cc0e89ab..d2926bb6be 100644 --- a/tencentcloud/resource_tc_sqlserver_config_database_mdf.go +++ b/tencentcloud/resource_tc_sqlserver_config_database_mdf.go @@ -1,73 +1,3 @@ -/* -Provides a resource to create a sqlserver config_database_mdf - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_config_database_mdf" "example" { - db_name = tencentcloud_sqlserver_db.example.name - instance_id = tencentcloud_sqlserver_basic_instance.example.id -} -``` - -Import - -sqlserver config_database_mdf can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_database_mdf.example mssql-i9ma6oy7#tf_example_db -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_instance_param.go b/tencentcloud/resource_tc_sqlserver_config_instance_param.go index addc3416be..6c64260b60 100644 --- a/tencentcloud/resource_tc_sqlserver_config_instance_param.go +++ b/tencentcloud/resource_tc_sqlserver_config_instance_param.go @@ -1,69 +1,3 @@ -/* -Provides a resource to create a sqlserver config_instance_param - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_config_instance_param" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - param_list { - name = "fill factor(%)" - current_value = "90" - } -} -``` - -Import - -sqlserver config_instance_param can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_instance_param.example config_instance_param -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_instance_ro_group.go b/tencentcloud/resource_tc_sqlserver_config_instance_ro_group.go index 1f66329df7..d29cb46d70 100644 --- a/tencentcloud/resource_tc_sqlserver_config_instance_ro_group.go +++ b/tencentcloud/resource_tc_sqlserver_config_instance_ro_group.go @@ -1,87 +1,3 @@ -/* -Provides a resource to create a sqlserver config_instance_ro_group - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_readonly_instance" "example" { - name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - memory = 4 - storage = 20 - master_instance_id = tencentcloud_sqlserver_basic_instance.example.id - readonly_group_type = 2 - read_only_group_name = "tf_example_ro" - is_offline_delay = 1 - read_only_max_delay_time = 10 - min_read_only_in_group = 0 - force_upgrade = true -} - -resource "tencentcloud_sqlserver_config_instance_ro_group" "example" { - instance_id = tencentcloud_sqlserver_readonly_instance.example.master_instance_id - read_only_group_id = tencentcloud_sqlserver_readonly_instance.example.readonly_group_id - read_only_group_name = "tf_example_ro_update" - is_offline_delay = 1 - read_only_max_delay_time = 5 - min_read_only_in_group = 1 -} -``` - -Import - -sqlserver config_instance_ro_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_instance_ro_group.example mssql-ds1xhnt9#mssqlro-o6dv2ugx#0#0 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_config_terminate_db_instance.go b/tencentcloud/resource_tc_sqlserver_config_terminate_db_instance.go index 9e924945dc..1e4976eb05 100644 --- a/tencentcloud/resource_tc_sqlserver_config_terminate_db_instance.go +++ b/tencentcloud/resource_tc_sqlserver_config_terminate_db_instance.go @@ -1,65 +1,3 @@ -/* -Provides a resource to create a sqlserver config_terminate_db_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_config_terminate_db_instance" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id -} -``` - -Import - -sqlserver config_terminate_db_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_config_terminate_db_instance.example mssql-i9ma6oy7 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_database_tde.go b/tencentcloud/resource_tc_sqlserver_database_tde.go index ef4cf9eedf..ca8d207234 100644 --- a/tencentcloud/resource_tc_sqlserver_database_tde.go +++ b/tencentcloud/resource_tc_sqlserver_database_tde.go @@ -1,86 +1,3 @@ -/* -Provides a resource to create a sqlserver database_tde - -Example Usage - -Open database tde encryption - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_database_tde" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - db_names = [tencentcloud_sqlserver_db.example.name] - encryption = "enable" -} -``` - -Close database tde encryption - -```hcl -resource "tencentcloud_sqlserver_database_tde" "example" { - instance_id = tencentcloud_sqlserver_instance.example.id - db_names = [tencentcloud_sqlserver_db.example.name] - encryption = "disable" -} -``` - -Import - -sqlserver database_tde can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_database_tde.example mssql-farjz9tz#tf_example_db -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_db.go b/tencentcloud/resource_tc_sqlserver_db.go index 4cd99b1afc..650a43735a 100644 --- a/tencentcloud/resource_tc_sqlserver_db.go +++ b/tencentcloud/resource_tc_sqlserver_db.go @@ -1,68 +1,3 @@ -/* -Provides a SQL Server DB resource belongs to SQL Server instance. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} -``` - -Import - -SQL Server DB can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_db.example mssql-3cdq7kx5#tf_example_db -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_full_backup_migration.go b/tencentcloud/resource_tc_sqlserver_full_backup_migration.go index 5a268b2f95..f9a671d891 100644 --- a/tencentcloud/resource_tc_sqlserver_full_backup_migration.go +++ b/tencentcloud/resource_tc_sqlserver_full_backup_migration.go @@ -1,89 +1,3 @@ -/* -Provides a resource to create a sqlserver full_backup_migration - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -data "tencentcloud_sqlserver_backups" "example" { - instance_id = tencentcloud_sqlserver_db.example.instance_id - backup_name = tencentcloud_sqlserver_general_backup.example.backup_name - start_time = "2023-07-25 00:00:00" - end_time = "2023-08-04 00:00:00" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_general_backup" "example" { - instance_id = tencentcloud_sqlserver_db.example.instance_id - backup_name = "tf_example_backup" - strategy = 0 -} - -resource "tencentcloud_sqlserver_full_backup_migration" "example" { - instance_id = tencentcloud_sqlserver_general_backup.example.instance_id - recovery_type = "FULL" - upload_type = "COS_URL" - migration_name = "migration_test" - backup_files = [data.tencentcloud_sqlserver_backups.example.list.0.internet_url] -} -``` - -Import - -sqlserver full_backup_migration can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_full_backup_migration.example mssql-si2823jyl#mssql-backup-migration-cg0ffgqt -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_general_backup.go b/tencentcloud/resource_tc_sqlserver_general_backup.go index 1a6904e4d2..a0a920eac8 100644 --- a/tencentcloud/resource_tc_sqlserver_general_backup.go +++ b/tencentcloud/resource_tc_sqlserver_general_backup.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a sqlserver general_backup - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_general_backup" "example" { - instance_id = tencentcloud_sqlserver_db.example.instance_id - backup_name = "tf_example_backup" - strategy = 0 -} -``` - -Import - -sqlserver general_backups can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_general_backups.example mssql-qelbzgwf#3512621#5293#2020-07-31 14:28:51#2020-07-31 15:10:27#autoed_instance_58037_20200728011545.bak.tar -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_general_clone.go b/tencentcloud/resource_tc_sqlserver_general_clone.go index aaba4257f0..c4f5f7bfc7 100644 --- a/tencentcloud/resource_tc_sqlserver_general_clone.go +++ b/tencentcloud/resource_tc_sqlserver_general_clone.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a sqlserver general_communication - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - name = "tf_example_db" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_general_clone" "example" { - instance_id = tencentcloud_sqlserver_db.example.instance_id - old_name = tencentcloud_sqlserver_db.example.name - new_name = "tf_example_db_clone" -} -``` - -Import - -sqlserver general_communication can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_general_clone.example mssql-si2823jyl#tf_example_db#tf_example_db_clone -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_general_cloud_instance.go b/tencentcloud/resource_tc_sqlserver_general_cloud_instance.go index ba3c28fe47..732e4e8549 100644 --- a/tencentcloud/resource_tc_sqlserver_general_cloud_instance.go +++ b/tencentcloud/resource_tc_sqlserver_general_cloud_instance.go @@ -1,64 +1,3 @@ -/* -Provides a resource to create a sqlserver general_cloud_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_general_cloud_instance" "example" { - name = "tf_example" - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_HSSD" - instance_charge_type = "POSTPAID" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "2008R2" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 5, 6, 7] - start_time = "00:00" - span = 6 - resource_tags { - tag_key = "test" - tag_value = "test" - } - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" -} -``` - -Import - -sqlserver general_cloud_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_general_cloud_instance.example mssql-i9ma6oy7 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_general_cloud_ro_instance.go b/tencentcloud/resource_tc_sqlserver_general_cloud_ro_instance.go index 2edae4303f..379b9fd5f9 100644 --- a/tencentcloud/resource_tc_sqlserver_general_cloud_ro_instance.go +++ b/tencentcloud/resource_tc_sqlserver_general_cloud_ro_instance.go @@ -1,131 +1,3 @@ -/* -Provides a resource to create a sqlserver general_cloud_ro_instance - -Example Usage - -If read_only_group_type value is 1 - Ship according to one instance and one read-only group: - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_general_cloud_instance" "example" { - name = "tf_example" - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_HSSD" - instance_charge_type = "POSTPAID" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "2008R2" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 5, 6, 7] - start_time = "00:00" - span = 6 - resource_tags { - tag_key = "test" - tag_value = "test" - } - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" -} - -resource "tencentcloud_sqlserver_general_cloud_ro_instance" "example" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example.id - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - read_only_group_type = 1 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_BSSD" - instance_charge_type = "POSTPAID" - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - security_group_list = [tencentcloud_security_group.security_group.id] - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" - resource_tags = { - test-key1 = "test-value1" - test-key2 = "test-value2" - } -} -``` - -If read_only_group_type value is 2 - Ship after creating a read-only group, all instances are under this read-only group: - -```hcl -resource "tencentcloud_sqlserver_general_cloud_ro_instance" "example" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example.id - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - read_only_group_type = 2 - read_only_group_name = "test-ro-group" - read_only_group_is_offline_delay = 1 - read_only_group_max_delay_time = 10 - read_only_group_min_in_group = 1 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_BSSD" - instance_charge_type = "POSTPAID" - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - security_group_list = [tencentcloud_security_group.security_group.id] - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" - resource_tags = { - test-key1 = "test-value1" - test-key2 = "test-value2" - } -} -``` - -If read_only_group_type value is 3 - All instances shipped are in the existing Some read-only groups below: - -```hcl -resource "tencentcloud_sqlserver_general_cloud_ro_instance" "example" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example.id - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - read_only_group_type = 3 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_BSSD" - read_only_group_id = "mssqlrg-clboghrj" - instance_charge_type = "POSTPAID" - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - security_group_list = [tencentcloud_security_group.security_group.id] - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" - resource_tags = { - test-key1 = "test-value1" - test-key2 = "test-value2" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_general_communication.go b/tencentcloud/resource_tc_sqlserver_general_communication.go index d7bb103a26..b8fcaf6b6c 100644 --- a/tencentcloud/resource_tc_sqlserver_general_communication.go +++ b/tencentcloud/resource_tc_sqlserver_general_communication.go @@ -1,65 +1,3 @@ -/* -Provides a resource to create a sqlserver general_communication - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_general_communication" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id -} -``` - -Import - -sqlserver general_communication can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_general_communication.example mssql-hlh6yka1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_incre_backup_migration.go b/tencentcloud/resource_tc_sqlserver_incre_backup_migration.go index 8ccf745ce2..5ccd7dcb44 100644 --- a/tencentcloud/resource_tc_sqlserver_incre_backup_migration.go +++ b/tencentcloud/resource_tc_sqlserver_incre_backup_migration.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a sqlserver incre_backup_migration - -Example Usage - -```hcl -resource "tencentcloud_sqlserver_incre_backup_migration" "example" { - instance_id = "mssql-4gmc5805" - backup_migration_id = "mssql-backup-migration-9tj0sxnz" - backup_files = [] - is_recovery = "YES" -} -``` - -Import - -sqlserver incre_backup_migration can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_incre_backup_migration.incre_backup_migration incre_backup_migration_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_instance.go b/tencentcloud/resource_tc_sqlserver_instance.go index c6b0c9409e..2678a68d4c 100644 --- a/tencentcloud/resource_tc_sqlserver_instance.go +++ b/tencentcloud/resource_tc_sqlserver_instance.go @@ -1,46 +1,3 @@ -/* -Use this resource to create SQL Server instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_sqlserver_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 16 - storage = 100 -} -``` - -Import - -SQL Server instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_instance.example mssql-3cdq7kx5 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_instance_tde.go b/tencentcloud/resource_tc_sqlserver_instance_tde.go index 0e0925401f..69fb292515 100644 --- a/tencentcloud/resource_tc_sqlserver_instance_tde.go +++ b/tencentcloud/resource_tc_sqlserver_instance_tde.go @@ -1,66 +1,3 @@ -/* -Provides a resource to create a sqlserver instance_tde - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_instance_tde" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - certificate_attribution = "self" -} -``` - -Import - -sqlserver instance_tde can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_instance_tde.example mssql-farjz9tz -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_migration.go b/tencentcloud/resource_tc_sqlserver_migration.go index 74c4edb40a..e8c207ca5c 100644 --- a/tencentcloud/resource_tc_sqlserver_migration.go +++ b/tencentcloud/resource_tc_sqlserver_migration.go @@ -1,144 +1,3 @@ -/* -Provides a resource to create a sqlserver migration - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "src_example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_basic_instance" "dst_example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_db" "src" { - instance_id = tencentcloud_sqlserver_basic_instance.src_example.id - name = "tf_example_db_src" - charset = "Chinese_PRC_BIN" - remark = "testACC-remark" -} - -resource "tencentcloud_sqlserver_db" "dst" { - instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id - name = "tf_example_db_dst" - charset = "Chinese_PRC_BIN" - remark = "testACC-remark" -} - -resource "tencentcloud_sqlserver_account" "src" { - instance_id = tencentcloud_sqlserver_basic_instance.src_example.id - name = "tf_example_src_account" - password = "Qwer@234" - is_admin = true -} - -resource "tencentcloud_sqlserver_account" "dst" { - instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id - name = "tf_example_dst_account" - password = "Qwer@234" - is_admin = true -} - -resource "tencentcloud_sqlserver_account_db_attachment" "src" { - instance_id = tencentcloud_sqlserver_basic_instance.src_example.id - account_name = tencentcloud_sqlserver_account.src.name - db_name = tencentcloud_sqlserver_db.src.name - privilege = "ReadWrite" -} - -resource "tencentcloud_sqlserver_account_db_attachment" "dst" { - instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id - account_name = tencentcloud_sqlserver_account.dst.name - db_name = tencentcloud_sqlserver_db.dst.name - privilege = "ReadWrite" -} - -resource "tencentcloud_sqlserver_migration" "migration" { - migrate_name = "tf_test_migration" - migrate_type = 1 - source_type = 1 - source { - instance_id = tencentcloud_sqlserver_basic_instance.src_example.id - user_name = tencentcloud_sqlserver_account.src.name - password = tencentcloud_sqlserver_account.src.password - } - target { - instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id - user_name = tencentcloud_sqlserver_account.dst.name - password = tencentcloud_sqlserver_account.dst.password - } - - migrate_db_set { - db_name = tencentcloud_sqlserver_db.src.name - } -} -``` - -Import - -sqlserver migration can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_migration.migration migration_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_publish_subscribe.go b/tencentcloud/resource_tc_sqlserver_publish_subscribe.go index b7b2051e25..fd86e89b8f 100644 --- a/tencentcloud/resource_tc_sqlserver_publish_subscribe.go +++ b/tencentcloud/resource_tc_sqlserver_publish_subscribe.go @@ -1,113 +1,3 @@ -/* -Provides a SQL Server PublishSubscribe resource belongs to SQL Server instance. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_general_cloud_instance" "example_pub" { - name = "tf-example-pub" - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_HSSD" - instance_charge_type = "POSTPAID" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "2008R2" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 5, 6, 7] - start_time = "00:00" - span = 6 - resource_tags { - tag_key = "test" - tag_value = "test" - } - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" -} - -resource "tencentcloud_sqlserver_general_cloud_instance" "example_sub" { - name = "tf-example-sub" - zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_HSSD" - instance_charge_type = "POSTPAID" - project_id = 0 - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - db_version = "2008R2" - security_group_list = [tencentcloud_security_group.security_group.id] - weekly = [1, 2, 3, 5, 6, 7] - start_time = "00:00" - span = 6 - resource_tags { - tag_key = "test" - tag_value = "test" - } - collation = "Chinese_PRC_CI_AS" - time_zone = "China Standard Time" -} - -resource "tencentcloud_sqlserver_db" "example_pub" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id - name = "tf_example_db_pub" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_db" "example_sub" { - instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id - name = "tf_example_db_sub" - charset = "Chinese_PRC_BIN" - remark = "test-remark" -} - -resource "tencentcloud_sqlserver_publish_subscribe" "example" { - publish_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id - subscribe_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id - publish_subscribe_name = "example" - delete_subscribe_db = false - database_tuples { - publish_database = tencentcloud_sqlserver_db.example_pub.name - subscribe_database = tencentcloud_sqlserver_db.example_sub.name - } -} -``` - -Import - -SQL Server PublishSubscribe can be imported using the publish_sqlserver_id#subscribe_sqlserver_id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_publish_subscribe.example publish_sqlserver_id#subscribe_sqlserver_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_readonly_instance.go b/tencentcloud/resource_tc_sqlserver_readonly_instance.go index 33bb38b1c2..08b4265d2e 100644 --- a/tencentcloud/resource_tc_sqlserver_readonly_instance.go +++ b/tencentcloud/resource_tc_sqlserver_readonly_instance.go @@ -1,77 +1,3 @@ -/* -Provides a SQL Server instance resource to create read-only database instances. - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_readonly_instance" "example" { - name = "tf_example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - memory = 4 - storage = 20 - master_instance_id = tencentcloud_sqlserver_basic_instance.example.id - readonly_group_type = 1 - force_upgrade = true - tags = { - "test" = "test" - } -} -``` - -Import - -SQL Server readonly instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_sqlserver_readonly_instance.example mssqlro-3cdq7kx5 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_renew_db_instance.go b/tencentcloud/resource_tc_sqlserver_renew_db_instance.go index 8a1937d588..56fae6a75c 100644 --- a/tencentcloud/resource_tc_sqlserver_renew_db_instance.go +++ b/tencentcloud/resource_tc_sqlserver_renew_db_instance.go @@ -1,66 +1,3 @@ -/* -Provides a resource to create a sqlserver renew_db_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "PREPAID" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_renew_db_instance" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - period = 1 -} -``` - -Import - -sqlserver renew_db_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_renew_db_instance.example mssql-i9ma6oy7#1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_renew_postpaid_db_instance.go b/tencentcloud/resource_tc_sqlserver_renew_postpaid_db_instance.go index 296d1bc3cd..2a253118d3 100644 --- a/tencentcloud/resource_tc_sqlserver_renew_postpaid_db_instance.go +++ b/tencentcloud/resource_tc_sqlserver_renew_postpaid_db_instance.go @@ -1,69 +1,3 @@ -/* -Provides a resource to create a sqlserver renew_postpaid_db_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_config_terminate_db_instance" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id -} - -resource "tencentcloud_sqlserver_renew_postpaid_db_instance" "example" { - instance_id = tencentcloud_sqlserver_config_terminate_db_instance.example.id -} -``` - -Import - -sqlserver renew_postpaid_db_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_renew_postpaid_db_instance.example mssql-i9ma6oy7 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_restart_db_instance.go b/tencentcloud/resource_tc_sqlserver_restart_db_instance.go index ecebfdfcb3..c0e740bdf7 100644 --- a/tencentcloud/resource_tc_sqlserver_restart_db_instance.go +++ b/tencentcloud/resource_tc_sqlserver_restart_db_instance.go @@ -1,65 +1,3 @@ -/* -Provides a resource to create a sqlserver restart_db_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_restart_db_instance" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id -} -``` - -Import - -sqlserver restart_db_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_restart_db_instance.example mssql-i9ma6oy7 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_restore_instance.go b/tencentcloud/resource_tc_sqlserver_restore_instance.go index 37b1c899f6..93454d7c4b 100644 --- a/tencentcloud/resource_tc_sqlserver_restore_instance.go +++ b/tencentcloud/resource_tc_sqlserver_restore_instance.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a sqlserver restore_instance - -Example Usage - -```hcl -resource "tencentcloud_sqlserver_restore_instance" "restore_instance" { - instance_id = "mssql-qelbzgwf" - backup_id = 3482091273 - rename_restore { - old_name = "keep_pubsub_db2" - new_name = "restore_keep_pubsub_db2" - } -} -``` - -Import - -sqlserver restore_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_restore_instance.restore_instance mssql-qelbzgwf#3482091273#keep_pubsub_db2#restore_keep_pubsub_db2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_rollback_instance.go b/tencentcloud/resource_tc_sqlserver_rollback_instance.go index 4167f6ead9..68b27a13b4 100644 --- a/tencentcloud/resource_tc_sqlserver_rollback_instance.go +++ b/tencentcloud/resource_tc_sqlserver_rollback_instance.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a sqlserver rollback_instance - -Example Usage - -```hcl -resource "tencentcloud_sqlserver_rollback_instance" "rollback_instance" { - instance_id = "mssql-qelbzgwf" - time = "2023-05-23 01:00:00" - rename_restore { - old_name = "keep_pubsub_db2" - new_name = "rollback_pubsub_db3" - } -} -``` - -Import - -sqlserver rollback_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_sqlserver_rollback_instance.rollback_instance mssql-qelbzgwf#2023-05-23 01:00:00#keep_pubsub_db2#rollback_pubsub_db3 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_start_backup_full_migration.go b/tencentcloud/resource_tc_sqlserver_start_backup_full_migration.go index 7d3c636d9e..126c541147 100644 --- a/tencentcloud/resource_tc_sqlserver_start_backup_full_migration.go +++ b/tencentcloud/resource_tc_sqlserver_start_backup_full_migration.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a sqlserver start_backup_full_migration - -Example Usage - -```hcl -resource "tencentcloud_sqlserver_start_backup_full_migration" "start_backup_full_migration" { - instance_id = "mssql-i1z41iwd" - backup_migration_id = "mssql-backup-migration-kpl74n9l" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_start_backup_incremental_migration.go b/tencentcloud/resource_tc_sqlserver_start_backup_incremental_migration.go index c27163a6ae..c5b9ddf0c0 100644 --- a/tencentcloud/resource_tc_sqlserver_start_backup_incremental_migration.go +++ b/tencentcloud/resource_tc_sqlserver_start_backup_incremental_migration.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a sqlserver start_backup_incremental_migration - -Example Usage - -```hcl -resource "tencentcloud_sqlserver_start_backup_incremental_migration" "start_backup_incremental_migration" { - instance_id = "mssql-i1z41iwd" - backup_migration_id = "mssql-backup-migration-cg0ffgqt" - incremental_migration_id = "mssql-incremental-migration-kp7bgv8p" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_sqlserver_start_xevent.go b/tencentcloud/resource_tc_sqlserver_start_xevent.go index 11d8ec651f..d7b1412032 100644 --- a/tencentcloud/resource_tc_sqlserver_start_xevent.go +++ b/tencentcloud/resource_tc_sqlserver_start_xevent.go @@ -1,61 +1,3 @@ -/* -Provides a resource to create a sqlserver start_xevent - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "sqlserver" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_sqlserver_basic_instance" "example" { - name = "tf-example" - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name - charge_type = "POSTPAID_BY_HOUR" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - project_id = 0 - memory = 4 - storage = 100 - cpu = 2 - machine_type = "CLOUD_PREMIUM" - maintenance_week_set = [1, 2, 3] - maintenance_start_time = "09:00" - maintenance_time_span = 3 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - "test" = "test" - } -} - -resource "tencentcloud_sqlserver_start_xevent" "example" { - instance_id = tencentcloud_sqlserver_basic_instance.example.id - event_config { - event_type = "slow" - threshold = 0 - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_certificate.go b/tencentcloud/resource_tc_ssl_certificate.go index 66ca228144..a394efeaa9 100644 --- a/tencentcloud/resource_tc_ssl_certificate.go +++ b/tencentcloud/resource_tc_ssl_certificate.go @@ -1,59 +1,3 @@ -/* -Provides a resource to create a SSL certificate. - -Upload the existing SSL certificate to Tencent Cloud. - -Example Usage - -If SSL certificate type is `CA` - -```hcl -variable "ca" { - default = "-----BEGIN CERTIFICATE-----\nMIIEDjCCAnagAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMQ0wCwYDVQQDEwR0ZXN0\nMRcwFQYDVQQKEw50ZXJyYWZvcm0gdGVzdDAeFw0xOTA4MTMwMzA4MjBaFw0yOTA4\nMTAwMzA4MjBaMCgxDTALBgNVBAMTBHRlc3QxFzAVBgNVBAoTDnRlcnJhZm9ybSB0\nZXN0MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA0k2vqg/GHtFP5P7r\ndbzswfx1jSHeK9r4StV4mGOAoKyzvAJA5BvYbAHpSrL2ZAd6ShjHgRVU1qEroeFn\n8fwTrAVQttMltBFABx7G4iN4Zf6EUXzhhFN6vVVbWaqhYhrdMoPvZxgGSA/4hG4W\nGIr8MXZzXbKLoRoz4Bvq1Ymg5eO14KLJFSTahvIkG60egGN5pmi4czxWy2U7ycA5\nQ5TuQBnF0rKQJW5XKIV3kr5YrzDdJK7up9E6Od4T5jz+qY97KAjIpWD/pTAsc7+6\nfPBpY7NHT9Bw0fDmvsWO/PtswY4hW02n86b5eWA9sfKJGphhsBxgpuuhmxYHS6pA\nB+C7IkyxcADNT5u9tEo2JGOj+/veXKrEhZin7inKsQLD0WOobcg1Rh/3NSWD7geF\nTJBRnzgplaN7cK6c/utEAAnngS38q4DGBR/jHmkWjAeQPZj1eLLBk686HEEbKeU+\n9yAVcPRhA9tuL7wMeSX32VunWZunoA/f8iuGZYJlZsNBqyJbAgMBAAGjQzBBMA8G\nA1UdEwEB/wQFMAMBAf8wDwYDVR0PAQH/BAUDAweGADAdBgNVHQ4EFgQUKwfrmq79\n1mY831S6UHARHtgYnlgwDQYJKoZIhvcNAQELBQADggGBAInM+aeaHoZdw9B9nAH2\nHscEoOulF+RxnysSXTTRLd2VQph4+ynlfRZT4evLBBj/ppmqjp8F7/OcRiiZwSXl\nnamyP/UUINtHfgDM0kll/5Za0aYzMhrORNw+3ythIv2yPJX8t4LmsG1L4PMO8ZU8\nN0K9XyKRaL/tq6rw1gQM152OmNgTzfAQoKYxrvbftOZz4J0ZACctuBmwtp5upKvJ\n36aQ4wJLUzOt69mnW+AaL5EPA37mwtzdnzTTxd3SBfOYXjsflc3l2raljJznnqU2\nySynjb6L3D3L/pObL1Uu7nQBy8CazJBsBsVFK/pr61vcllm8lG7vOhHOUSFUeezq\nFWukAolm9/cagmD6IhNishM3Uzng+UYyCC8uQq3Z7FGqJpXSI79wZYjudnCLPVCg\nOIfJHQeJFLryn6GxiSYmYs6dgUJiiTV+I/2Y5X7ZFdb5FC1J/WmvoCv6yO7NiirY\nBSgfV0lp5CuV8SfiSClpYfrM28NbNgxveUqET642BJOPLQ==\n-----END CERTIFICATE-----" -} - -data "tencentcloud_ssl_certificates" "ca" { - name = tencentcloud_ssl_certificate.ca.name -} - -resource "tencentcloud_ssl_certificate" "ca" { - name = "ssl-ca" - type = "CA" - cert = var.ca -} -``` - -If SSL certificate type is `SVR` - -```hcl -variable "cert" { - default = "-----BEGIN CERTIFICATE-----\nMIIERzCCAq+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADAoMQ0wCwYDVQQDEwR0ZXN0\nMRcwFQYDVQQKEw50ZXJyYWZvcm0gdGVzdDAeFw0xOTA4MTMwMzE5MzlaFw0yOTA4\nMTAwMzE5MzlaMC4xEzARBgNVBAMTCnNlcnZlciBzc2wxFzAVBgNVBAoTDnRlcnJh\nZm9ybS10ZXN0MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA1Ryp+DKK\nSNFKZsPtwfR+jzOnQ8YFieIKYgakV688d8YgpolenbmeEPrzT87tunFD7G9f6ALG\nND8rj7npj0AowxhOL/h/v1D9u0UsIaj5i2GWJrqNAhGLaxWiEB/hy5WOiwxDrGei\ngQqJkFM52Ep7G1Yx7PHJmKFGwN9FhIsFi1cNZfVRopZuCe/RMPNusNVZaIi+qcEf\nfsE1cmfmuSlG3Ap0RKOIyR0ajDEzqZn9/0R7VwWCF97qy8TNYk94K/1tq3zyhVzR\nZ83xOSfrTqEfb3so3AU2jyKgYdwr/FZS72VCHS8IslgnqJW4izIXZqgIKmHaRZtM\nN4jUloi6l/6lktt6Lsgh9xECecxziSJtPMaog88aC8HnMqJJ3kScGCL36GYG+Kaw\n5PnDlWXBaeiDe8z/eWK9+Rr2M+rhTNxosAVGfDJyxAXyiX49LQ0v7f9qzwc/0JiD\nbvsUv1cm6OgpoEMP9SXqqBdwGqeKbD2/2jlP48xlYP6l1SoJG3GgZ8dbAgMBAAGj\ndjB0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0PAQH/\nBAUDAweAADAdBgNVHQ4EFgQULwWKBQNLL9s3cb3tTnyPVg+mpCMwHwYDVR0jBBgw\nFoAUKwfrmq791mY831S6UHARHtgYnlgwDQYJKoZIhvcNAQELBQADggGBAMo5RglS\nAHdPgaicWJvmvjjexjF/42b7Rz4pPfMjYw6uYO8He/f4UZWv5CZLrbEe7MywaK3y\n0OsfH8AhyN29pv2x8g9wbmq7omZIOZ0oCAGduEXs/A/qY/hFaCohdkz/IN8qi6JW\nVXreGli3SrpcHFchSwHTyJEXgkutcGAsOvdsOuVSmplOyrkLHc8uUe8SG4j8kGyg\nEzaszFjHkR7g1dVyDVUedc588mjkQxYeAamJgfkgIhljWKMa2XzkVMcVfQHfNpM1\nn+bu8SmqRt9Wma2bMijKRG/Blm756LoI+skY+WRZmlDnq8zj95TT0vceGP0FUWh5\nhKyiocABmpQs9OK9HMi8vgSWISP+fYgkm/bKtKup2NbZBoO5/VL2vCEPInYzUhBO\njCbLMjNjtM5KriCaR7wDARgHiG0gBEPOEW1PIjZ9UOH+LtIxbNZ4eEIIINLHnBHf\nL+doVeZtS/gJc4G4Adr5HYuaS9ZxJ0W2uy0eQlOHzjyxR6Mf/rpnilJlcQ==\n-----END CERTIFICATE-----" -} - -variable "key" { - default = "Public Key Info:\n Public Key Algorithm: RSA\n Key Security Level: High (3072 bits)\n\nmodulus:\n 00:d5:1c:a9:f8:32:8a:48:d1:4a:66:c3:ed:c1:f4:7e\n 8f:33:a7:43:c6:05:89:e2:0a:62:06:a4:57:af:3c:77\n c6:20:a6:89:5e:9d:b9:9e:10:fa:f3:4f:ce:ed:ba:71\n 43:ec:6f:5f:e8:02:c6:34:3f:2b:8f:b9:e9:8f:40:28\n c3:18:4e:2f:f8:7f:bf:50:fd:bb:45:2c:21:a8:f9:8b\n 61:96:26:ba:8d:02:11:8b:6b:15:a2:10:1f:e1:cb:95\n 8e:8b:0c:43:ac:67:a2:81:0a:89:90:53:39:d8:4a:7b\n 1b:56:31:ec:f1:c9:98:a1:46:c0:df:45:84:8b:05:8b\n 57:0d:65:f5:51:a2:96:6e:09:ef:d1:30:f3:6e:b0:d5\n 59:68:88:be:a9:c1:1f:7e:c1:35:72:67:e6:b9:29:46\n dc:0a:74:44:a3:88:c9:1d:1a:8c:31:33:a9:99:fd:ff\n 44:7b:57:05:82:17:de:ea:cb:c4:cd:62:4f:78:2b:fd\n 6d:ab:7c:f2:85:5c:d1:67:cd:f1:39:27:eb:4e:a1:1f\n 6f:7b:28:dc:05:36:8f:22:a0:61:dc:2b:fc:56:52:ef\n 65:42:1d:2f:08:b2:58:27:a8:95:b8:8b:32:17:66:a8\n 08:2a:61:da:45:9b:4c:37:88:d4:96:88:ba:97:fe:a5\n 92:db:7a:2e:c8:21:f7:11:02:79:cc:73:89:22:6d:3c\n c6:a8:83:cf:1a:0b:c1:e7:32:a2:49:de:44:9c:18:22\n f7:e8:66:06:f8:a6:b0:e4:f9:c3:95:65:c1:69:e8:83\n 7b:cc:ff:79:62:bd:f9:1a:f6:33:ea:e1:4c:dc:68:b0\n 05:46:7c:32:72:c4:05:f2:89:7e:3d:2d:0d:2f:ed:ff\n 6a:cf:07:3f:d0:98:83:6e:fb:14:bf:57:26:e8:e8:29\n a0:43:0f:f5:25:ea:a8:17:70:1a:a7:8a:6c:3d:bf:da\n 39:4f:e3:cc:65:60:fe:a5:d5:2a:09:1b:71:a0:67:c7\n 5b:\n\npublic exponent:\n 01:00:01:\n\nprivate exponent:\n 00:b1:56:d0:fa:00:d4:a2:13:c7:5e:0c:dc:e4:f1:97\n ff:82:74:46:29:9a:a2:4a:bf:69:23:2d:ce:e9:bb:df\n cf:b7:8b:dd:f4:26:3c:38:14:d9:3f:6f:c2:3a:81:53\n 8f:ba:48:53:fe:b5:90:4a:19:e7:1e:0b:0f:18:6d:c3\n 7d:d5:d3:fa:87:47:86:e4:d6:bf:e7:a7:f9:ba:ab:2e\n 19:5e:e1:8b:8b:9b:95:0d:f7:66:61:1e:19:e9:c3:88\n 08:be:1c:ce:93:c1:09:b1:68:1b:61:46:60:74:64:46\n 5d:51:34:ea:7f:a9:ca:a1:2a:47:85:84:4b:ef:84:05\n 97:c3:46:7d:06:19:ce:24:73:90:64:fb:df:16:d5:80\n 34:8e:90:7c:58:b6:a4:86:ce:30:b3:ab:52:8b:f2:95\n 4c:b6:46:5a:77:db:73:c0:0c:3f:6d:12:18:a8:54:7c\n ff:77:c3:ca:89:9f:63:98:ef:48:2d:c1:09:70:6e:ea\n cb:bb:78:91:42:8a:22:3e:21:ef:a5:bf:16:ee:66:45\n e5:f0:26:6a:85:8e:e1:69:62:ac:05:00:a6:44:ba:c8\n ac:10:00:97:f5:51:65:7f:9a:1f:7b:99:9d:02:d4:87\n 50:ce:74:06:51:67:fa:fb:90:e4:33:79:f2:a8:61:ee\n 45:1d:87:ca:22:5b:ac:e7:32:38:f8:2c:fd:55:92:1e\n 3d:60:1e:7c:4b:fd:28:ff:e5:b1:02:6a:aa:22:f7:ae\n a8:36:90:7b:a6:f7:29:05:14:3a:21:da:36:05:f9:b0\n 9d:f7:fb:10:75:d7:2c:21:32:95:e7:f7:17:be:09:cb\n 66:fe:f1:69:71:df:a4:5e:3f:fc:67:6c:37:65:b8:51\n c6:22:38:fb:07:ce:89:54:50:43:71:44:3d:c3:51:5a\n bd:e5:c7:87:b2:ea:7b:64:0f:5d:34:9c:a1:52:b3:ce\n 06:86:ba:7a:05:80:48:b3:6c:1b:79:74:9b:49:f2:30\n c1:\n\nprime1:\n 00:e4:31:46:59:3d:24:f7:31:d9:22:26:af:c0:3e:f5\n c1:6d:be:ba:d3:9e:3f:b9:2c:43:a0:d0:47:09:e4:35\n 63:19:a4:33:82:af:f9:76:3c:11:c2:cb:34:f9:a6:ab\n dd:ab:64:5a:6b:9c:c1:2a:52:89:64:7e:b5:a7:f0:4d\n 29:13:a4:cf:17:f4:f2:0d:a0:6e:b9:5d:95:41:10:df\n ae:f3:7a:13:49:21:66:73:2a:b7:e2:8d:7c:c2:34:e5\n 3f:bd:78:ca:fc:64:c5:1c:3a:66:7a:12:53:96:bd:b0\n c3:7a:0c:ec:5e:55:c0:c3:3f:7f:25:72:f4:e2:19:94\n 9d:65:15:be:c8:82:20:57:12:97:b2:a8:4d:3d:e0:8f\n e2:1f:d0:c8:49:aa:f4:34:fa:91:d1:d1:cc:98:bc:3d\n 8b:b1:9b:8f:fd:ef:03:dd:92:fb:ca:99:45:af:cc:83\n 58:4c:bb:ba:73:9e:23:84:f9:7e:4f:40:fe:00:b5:bf\n 6f:\n\nprime2:\n 00:ef:14:ef:73:fc:0c:fc:e3:87:d9:7f:a6:f8:55:86\n 57:63:8a:86:87:f5:ef:63:20:1f:b2:ae:28:dc:ab:59\n 80:8f:15:64:44:e2:bc:a5:7b:d7:69:ef:30:b1:83:b3\n bd:09:fd:4a:0c:c6:31:5b:a4:79:d0:e5:d3:a8:31:fd\n 59:ea:52:63:cf:17:a7:c1:54:bf:a8:11:9b:b1:85:47\n 5a:08:a6:9c:2f:47:9d:ac:5d:e8:7c:e4:31:6c:99:71\n 04:7d:20:98:be:8b:60:07:66:2d:b9:41:10:ea:dd:5b\n 87:20:65:62:ea:75:a7:a6:04:a2:18:66:6b:db:5b:a4\n 9f:12:97:cb:7c:8c:d2:e0:ce:02:ef:1e:df:a1:9d:6a\n bc:00:38:18:36:a1:c5:97:16:be:7a:df:5f:4f:4f:de\n a3:cb:25:fe:f6:67:0d:31:aa:0a:d4:1b:be:df:91:2c\n 05:14:20:37:cc:4f:50:33:a6:50:1b:90:f9:b2:08:80\n d5:\n\ncoefficient:\n 47:d1:7f:ca:93:6a:14:9b:fe:85:8d:c2:15:11:52:a2\n a5:bc:f5:6b:a2:69:76:49:1e:09:79:f1:15:bf:39:48\n 41:ff:92:78:af:bc:7d:6f:76:3b:32:9e:08:d2:42:06\n 04:5f:36:e0:be:a8:1d:21:5c:ec:39:09:e0:77:c5:86\n 06:e6:ce:98:16:fc:0f:30:de:a7:69:7a:8f:dd:01:42\n 2a:22:f5:b7:c2:fc:c8:90:5a:78:dc:b3:e0:4d:e7:2d\n 98:6c:e3:34:1b:d7:e8:f8:90:57:7e:4d:41:d6:4a:29\n 81:92:eb:89:5b:45:85:dd:b9:16:20:63:cb:59:f6:06\n 59:c1:dd:3b:6b:92:0a:5e:5e:63:4a:f1:a7:d5:16:b9\n 8b:6c:d8:ad:76:0e:2d:3c:e0:b3:73:e0:6d:af:d4:a2\n bc:4b:fd:6c:2d:d7:5d:4d:cd:28:03:64:b2:ef:9a:1d\n 82:8d:53:40:c5:f8:fb:f3:63:de:8e:1a:21:b6:35:14\n \n\nexp1:\n 00:9c:a5:8a:d2:65:dc:03:69:8f:d2:16:d6:9d:55:5b\n 25:4e:ae:18:d8:7e:90:e6:10:11:d8:ca:41:89:f3:c4\n 06:64:aa:c8:c5:95:01:dd:fd:7c:7f:c9:39:73:8b:cb\n fd:9e:d3:84:12:cd:87:f9:02:b1:d8:6f:f7:49:f2:f7\n 35:14:8c:15:b2:2f:6f:1e:95:9c:8c:d9:46:45:65:4c\n f8:6f:a1:c4:ad:76:25:3b:37:ff:05:a1:f5:1b:e8:6d\n db:64:b9:10:37:55:01:ce:cf:f4:5b:26:4b:85:76:70\n 6a:b0:55:40:c9:bd:7a:57:4e:36:7d:41:be:03:9c:65\n dd:ea:6f:94:09:56:f2:d6:73:27:f9:f7:f9:16:5a:1a\n cb:b2:e5:83:28:b7:17:6f:6a:f7:41:1f:11:a1:63:cf\n a8:1e:e3:58:64:8c:78:8d:d9:81:c9:e1:8f:ea:0f:ad\n b6:a6:ee:54:1f:5c:56:ab:c9:0d:c1:60:2f:3d:d3:86\n 37:\n\nexp2:\n 64:12:b7:48:2d:30:a2:89:fa:cb:27:8b:94:56:f8:2c\n 8c:15:e7:c9:f1:3f:8a:96:5f:ae:43:08:07:96:11:98\n a6:4b:a5:f4:cf:93:77:11:27:51:c8:34:f1:98:d7:1b\n 41:9b:2b:eb:bc:e9:dc:1a:34:83:24:30:3c:2e:f0:85\n 3a:77:d2:1f:55:1f:7a:e5:26:74:0b:2a:c8:5b:a9:4a\n 1e:64:de:eb:4b:66:cc:47:62:91:24:53:2b:c9:ee:6c\n 9a:93:92:5b:ef:aa:fa:6d:e2:a5:b0:7e:8c:50:ab:87\n 1c:20:54:0f:1f:c0:54:d5:8b:a3:fa:fb:1a:8e:79:91\n bc:0e:9d:b6:3c:9b:e8:4d:53:1d:14:27:37:56:d4:de\n 6c:99:0e:49:8f:dd:4d:28:d0:02:4e:8d:6e:7d:58:0b\n e7:74:b8:0c:1b:86:82:4b:52:cd:05:f0:17:54:84:c0\n 7b:74:20:e6:fc:2b:ed:f2:a7:85:62:61:a2:0b:bd:21\n \n\n\nPublic Key PIN:\n pin-sha256:t5OXXC5gYqMNtUMsTqRs3A3vhfK2BiXVOgYzIEYv7Y8=\nPublic Key ID:\n sha256:b793975c2e6062a30db5432c4ea46cdc0def85f2b60625d53a063320462fed8f\n sha1:2f058a05034b2fdb3771bded4e7c8f560fa6a423\n\n-----BEGIN RSA PRIVATE KEY-----\nMIIG5AIBAAKCAYEA1Ryp+DKKSNFKZsPtwfR+jzOnQ8YFieIKYgakV688d8Ygpole\nnbmeEPrzT87tunFD7G9f6ALGND8rj7npj0AowxhOL/h/v1D9u0UsIaj5i2GWJrqN\nAhGLaxWiEB/hy5WOiwxDrGeigQqJkFM52Ep7G1Yx7PHJmKFGwN9FhIsFi1cNZfVR\nopZuCe/RMPNusNVZaIi+qcEffsE1cmfmuSlG3Ap0RKOIyR0ajDEzqZn9/0R7VwWC\nF97qy8TNYk94K/1tq3zyhVzRZ83xOSfrTqEfb3so3AU2jyKgYdwr/FZS72VCHS8I\nslgnqJW4izIXZqgIKmHaRZtMN4jUloi6l/6lktt6Lsgh9xECecxziSJtPMaog88a\nC8HnMqJJ3kScGCL36GYG+Kaw5PnDlWXBaeiDe8z/eWK9+Rr2M+rhTNxosAVGfDJy\nxAXyiX49LQ0v7f9qzwc/0JiDbvsUv1cm6OgpoEMP9SXqqBdwGqeKbD2/2jlP48xl\nYP6l1SoJG3GgZ8dbAgMBAAECggGBALFW0PoA1KITx14M3OTxl/+CdEYpmqJKv2kj\nLc7pu9/Pt4vd9CY8OBTZP2/COoFTj7pIU/61kEoZ5x4LDxhtw33V0/qHR4bk1r/n\np/m6qy4ZXuGLi5uVDfdmYR4Z6cOICL4czpPBCbFoG2FGYHRkRl1RNOp/qcqhKkeF\nhEvvhAWXw0Z9BhnOJHOQZPvfFtWANI6QfFi2pIbOMLOrUovylUy2Rlp323PADD9t\nEhioVHz/d8PKiZ9jmO9ILcEJcG7qy7t4kUKKIj4h76W/Fu5mReXwJmqFjuFpYqwF\nAKZEusisEACX9VFlf5ofe5mdAtSHUM50BlFn+vuQ5DN58qhh7kUdh8oiW6znMjj4\nLP1Vkh49YB58S/0o/+WxAmqqIveuqDaQe6b3KQUUOiHaNgX5sJ33+xB11ywhMpXn\n9xe+Cctm/vFpcd+kXj/8Z2w3ZbhRxiI4+wfOiVRQQ3FEPcNRWr3lx4ey6ntkD100\nnKFSs84Ghrp6BYBIs2wbeXSbSfIwwQKBwQDkMUZZPST3MdkiJq/APvXBbb66054/\nuSxDoNBHCeQ1YxmkM4Kv+XY8EcLLNPmmq92rZFprnMEqUolkfrWn8E0pE6TPF/Ty\nDaBuuV2VQRDfrvN6E0khZnMqt+KNfMI05T+9eMr8ZMUcOmZ6ElOWvbDDegzsXlXA\nwz9/JXL04hmUnWUVvsiCIFcSl7KoTT3gj+If0MhJqvQ0+pHR0cyYvD2LsZuP/e8D\n3ZL7yplFr8yDWEy7unOeI4T5fk9A/gC1v28CgcEA7xTvc/wM/OOH2X+m+FWGV2OK\nhof172MgH7KuKNyrWYCPFWRE4ryle9dp7zCxg7O9Cf1KDMYxW6R50OXTqDH9WepS\nY88Xp8FUv6gRm7GFR1oIppwvR52sXeh85DFsmXEEfSCYvotgB2YtuUEQ6t1bhyBl\nYup1p6YEohhma9tbpJ8Sl8t8jNLgzgLvHt+hnWq8ADgYNqHFlxa+et9fT0/eo8sl\n/vZnDTGqCtQbvt+RLAUUIDfMT1AzplAbkPmyCIDVAoHBAJylitJl3ANpj9IW1p1V\nWyVOrhjYfpDmEBHYykGJ88QGZKrIxZUB3f18f8k5c4vL/Z7ThBLNh/kCsdhv90ny\n9zUUjBWyL28elZyM2UZFZUz4b6HErXYlOzf/BaH1G+ht22S5EDdVAc7P9FsmS4V2\ncGqwVUDJvXpXTjZ9Qb4DnGXd6m+UCVby1nMn+ff5Floay7Llgyi3F29q90EfEaFj\nz6ge41hkjHiN2YHJ4Y/qD622pu5UH1xWq8kNwWAvPdOGNwKBwGQSt0gtMKKJ+ssn\ni5RW+CyMFefJ8T+Kll+uQwgHlhGYpkul9M+TdxEnUcg08ZjXG0GbK+u86dwaNIMk\nMDwu8IU6d9IfVR965SZ0CyrIW6lKHmTe60tmzEdikSRTK8nubJqTklvvqvpt4qWw\nfoxQq4ccIFQPH8BU1Yuj+vsajnmRvA6dtjyb6E1THRQnN1bU3myZDkmP3U0o0AJO\njW59WAvndLgMG4aCS1LNBfAXVITAe3Qg5vwr7fKnhWJhogu9IQKBwEfRf8qTahSb\n/oWNwhURUqKlvPVroml2SR4JefEVvzlIQf+SeK+8fW92OzKeCNJCBgRfNuC+qB0h\nXOw5CeB3xYYG5s6YFvwPMN6naXqP3QFCKiL1t8L8yJBaeNyz4E3nLZhs4zQb1+j4\nkFd+TUHWSimBkuuJW0WF3bkWIGPLWfYGWcHdO2uSCl5eY0rxp9UWuYts2K12Di08\n4LNz4G2v1KK8S/1sLdddTc0oA2Sy75odgo1TQMX4+/Nj3o4aIbY1FA==\n-----END RSA PRIVATE KEY-----" -} - -data "tencentcloud_ssl_certificates" "svr" { - name = tencentcloud_ssl_certificate.svr.name -} - -resource "tencentcloud_ssl_certificate" "svr" { - name = "ssl-svr" - type = "SVR" - cert = var.cert - key = var.key -} -``` - -Import - -ssl certificate can be imported using the id, e.g. - -``` - $ terraform import tencentcloud_ssl_certificate.cert GjTNRoK7 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go b/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go index 8b27286370..be4c671627 100644 --- a/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go +++ b/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl check_certificate_chain - -Example Usage - -```hcl -resource "tencentcloud_ssl_check_certificate_chain_operation" "check_certificate_chain" { - certificate_chain = "-----BEGIN CERTIFICATE--·····---END CERTIFICATE-----" -} -``` - -Import - -ssl check_certificate_chain can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_check_certificate_chain_operation.check_certificate_chain check_certificate_chain_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_complete_certificate_operation.go b/tencentcloud/resource_tc_ssl_complete_certificate_operation.go index 52c260731e..63f3507cdd 100644 --- a/tencentcloud/resource_tc_ssl_complete_certificate_operation.go +++ b/tencentcloud/resource_tc_ssl_complete_certificate_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl complete_certificate - -Example Usage - -```hcl -resource "tencentcloud_ssl_complete_certificate_operation" "complete_certificate" { - certificate_id = "9Bfe1IBR" -} -``` - -Import - -ssl complete_certificate can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_complete_certificate_operation.complete_certificate complete_certificate_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_deploy_certificate_instance_operation.go b/tencentcloud/resource_tc_ssl_deploy_certificate_instance_operation.go index 0dec649b23..1d397f7ec5 100644 --- a/tencentcloud/resource_tc_ssl_deploy_certificate_instance_operation.go +++ b/tencentcloud/resource_tc_ssl_deploy_certificate_instance_operation.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ssl deploy_certificate_instance - -Example Usage - -```hcl -resource "tencentcloud_ssl_deploy_certificate_instance_operation" "deploy_certificate_instance" { - certificate_id = "8x1eUSSl" - instance_id_list = ["cdndomain1.example.com|on","cdndomain1.example.com|off"] - resource_type = "cdn" -} -``` - -Import - -ssl deploy_certificate_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_deploy_certificate_instance_operation.deploy_certificate_instance deploy_certificate_instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_deploy_certificate_record_retry_operation.go b/tencentcloud/resource_tc_ssl_deploy_certificate_record_retry_operation.go index 9402e2d105..2d3885160a 100644 --- a/tencentcloud/resource_tc_ssl_deploy_certificate_record_retry_operation.go +++ b/tencentcloud/resource_tc_ssl_deploy_certificate_record_retry_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl deploy_certificate_record_retry - -Example Usage - -```hcl -resource "tencentcloud_ssl_deploy_certificate_record_retry_operation" "deploy_certificate_record_retry" { - deploy_record_id = 35474 -} -``` - -Import - -ssl deploy_certificate_record_retry can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_deploy_certificate_record_retry_operation.deploy_certificate_record_retry deploy_certificate_record_retry_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_deploy_certificate_record_rollback_operation.go b/tencentcloud/resource_tc_ssl_deploy_certificate_record_rollback_operation.go index 5abe30d22b..1eaa7115cd 100644 --- a/tencentcloud/resource_tc_ssl_deploy_certificate_record_rollback_operation.go +++ b/tencentcloud/resource_tc_ssl_deploy_certificate_record_rollback_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl deploy_certificate_record_rollback - -Example Usage - -```hcl -resource "tencentcloud_ssl_deploy_certificate_record_rollback_operation" "deploy_certificate_record_rollback" { - deploy_record_id = 35471 -} -``` - -Import - -ssl deploy_certificate_record_rollback can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_deploy_certificate_record_rollback_operation.deploy_certificate_record_rollback deploy_certificate_record_rollback_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_download_certificate_operation.go b/tencentcloud/resource_tc_ssl_download_certificate_operation.go index 1da018abbf..873bff557d 100644 --- a/tencentcloud/resource_tc_ssl_download_certificate_operation.go +++ b/tencentcloud/resource_tc_ssl_download_certificate_operation.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a ssl download_certificate - -Example Usage - -```hcl -resource "tencentcloud_ssl_download_certificate_operation" "download_certificate" { - certificate_id = "8x1eUSSl" - output_path = "./" -} -``` - -Import - -ssl download_certificate can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_download_certificate_operation.download_certificate download_certificate_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_free_certificate.go b/tencentcloud/resource_tc_ssl_free_certificate.go index f4ab1b889e..6c4614701e 100644 --- a/tencentcloud/resource_tc_ssl_free_certificate.go +++ b/tencentcloud/resource_tc_ssl_free_certificate.go @@ -1,35 +1,3 @@ -/* -Provide a resource to create a Free Certificate. - -~> **NOTE:** Once certificat created, it cannot be removed within 1 hours. - -Example Usage - -Currently, `package_type` only support type 2. 2=TrustAsia TLS RSA CA. - -```hcl -resource "tencentcloud_ssl_free_certificate" "example" { - dv_auth_method = "DNS_AUTO" - domain = "example.com" - package_type = "2" - contact_email = "test@example.com" - contact_phone = "18352458901" - validity_period = 12 - csr_encrypt_algo = "RSA" - csr_key_parameter = "2048" - csr_key_password = "csr_pwd" - alias = "example_free_cert" -} -``` - -Import - -FreeCertificate instance can be imported, e.g. -``` -$ terraform import tencentcloud_ssl_free_certificate.test free_certificate-id -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_pay_certificate.go b/tencentcloud/resource_tc_ssl_pay_certificate.go index 7fce644927..6486ee6e87 100644 --- a/tencentcloud/resource_tc_ssl_pay_certificate.go +++ b/tencentcloud/resource_tc_ssl_pay_certificate.go @@ -1,59 +1,3 @@ -/* -Provide a resource to create a payment SSL. - -~> **NOTE:** Provides the creation of a paid certificate, including the submission of certificate information and order functions; -currently, it does not support re-issuing certificates, revoking certificates, and deleting certificates; the certificate remarks -and belonging items can be updated. The Destroy operation will only cancel the certificate order, and will not delete the -certificate and refund the fee. If you need a refund, you need to check the current certificate status in the console -as `Review Cancel`, and then you can click `Request a refund` to refund the fee. To update the information of a certificate, -we will automatically roll back your certificate if this certificate is already in the validation stage. This process may take -some time because the CA callback is time-consuming. Please be patient and follow the prompt message. Or, feel free to contact -Tencent Cloud Support. - -Example Usage - -```hcl -resource "tencentcloud_ssl_pay_certificate" "example" { - product_id = 33 - domain_num = 1 - alias = "ssl desc." - project_id = 0 - information { - csr_type = "online" - certificate_domain = "www.example.com" - organization_name = "Tencent" - organization_division = "Qcloud" - organization_address = "广东省深圳市南山区腾讯大厦1000号" - organization_country = "CN" - organization_city = "深圳市" - organization_region = "广东省" - postal_code = "0755" - phone_area_code = "0755" - phone_number = "86013388" - verify_type = "DNS" - admin_first_name = "test" - admin_last_name = "test" - admin_phone_num = "12345678901" - admin_email = "test@tencent.com" - admin_position = "developer" - contact_first_name = "test" - contact_last_name = "test" - contact_email = "test@tencent.com" - contact_number = "12345678901" - contact_position = "developer" - } -} - -``` - -Import - -payment SSL instance can be imported, e.g. - -``` -$ terraform import tencentcloud_ssl_pay_certificate.ssl iPQNn61x#33#1#1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_replace_certificate_operation.go b/tencentcloud/resource_tc_ssl_replace_certificate_operation.go index 76ecaa19a4..90c2a85ca9 100644 --- a/tencentcloud/resource_tc_ssl_replace_certificate_operation.go +++ b/tencentcloud/resource_tc_ssl_replace_certificate_operation.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ssl replace_certificate - -Example Usage - -```hcl -resource "tencentcloud_ssl_replace_certificate_operation" "replace_certificate" { - certificate_id = "8L6JsWq2" - valid_type = "DNS_AUTO" - csr_type = "online" -} -``` - -Import - -ssl replace_certificate can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_replace_certificate_operation.replace_certificate replace_certificate_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go b/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go index 5bbba02318..7b2ca94e90 100644 --- a/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go +++ b/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl revoke_certificate - -Example Usage - -```hcl -resource "tencentcloud_ssl_revoke_certificate_operation" "revoke_certificate" { - certificate_id = "7zUGkVab" -} -``` - -Import - -ssl revoke_certificate can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_revoke_certificate_operation.revoke_certificate revoke_certificate_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go b/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go index f90ab25c43..13cf79c608 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a ssl update_certificate_instance - -Example Usage - -```hcl -resource "tencentcloud_ssl_update_certificate_instance_operation" "update_certificate_instance" { - certificate_id = "8x1eUSSl" - old_certificate_id = "8xNdi2ig" - resource_types = ["cdn"] -} -``` - -Import - -ssl update_certificate_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance update_certificate_instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go b/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go index 54dbc7e165..28e3510b5b 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl update_certificate_record_retry - -Example Usage - -```hcl -resource "tencentcloud_ssl_update_certificate_record_retry_operation" "update_certificate_record_retry" { - deploy_record_id = "1603" -} -``` - -Import - -ssl update_certificate_record_retry can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry update_certificate_record_retry_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go b/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go index 6a6f64bf15..38e00a3b39 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a ssl update_certificate_record_rollback - -Example Usage - -```hcl -resource "tencentcloud_ssl_update_certificate_record_rollback_operation" "update_certificate_record_rollback" { - deploy_record_id = "1603" -} -``` - -Import - -ssl update_certificate_record_rollback can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_update_certificate_record_rollback_operation.update_certificate_record_rollback update_certificate_record_rollback_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go b/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go index b6801381cf..de3b5f8a4b 100644 --- a/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go +++ b/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a ssl upload_revoke_letter - -Example Usage - -```hcl -resource "tencentcloud_ssl_upload_revoke_letter_operation" "upload_revoke_letter" { - certificate_id = "8xRYdDlc" - revoke_letter = filebase64("./c.pdf") -} -``` - -Import - -ssl upload_revoke_letter can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter upload_revoke_letter_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssm_product_secret.go b/tencentcloud/resource_tc_ssm_product_secret.go index a712344be8..de367aeb11 100644 --- a/tencentcloud/resource_tc_ssm_product_secret.go +++ b/tencentcloud/resource_tc_ssm_product_secret.go @@ -1,91 +1,3 @@ -/* -Provides a resource to create a ssm product_secret - -Example Usage - -```hcl -data "tencentcloud_availability_zones_by_product" "zones" { - product = "cdb" -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_security_group" "security_group" { - name = "sg-example" - description = "desc." -} - -resource "tencentcloud_mysql_instance" "example" { - internet_service = 1 - engine_version = "5.7" - charge_type = "POSTPAID" - root_password = "PassWord123" - slave_deploy_mode = 0 - availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name - slave_sync_mode = 1 - instance_name = "tf-example" - mem_size = 4000 - volume_size = 200 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - intranet_port = 3306 - security_groups = [tencentcloud_security_group.security_group.id] - - tags = { - createBy = "terraform" - } - - parameters = { - character_set_server = "utf8" - max_connections = "1000" - } -} - -resource "tencentcloud_kms_key" "example" { - alias = "tf-example-kms-key" - description = "example of kms key" - key_rotation_enabled = false - is_enabled = true - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_ssm_product_secret" "example" { - secret_name = "tf-example" - user_name_prefix = "prefix" - product_name = "Mysql" - instance_id = tencentcloud_mysql_instance.example.id - domains = ["10.0.0.0"] - privileges_list { - privilege_name = "GlobalPrivileges" - privileges = ["ALTER ROUTINE"] - } - description = "for ssm product test" - kms_key_id = tencentcloud_kms_key.example.id - status = "Enabled" - enable_rotation = true - rotation_begin_time = "2023-08-05 20:54:33" - rotation_frequency = 30 - - tags = { - "createdBy" = "terraform" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssm_rotate_product_secret.go b/tencentcloud/resource_tc_ssm_rotate_product_secret.go index 66642b7a4a..2a2171a95b 100644 --- a/tencentcloud/resource_tc_ssm_rotate_product_secret.go +++ b/tencentcloud/resource_tc_ssm_rotate_product_secret.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a ssm rotate_product_secret - -Example Usage - -```hcl -resource "tencentcloud_ssm_rotate_product_secret" "example" { - secret_name = "tf_example" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssm_secret.go b/tencentcloud/resource_tc_ssm_secret.go index 89e5ca014e..5def8e96bf 100644 --- a/tencentcloud/resource_tc_ssm_secret.go +++ b/tencentcloud/resource_tc_ssm_secret.go @@ -1,83 +1,3 @@ -/* -Provide a resource to create a SSM secret. - -Example Usage - -Create user defined secret - -```hcl -resource "tencentcloud_ssm_secret" "example" { - secret_name = "tf-example" - description = "desc." - is_enabled = true - recovery_window_in_days = 0 - - tags = { - createBy = "terraform" - } -} -``` - -Create redis secret - -```hcl -data "tencentcloud_redis_zone_config" "zone" { - type_id = 8 -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = data.tencentcloud_redis_zone_config.zone.list[3].zone - name = "subnet-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_redis_instance" "example" { - availability_zone = data.tencentcloud_redis_zone_config.zone.list[3].zone - type_id = data.tencentcloud_redis_zone_config.zone.list[3].type_id - password = "Qwer@234" - mem_size = data.tencentcloud_redis_zone_config.zone.list[3].mem_sizes[0] - redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[3].redis_shard_nums[0] - redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[3].redis_replicas_nums[0] - name = "tf_example" - port = 6379 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_ssm_secret" "example" { - secret_name = "tf-example" - description = "redis desc." - is_enabled = true - secret_type = 4 - additional_config = jsonencode( - { - "Region" : "ap-guangzhou" - "Privilege" : "r", - "InstanceId" : tencentcloud_redis_instance.example.id - "ReadonlyPolicy" : ["master"], - "Remark" : "for tf test" - } - ) - tags = { - createdBy = "terraform" - } - recovery_window_in_days = 0 -} -``` - -Import - -SSM secret can be imported using the secretName, e.g. -``` -$ terraform import tencentcloud_ssm_secret.foo test -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssm_secret_version.go b/tencentcloud/resource_tc_ssm_secret_version.go index 0e1cbcd8ac..77cf67bed3 100644 --- a/tencentcloud/resource_tc_ssm_secret_version.go +++ b/tencentcloud/resource_tc_ssm_secret_version.go @@ -1,48 +1,3 @@ -/* -Provide a resource to create a SSM secret version. - --> **Note:** A maximum of 10 versions can be supported under one credential. Only new versions can be added to credentials in the enabled and disabled states. - -Example Usage - -Text type credential information plaintext - -```hcl -resource "tencentcloud_ssm_secret" "example" { - secret_name = "tf-example" - description = "desc." - recovery_window_in_days = 0 - is_enabled = true - - tags = { - createdBy = "terraform" - } -} - -resource "tencentcloud_ssm_secret_version" "v1" { - secret_name = tencentcloud_ssm_secret.example.secret_name - version_id = "v1" - secret_string = "this is secret string" -} -``` - -Binary credential information, encoded using base64 - -```hcl -resource "tencentcloud_ssm_secret_version" "v2" { - secret_name = tencentcloud_ssm_secret.example.secret_name - version_id = "v2" - secret_binary = "MTIzMTIzMTIzMTIzMTIzQQ==" -} -``` - -Import - -SSM secret version can be imported using the secretName#versionId, e.g. -``` -$ terraform import tencentcloud_ssm_secret_version.v1 test#v1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_ssm_ssh_key_pair_secret.go b/tencentcloud/resource_tc_ssm_ssh_key_pair_secret.go index 6685c3b395..7b164e6a09 100644 --- a/tencentcloud/resource_tc_ssm_ssh_key_pair_secret.go +++ b/tencentcloud/resource_tc_ssm_ssh_key_pair_secret.go @@ -1,43 +1,3 @@ -/* -Provides a resource to create a ssm ssh key pair secret - -Example Usage - -```hcl -resource "tencentcloud_kms_key" "example" { - alias = "tf-example-kms-key" - description = "example of kms key" - key_rotation_enabled = false - is_enabled = true - - tags = { - createdBy = "terraform" - } -} - -resource "tencentcloud_ssm_ssh_key_pair_secret" "example" { - secret_name = "tf-example" - project_id = 0 - description = "desc." - kms_key_id = tencentcloud_kms_key.example.id - ssh_key_name = "tf_example_ssh" - status = "Enabled" - clean_ssh_key = true - - tags = { - createdBy = "terraform" - } -} -``` - -Import - -ssm ssh_key_pair_secret can be imported using the id, e.g. - -``` -terraform import tencentcloud_ssm_ssh_key_pair_secret.ssh_key_pair_secret ssh_key_pair_secret_name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_subnet.go b/tencentcloud/resource_tc_subnet.go index 3c962c385a..ed0d0c9b37 100644 --- a/tencentcloud/resource_tc_subnet.go +++ b/tencentcloud/resource_tc_subnet.go @@ -1,33 +1,3 @@ -/* -Provide a resource to create a VPC subnet. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - is_multicast = false -} -``` - -Import - -Vpc subnet instance can be imported, e.g. - -``` -$ terraform import tencentcloud_subnet.test subnet_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tag.go b/tencentcloud/resource_tc_tag.go index 76ccedefe9..7fb17109d0 100644 --- a/tencentcloud/resource_tc_tag.go +++ b/tencentcloud/resource_tc_tag.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a tag - -Example Usage - -```hcl - -resource "tencentcloud_tag" "tag" { - tag_key = "test" - tag_value = "Terraform" -} - -``` - -Import - -tag tag can be imported using the id, e.g. - -``` -terraform import tencentcloud_tag.tag tag_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tag_attachment.go b/tencentcloud/resource_tc_tag_attachment.go index 261ad598c3..4522922c8a 100644 --- a/tencentcloud/resource_tc_tag_attachment.go +++ b/tencentcloud/resource_tc_tag_attachment.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a tag attachment - -Example Usage - -```hcl - -resource "tencentcloud_tag_attachment" "attachment" { - tag_key = "test3" - tag_value = "Terraform3" - resource = "qcs::cvm:ap-guangzhou:uin/100020512675:instance/ins-kfrlvcp4" -} - -``` - -Import - -tag attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_tag_attachment.attachment attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tat_command.go b/tencentcloud/resource_tc_tat_command.go index 31a0671c7e..b78625f3f2 100644 --- a/tencentcloud/resource_tc_tat_command.go +++ b/tencentcloud/resource_tc_tat_command.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a tat command - -Example Usage - -```hcl -resource "tencentcloud_tat_command" "command" { - username = "root" - command_name = "ls" - content = "bHM=" - description = "xxx" - command_type = "SHELL" - working_directory = "/root" - timeout = 50 - tags { - key = "" - value = "" - } -} - -``` -Import - -tat command can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tat_command.command cmd-6fydo27j -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tat_invocation_command_attachment.go b/tencentcloud/resource_tc_tat_invocation_command_attachment.go index 6d241907fa..ae8cfef0a5 100644 --- a/tencentcloud/resource_tc_tat_invocation_command_attachment.go +++ b/tencentcloud/resource_tc_tat_invocation_command_attachment.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a tat invocation_command_attachment - -Example Usage - -```hcl -resource "tencentcloud_tat_invocation_command_attachment" "invocation_command_attachment" { - content = base64encode("pwd") - instance_id = "ins-881b1c8w" - command_name = "terraform-test" - description = "shell test" - command_type = "SHELL" - working_directory = "/root" - timeout = 100 - save_command = false - enable_parameter = false - # default_parameters = "{\"varA\": \"222\"}" - # parameters = "{\"varA\": \"222\"}" - username = "root" - output_cos_bucket_url = "https://BucketName-123454321.cos.ap-beijing.myqcloud.com" - output_cos_key_prefix = "log" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tat_invocation_invoke_attachment.go b/tencentcloud/resource_tc_tat_invocation_invoke_attachment.go index 479ef15b28..95e8f2c32e 100644 --- a/tencentcloud/resource_tc_tat_invocation_invoke_attachment.go +++ b/tencentcloud/resource_tc_tat_invocation_invoke_attachment.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a tat invocation_invoke_attachment - -Example Usage - -```hcl -resource "tencentcloud_tat_invocation_invoke_attachment" "invocation_invoke_attachment" { - instance_id = "ins-881b1c8w" - working_directory = "/root" - timeout = 100 - # parameters = "{\"varA\": \"222\"}" - username = "root" - output_cos_bucket_url = "https://BucketName-123454321.cos.ap-beijing.myqcloud.com" - output_cos_key_prefix = "log" - command_id = "cmd-rxbs7f5z" -} -``` - -Import - -tat invocation can be imported using the invocation_id#instance_id, e.g. - -``` -terraform import tencentcloud_tat_invocation_invoke_attachment.invocation_invoke_attachment inv-mhs6ca8z#ins-881b1c8w -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tat_invoker.go b/tencentcloud/resource_tc_tat_invoker.go index b146ec96b3..3db9551f6f 100644 --- a/tencentcloud/resource_tc_tat_invoker.go +++ b/tencentcloud/resource_tc_tat_invoker.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a tat invoker - -Example Usage - -```hcl -resource "tencentcloud_tat_invoker" "invoker" { - name = "pwd-1" - type = "SCHEDULE" - command_id = "cmd-6fydo27j" - instance_ids = ["ins-3c7q2ebs",] - username = "root" - # parameters = "" - schedule_settings { - policy = "ONCE" - # recurrence = "" - invoke_time = "2099-11-17T16:00:00Z" - } -} - -``` -Import - -tat invoker can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tat_invoker.invoker ivk-gwb4ztk5 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tat_invoker_config.go b/tencentcloud/resource_tc_tat_invoker_config.go index c6d49b3f4c..dc3f1434ff 100644 --- a/tencentcloud/resource_tc_tat_invoker_config.go +++ b/tencentcloud/resource_tc_tat_invoker_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a tat invoker_config - -Example Usage - -```hcl -resource "tencentcloud_tat_invoker_config" "invoker_config" { - invoker_id = "ivk-cas4upyf" - invoker_status = "on" -} -``` - -Import - -tat invoker_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_tat_invoker_config.invoker_config invoker_config_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcaplus_cluster.go b/tencentcloud/resource_tc_tcaplus_cluster.go index 8001f039e1..8aaccf6612 100644 --- a/tencentcloud/resource_tc_tcaplus_cluster.go +++ b/tencentcloud/resource_tc_tcaplus_cluster.go @@ -1,46 +1,3 @@ -/* -Use this resource to create TcaplusDB cluster. - -~> **NOTE:** TcaplusDB now only supports the following regions: `ap-shanghai,ap-hongkong,na-siliconvalley,ap-singapore,ap-seoul,ap-tokyo,eu-frankfurt, and na-ashburn`. - -Example Usage - -Create a new tcaplus cluster instance - -```hcl -locals { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id -} - -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -resource "tencentcloud_tcaplus_cluster" "example" { - idl_type = "PROTO" - cluster_name = "tf_example_tcaplus_cluster" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - password = "your_pw_123111" - old_password_expire_last = 3600 -} -``` - -Import - -tcaplus cluster can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_tcaplus_cluster.example cluster_id -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcaplus_idl.go b/tencentcloud/resource_tc_tcaplus_idl.go index 8b1f2c5367..78faabb776 100644 --- a/tencentcloud/resource_tc_tcaplus_idl.go +++ b/tencentcloud/resource_tc_tcaplus_idl.go @@ -1,77 +1,3 @@ -/* -Use this resource to create TcaplusDB IDL file. - -Example Usage - -Create a tcaplus database idl file - -The file will be with a specified cluster and tablegroup. - -```hcl -locals { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id -} - -variable "availability_zone" { - default = "ap-guangzhou-3" -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -resource "tencentcloud_tcaplus_cluster" "example" { - idl_type = "PROTO" - cluster_name = "tf_example_tcaplus_cluster" - vpc_id = local.vpc_id - subnet_id = local.subnet_id - password = "your_pw_123111" - old_password_expire_last = 3600 -} - -resource "tencentcloud_tcaplus_tablegroup" "example" { - cluster_id = tencentcloud_tcaplus_cluster.example.id - tablegroup_name = "tf_example_group_name" -} - -resource "tencentcloud_tcaplus_idl" "main" { - cluster_id = tencentcloud_tcaplus_cluster.example.id - tablegroup_id = tencentcloud_tcaplus_tablegroup.example.id - file_name = "tf_example_tcaplus_idl" - file_type = "PROTO" - file_ext_type = "proto" - file_content = < **NOTE:** Instructions for use: 1. Use Tencent Cloud Prometheus to monitor TMP, please enter `vpc_id`, `subnet_id`, `region` or `instance_id`, it is recommended to use an existing tmp instance; 2. To use the third-party Prometheus service, please enter `custom_prom`; 3. `tencentcloud_tcm_prometheus_attachment` does not support modification; 4. If you use Tencent Cloud Prometheus to monitor TMP, enter `vpc_id`, `subnet_id`, `region` to create a new Prometheus monitoring instance, destroy will not destroy the Prometheus monitoring instance -~> **NOTE:** If you use the config attribute prometheus in tencentcloud_tcm_mesh, do not use tencentcloud_tcm_prometheus_attachment - -Example Usage - -```hcl -resource "tencentcloud_tcm_prometheus_attachment" "prometheus_attachment" { - mesh_id = "mesh-rofjmxxx" - prometheus { - vpc_id = "vpc-pewdpxxx" - subnet_id = "subnet-driddxxx" - region = "ap-guangzhou" - instance_id = "" - # custom_prom { - # is_public_addr = false - # vpc_id = "vpc-pewdpxxx" - # url = "http://10.0.0.1:9090" - # auth_type = "basic" - # username = "test" - # password = "test" - # } - } -} - -``` -Import - -tcm prometheus_attachment can be imported using the mesh_id, e.g. -``` -$ terraform import tencentcloud_tcm_prometheus_attachment.prometheus_attachment mesh-rofjmxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcm_tracing_config.go b/tencentcloud/resource_tc_tcm_tracing_config.go index f9ef169cf4..03ddfb4a19 100644 --- a/tencentcloud/resource_tc_tcm_tracing_config.go +++ b/tencentcloud/resource_tc_tcm_tracing_config.go @@ -1,47 +1,3 @@ -/* -Provides a resource to create a tcm tracing_config - -~> **NOTE:** If you use the config attribute tracing in tencentcloud_tcm_mesh, do not use tencentcloud_tcm_tracing_config - -Example Usage - -```hcl -resource "tencentcloud_tcm_tracing_config" "tracing_config" { - mesh_id = "mesh-xxxxxxxx" - enable = true - apm { - enable = true - region = "ap-guangzhou" - instance_id = "apm-xxx" - } - sampling = - zipkin { - address = "10.10.10.10:9411" - } -} - -resource "tencentcloud_tcm_tracing_config" "delete_config" { - mesh_id = "mesh-rofjmxxx" - enable = true - apm { - enable = false - # region = "ap-guangzhou" - # instance_id = "apm-xxx" - } - sampling = 0 - zipkin { - address = "" - } -} - -``` -Import - -tcm tracing_config can be imported using the mesh_id, e.g. -``` -$ terraform import tencentcloud_tcm_tracing_config.tracing_config mesh-rofjmxxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcmq_queue.go b/tencentcloud/resource_tc_tcmq_queue.go index 3a266f4589..844ee4b4b2 100644 --- a/tencentcloud/resource_tc_tcmq_queue.go +++ b/tencentcloud/resource_tc_tcmq_queue.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a tcmq queue - -Example Usage - -```hcl -resource "tencentcloud_tcmq_queue" "queue" { - queue_name = "queue_name" -} -``` - -Import - -tcmq queue can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcmq_queue.queue queue_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcmq_subscribe.go b/tencentcloud/resource_tc_tcmq_subscribe.go index 9134131bb0..d03bf74706 100644 --- a/tencentcloud/resource_tc_tcmq_subscribe.go +++ b/tencentcloud/resource_tc_tcmq_subscribe.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a tcmq subscribe - -Example Usage - -```hcl -resource "tencentcloud_tcmq_subscribe" "subscribe" { - topic_name = "topic_name" - subscription_name = "subscription_name" - protocol = "http" - endpoint = "http://xxxxxx"; -} -``` - -Import - -tcmq subscribe can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcmq_subscribe.subscribe subscribe_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcmq_topic.go b/tencentcloud/resource_tc_tcmq_topic.go index efc526330b..278d637151 100644 --- a/tencentcloud/resource_tc_tcmq_topic.go +++ b/tencentcloud/resource_tc_tcmq_topic.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a tcmq topic - -Example Usage - -```hcl -resource "tencentcloud_tcmq_topic" "topic" { - topic_name = "topic_name" -} -``` - -Import - -tcmq topic can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcmq_topic.topic topic_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_create_image_signature_operation.go b/tencentcloud/resource_tc_tcr_create_image_signature_operation.go index 995a88cbcc..bd4ed0412a 100644 --- a/tencentcloud/resource_tc_tcr_create_image_signature_operation.go +++ b/tencentcloud/resource_tc_tcr_create_image_signature_operation.go @@ -1,53 +1,3 @@ -/* -Provides a resource to operate a tcr image signature. - -Example Usage - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -resource "tencentcloud_tcr_repository" "example" { - instance_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - name = "test" - brief_desc = "111" - description = "111111111111111111111111111111111111" -} - -resource "tencentcloud_tcr_create_image_signature_operation" "example" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - repository_name = tencentcloud_tcr_repository.example.name - image_version = "v1" -} -``` - -Import - -tcr image_signature_operation can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcr_create_image_signature_operation.image_signature_operation image_signature_operation_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_customized_domain.go b/tencentcloud/resource_tc_tcr_customized_domain.go index a78d147871..fc06d7c2f1 100644 --- a/tencentcloud/resource_tc_tcr_customized_domain.go +++ b/tencentcloud/resource_tc_tcr_customized_domain.go @@ -1,37 +1,3 @@ -/* -Provides a resource to create a tcr customized domain - -Example Usage - -Create a tcr customized domain - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_customized_domain" "example" { - registry_id = tencentcloud_tcr_instance.example.id - domain_name = "www.test.com" - certificate_id = "your_cert_id" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tcr customized_domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcr_customized_domain.customized_domain customized_domain_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_delete_image_operation.go b/tencentcloud/resource_tc_tcr_delete_image_operation.go index 3805461228..06715f2fc0 100644 --- a/tencentcloud/resource_tc_tcr_delete_image_operation.go +++ b/tencentcloud/resource_tc_tcr_delete_image_operation.go @@ -1,39 +1,3 @@ -/* -Provides a resource to delete the specified tcr image. - -Example Usage - -To delete the specified image - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -resource "tencentcloud_tcr_delete_image_operation" "example" { - registry_id = tencentcloud_tcr_instance.example.id - repository_name = "repo" - image_version = "v1" # the image want to delete - namespace_name = tencentcloud_tcr_namespace.example.name -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_immutable_tag_rule.go b/tencentcloud/resource_tc_tcr_immutable_tag_rule.go index 9c759413ee..839d397979 100644 --- a/tencentcloud/resource_tc_tcr_immutable_tag_rule.go +++ b/tencentcloud/resource_tc_tcr_immutable_tag_rule.go @@ -1,106 +1,3 @@ -/* -Provides a resource to create a tcr immutable tag rule. - -Example Usage - -Create a immutable tag rule with specified tags and exclude specified repositories - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - delete_bucket = true -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -resource "tencentcloud_tcr_immutable_tag_rule" "example" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - rule { - repository_pattern = "deprecated_repo" # specify exclude repo - tag_pattern = "**" # all tags - repository_decoration = "repoExcludes" - tag_decoration = "matches" - disabled = false - } - tags = { - "createdBy" = "terraform" - } -} -``` - -With specified repositories and exclude specified version tag - -```hcl -resource "tencentcloud_tcr_immutable_tag_rule" "example" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - rule { - repository_pattern = "**" # all repo - tag_pattern = "v1" # exlude v1 tags - repository_decoration = "repoMatches" - tag_decoration = "excludes" - disabled = false - } - tags = { - "createdBy" = "terraform" - } -} -``` - -Disabled the specified rule - -```hcl -resource "tencentcloud_tcr_immutable_tag_rule" "example_rule_A" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - rule { - repository_pattern = "deprecated_repo" # specify exclude repo - tag_pattern = "**" # all tags - repository_decoration = "repoExcludes" - tag_decoration = "matches" - disabled = false - } - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_immutable_tag_rule" "example_rule_B" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - rule { - repository_pattern = "**" # all repo - tag_pattern = "v1" # exlude v1 tags - repository_decoration = "repoMatches" - tag_decoration = "excludes" - disabled = true # disable it - } - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tcr immutable_tag_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcr_immutable_tag_rule.immutable_tag_rule immutable_tag_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_instance.go b/tencentcloud/resource_tc_tcr_instance.go index 4b3f862333..55c2408276 100644 --- a/tencentcloud/resource_tc_tcr_instance.go +++ b/tencentcloud/resource_tc_tcr_instance.go @@ -1,83 +1,3 @@ -/* -Use this resource to create tcr instance. - -Example Usage - -Create a basic tcr instance. - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - - tags = { - "createdBy" = "terraform" - } -} -``` - -Create instance with the public network access whitelist. - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - open_public_operation = true - security_policy { - cidr_block = "10.0.0.1/24" - } - security_policy { - cidr_block = "192.168.1.1" - } -} -``` - -Create instance with Replications. - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - replications { - region_id = var.tcr_region_map["ap-guangzhou"] # 1 - } - replications { - region_id = var.tcr_region_map["ap-singapore"] # 9 - } -} - -variable "tcr_region_map" { - default = { - "ap-guangzhou" = 1 - "ap-shanghai" = 4 - "ap-hongkong" = 5 - "ap-beijing" = 8 - "ap-singapore" = 9 - "na-siliconvalley" = 15 - "ap-chengdu" = 16 - "eu-frankfurt" = 17 - "ap-seoul" = 18 - "ap-chongqing" = 19 - "ap-mumbai" = 21 - "na-ashburn" = 22 - "ap-bangkok" = 23 - "eu-moscow" = 24 - "ap-tokyo" = 25 - "ap-nanjing" = 33 - "ap-taipei" = 39 - "ap-jakarta" = 72 - } -} -``` - -Import - -tcr instance can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_tcr_instance.foo instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_manage_replication_operation.go b/tencentcloud/resource_tc_tcr_manage_replication_operation.go index bf9d7980b1..b61fff5550 100644 --- a/tencentcloud/resource_tc_tcr_manage_replication_operation.go +++ b/tencentcloud/resource_tc_tcr_manage_replication_operation.go @@ -1,119 +1,3 @@ -/* -Provides a resource to start a tcr instance replication operation - -Example Usage - -Sync source tcr instance to target instance - -Synchronize an existing tcr instance to the destination instance. This operation is often used in the cross-multiple region scenario. -Assume you have had two TCR instances before this operation. This example shows how to sync a tcr instance from ap-guangzhou(gz) to ap-shanghai(sh). - -```hcl -# tcr instance on ap-guangzhou -resource "tencentcloud_tcr_instance" "example_gz" { - name = "tf-example-tcr-gz" - instance_type = "premium" - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example_gz" { - instance_id = tencentcloud_tcr_instance.example_gz.id - name = "tf_example_ns_gz" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -# tcr instance on ap-shanghai -resource "tencentcloud_tcr_instance" "example_sh" { - name = "tf-example-tcr-sh" - instance_type = "premium" - delete_bucket = true -} - -resource "tencentcloud_tcr_namespace" "example_sh" { - instance_id = tencentcloud_tcr_instance.example_sh.id - name = "tf_example_ns_sh" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -``` - -```hcl -# Run this on region ap-guangzhou -locals { - src_id = tencentcloud_tcr_instance.example_gz.id - dest_id = tencentcloud_tcr_instance.example_sh.id - src_ns = tencentcloud_tcr_namespace.example_gz.name - dest_ns = tencentcloud_tcr_instance.example_sh.id -} - -variable "tcr_region_map" { - default = { - "ap-guangzhou" = 1 - "ap-shanghai" = 4 - "ap-hongkong" = 5 - "ap-beijing" = 8 - "ap-singapore" = 9 - "na-siliconvalley" = 15 - "ap-chengdu" = 16 - "eu-frankfurt" = 17 - "ap-seoul" = 18 - "ap-chongqing" = 19 - "ap-mumbai" = 21 - "na-ashburn" = 22 - "ap-bangkok" = 23 - "eu-moscow" = 24 - "ap-tokyo" = 25 - "ap-nanjing" = 33 - "ap-taipei" = 39 - "ap-jakarta" = 72 - } -} - -resource "tencentcloud_tcr_manage_replication_operation" "example_sync" { - source_registry_id = local.src_id - destination_registry_id = local.dest_id - rule { - name = "tf_example_sync_gz_to_sh" - dest_namespace = local.dest_ns - override = true - filters { - type = "name" - value = join("/", [local.src_ns, "**"]) - } - filters { - type = "tag" - value = "" - } - filters { - type = "resource" - value = "" - } - } - description = "example for tcr sync operation" - destination_region_id = var.tcr_region_map["ap-shanghai"] # 4 - peer_replication_option { - peer_registry_uin = "" - peer_registry_token = "" - enable_peer_replication = false - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_namespace.go b/tencentcloud/resource_tc_tcr_namespace.go index d94e280ee7..73cd5fa611 100644 --- a/tencentcloud/resource_tc_tcr_namespace.go +++ b/tencentcloud/resource_tc_tcr_namespace.go @@ -1,40 +1,3 @@ -/* -Use this resource to create tcr namespace. - -Example Usage - -Create a tcr namespace instance - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "example" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} -``` - -Import - -tcr namespace can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_tcr_namespace.example tcr_instance_id#namespace_name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_repository.go b/tencentcloud/resource_tc_tcr_repository.go index 5da8f2ffef..6ee6e77b62 100644 --- a/tencentcloud/resource_tc_tcr_repository.go +++ b/tencentcloud/resource_tc_tcr_repository.go @@ -1,46 +1,3 @@ -/* -Use this resource to create tcr repository. - -Example Usage - -Create a tcr repository instance - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "premium" - delete_bucket = true -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -resource "tencentcloud_tcr_repository" "example" { - instance_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - name = "test" - brief_desc = "111" - description = "111111111111111111111111111111111111" -} -``` - -Import - -tcr repository can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_tcr_repository.foo instance_id#namespace_name#repository_name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_service_account.go b/tencentcloud/resource_tc_tcr_service_account.go index 23643038c7..8c20f73e6a 100644 --- a/tencentcloud/resource_tc_tcr_service_account.go +++ b/tencentcloud/resource_tc_tcr_service_account.go @@ -1,75 +1,3 @@ -/* -Provides a resource to create a tcr service account. - -Example Usage - -Create custom account with specified duration days - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr-instance" - instance_type = "basic" - delete_bucket = true - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_test_tcr_namespace" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "tf_example_cve_id" - } -} - -resource "tencentcloud_tcr_service_account" "example" { - registry_id = tencentcloud_tcr_instance.example.id - name = "tf_example_account" - permissions { - resource = tencentcloud_tcr_namespace.example.name - actions = ["tcr:PushRepository", "tcr:PullRepository"] - } - description = "tf example for tcr custom account" - duration = 10 - disable = false - tags = { - "createdBy" = "terraform" - } -} -``` - -With specified expiration time - -```hcl -resource "tencentcloud_tcr_service_account" "example" { - registry_id = tencentcloud_tcr_instance.example.id - name = "tf_example_account" - permissions { - resource = tencentcloud_tcr_namespace.example.name - actions = ["tcr:PushRepository", "tcr:PullRepository"] - } - description = "tf example for tcr custom account" - expires_at = 1676897989000 //time stamp - disable = false - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tcr service_account can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcr_service_account.service_account registry_id#account_name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_tag_retention_execution_config.go b/tencentcloud/resource_tc_tcr_tag_retention_execution_config.go index 086bf85a5e..ecf44d86db 100644 --- a/tencentcloud/resource_tc_tcr_tag_retention_execution_config.go +++ b/tencentcloud/resource_tc_tcr_tag_retention_execution_config.go @@ -1,48 +1,3 @@ -/* -Provides a resource to configure a tcr tag retention execution. - -Example Usage - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - delete_bucket = true - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns_retention" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -resource "tencentcloud_tcr_tag_retention_rule" "example" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - retention_rule { - key = "nDaysSinceLastPush" - value = 2 - } - cron_setting = "manual" - disabled = true -} - -resource "tencentcloud_tcr_tag_retention_execution_config" "example" { - registry_id = tencentcloud_tcr_tag_retention_rule.example.registry_id - retention_id = tencentcloud_tcr_tag_retention_rule.example.retention_id - dry_run = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_tag_retention_rule.go b/tencentcloud/resource_tc_tcr_tag_retention_rule.go index 9d0359e1b4..ce86b1e47a 100644 --- a/tencentcloud/resource_tc_tcr_tag_retention_rule.go +++ b/tencentcloud/resource_tc_tcr_tag_retention_rule.go @@ -1,45 +1,3 @@ -/* -Provides a resource to create a tcr tag retention rule. - -Example Usage - -Create a tcr tag retention rule instance - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - delete_bucket = true - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns_retention" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } -} - -resource "tencentcloud_tcr_tag_retention_rule" "my_rule" { - registry_id = tencentcloud_tcr_instance.example.id - namespace_name = tencentcloud_tcr_namespace.example.name - retention_rule { - key = "nDaysSinceLastPush" - value = 2 - } - cron_setting = "daily" - disabled = true -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_token.go b/tencentcloud/resource_tc_tcr_token.go index 083e15ed12..01d5e7f425 100644 --- a/tencentcloud/resource_tc_tcr_token.go +++ b/tencentcloud/resource_tc_tcr_token.go @@ -1,34 +1,3 @@ -/* -Use this resource to create tcr long term token. - -Example Usage - -Create a token for tcr instance - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - delete_bucket = true - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_token" "example" { - instance_id = tencentcloud_tcr_instance.example.id - description = "example for the tcr token" -} -``` - -Import - -tcr token can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_tcr_token.example instance_id#token_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_vpc_attachment.go b/tencentcloud/resource_tc_tcr_vpc_attachment.go index 4a28eaf73e..a7595edced 100644 --- a/tencentcloud/resource_tc_tcr_vpc_attachment.go +++ b/tencentcloud/resource_tc_tcr_vpc_attachment.go @@ -1,50 +1,3 @@ -/* -Use this resource to attach tcr instance with the vpc and subnet network. - -Example Usage - -Attach a tcr instance with vpc resource - -```hcl -locals { - vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id - subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id - tcr_id = tencentcloud_tcr_instance.example.id -} - -data "tencentcloud_vpc_subnets" "vpc" { - is_default = true - availability_zone = var.availability_zone -} - -data "tencentcloud_security_groups" "sg" { - name = "default" -} - -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - delete_bucket = true - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tcr_vpc_attachment" "foo" { - instance_id = local.tcr_id - vpc_id = local.vpc_id - subnet_id = local.subnet_id -} -``` - -Import - -tcr vpc attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_tcr_vpc_attachment.foo instance_id#vpc_id#subnet_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tcr_webhook_trigger.go b/tencentcloud/resource_tc_tcr_webhook_trigger.go index 031b3e7208..640d531b78 100644 --- a/tencentcloud/resource_tc_tcr_webhook_trigger.go +++ b/tencentcloud/resource_tc_tcr_webhook_trigger.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a tcr webhook trigger - -Example Usage - -Create a tcr webhook trigger instance - -```hcl -resource "tencentcloud_tcr_instance" "example" { - name = "tf-example-tcr" - instance_type = "basic" - delete_bucket = true - - tags ={ - test = "test" - } -} - -resource "tencentcloud_tcr_namespace" "example" { - instance_id = tencentcloud_tcr_instance.example.id - name = "tf_example_ns_retention" - is_public = true - is_auto_scan = true - is_prevent_vul = true - severity = "medium" - cve_whitelist_items { - cve_id = "cve-xxxxx" - } - } - -data "tencentcloud_tcr_namespaces" "example" { - instance_id = tencentcloud_tcr_namespace.example.instance_id - } - -locals { - ns_id = data.tencentcloud_tcr_namespaces.example.namespace_list.0.id - } - -resource "tencentcloud_tcr_webhook_trigger" "example" { - registry_id = tencentcloud_tcr_instance.example.id - namespace = tencentcloud_tcr_namespace.example.name - trigger { - name = "trigger-example" - targets { - address = "http://example.org/post" - headers { - key = "X-Custom-Header" - values = ["a"] - } - } - event_types = ["pushImage"] - condition = ".*" - enabled = true - description = "example for trigger description" - namespace_id = local.ns_id - - } - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tcr webhook_trigger can be imported using the id, e.g. - -``` -terraform import tencentcloud_tcr_webhook_trigger.example webhook_trigger_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdcpg_cluster.go b/tencentcloud/resource_tc_tdcpg_cluster.go index f51d691387..5404d048a8 100644 --- a/tencentcloud/resource_tc_tdcpg_cluster.go +++ b/tencentcloud/resource_tc_tdcpg_cluster.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a tdcpg cluster. - -~> **NOTE:** This resource is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. - -Example Usage - -```hcl -resource "tencentcloud_tdcpg_cluster" "cluster" { - zone = "ap-guangzhou-3" - master_user_password = "" - cpu = 1 - memory = 1 - vpc_id = "vpc_id" - subnet_id = "subnet_id" - pay_mode = "POSTPAID_BY_HOUR" - cluster_name = "cluster_name" - db_version = "10.17" - instance_count = 1 - period = 1 - project_id = 0 -} - -``` -Import - -tdcpg cluster can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdcpg_cluster.cluster cluster_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdcpg_instance.go b/tencentcloud/resource_tc_tdcpg_instance.go index 206a68f660..87445bfa98 100644 --- a/tencentcloud/resource_tc_tdcpg_instance.go +++ b/tencentcloud/resource_tc_tdcpg_instance.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a tdcpg instance. - -~> **NOTE:** This resource is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. - -Example Usage - -```hcl -resource "tencentcloud_tdcpg_instance" "instance1" { - cluster_id = "cluster_id" - cpu = 1 - memory = 1 - instance_name = "instance_name" -} - -resource "tencentcloud_tdcpg_instance" "instance2" { - cluster_id = "cluster_id" - cpu = 1 - memory = 2 - instance_name = "instance_name" - operation_timing = "IMMEDIATE" -} - -``` -Import - -tdcpg instance can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdcpg_instance.instance cluster_id#instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_instance.go b/tencentcloud/resource_tc_tdmq_instance.go index 47ba23640e..ae33ce3614 100644 --- a/tencentcloud/resource_tc_tdmq_instance.go +++ b/tencentcloud/resource_tc_tdmq_instance.go @@ -1,26 +1,3 @@ -/* -Provide a resource to create a TDMQ instance. - -Example Usage - -```hcl -resource "tencentcloud_tdmq_instance" "foo" { - cluster_name = "example" - remark = "this is description." - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -Tdmq instance can be imported, e.g. - -``` -$ terraform import tencentcloud_tdmq_instance.test tdmq_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_namespace.go b/tencentcloud/resource_tc_tdmq_namespace.go index 111554e1d7..4e6a402aee 100644 --- a/tencentcloud/resource_tc_tdmq_namespace.go +++ b/tencentcloud/resource_tc_tdmq_namespace.go @@ -1,37 +1,3 @@ -/* -Provide a resource to create a tdmq namespace. - -Example Usage - -```hcl -resource "tencentcloud_tdmq_instance" "example" { - cluster_name = "tf_example" - remark = "remark." - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tdmq_namespace" "example" { - environ_name = "tf_example" - msg_ttl = 300 - cluster_id = tencentcloud_tdmq_instance.example.id - retention_policy { - time_in_minutes = 60 - size_in_mb = 10 - } - remark = "remark." -} -``` - -Import - -Tdmq namespace can be imported, e.g. - -``` -$ terraform import tencentcloud_tdmq_instance.test namespace_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_namespace_role_attachment.go b/tencentcloud/resource_tc_tdmq_namespace_role_attachment.go index 541548b3b5..189c37fc24 100644 --- a/tencentcloud/resource_tc_tdmq_namespace_role_attachment.go +++ b/tencentcloud/resource_tc_tdmq_namespace_role_attachment.go @@ -1,42 +1,3 @@ -/* -Provide a resource to create a TDMQ role. - -Example Usage - -```hcl -resource "tencentcloud_tdmq_instance" "example" { - cluster_name = "tf_example" - remark = "remark." - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tdmq_namespace" "example" { - environ_name = "tf_example" - msg_ttl = 300 - cluster_id = tencentcloud_tdmq_instance.example.id - retention_policy { - time_in_minutes = 60 - size_in_mb = 10 - } - remark = "remark." -} - -resource "tencentcloud_tdmq_role" "example" { - role_name = "tf_example" - cluster_id = tencentcloud_tdmq_instance.example.id - remark = "remark." -} - -resource "tencentcloud_tdmq_namespace_role_attachment" "example" { - environ_id = tencentcloud_tdmq_namespace.example.environ_name - role_name = tencentcloud_tdmq_role.example.role_name - permissions = ["produce", "consume"] - cluster_id = tencentcloud_tdmq_instance.example.id -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rabbitmq_user.go b/tencentcloud/resource_tc_tdmq_rabbitmq_user.go index d6583983ef..8ebeb5ab16 100644 --- a/tencentcloud/resource_tc_tdmq_rabbitmq_user.go +++ b/tencentcloud/resource_tc_tdmq_rabbitmq_user.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a tdmq rabbitmq_user - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rabbitmq_user" "rabbitmq_user" { - instance_id = "amqp-kzbe8p3n" - user = "keep-user" - password = "asdf1234" - description = "test user" - tags = ["management", "monitoring"] - max_connections = 3 - max_channels = 3 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rabbitmq_vip_instance.go b/tencentcloud/resource_tc_tdmq_rabbitmq_vip_instance.go index 07d003a004..589def9a9c 100644 --- a/tencentcloud/resource_tc_tdmq_rabbitmq_vip_instance.go +++ b/tencentcloud/resource_tc_tdmq_rabbitmq_vip_instance.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a tdmq rabbitmq_vip_instance - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "rabbitmq-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "rabbitmq-subnet" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_tdmq_rabbitmq_vip_instance" "example" { - zone_ids = [data.tencentcloud_availability_zones.zones.zones.0.id] - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - cluster_name = "tf-example-rabbitmq-vip-instance" - node_spec = "rabbit-vip-basic-1" - node_num = 1 - storage_size = 200 - enable_create_default_ha_mirror_queue = false - auto_renew_flag = true - time_span = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rabbitmq_virtual_host.go b/tencentcloud/resource_tc_tdmq_rabbitmq_virtual_host.go index edd5bf91aa..9a4409086b 100644 --- a/tencentcloud/resource_tc_tdmq_rabbitmq_virtual_host.go +++ b/tencentcloud/resource_tc_tdmq_rabbitmq_virtual_host.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a tdmq rabbitmq_virtual_host - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rabbitmq_virtual_host" "rabbitmq_virtual_host" { - instance_id = "amqp-kzbe8p3n" - virtual_host = "vh-test-1" - description = "desc" - trace_flag = false -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_cluster.go b/tencentcloud/resource_tc_tdmq_rocketmq_cluster.go index ed4c473e94..739e7ccf12 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_cluster.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_cluster.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a tdmqRocketmq cluster - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} -``` -Import - -tdmqRocketmq cluster can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdmq_rocketmq_cluster.cluster cluster_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_environment_role.go b/tencentcloud/resource_tc_tdmq_rocketmq_environment_role.go index 1f5210eb3c..a1d5bbefd1 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_environment_role.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_environment_role.go @@ -1,40 +1,3 @@ -/* -Provides a resource to create a tdmqRocketmq environment_role - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_role" "example" { - role_name = "tf_example_role" - remark = "remark." - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example_namespace" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_environment_role" "example" { - environment_name = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - role_name = tencentcloud_tdmq_rocketmq_role.example.role_name - permissions = ["produce", "consume"] - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id -} -``` -Import - -tdmqRocketmq environment_role can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdmq_rocketmq_environment_role.environment_role environmentRole_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_group.go b/tencentcloud/resource_tc_tdmq_rocketmq_group.go index 7c21e5ab0e..c755289a14 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_group.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_group.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a tdmqRocketmq group - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_group" "example" { - group_name = "tf_example" - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - read_enable = true - broadcast_enable = true - remark = "remark." -} -``` -Import - -tdmqRocketmq group can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdmq_rocketmq_group.group group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_namespace.go b/tencentcloud/resource_tc_tdmq_rocketmq_namespace.go index 7fea32c73d..f7533430a7 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_namespace.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_namespace.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a tdmqRocketmq namespace - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example_namespace" - remark = "remark." -} -``` -Import - -tdmqRocketmq namespace can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdmq_rocketmq_namespace.namespace namespace_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_role.go b/tencentcloud/resource_tc_tdmq_rocketmq_role.go index cac17c2b66..5a640b497b 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_role.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_role.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a tdmqRocketmq role - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_role" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - role_name = "tf_example" - remark = "remark." -} -``` -Import - -tdmqRocketmq role can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdmq_rocketmq_role.role role_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_topic.go b/tencentcloud/resource_tc_tdmq_rocketmq_topic.go index 9712999814..706e560ee5 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_topic.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_topic.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a tdmqRocketmq topic - -Example Usage - -```hcl -resource "tencentcloud_tdmq_rocketmq_cluster" "example" { - cluster_name = "tf_example" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_namespace" "example" { - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - namespace_name = "tf_example_namespace" - remark = "remark." -} - -resource "tencentcloud_tdmq_rocketmq_topic" "example" { - topic_name = "tf_example" - namespace_name = tencentcloud_tdmq_rocketmq_namespace.example.namespace_name - cluster_id = tencentcloud_tdmq_rocketmq_cluster.example.cluster_id - type = "Normal" - remark = "remark." -} -``` -Import - -tdmqRocketmq topic can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tdmq_rocketmq_topic.topic topic_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_rocketmq_vip_instance.go b/tencentcloud/resource_tc_tdmq_rocketmq_vip_instance.go index 7870163f88..45429e25d9 100644 --- a/tencentcloud/resource_tc_tdmq_rocketmq_vip_instance.go +++ b/tencentcloud/resource_tc_tdmq_rocketmq_vip_instance.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a tdmq rocketmq_vip_instance - -~> **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.1.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_tdmq_rocketmq_vip_instance" "example" { - name = "tx-example" - spec = "rocket-vip-basic-2" - node_count = 2 - storage_size = 200 - zone_ids = [ - data.tencentcloud_availability_zones.zones.zones.0.id, - data.tencentcloud_availability_zones.zones.zones.1.id - ] - - vpc_info { - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - - } - - time_span = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_role.go b/tencentcloud/resource_tc_tdmq_role.go index 94bc84caa5..305063bd51 100644 --- a/tencentcloud/resource_tc_tdmq_role.go +++ b/tencentcloud/resource_tc_tdmq_role.go @@ -1,32 +1,3 @@ -/* -Provide a resource to create a TDMQ role. - -Example Usage - -```hcl -resource "tencentcloud_tdmq_instance" "example" { - cluster_name = "tf_example" - remark = "remark." - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tdmq_role" "example" { - role_name = "tf_example" - cluster_id = tencentcloud_tdmq_instance.example.id - remark = "remark." -} -``` - -Import - -Tdmq instance can be imported, e.g. - -``` -$ terraform import tencentcloud_tdmq_instance.test tdmq_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_send_rocketmq_message.go b/tencentcloud/resource_tc_tdmq_send_rocketmq_message.go index 8f5328ec14..e88dd17af7 100644 --- a/tencentcloud/resource_tc_tdmq_send_rocketmq_message.go +++ b/tencentcloud/resource_tc_tdmq_send_rocketmq_message.go @@ -1,19 +1,3 @@ -/* -Provides a resource to create a tdmq send_rocketmq_message - -Example Usage - -```hcl -resource "tencentcloud_tdmq_send_rocketmq_message" "send_rocketmq_message" { - cluster_id = "rocketmq-7k45z9dkpnne" - namespace_id = "test_ns" - topic_name = "test_topic" - msg_body = "msg key" - msg_key = "msg tag" - msg_tag = "msg value" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tdmq_topic.go b/tencentcloud/resource_tc_tdmq_topic.go index 75f02df366..096082904e 100644 --- a/tencentcloud/resource_tc_tdmq_topic.go +++ b/tencentcloud/resource_tc_tdmq_topic.go @@ -1,46 +1,3 @@ -/* -Provide a resource to create a TDMQ topic. - -Example Usage - -```hcl -resource "tencentcloud_tdmq_instance" "example" { - cluster_name = "tf_example" - remark = "remark." - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tdmq_namespace" "example" { - environ_name = "tf_example" - msg_ttl = 300 - cluster_id = tencentcloud_tdmq_instance.example.id - retention_policy { - time_in_minutes = 60 - size_in_mb = 10 - } - remark = "remark." -} - -resource "tencentcloud_tdmq_topic" "example" { - environ_id = tencentcloud_tdmq_namespace.example.environ_name - cluster_id = tencentcloud_tdmq_instance.example.id - topic_name = "tf-example-topic" - partitions = 6 - pulsar_topic_type = 3 - remark = "remark." -} -``` - -Import - -Tdmq Topic can be imported, e.g. - -``` -$ terraform import tencentcloud_tdmq_topic.test topic_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_app_config.go b/tencentcloud/resource_tc_tem_app_config.go index 16dc3925ba..a179531ccd 100644 --- a/tencentcloud/resource_tc_tem_app_config.go +++ b/tencentcloud/resource_tc_tem_app_config.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a tem appConfig - -Example Usage - -```hcl -resource "tencentcloud_tem_app_config" "appConfig" { - environment_id = "en-o5edaepv" - name = "demo" - config_data { - key = "key" - value = "value" - } - config_data { - key = "key1" - value = "value1" - } -} -``` -Import - -tem appConfig can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tem_app_config.appConfig environmentId#name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_application.go b/tencentcloud/resource_tc_tem_application.go index 35d0311218..da980463f5 100644 --- a/tencentcloud/resource_tc_tem_application.go +++ b/tencentcloud/resource_tc_tem_application.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a tem application - -Example Usage - -```hcl -resource "tencentcloud_tem_application" "application" { - application_name = "demo" - description = "demo for test" - coding_language = "JAVA" - use_default_image_service = 0 - repo_type = 2 - repo_name = "qcloud/nginx" - repo_server = "ccr.ccs.tencentyun.com" - tags = { - "created" = "terraform" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_application_service.go b/tencentcloud/resource_tc_tem_application_service.go index 7b2c39b376..4b51a1d9b7 100644 --- a/tencentcloud/resource_tc_tem_application_service.go +++ b/tencentcloud/resource_tc_tem_application_service.go @@ -1,32 +1,3 @@ -/* -Provides a resource to create a tem application_service - -Example Usage - -```hcl -resource "tencentcloud_tem_application_service" "application_service" { - environment_id = "en-dpxyydl5" - application_id = "app-jrl3346j" - service { - type = "CLUSTER" - service_name = "test0-1" - port_mapping_item_list { - port = 80 - target_port = 80 - protocol = "TCP" - } - } -} -``` - -Import - -tem application_service can be imported using the environmentId#applicationId#serviceName, e.g. - -``` -terraform import tencentcloud_tem_application_service.application_service en-dpxyydl5#app-jrl3346j#test0-1 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_environment.go b/tencentcloud/resource_tc_tem_environment.go index 1970c8cacc..9c64ab5529 100644 --- a/tencentcloud/resource_tc_tem_environment.go +++ b/tencentcloud/resource_tc_tem_environment.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a tem environment - -Example Usage - -```hcl -resource "tencentcloud_tem_environment" "environment" { - environment_name = "demo" - description = "demo for test" - vpc = "vpc-2hfyray3" - subnet_ids = ["subnet-rdkj0agk", "subnet-r1c4pn5m", "subnet-02hcj95c"] - tags = { - "created" = "terraform" - } -} - -``` -Import - -tem environment can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tem_environment.environment environment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_gateway.go b/tencentcloud/resource_tc_tem_gateway.go index bce413800e..beb0d32d5d 100644 --- a/tencentcloud/resource_tc_tem_gateway.go +++ b/tencentcloud/resource_tc_tem_gateway.go @@ -1,53 +1,3 @@ -/* -Provides a resource to create a tem gateway - -Example Usage - -```hcl -resource "tencentcloud_tem_gateway" "gateway" { - ingress { - ingress_name = "demo" - environment_id = "en-853mggjm" - address_ip_version = "IPV4" - rewrite_type = "NONE" - mixed = false - rules { - host = "test.com" - protocol = "http" - http { - paths { - path = "/" - backend { - service_name = "demo" - service_port = 80 - } - } - } - } - rules { - host = "hello.com" - protocol = "http" - http { - paths { - path = "/" - backend { - service_name = "hello" - service_port = 36000 - } - } - } - } - } -} - -``` -Import - -tem gateway can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tem_gateway.gateway environmentId#gatewayName -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_log_config.go b/tencentcloud/resource_tc_tem_log_config.go index 70c24b33b3..b5b3b5fe91 100644 --- a/tencentcloud/resource_tc_tem_log_config.go +++ b/tencentcloud/resource_tc_tem_log_config.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a tem logConfig - -Example Usage - -```hcl -resource "tencentcloud_tem_log_config" "logConfig" { - environment_id = "en-o5edaepv" - application_id = "app-3j29aa2p" - workload_id = resource.tencentcloud_tem_workload.workload.id - name = "terraform" - logset_id = "b5824781-8d5b-4029-a2f7-d03c37f72bdf" - topic_id = "5a85bb6d-8e41-4e04-b7bd-c05e04782f94" - input_type = "container_stdout" - log_type = "minimalist_log" -} - -``` -Import - -tem logConfig can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tem_log_config.logConfig environmentId#applicationId#name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_scale_rule.go b/tencentcloud/resource_tc_tem_scale_rule.go index fae6a436ea..6352929dd8 100644 --- a/tencentcloud/resource_tc_tem_scale_rule.go +++ b/tencentcloud/resource_tc_tem_scale_rule.go @@ -1,58 +1,3 @@ -/* -Provides a resource to create a tem scaleRule - -Example Usage - -```hcl -resource "tencentcloud_tem_scale_rule" "scaleRule" { - environment_id = "en-o5edaepv" - application_id = "app-3j29aa2p" - workload_id = resource.tencentcloud_tem_workload.workload.id - autoscaler { - autoscaler_name = "test3123" - description = "test" - enabled = true - min_replicas = 1 - max_replicas = 4 - cron_horizontal_autoscaler { - name = "test" - period = "* * *" - priority = 1 - enabled = true - schedules { - start_at = "03:00" - target_replicas = 1 - } - } - cron_horizontal_autoscaler { - name = "test123123" - period = "* * *" - priority = 0 - enabled = true - schedules { - start_at = "04:13" - target_replicas = 1 - } - } - horizontal_autoscaler { - metrics = "CPU" - enabled = true - max_replicas = 4 - min_replicas = 1 - threshold = 60 - } - - } -} - -``` -Import - -tem scaleRule can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tem_scale_rule.scaleRule environmentId#applicationId#scaleRuleId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tem_workload.go b/tencentcloud/resource_tc_tem_workload.go index 8905ea6f6e..030a1e0cc3 100644 --- a/tencentcloud/resource_tc_tem_workload.go +++ b/tencentcloud/resource_tc_tem_workload.go @@ -1,58 +1,3 @@ -/* -Provides a resource to create a tem workload - -Example Usage - -```hcl -resource "tencentcloud_tem_workload" "workload" { - application_id = "app-j4d3x6kj" - environment_id = "en-85377m6j" - deploy_version = "hello-world" - deploy_mode = "IMAGE" - img_repo = "tem_demo/tem_demo" - repo_server = "ccr.ccs.tencentyun.com" - init_pod_num = 1 - cpu_spec = 1 - memory_spec = 1 - # liveness { - # type = "HttpGet" - # protocol = "HTTP" - # path = "/" - # port = 8080 - # initial_delay_seconds = 0 - # timeout_seconds = 1 - # period_seconds = 10 - - # } - # readiness { - # type = "HttpGet" - # protocol = "HTTP" - # path = "/" - # port = 8000 - # initial_delay_seconds = 0 - # timeout_seconds = 1 - # period_seconds = 10 - - # } - # startup_probe { - # type = "HttpGet" - # protocol = "HTTP" - # path = "/" - # port = 36000 - # initial_delay_seconds = 0 - # timeout_seconds = 1 - # period_seconds = 10 - - # } -} -``` -Import - -tem workload can be imported using the id, e.g. -``` -$ terraform import tencentcloud_tem_workload.workload envirnomentId#applicationId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_acceleration_domain.go b/tencentcloud/resource_tc_teo_acceleration_domain.go index 01828e7c75..355cd8f29e 100644 --- a/tencentcloud/resource_tc_teo_acceleration_domain.go +++ b/tencentcloud/resource_tc_teo_acceleration_domain.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a teo acceleration_domain - -Example Usage - -```hcl -resource "tencentcloud_teo_acceleration_domain" "acceleration_domain" { - zone_id = "zone-2o0i41pv2h8c" - domain_name = "aaa.makn.cn" - - origin_info { - origin = "150.109.8.1" - origin_type = "IP_DOMAIN" - } -} -``` - -Import - -teo acceleration_domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_teo_acceleration_domain.acceleration_domain acceleration_domain_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_application_proxy_rule.go b/tencentcloud/resource_tc_teo_application_proxy_rule.go index e56a2ec474..7c730de0aa 100644 --- a/tencentcloud/resource_tc_teo_application_proxy_rule.go +++ b/tencentcloud/resource_tc_teo_application_proxy_rule.go @@ -1,34 +1,3 @@ -/* -Provides a resource to create a teo application_proxy_rule - -Example Usage - -```hcl -resource "tencentcloud_teo_application_proxy_rule" "application_proxy_rule" { - forward_client_ip = "TOA" - origin_type = "custom" - origin_port = "8083" - origin_value = [ - "127.0.0.1", - ] - port = [ - "8083", - ] - proto = "TCP" - proxy_id = "proxy-6972528a-373a-11ed-afca-52540044a456" - session_persist = false - status = "online" - zone_id = "zone-2983wizgxqvm" -} - -``` -Import - -teo application_proxy_rule can be imported using the zoneId#proxyId#ruleId, e.g. -``` -terraform import tencentcloud_teo_application_proxy_rule.application_proxy_rule zone-2983wizgxqvm#proxy-6972528a-373a-11ed-afca-52540044a456#rule-90b13bb4-373a-11ed-8794-525400eddfed -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_certificate_config.go b/tencentcloud/resource_tc_teo_certificate_config.go index d8b87c10d8..c9aa8923b4 100644 --- a/tencentcloud/resource_tc_teo_certificate_config.go +++ b/tencentcloud/resource_tc_teo_certificate_config.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a teo certificate - -Example Usage - -```hcl -resource "tencentcloud_teo_certificate_config" "certificate" { - host = "test.tencentcloud-terraform-provider.cn" - mode = "eofreecert" - zone_id = "zone-2o1t24kgy362" -} -``` - -Configure SSL certificate - -```hcl -resource "tencentcloud_teo_certificate_config" "certificate" { - host = "test.tencentcloud-terraform-provider.cn" - mode = "sslcert" - zone_id = "zone-2o1t24kgy362" - - server_cert_info { - cert_id = "8xiUJIJd" - } -} -``` - -Import - -teo certificate can be imported using the id, e.g. - -``` -terraform import tencentcloud_teo_certificate_config.certificate zone_id#host#cert_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_origin_group.go b/tencentcloud/resource_tc_teo_origin_group.go index 1526627df5..82d7b5e0b2 100644 --- a/tencentcloud/resource_tc_teo_origin_group.go +++ b/tencentcloud/resource_tc_teo_origin_group.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a teo origin_group - -Example Usage - -Self origin group - -```hcl -resource "tencentcloud_teo_origin_group" "origin_group" { - zone_id = "zone-297z8rf93cfw" - configuration_type = "weight" - origin_group_name = "test-group" - origin_type = "self" - origin_records { - area = [] - port = 8080 - private = false - record = "150.109.8.1" - weight = 100 - } -} - -``` - -Cos origin group - -```hcl -resource "tencentcloud_teo_origin_group" "origin_group" { - configuration_type = "weight" - origin_group_name = "test" - origin_type = "cos" - zone_id = "zone-2o3h21ed8bpu" - - origin_records { - area = [] - port = 0 - private = true - record = "test-ruichaolin-1310708577.cos.ap-nanjing.myqcloud.com" - weight = 100 - } -} -``` -Import - -teo origin_group can be imported using the zone_id#originGroup_id, e.g. -```` -terraform import tencentcloud_teo_origin_group.origin_group zone-297z8rf93cfw#origin-4f8a30b2-3720-11ed-b66b-525400dceb86 -```` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_ownership_verify.go b/tencentcloud/resource_tc_teo_ownership_verify.go index 902382ed4e..9647b470b2 100644 --- a/tencentcloud/resource_tc_teo_ownership_verify.go +++ b/tencentcloud/resource_tc_teo_ownership_verify.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a teo ownership_verify - -Example Usage - -```hcl -resource "tencentcloud_teo_ownership_verify" "ownership_verify" { - domain = "qq.com" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_rule_engine.go b/tencentcloud/resource_tc_teo_rule_engine.go index 3f6cad138e..529607b391 100644 --- a/tencentcloud/resource_tc_teo_rule_engine.go +++ b/tencentcloud/resource_tc_teo_rule_engine.go @@ -1,135 +1,3 @@ -/* -Provides a resource to create a teo rule_engine - -Example Usage - -```hcl -resource "tencentcloud_teo_rule_engine" "rule1" { - zone_id = tencentcloud_teo_zone.example.id - rule_name = "test-rule" - status = "disable" - - rules { - actions { - normal_action { - action = "UpstreamUrlRedirect" - parameters { - name = "Type" - values = [ - "Path", - ] - } - parameters { - name = "Action" - values = [ - "addPrefix", - ] - } - parameters { - name = "Value" - values = [ - "/sss", - ] - } - } - } - - or { - and { - operator = "equal" - target = "host" - ignore_case = false - values = [ - "a.tf-teo-t.xyz", - ] - } - and { - operator = "equal" - target = "extension" - ignore_case = false - values = [ - "jpg", - ] - } - } - or { - and { - operator = "equal" - target = "filename" - ignore_case = false - values = [ - "test.txt", - ] - } - } - - sub_rules { - tags = ["png"] - rules { - or { - and { - operator = "notequal" - target = "host" - ignore_case = false - values = [ - "a.tf-teo-t.xyz", - ] - } - and { - operator = "equal" - target = "extension" - ignore_case = false - values = [ - "png", - ] - } - } - or { - and { - operator = "notequal" - target = "filename" - ignore_case = false - values = [ - "test.txt", - ] - } - } - actions { - normal_action { - action = "UpstreamUrlRedirect" - parameters { - name = "Type" - values = [ - "Path", - ] - } - parameters { - name = "Action" - values = [ - "addPrefix", - ] - } - parameters { - name = "Value" - values = [ - "/www", - ] - } - } - } - } - } - } -} - -``` -Import - -teo rule_engine can be imported using the id#rule_id, e.g. -``` -terraform import tencentcloud_teo_rule_engine.rule_engine zone-297z8rf93cfw#rule-ajol584a -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_zone.go b/tencentcloud/resource_tc_teo_zone.go index cd43f10663..355c516378 100644 --- a/tencentcloud/resource_tc_teo_zone.go +++ b/tencentcloud/resource_tc_teo_zone.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a teo zone - -Example Usage - -```hcl -resource "tencentcloud_teo_zone" "zone" { - zone_name = "tf-teo.com" - type = "partial" - area = "overseas" - alias_zone_name = "teo-test" - paused = false - plan_id = "edgeone-2kfv1h391n6w" - tags = { - "createdBy" = "terraform" - } -} - -``` -Import - -teo zone can be imported using the id, e.g. -``` -terraform import tencentcloud_teo_zone.zone zone_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_teo_zone_setting.go b/tencentcloud/resource_tc_teo_zone_setting.go index 6f5a4a7f0f..db1cc42e1c 100644 --- a/tencentcloud/resource_tc_teo_zone_setting.go +++ b/tencentcloud/resource_tc_teo_zone_setting.go @@ -1,124 +1,3 @@ -/* -Provides a resource to create a teo zone_setting - -Example Usage - -```hcl -resource "tencentcloud_teo_zone_setting" "zone_setting" { - zone_id = "zone-297z8rf93cfw" - - cache { - - follow_origin { - switch = "on" - } - - no_cache { - switch = "off" - } - } - - cache_key { - full_url_cache = "on" - ignore_case = "off" - - query_string { - action = "includeCustom" - switch = "off" - value = [] - } - } - - cache_prefresh { - percent = 90 - switch = "off" - } - - client_ip_header { - switch = "off" - } - - compression { - algorithms = [ - "brotli", - "gzip", - ] - switch = "on" - } - - force_redirect { - redirect_status_code = 302 - switch = "off" - } - - https { - http2 = "on" - ocsp_stapling = "off" - tls_version = [ - "TLSv1", - "TLSv1.1", - "TLSv1.2", - "TLSv1.3", - ] - - hsts { - include_sub_domains = "off" - max_age = 0 - preload = "off" - switch = "off" - } - } - - ipv6 { - switch = "off" - } - - max_age { - follow_origin = "on" - max_age_time = 0 - } - - offline_cache { - switch = "on" - } - - origin { - backup_origins = [] - origin_pull_protocol = "follow" - origins = [] - } - - post_max_size { - max_size = 524288000 - switch = "on" - } - - quic { - switch = "off" - } - - smart_routing { - switch = "off" - } - - upstream_http2 { - switch = "off" - } - - web_socket { - switch = "off" - timeout = 30 - } -} - -``` -Import - -teo zone_setting can be imported using the zone_id, e.g. -``` -terraform import tencentcloud_teo_zone_setting.zone_setting zone-297z8rf93cfw# -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_trocket_rocketmq_consumer_group.go b/tencentcloud/resource_tc_trocket_rocketmq_consumer_group.go index 39b00b4edc..10b86ca239 100644 --- a/tencentcloud/resource_tc_trocket_rocketmq_consumer_group.go +++ b/tencentcloud/resource_tc_trocket_rocketmq_consumer_group.go @@ -1,40 +1,3 @@ -/* -Provides a resource to create a trocket rocketmq_consumer_group - -Example Usage - -```hcl -resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { - instance_type = "EXPERIMENT" - name = "test" - sku_code = "experiment_500" - remark = "test" - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxx" - tags = { - tag_key = "rocketmq" - tag_value = "5.x" - } -} - -resource "tencentcloud_trocket_rocketmq_consumer_group" "rocketmq_consumer_group" { - instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id - consumer_group = "test_consumer_group" - max_retry_times = 20 - consume_enable = false - consume_message_orderly = true - remark = "test for terraform" -} -``` - -Import - -trocket rocketmq_consumer_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_trocket_rocketmq_consumer_group.rocketmq_consumer_group instanceId#consumerGroup -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_trocket_rocketmq_instance.go b/tencentcloud/resource_tc_trocket_rocketmq_instance.go index 510471717c..6368d1c237 100644 --- a/tencentcloud/resource_tc_trocket_rocketmq_instance.go +++ b/tencentcloud/resource_tc_trocket_rocketmq_instance.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a rocketmq 5.x instance - -~> **NOTE:** It only support create postpaid rocketmq 5.x instance. - -Example Usage - -Basic Instance -```hcl -resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { - instance_type = "EXPERIMENT" - name = "rocketmq-instance" - sku_code = "experiment_500" - remark = "remark" - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxxx" - tags = { - tag_key = "rocketmq" - tag_value = "5.x" - } -} -``` - -Enable Public Instance -```hcl -resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance_public" { - instance_type = "EXPERIMENT" - name = "rocketmq-enable-public-instance" - sku_code = "experiment_500" - remark = "remark" - vpc_id = "vpc-xxxxxx" - subnet_id = "subnet-xxxxxx" - tags = { - tag_key = "rocketmq" - tag_value = "5.x" - } - enable_public = true - bandwidth = 1 -} -``` - -Import - -trocket rocketmq_instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_trocket_rocketmq_instance.rocketmq_instance rocketmq_instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_trocket_rocketmq_role.go b/tencentcloud/resource_tc_trocket_rocketmq_role.go index 3975ee4ed7..ed29680efc 100644 --- a/tencentcloud/resource_tc_trocket_rocketmq_role.go +++ b/tencentcloud/resource_tc_trocket_rocketmq_role.go @@ -1,47 +1,3 @@ -/* -Provides a resource to create a trocket rocketmq_role - -Example Usage - -```hcl -resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { - instance_type = "EXPERIMENT" - name = "test_role" - sku_code = "experiment_500" - remark = "test" - vpc_id = "vpc-xxxxx" - subnet_id = "subnet-xxxxx" - tags = { - tag_key = "rocketmq" - tag_value = "5.x" - } -} - -resource "tencentcloud_trocket_rocketmq_role" "rocketmq_role" { - instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id - role = "test_role" - remark = "test for terraform" - perm_write = false - perm_read = true -} - -output "access_key" { - value = tencentcloud_trocket_rocketmq_role.rocketmq_role.access_key -} - -output "secret_key" { - value = tencentcloud_trocket_rocketmq_role.rocketmq_role.secret_key -} -``` - -Import - -trocket rocketmq_role can be imported using the id, e.g. - -``` -terraform import tencentcloud_trocket_rocketmq_role.rocketmq_role instanceId#role -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_trocket_rocketmq_topic.go b/tencentcloud/resource_tc_trocket_rocketmq_topic.go index 42762c60f5..18951d6d6b 100644 --- a/tencentcloud/resource_tc_trocket_rocketmq_topic.go +++ b/tencentcloud/resource_tc_trocket_rocketmq_topic.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a trocket rocketmq_topic - -Example Usage - -```hcl -resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { - instance_type = "EXPERIMENT" - name = "test" - sku_code = "experiment_500" - remark = "test" - vpc_id = "vpc-xxxxx" - subnet_id = "subnet-xxxxx" - tags = { - tag_key = "rocketmq" - tag_value = "5.x" - } -} - -resource "tencentcloud_trocket_rocketmq_topic" "rocketmq_topic" { - instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id - topic = "test_topic" - topic_type = "NORMAL" - queue_num = 4 - remark = "test for terraform" -} -``` - -Import - -trocket rocketmq_topic can be imported using the id, e.g. - -``` -terraform import tencentcloud_trocket_rocketmq_topic.rocketmq_topic instanceId#topic -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_canary_rule.go b/tencentcloud/resource_tc_tse_cngw_canary_rule.go index c692f47612..816863b699 100644 --- a/tencentcloud/resource_tc_tse_cngw_canary_rule.go +++ b/tencentcloud/resource_tc_tse_cngw_canary_rule.go @@ -1,74 +1,3 @@ -/* -Provides a resource to create a tse cngw_canary_rule - -Example Usage - -```hcl -resource "tencentcloud_tse_cngw_service" "cngw_service" { - gateway_id = "gateway-ddbb709b" - name = "terraform-test" - path = "/test" - protocol = "http" - retries = 5 - tags = { - "created" = "terraform" - } - timeout = 6000 - upstream_type = "IPList" - - upstream_info { - algorithm = "round-robin" - auto_scaling_cvm_port = 80 - auto_scaling_group_id = "asg-519acdug" - auto_scaling_hook_status = "Normal" - auto_scaling_tat_cmd_status = "Normal" - port = 0 - slow_start = 20 - - targets { - health = "HEALTHCHECKS_OFF" - host = "192.168.0.1" - port = 80 - weight = 100 - } - } -} - -resource "tencentcloud_tse_cngw_canary_rule" "cngw_canary_rule" { - gateway_id = tencentcloud_tse_cngw_service.cngw_service.gateway_id - service_id = tencentcloud_tse_cngw_service.cngw_service.service_id - tags = { - "created" = "terraform" - } - - canary_rule { - enabled = true - priority = 100 - - balanced_service_list { - percent = 100 - service_id = tencentcloud_tse_cngw_service.cngw_service.service_id - service_name = tencentcloud_tse_cngw_service.cngw_service.name - } - - condition_list { - key = "test" - operator = "eq" - type = "query" - value = "1" - } - } -} -``` - -Import - -tse cngw_canary_rule can be imported using the gatewayId#serviceId#priority, e.g. - -``` -terraform import tencentcloud_tse_cngw_canary_rule.cngw_canary_rule gateway-ddbb709b#b6017eaf-2363-481e-9e93-8d65aaf498cd#100 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_certificate.go b/tencentcloud/resource_tc_tse_cngw_certificate.go index eacafe6a22..ce730edf6f 100644 --- a/tencentcloud/resource_tc_tse_cngw_certificate.go +++ b/tencentcloud/resource_tc_tse_cngw_certificate.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a tse cngw_certificate - -Example Usage - -```hcl - -resource "tencentcloud_tse_cngw_certificate" "cngw_certificate" { - gateway_id = "gateway-ddbb709b" - bind_domains = ["example1.com"] - cert_id = "vYSQkJ3K" - name = "xxx1" -} - -``` - -Import - -tse cngw_certificate can be imported using the id, e.g. - -``` -terraform import tencentcloud_tse_cngw_certificate.cngw_certificate gatewayId#Id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_gateway.go b/tencentcloud/resource_tc_tse_cngw_gateway.go index 513a6a8ee1..b20eb137da 100644 --- a/tencentcloud/resource_tc_tse_cngw_gateway.go +++ b/tencentcloud/resource_tc_tse_cngw_gateway.go @@ -1,53 +1,3 @@ -/* -Provides a resource to create a tse cngw_gateway - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_tse_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_tse_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { - description = "terraform test1" - enable_cls = true - engine_region = "ap-guangzhou" - feature_version = "STANDARD" - gateway_version = "2.5.1" - ingress_class_name = "tse-nginx-ingress" - internet_max_bandwidth_out = 0 - name = "terraform-gateway1" - trade_type = 0 - type = "kong" - - node_config { - number = 2 - specification = "1c2g" - } - - vpc_config { - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - } - - tags = { - "createdBy" = "terraform" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_group.go b/tencentcloud/resource_tc_tse_cngw_group.go index 587eb92c79..9456884a69 100644 --- a/tencentcloud/resource_tc_tse_cngw_group.go +++ b/tencentcloud/resource_tc_tse_cngw_group.go @@ -1,65 +1,3 @@ -/* -Provides a resource to create a tse cngw_group - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_tse_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_tse_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { - description = "terraform test1" - enable_cls = true - engine_region = "ap-guangzhou" - feature_version = "STANDARD" - gateway_version = "2.5.1" - ingress_class_name = "tse-nginx-ingress" - internet_max_bandwidth_out = 0 - name = "terraform-gateway1" - trade_type = 0 - type = "kong" - - node_config { - number = 2 - specification = "1c2g" - } - - vpc_config { - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - } - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tse_cngw_group" "cngw_group" { - description = "terraform desc" - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - name = "terraform-group" - subnet_id = tencentcloud_subnet.subnet.id - - node_config { - number = 2 - specification = "1c2g" - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_route.go b/tencentcloud/resource_tc_tse_cngw_route.go index 511dda926e..939e984adc 100644 --- a/tencentcloud/resource_tc_tse_cngw_route.go +++ b/tencentcloud/resource_tc_tse_cngw_route.go @@ -1,96 +1,3 @@ -/* -Provides a resource to create a tse cngw_route - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_tse_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_tse_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { - description = "terraform test1" - enable_cls = true - engine_region = "ap-guangzhou" - feature_version = "STANDARD" - gateway_version = "2.5.1" - ingress_class_name = "tse-nginx-ingress" - internet_max_bandwidth_out = 0 - name = "terraform-gateway1" - trade_type = 0 - type = "kong" - - node_config { - number = 2 - specification = "1c2g" - } - - vpc_config { - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - } - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tse_cngw_service" "cngw_service" { - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - name = "terraform-test" - path = "/test" - protocol = "http" - retries = 5 - timeout = 60000 - upstream_type = "HostIP" - - upstream_info { - algorithm = "round-robin" - auto_scaling_cvm_port = 0 - host = "arunma.cn" - port = 8012 - slow_start = 0 - } -} - -resource "tencentcloud_tse_cngw_route" "cngw_route" { - destination_ports = [] - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - hosts = [ - "192.168.0.1:9090", - ] - https_redirect_status_code = 426 - paths = [ - "/user", - ] - headers { - key = "req" - value = "terraform" - } - preserve_host = false - protocols = [ - "http", - "https", - ] - route_name = "terraform-route" - service_id = tencentcloud_tse_cngw_service.cngw_service.service_id - strip_path = true -} - -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_route_rate_limit.go b/tencentcloud/resource_tc_tse_cngw_route_rate_limit.go index 98f7800f31..bc8522efa8 100644 --- a/tencentcloud/resource_tc_tse_cngw_route_rate_limit.go +++ b/tencentcloud/resource_tc_tse_cngw_route_rate_limit.go @@ -1,125 +1,3 @@ -/* -Provides a resource to create a tse cngw_route_rate_limit - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_tse_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_tse_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { - description = "terraform test1" - enable_cls = true - engine_region = "ap-guangzhou" - feature_version = "STANDARD" - gateway_version = "2.5.1" - ingress_class_name = "tse-nginx-ingress" - internet_max_bandwidth_out = 0 - name = "terraform-gateway1" - trade_type = 0 - type = "kong" - - node_config { - number = 2 - specification = "1c2g" - } - - vpc_config { - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - } - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tse_cngw_service" "cngw_service" { - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - name = "terraform-test" - path = "/test" - protocol = "http" - retries = 5 - timeout = 60000 - upstream_type = "HostIP" - - upstream_info { - algorithm = "round-robin" - auto_scaling_cvm_port = 0 - host = "arunma.cn" - port = 8012 - slow_start = 0 - } -} - -resource "tencentcloud_tse_cngw_route" "cngw_route" { - destination_ports = [] - force_https = false - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - hosts = [ - "192.168.0.1:9090", - ] - https_redirect_status_code = 426 - paths = [ - "/user", - ] - headers { - key = "req" - value = "terraform" - } - preserve_host = false - protocols = [ - "http", - "https", - ] - route_name = "terraform-route" - service_id = tencentcloud_tse_cngw_service.cngw_service.service_id - strip_path = true -} - -resource "tencentcloud_tse_cngw_route_rate_limit" "cngw_route_rate_limit" { - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - route_id = tencentcloud_tse_cngw_route.cngw_route.route_id - - limit_detail { - enabled = true - header = "req" - hide_client_headers = true - is_delay = true - limit_by = "header" - line_up_time = 10 - policy = "redis" - response_type = "default" - - qps_thresholds { - max = 10 - unit = "minute" - } - } -} -``` - -Import - -tse cngw_route_rate_limit can be imported using the id, e.g. - -``` -terraform import tencentcloud_tse_cngw_route_rate_limit.cngw_route_rate_limit gatewayId#routeId -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_service.go b/tencentcloud/resource_tc_tse_cngw_service.go index 5c0908a8de..2f671cbc26 100644 --- a/tencentcloud/resource_tc_tse_cngw_service.go +++ b/tencentcloud/resource_tc_tse_cngw_service.go @@ -1,79 +1,3 @@ -/* -Provides a resource to create a tse cngw_service - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_tse_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_tse_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { - description = "terraform test1" - enable_cls = true - engine_region = "ap-guangzhou" - feature_version = "STANDARD" - gateway_version = "2.5.1" - ingress_class_name = "tse-nginx-ingress" - internet_max_bandwidth_out = 0 - name = "terraform-gateway1" - trade_type = 0 - type = "kong" - - node_config { - number = 2 - specification = "1c2g" - } - - vpc_config { - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - } - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tse_cngw_service" "cngw_service" { - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - name = "terraform-test" - path = "/test" - protocol = "http" - retries = 5 - timeout = 60000 - upstream_type = "HostIP" - - upstream_info { - algorithm = "round-robin" - auto_scaling_cvm_port = 0 - host = "arunma.cn" - port = 8012 - slow_start = 0 - } -} -``` - -Import - -tse cngw_service can be imported using the id, e.g. - -``` -terraform import tencentcloud_tse_cngw_service.cngw_service gatewayId#name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_cngw_service_rate_limit.go b/tencentcloud/resource_tc_tse_cngw_service_rate_limit.go index 61b000a975..de7c411597 100644 --- a/tencentcloud/resource_tc_tse_cngw_service_rate_limit.go +++ b/tencentcloud/resource_tc_tse_cngw_service_rate_limit.go @@ -1,101 +1,3 @@ -/* -Provides a resource to create a tse cngw_service_rate_limit - -Example Usage - -```hcl -variable "availability_zone" { - default = "ap-guangzhou-4" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/16" - name = "tf_tse_vpc" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - availability_zone = var.availability_zone - name = "tf_tse_subnet" - cidr_block = "10.0.1.0/24" -} - -resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { - description = "terraform test1" - enable_cls = true - engine_region = "ap-guangzhou" - feature_version = "STANDARD" - gateway_version = "2.5.1" - ingress_class_name = "tse-nginx-ingress" - internet_max_bandwidth_out = 0 - name = "terraform-gateway1" - trade_type = 0 - type = "kong" - - node_config { - number = 2 - specification = "1c2g" - } - - vpc_config { - subnet_id = tencentcloud_subnet.subnet.id - vpc_id = tencentcloud_vpc.vpc.id - } - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_tse_cngw_service" "cngw_service" { - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - name = "terraform-test" - path = "/test" - protocol = "http" - retries = 5 - timeout = 60000 - upstream_type = "HostIP" - - upstream_info { - algorithm = "round-robin" - auto_scaling_cvm_port = 0 - host = "arunma.cn" - port = 8012 - slow_start = 0 - } -} - -resource "tencentcloud_tse_cngw_service_rate_limit" "cngw_service_rate_limit" { - gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id - name = tencentcloud_tse_cngw_service.cngw_service.name - - limit_detail { - enabled = true - header = "req" - hide_client_headers = true - is_delay = true - limit_by = "header" - line_up_time = 15 - policy = "redis" - response_type = "default" - - qps_thresholds { - max = 100 - unit = "hour" - } - } -} - -``` - -Import - -tse cngw_service_rate_limit can be imported using the id, e.g. - -``` -terraform import tencentcloud_tse_cngw_service_rate_limit.cngw_service_rate_limit gatewayId#name -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_instance.go b/tencentcloud/resource_tc_tse_instance.go index d706d062b7..03bc173425 100644 --- a/tencentcloud/resource_tc_tse_instance.go +++ b/tencentcloud/resource_tc_tse_instance.go @@ -1,110 +1,3 @@ -/* -Provides a resource to create a tse instance - -Example Usage - -Create zookeeper standard version -```hcl -resource "tencentcloud_tse_instance" "zookeeper_standard" { - engine_type = "zookeeper" - engine_version = "3.5.9.4" - engine_product_version = "STANDARD" - engine_region = "ap-guangzhou" - engine_name = "zookeeper-test" - trade_type = 0 - engine_resource_spec = "spec-qvj6k7t4q" - engine_node_num = 3 - vpc_id = "vpc-4owdpnwr" - subnet_id = "subnet-dwj7ipnc" - - tags = { - "createdBy" = "terraform" - } -} -``` - -Create zookeeper professional version -```hcl -resource "tencentcloud_tse_instance" "zookeeper_professional" { - engine_type = "zookeeper" - engine_version = "3.5.9.4" - engine_product_version = "PROFESSIONAL" - engine_region = "ap-guangzhou" - engine_name = "zookeeper-test" - trade_type = 0 - engine_resource_spec = "spec-qvj6k7t4q" - engine_node_num = 3 - vpc_id = "vpc-4owdpnwr" - subnet_id = "subnet-dwj7ipnc" - - engine_region_infos { - engine_region = "ap-guangzhou" - replica = 3 - - vpc_infos { - subnet_id = "subnet-dwj7ipnc" - vpc_id = "vpc-4owdpnwr" - } - vpc_infos { - subnet_id = "subnet-403mgks4" - vpc_id = "vpc-b1puef4z" - } - } - tags = { - "createdBy" = "terraform" - } -} -``` - -Create nacos standard version -```hcl -resource "tencentcloud_tse_instance" "nacos" { - enable_client_internet_access = false - engine_name = "test" - engine_node_num = 3 - engine_product_version = "STANDARD" - engine_region = "ap-guangzhou" - engine_resource_spec = "spec-1160a35a" - engine_type = "nacos" - engine_version = "2.0.3.4" - subnet_id = "subnet-5vpegquy" - trade_type = 0 - vpc_id = "vpc-99xmasf9" - - tags = { - "createdBy" = "terraform" - } -} -``` - -Create polaris base version -```hcl -resource "tencentcloud_tse_instance" "polaris" { - enable_client_internet_access = false - engine_name = "test" - engine_node_num = 2 - engine_product_version = "BASE" - engine_region = "ap-guangzhou" - engine_resource_spec = "spec-c160bas1" - engine_type = "polaris" - engine_version = "1.16.0.1" - subnet_id = "subnet-5vpegquy" - trade_type = 0 - vpc_id = "vpc-99xmasf9" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tse instance can be imported using the id, e.g. - -``` -terraform import tencentcloud_tse_instance.instance instance_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_waf_domains.go b/tencentcloud/resource_tc_tse_waf_domains.go index 8d2eaeb063..9b9eb8f358 100644 --- a/tencentcloud/resource_tc_tse_waf_domains.go +++ b/tencentcloud/resource_tc_tse_waf_domains.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a tse waf_domains - -Example Usage - -```hcl -resource "tencentcloud_tse_waf_domains" "waf_domains" { - domain = "tse.exmaple.com" - gateway_id = "gateway-ed63e957" -} -``` - -Import - -tse waf_domains can be imported using the id, e.g. - -``` -terraform import tencentcloud_tse_waf_domains.waf_domains waf_domains_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tse_waf_protection.go b/tencentcloud/resource_tc_tse_waf_protection.go index 0f551277c4..a1411df689 100644 --- a/tencentcloud/resource_tc_tse_waf_protection.go +++ b/tencentcloud/resource_tc_tse_waf_protection.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a tse waf_protection - -Example Usage - -```hcl -resource "tencentcloud_tse_waf_protection" "waf_protection" { - gateway_id = "gateway-ed63e957" - type = "Route" - list = ["7324a769-9d87-48ce-a904-48c3defc4abd"] - operate = "open" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_api_group.go b/tencentcloud/resource_tc_tsf_api_group.go index 983ba0b12d..724ba024d6 100644 --- a/tencentcloud/resource_tc_tsf_api_group.go +++ b/tencentcloud/resource_tc_tsf_api_group.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a tsf api_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_api_group" "api_group" { - group_name = "terraform_test_group" - group_context = "/terraform-test" - auth_type = "none" - description = "terraform-test" - group_type = "ms" - gateway_instance_id = "gw-ins-i6mjpgm8" - # namespace_name_key = "path" - # service_name_key = "path" - namespace_name_key_position = "path" - service_name_key_position = "path" -} -``` - -Import - -tsf api_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_api_group.api_group api_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_api_rate_limit_rule.go b/tencentcloud/resource_tc_tsf_api_rate_limit_rule.go index f5692ffd93..8f3dce41ff 100644 --- a/tencentcloud/resource_tc_tsf_api_rate_limit_rule.go +++ b/tencentcloud/resource_tc_tsf_api_rate_limit_rule.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf api_rate_limit_rule - -Example Usage - -```hcl -resource "tencentcloud_tsf_api_rate_limit_rule" "api_rate_limit_rule" { - api_id = "api-xxxxxx" - max_qps = 10 - usable_status = "enable" -} -``` - -Import - -tsf api_rate_limit_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_api_rate_limit_rule.api_rate_limit_rule api_rate_limit_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application.go b/tencentcloud/resource_tc_tsf_application.go index 664bd91151..84534a5207 100644 --- a/tencentcloud/resource_tc_tsf_application.go +++ b/tencentcloud/resource_tc_tsf_application.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a tsf application - -Example Usage - -```hcl -resource "tencentcloud_tsf_application" "application" { - application_name = "my-app" - application_type = "C" - microservice_type = "M" - application_desc = "This is my application" - application_runtime_type = "Java" - service_config_list { - name = "my-service" - ports { - target_port = 8080 - protocol = "HTTP" - } - health_check { - path = "/health" - } - } - ignore_create_image_repository = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application_config.go b/tencentcloud/resource_tc_tsf_application_config.go index 3790608905..601af6af2e 100644 --- a/tencentcloud/resource_tc_tsf_application_config.go +++ b/tencentcloud/resource_tc_tsf_application_config.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a tsf application_config - -Example Usage - -```hcl -resource "tencentcloud_tsf_application_config" "application_config" { - config_name = "test-2" - config_version = "1.0" - config_value = "name: \"name\"" - application_id = "application-ym9mxmza" - config_version_desc = "test2" - # config_type = "" - encode_with_base64 = false - # program_id_list = -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application_file_config.go b/tencentcloud/resource_tc_tsf_application_file_config.go index eb563f0464..f89f86b196 100644 --- a/tencentcloud/resource_tc_tsf_application_file_config.go +++ b/tencentcloud/resource_tc_tsf_application_file_config.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a tsf application_file_config - -Example Usage - -```hcl -resource "tencentcloud_tsf_application_file_config" "application_file_config" { - config_name = "terraform-test" - config_version = "1.0" - config_file_name = "application.yaml" - config_file_value = "test: 1" - application_id = "application-a24x29xv" - config_file_path = "/etc/nginx" - config_version_desc = "1.0" - config_file_code = "UTF-8" - config_post_cmd = "source .bashrc" - encode_with_base64 = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application_file_config_release.go b/tencentcloud/resource_tc_tsf_application_file_config_release.go index 1501943fce..7c4556cdc0 100644 --- a/tencentcloud/resource_tc_tsf_application_file_config_release.go +++ b/tencentcloud/resource_tc_tsf_application_file_config_release.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf application_file_config_release - -Example Usage - -```hcl -resource "tencentcloud_tsf_application_file_config_release" "application_file_config_release" { - config_id = "dcfg-f-123456" - group_id = "group-123456" - release_desc = "product release" -} -``` - -Import - -tsf applicationfile_config_release can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_application_file_config_release.application_file_config_release application_file_config_release_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application_public_config.go b/tencentcloud/resource_tc_tsf_application_public_config.go index 6f6ae4bb34..f9ea4033a3 100644 --- a/tencentcloud/resource_tc_tsf_application_public_config.go +++ b/tencentcloud/resource_tc_tsf_application_public_config.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a tsf application_public_config - -Example Usage - -```hcl -resource "tencentcloud_tsf_application_public_config" "application_public_config" { - config_name = "my_config" - config_version = "1.0" - config_value = "test: 1" - config_version_desc = "product version" - config_type = "P" - encode_with_base64 = true - # program_id_list = -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application_public_config_release.go b/tencentcloud/resource_tc_tsf_application_public_config_release.go index 9083f52755..be0639544b 100644 --- a/tencentcloud/resource_tc_tsf_application_public_config_release.go +++ b/tencentcloud/resource_tc_tsf_application_public_config_release.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf application_public_config_release - -Example Usage - -```hcl -resource "tencentcloud_tsf_application_public_config_release" "application_public_config_release" { - config_id = "dcfg-p-123456" - namespace_id = "namespace-123456" - release_desc = "product version" -} -``` - -Import - -tsf application_public_config_release can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_application_public_config_release.application_public_config_release application_public_config_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_application_release_config.go b/tencentcloud/resource_tc_tsf_application_release_config.go index 8b2fea0137..64ff06d2e6 100644 --- a/tencentcloud/resource_tc_tsf_application_release_config.go +++ b/tencentcloud/resource_tc_tsf_application_release_config.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf application_release_config - -Example Usage - -```hcl -resource "tencentcloud_tsf_application_release_config" "application_release_config" { - config_id = "dcfg-nalqbqwv" - group_id = "group-yxmz72gv" - release_desc = "terraform-test" -} -``` - -Import - -tsf application_release_config can be imported using the configId#groupId#configReleaseId, e.g. - -``` -terraform import tencentcloud_tsf_application_release_config.application_release_config dcfg-nalqbqwv#group-yxmz72gv#dcfgr-maeeq2ea -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_bind_api_group.go b/tencentcloud/resource_tc_tsf_bind_api_group.go index a955153eea..4d5bef6035 100644 --- a/tencentcloud/resource_tc_tsf_bind_api_group.go +++ b/tencentcloud/resource_tc_tsf_bind_api_group.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a tsf bind_api_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_bind_api_group" "bind_api_group" { - gateway_deploy_group_id = "group-vzd97zpy" - group_id = "grp-qp0rj3zi" -} -``` - -Import - -tsf bind_api_group can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_bind_api_group.bind_api_group bind_api_group_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_cluster.go b/tencentcloud/resource_tc_tsf_cluster.go index 55a032c630..273fbffccd 100644 --- a/tencentcloud/resource_tc_tsf_cluster.go +++ b/tencentcloud/resource_tc_tsf_cluster.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a tsf cluster - -Example Usage - -```hcl -resource "tencentcloud_tsf_cluster" "cluster" { - cluster_name = "terraform-test" - cluster_type = "C" - vpc_id = "vpc-xxxxxx" - cluster_cidr = "9.165.120.0/24" - cluster_desc = "test" - tsf_region_id = "ap-guangzhou" - cluster_version = "1.18.4" - max_node_pod_num = 32 - max_cluster_service_num = 128 - tags = { - "createdBy" = "terraform" - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_config_template.go b/tencentcloud/resource_tc_tsf_config_template.go index f1cdff1c75..6847cc2c26 100644 --- a/tencentcloud/resource_tc_tsf_config_template.go +++ b/tencentcloud/resource_tc_tsf_config_template.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf config_template - -Example Usage - -```hcl -resource "tencentcloud_tsf_config_template" "config_template" { - config_template_name = "terraform-template-name" - config_template_type = "Ribbon" - config_template_value = <<-EOT - ribbon.ReadTimeout: 5000 - ribbon.ConnectTimeout: 2000 - ribbon.MaxAutoRetries: 0 - ribbon.MaxAutoRetriesNextServer: 1 - ribbon.OkToRetryOnAllOperations: true - EOT - config_template_desc = "terraform-test" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_deploy_container_group.go b/tencentcloud/resource_tc_tsf_deploy_container_group.go index c3e2af261c..f18a4d6c0c 100644 --- a/tencentcloud/resource_tc_tsf_deploy_container_group.go +++ b/tencentcloud/resource_tc_tsf_deploy_container_group.go @@ -1,71 +1,3 @@ -/* -Provides a resource to create a tsf deploy_container_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_deploy_container_group" "deploy_container_group" { - group_id = "group-yqml6w3a" - cpu_request = "0.25" - mem_request = "640" - server = "ccr.ccs.tencentyun.com" - reponame = "tsf_100011913960/terraform" - tag_name = "terraform-only-1" - do_not_start = false - instance_num = 1 - update_type = 1 - update_ivl = 10 - mem_limit = "1280" - cpu_limit = "0.5" - agent_cpu_request = "0.1" - agent_cpu_limit = "0.2" - agent_mem_request = "125" - agent_mem_limit = "400" - max_surge = "25%" - max_unavailable = "0" - service_setting { - access_type = 1 - protocol_ports { - protocol = "TCP" - port = 18081 - target_port = 18081 - node_port = 30001 - } - subnet_id = "" - disable_service = false - headless_service = false - allow_delete_service = true - open_session_affinity = false - session_affinity_timeout_seconds = 10800 - - } - health_check_settings { - readiness_probe { - action_type = "TCP" - initial_delay_seconds = 0 - timeout_seconds = 3 - period_seconds = 30 - success_threshold = 1 - failure_threshold = 3 - scheme = "HTTP" - port = 80 - path = "/" - type = "TSF_DEFAULT" - } - } - scheduling_strategy { - type = "NONE" - } - deploy_agent = true - repo_type = "personal" - volume_clean = false - jvm_opts = "-Xms128m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m" - warmup_setting { - enabled = false - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_deploy_vm_group.go b/tencentcloud/resource_tc_tsf_deploy_vm_group.go index 9c461a0732..318591698b 100644 --- a/tencentcloud/resource_tc_tsf_deploy_vm_group.go +++ b/tencentcloud/resource_tc_tsf_deploy_vm_group.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a tsf deploy_vm_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_deploy_vm_group" "deploy_vm_group" { - group_id = "group-vzd97zpy" - pkg_id = "pkg-131bc1d3" - startup_parameters = "-Xms128m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m" - deploy_desc = "deploy test" - force_start = false - enable_health_check = true - health_check_settings { - readiness_probe { - action_type = "HTTP" - initial_delay_seconds = 10 - timeout_seconds = 2 - period_seconds = 10 - success_threshold = 1 - failure_threshold = 3 - scheme = "HTTP" - port = "80" - path = "/" - } - } - update_type = 0 - jdk_name = "konaJDK" - jdk_version = "8" - -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_enable_unit_rule.go b/tencentcloud/resource_tc_tsf_enable_unit_rule.go index 16eac1a4ec..03ad9ff353 100644 --- a/tencentcloud/resource_tc_tsf_enable_unit_rule.go +++ b/tencentcloud/resource_tc_tsf_enable_unit_rule.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a tsf enable_unit_rule - -Example Usage - -```hcl -resource "tencentcloud_tsf_enable_unit_rule" "enable_unit_rule" { - rule_id = "unit-rl-is9m4nxz" - switch = "enabled" -} -``` - -Import - -tsf enable_unit_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_enable_unit_rule.enable_unit_rule enable_unit_rule_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_group.go b/tencentcloud/resource_tc_tsf_group.go index cf74c95739..79a11939ab 100644 --- a/tencentcloud/resource_tc_tsf_group.go +++ b/tencentcloud/resource_tc_tsf_group.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a tsf group - -Example Usage - -```hcl -resource "tencentcloud_tsf_group" "group" { - application_id = "application-xxx" - namespace_id = "namespace-aemrxxx" - group_name = "terraform-test" - cluster_id = "cluster-vwgjxxxx" - group_desc = "terraform desc" - alias = "terraform test" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tsf group can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_group.group group-axxx -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_instances_attachment.go b/tencentcloud/resource_tc_tsf_instances_attachment.go index 2f77a74959..44306ab1ea 100644 --- a/tencentcloud/resource_tc_tsf_instances_attachment.go +++ b/tencentcloud/resource_tc_tsf_instances_attachment.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a tsf instances_attachment - -Example Usage - -```hcl -resource "tencentcloud_tsf_instances_attachment" "instances_attachment" { - cluster_id = "cluster-123456" - instance_id_list = [""] - os_name = "Ubuntu 20.04" - image_id = "img-123456" - password = "MyP@ssw0rd" - key_id = "key-123456" - sg_id = "sg-123456" - instance_import_mode = "R" - os_customize_type = "my_customize" - feature_id_list = - instance_advanced_settings { - mount_target = "/mnt/data" - docker_graph_path = "/var/lib/docker" - } - security_group_ids = [""] -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_lane.go b/tencentcloud/resource_tc_tsf_lane.go index 3faf224619..574c1e9065 100644 --- a/tencentcloud/resource_tc_tsf_lane.go +++ b/tencentcloud/resource_tc_tsf_lane.go @@ -1,20 +1,3 @@ -/* -Provides a resource to create a tsf lane - -Example Usage - -```hcl -resource "tencentcloud_tsf_lane" "lane" { - lane_name = "lane-name-1" - remark = "lane desc1" - lane_group_list { - group_id = "group-yn7j5l8a" - entrance = true - } -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_lane_rule.go b/tencentcloud/resource_tc_tsf_lane_rule.go index 98c4fbc1bc..49f890e9be 100644 --- a/tencentcloud/resource_tc_tsf_lane_rule.go +++ b/tencentcloud/resource_tc_tsf_lane_rule.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf lane_rule - -Example Usage - -```hcl -resource "tencentcloud_tsf_lane_rule" "lane_rule" { - rule_name = "terraform-rule-name" - remark = "terraform-test" - rule_tag_list { - tag_name = "xxx" - tag_operator = "EQUAL" - tag_value = "222" - } - rule_tag_relationship = "RELEATION_AND" - lane_id = "lane-abw5oo5a" - enable = false -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_microservice.go b/tencentcloud/resource_tc_tsf_microservice.go index 8a5b0a9d93..06ef5301a2 100644 --- a/tencentcloud/resource_tc_tsf_microservice.go +++ b/tencentcloud/resource_tc_tsf_microservice.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a tsf microservice - -Example Usage - -```hcl -resource "tencentcloud_tsf_microservice" "microservice" { - namespace_id = "namespace-vjlkzkgy" - microservice_name = "test-microservice" - microservice_desc = "desc-microservice" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -tsf microservice can be imported using the namespaceId#microserviceId, e.g. - -``` -terraform import tencentcloud_tsf_microservice.microservice namespace-vjlkzkgy#ms-vjeb43lw -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_namespace.go b/tencentcloud/resource_tc_tsf_namespace.go index ec58270f03..e405e7f097 100644 --- a/tencentcloud/resource_tc_tsf_namespace.go +++ b/tencentcloud/resource_tc_tsf_namespace.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a tsf namespace - -Example Usage - -```hcl -resource "tencentcloud_tsf_namespace" "namespace" { - namespace_name = "namespace-name" - # cluster_id = "cls-xxxx" - namespace_desc = "namespace desc" - # namespace_resource_type = "" - namespace_type = "DEF" - # namespace_id = "" - is_ha_enable = "0" - # program_id = "" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_operate_container_group.go b/tencentcloud/resource_tc_tsf_operate_container_group.go index bba8f6213d..bca2d42410 100644 --- a/tencentcloud/resource_tc_tsf_operate_container_group.go +++ b/tencentcloud/resource_tc_tsf_operate_container_group.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a tsf operate_container_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_operate_container_group" "operate_container_group" { - group_id = "group-ynd95rea" - operate = "stop" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_operate_group.go b/tencentcloud/resource_tc_tsf_operate_group.go index 7474ffca51..51be5a538d 100644 --- a/tencentcloud/resource_tc_tsf_operate_group.go +++ b/tencentcloud/resource_tc_tsf_operate_group.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a tsf operate_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_operate_group" "operate_group" { - group_id = "group-ynd95rea" - operate = "start" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_path_rewrite.go b/tencentcloud/resource_tc_tsf_path_rewrite.go index f3c78e272f..859b1815ee 100644 --- a/tencentcloud/resource_tc_tsf_path_rewrite.go +++ b/tencentcloud/resource_tc_tsf_path_rewrite.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a tsf path_rewrite - -Example Usage - -```hcl -resource "tencentcloud_tsf_path_rewrite" "path_rewrite" { - gateway_group_id = "group-a2j9zxpv" - regex = "/test" - replacement = "/tt" - blocked = "N" - order = 2 -} -``` - -Import - -tsf path_rewrite can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_path_rewrite.path_rewrite rewrite-nygq33v2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_release_api_group.go b/tencentcloud/resource_tc_tsf_release_api_group.go index dd5f614f6b..a8c24b4fc0 100644 --- a/tencentcloud/resource_tc_tsf_release_api_group.go +++ b/tencentcloud/resource_tc_tsf_release_api_group.go @@ -1,14 +1,3 @@ -/* -Provides a resource to create a tsf release_api_group - -Example Usage - -```hcl -resource "tencentcloud_tsf_release_api_group" "release_api_group" { - group_id = "grp-qp0rj3zi" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_task.go b/tencentcloud/resource_tc_tsf_task.go index 023557d5af..4a8300c472 100644 --- a/tencentcloud/resource_tc_tsf_task.go +++ b/tencentcloud/resource_tc_tsf_task.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a tsf task - -Example Usage - -```hcl -resource "tencentcloud_tsf_task" "task" { - task_name = "terraform-test" - task_content = "/test" - execute_type = "unicast" - task_type = "java" - time_out = 60000 - group_id = "group-y8pnmoga" - task_rule { - rule_type = "Cron" - expression = "0 * 1 * * ? " - } - retry_count = 0 - retry_interval = 0 - success_operator = "GTE" - success_ratio = "100" - advance_settings { - sub_task_concurrency = 2 - } - task_argument = "a=c" -} -``` - -Import - -tsf task can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_task.task task-y37eqq95 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_unit_namespace.go b/tencentcloud/resource_tc_tsf_unit_namespace.go index 16a1291882..a558f83c03 100644 --- a/tencentcloud/resource_tc_tsf_unit_namespace.go +++ b/tencentcloud/resource_tc_tsf_unit_namespace.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a tsf unit_namespace - -Example Usage - -```hcl -resource "tencentcloud_tsf_unit_namespace" "unit_namespace" { - gateway_instance_id = "gw-ins-lvdypq5k" - namespace_id = "namespace-vwgo38wy" - namespace_name = "keep-terraform-cls" -} -``` - -Import - -tsf unit_namespace can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_unit_namespace.unit_namespace gw-ins-lvdypq5k#namespace-vwgo38wy -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_tsf_unit_rule.go b/tencentcloud/resource_tc_tsf_unit_rule.go index 4763075649..f617046090 100644 --- a/tencentcloud/resource_tc_tsf_unit_rule.go +++ b/tencentcloud/resource_tc_tsf_unit_rule.go @@ -1,38 +1,3 @@ -/* -Provides a resource to create a tsf unit_rule - -Example Usage - -```hcl -resource "tencentcloud_tsf_unit_rule" "unit_rule" { - gateway_instance_id = "gw-ins-rug79a70" - name = "terraform-test" - description = "terraform-desc" - unit_rule_item_list { - relationship = "AND" - dest_namespace_id = "namespace-y8p88eka" - dest_namespace_name = "garden-test_default" - name = "Rule1" - description = "rule1-desc" - unit_rule_tag_list { - tag_type = "U" - tag_field = "aaa" - tag_operator = "IN" - tag_value = "1" - } - - } -} -``` - -Import - -tsf unit_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_tsf_unit_rule.unit_rule unit-rl-zbywqeca -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vod_adaptive_dynamic_streaming_template.go b/tencentcloud/resource_tc_vod_adaptive_dynamic_streaming_template.go index 2190c33ade..d1593277e1 100644 --- a/tencentcloud/resource_tc_vod_adaptive_dynamic_streaming_template.go +++ b/tencentcloud/resource_tc_vod_adaptive_dynamic_streaming_template.go @@ -1,59 +1,3 @@ -/* -Provide a resource to create a VOD adaptive dynamic streaming template. - -Example Usage - -```hcl -resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { - format = "HLS" - name = "tf-adaptive" - drm_type = "SimpleAES" - disable_higher_video_bitrate = false - disable_higher_video_resolution = false - comment = "test" - - stream_info { - video { - codec = "libx265" - fps = 4 - bitrate = 129 - resolution_adaptive = false - width = 128 - height = 128 - fill_type = "stretch" - } - audio { - codec = "libmp3lame" - bitrate = 129 - sample_rate = 44100 - audio_channel = "dual" - } - remove_audio = false - } - stream_info { - video { - codec = "libx264" - fps = 4 - bitrate = 256 - } - audio { - codec = "libfdk_aac" - bitrate = 256 - sample_rate = 44100 - } - remove_audio = true - } -} -``` - -Import - -VOD adaptive dynamic streaming template can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vod_adaptive_dynamic_streaming_template.foo 169141 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vod_image_sprite_template.go b/tencentcloud/resource_tc_vod_image_sprite_template.go index 10b86140ff..0c3726ef0a 100644 --- a/tencentcloud/resource_tc_vod_image_sprite_template.go +++ b/tencentcloud/resource_tc_vod_image_sprite_template.go @@ -1,31 +1,3 @@ -/* -Provide a resource to create a VOD image sprite template. - -Example Usage - -```hcl -resource "tencentcloud_vod_image_sprite_template" "foo" { - sample_type = "Percent" - sample_interval = 10 - row_count = 3 - column_count = 3 - name = "tf-sprite" - comment = "test" - fill_type = "stretch" - width = 128 - height = 128 - resolution_adaptive = false -} -``` - -Import - -VOD image sprite template can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vod_image_sprite_template.foo 51156 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vod_procedure_template.go b/tencentcloud/resource_tc_vod_procedure_template.go index 6111aae47f..b98251d56d 100644 --- a/tencentcloud/resource_tc_vod_procedure_template.go +++ b/tencentcloud/resource_tc_vod_procedure_template.go @@ -1,101 +1,3 @@ -/* -Provide a resource to create a VOD procedure template. - -Example Usage - -```hcl -resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { - format = "HLS" - name = "tf-adaptive" - drm_type = "SimpleAES" - disable_higher_video_bitrate = false - disable_higher_video_resolution = false - comment = "test" - - stream_info { - video { - codec = "libx265" - fps = 4 - bitrate = 129 - resolution_adaptive = false - width = 128 - height = 128 - fill_type = "stretch" - } - audio { - codec = "libmp3lame" - bitrate = 129 - sample_rate = 44100 - audio_channel = "dual" - } - remove_audio = false - } - stream_info { - video { - codec = "libx264" - fps = 4 - bitrate = 256 - } - audio { - codec = "libfdk_aac" - bitrate = 256 - sample_rate = 44100 - } - remove_audio = true - } -} - -resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" { - name = "tf-snapshot" - width = 130 - height = 128 - resolution_adaptive = false - format = "png" - comment = "test" - fill_type = "white" -} - -resource "tencentcloud_vod_image_sprite_template" "foo" { - sample_type = "Percent" - sample_interval = 10 - row_count = 3 - column_count = 3 - name = "tf-sprite" - comment = "test" - fill_type = "stretch" - width = 128 - height = 128 - resolution_adaptive = false -} - -resource "tencentcloud_vod_procedure_template" "foo" { - name = "tf-procedure" - comment = "test" - media_process_task { - adaptive_dynamic_streaming_task_list { - definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id - } - snapshot_by_time_offset_task_list { - definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id - ext_time_offset_list = [ - "3.5s" - ] - } - image_sprite_task_list { - definition = tencentcloud_vod_image_sprite_template.foo.id - } - } -} -``` - -Import - -VOD procedure template can be imported using the name, e.g. - -``` -$ terraform import tencentcloud_vod_procedure_template.foo tf-procedure -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vod_snapshot_by_time_offset_template.go b/tencentcloud/resource_tc_vod_snapshot_by_time_offset_template.go index fabd455c7f..ce4ecad156 100644 --- a/tencentcloud/resource_tc_vod_snapshot_by_time_offset_template.go +++ b/tencentcloud/resource_tc_vod_snapshot_by_time_offset_template.go @@ -1,28 +1,3 @@ -/* -Provide a resource to create a VOD snapshot by time offset template. - -Example Usage - -```hcl -resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" { - name = "tf-snapshot" - width = 130 - height = 128 - resolution_adaptive = false - format = "png" - comment = "test" - fill_type = "white" -} -``` - -Import - -VOD snapshot by time offset template can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vod_snapshot_by_time_offset_template.foo 46906 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vod_sub_application.go b/tencentcloud/resource_tc_vod_sub_application.go index bdbff89c95..13a85ae414 100644 --- a/tencentcloud/resource_tc_vod_sub_application.go +++ b/tencentcloud/resource_tc_vod_sub_application.go @@ -1,24 +1,3 @@ -/* -Provide a resource to create a VOD sub application. - -Example Usage - -```hcl -resource "tencentcloud_vod_sub_application" "foo" { - name = "foo" - status = "On" - description = "this is sub application" -} -``` - -Import - -VOD super player config can be imported using the name+, e.g. - -``` -$ terraform import tencentcloud_vod_sub_application.foo name+"#"+id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vod_super_player_config.go b/tencentcloud/resource_tc_vod_super_player_config.go index 9335ab91a9..fc24670f50 100644 --- a/tencentcloud/resource_tc_vod_super_player_config.go +++ b/tencentcloud/resource_tc_vod_super_player_config.go @@ -1,92 +1,3 @@ -/* -Provide a resource to create a VOD super player config. - -Example Usage - -```hcl -resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { - format = "HLS" - name = "tf-adaptive" - drm_type = "SimpleAES" - disable_higher_video_bitrate = false - disable_higher_video_resolution = false - comment = "test" - - stream_info { - video { - codec = "libx265" - fps = 4 - bitrate = 129 - resolution_adaptive = false - width = 128 - height = 128 - fill_type = "stretch" - } - audio { - codec = "libmp3lame" - bitrate = 129 - sample_rate = 44100 - audio_channel = "dual" - } - remove_audio = false - } - stream_info { - video { - codec = "libx264" - fps = 4 - bitrate = 256 - } - audio { - codec = "libfdk_aac" - bitrate = 256 - sample_rate = 44100 - } - remove_audio = true - } -} - -resource "tencentcloud_vod_image_sprite_template" "foo" { - sample_type = "Percent" - sample_interval = 10 - row_count = 3 - column_count = 3 - name = "tf-sprite" - comment = "test" - fill_type = "stretch" - width = 128 - height = 128 - resolution_adaptive = false -} - -resource "tencentcloud_vod_super_player_config" "foo" { - name = "tf-super-player" - drm_switch = true - drm_streaming_info { - simple_aes_definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id - } - image_sprite_definition = tencentcloud_vod_image_sprite_template.foo.id - resolution_names { - min_edge_length = 889 - name = "test1" - } - resolution_names { - min_edge_length = 890 - name = "test2" - } - domain = "Default" - scheme = "Default" - comment = "test" -} -``` - -Import - -VOD super player config can be imported using the name, e.g. - -``` -$ terraform import tencentcloud_vod_super_player_config.foo tf-super-player -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc.go b/tencentcloud/resource_tc_vpc.go index db2cc50ca9..532de10a8a 100644 --- a/tencentcloud/resource_tc_vpc.go +++ b/tencentcloud/resource_tc_vpc.go @@ -1,46 +1,3 @@ -/* -Provide a resource to create a VPC. - -Example Usage - -Create a basic VPC - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "tf-example" - cidr_block = "10.0.0.0/16" - dns_servers = ["119.29.29.29", "8.8.8.8"] - is_multicast = false - - tags = { - "test" = "test" - } -} -``` - -Using Assistant CIDR - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "tf-example" - cidr_block = "10.0.0.0/16" - is_multicast = false - assistant_cidrs = ["172.16.0.0/24"] - - tags = { - "test" = "test" - } -} -``` - -Import - -Vpc instance can be imported, e.g. - -``` -$ terraform import tencentcloud_vpc.test vpc-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_acl.go b/tencentcloud/resource_tc_vpc_acl.go index f5d699ed5c..0b1147f611 100644 --- a/tencentcloud/resource_tc_vpc_acl.go +++ b/tencentcloud/resource_tc_vpc_acl.go @@ -1,36 +1,3 @@ -/* -Provide a resource to create a VPC ACL instance. - -Example Usage - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_vpc_acl" "example" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf-example" - ingress = [ - "ACCEPT#192.168.1.0/24#800#TCP", - "ACCEPT#192.168.1.0/24#800-900#TCP", - ] - egress = [ - "ACCEPT#192.168.1.0/24#800#TCP", - "ACCEPT#192.168.1.0/24#800-900#TCP", - ] -} -``` - -Import - -Vpc ACL can be imported, e.g. - -``` -$ terraform import tencentcloud_vpc_acl.default acl-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_acl_attachment.go b/tencentcloud/resource_tc_vpc_acl_attachment.go index 21a27ffa3f..3ecbcbc1ce 100644 --- a/tencentcloud/resource_tc_vpc_acl_attachment.go +++ b/tencentcloud/resource_tc_vpc_acl_attachment.go @@ -1,50 +1,3 @@ -/* -Provide a resource to attach an existing subnet to Network ACL. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name -} - -resource "tencentcloud_vpc_acl" "example" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf-example" - ingress = [ - "ACCEPT#192.168.1.0/24#800#TCP", - "ACCEPT#192.168.1.0/24#800-900#TCP", - ] - egress = [ - "ACCEPT#192.168.1.0/24#800#TCP", - "ACCEPT#192.168.1.0/24#800-900#TCP", - ] -} - -resource "tencentcloud_vpc_acl_attachment" "attachment"{ - acl_id = tencentcloud_vpc_acl.example.id - subnet_id = tencentcloud_subnet.subnet.id -} -``` - -Import - -Acl attachment can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vpc_acl_attachment.attachment acl-eotx5qsg#subnet-91x0geu6 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_bandwidth_package.go b/tencentcloud/resource_tc_vpc_bandwidth_package.go index d2b0d9c536..f18f61b131 100644 --- a/tencentcloud/resource_tc_vpc_bandwidth_package.go +++ b/tencentcloud/resource_tc_vpc_bandwidth_package.go @@ -1,56 +1,3 @@ -/* -Provides a resource to create a vpc bandwidth_package - -Example Usage - -```hcl -resource "tencentcloud_vpc_bandwidth_package" "example" { - network_type = "BGP" - charge_type = "TOP5_POSTPAID_BY_MONTH" - bandwidth_package_name = "tf-example" - tags = { - "createdBy" = "terraform" - } -} -``` - -PrePaid Bandwidth Package - -```hcl -resource "tencentcloud_vpc_bandwidth_package" "bandwidth_package" { - network_type = "BGP" - charge_type = "FIXED_PREPAID_BY_MONTH" - bandwidth_package_name = "test-001" - time_span = 3 - internet_max_bandwidth = 100 - tags = { - "createdBy" = "terraform" - } -} -```` - -Bandwidth Package With Egress - -```hcl -resource "tencentcloud_vpc_bandwidth_package" "example" { - network_type = "SINGLEISP_CMCC" - charge_type = "ENHANCED95_POSTPAID_BY_MONTH" - bandwidth_package_name = "tf-example" - internet_max_bandwidth = 400 - egress = "center_egress2" - tags = { - "createdBy" = "terraform" - } -} -``` - -Import - -vpc bandwidth_package can be imported using the id, e.g. -``` -$ terraform import tencentcloud_vpc_bandwidth_package.bandwidth_package bandwidthPackage_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_bandwidth_package_attachment.go b/tencentcloud/resource_tc_vpc_bandwidth_package_attachment.go index 5454d4bcdb..b9eb2796cb 100644 --- a/tencentcloud/resource_tc_vpc_bandwidth_package_attachment.go +++ b/tencentcloud/resource_tc_vpc_bandwidth_package_attachment.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a vpc bandwidth_package_attachment - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name -} - -resource "tencentcloud_vpc_bandwidth_package" "example" { - network_type = "BGP" - charge_type = "TOP5_POSTPAID_BY_MONTH" - bandwidth_package_name = "tf-example" - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_clb_instance" "example" { - network_type = "INTERNAL" - clb_name = "tf-example" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - - tags = { - "createdBy" = "terraform" - } -} - -resource "tencentcloud_vpc_bandwidth_package_attachment" "attachment" { - resource_id = tencentcloud_clb_instance.example.id - bandwidth_package_id = tencentcloud_vpc_bandwidth_package.example.id - network_type = "BGP" - resource_type = "LoadBalance" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_dhcp_ip.go b/tencentcloud/resource_tc_vpc_dhcp_ip.go index 71c86dc0b3..de80121a92 100644 --- a/tencentcloud/resource_tc_vpc_dhcp_ip.go +++ b/tencentcloud/resource_tc_vpc_dhcp_ip.go @@ -1,39 +1,3 @@ -/* -Provides a resource to create a vpc dhcp_ip - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_vpc_dhcp_ip" "example" { - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - dhcp_ip_name = "tf-example" -} -``` - -Import - -vpc dhcp_ip can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_dhcp_ip.dhcp_ip dhcp_ip_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_enable_end_point_connect.go b/tencentcloud/resource_tc_vpc_enable_end_point_connect.go index 82451b150b..76c2a868b6 100644 --- a/tencentcloud/resource_tc_vpc_enable_end_point_connect.go +++ b/tencentcloud/resource_tc_vpc_enable_end_point_connect.go @@ -1,16 +1,3 @@ -/* -Provides a resource to create a vpc enable_end_point_connect - -Example Usage - -```hcl -resource "tencentcloud_vpc_enable_end_point_connect" "enable_end_point_connect" { - end_point_service_id = "vpcsvc-98jddhcz" - end_point_id = ["vpce-6q0ftmke"] - accept_flag = true -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_end_point.go b/tencentcloud/resource_tc_vpc_end_point.go index d2b1449635..74ad025b14 100644 --- a/tencentcloud/resource_tc_vpc_end_point.go +++ b/tencentcloud/resource_tc_vpc_end_point.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a vpc end_point - -Example Usage - -```hcl -resource "tencentcloud_vpc_end_point" "end_point" { - vpc_id = "vpc-391sv4w3" - subnet_id = "subnet-ljyn7h30" - end_point_name = "terraform-test" - end_point_service_id = "vpcsvc-69y13tdb" - end_point_vip = "10.0.2.1" -} -``` - -Import - -vpc end_point can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_end_point.end_point end_point_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_end_point_service.go b/tencentcloud/resource_tc_vpc_end_point_service.go index 232cd8876a..7e377703a7 100644 --- a/tencentcloud/resource_tc_vpc_end_point_service.go +++ b/tencentcloud/resource_tc_vpc_end_point_service.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a vpc end_point_service - -Example Usage - -```hcl -resource "tencentcloud_vpc_end_point_service" "end_point_service" { - vpc_id = "vpc-391sv4w3" - end_point_service_name = "terraform-endpoint-service" - auto_accept_flag = false - service_instance_id = "lb-o5f6x7ke" - service_type = "CLB" -} -``` - -Import - -vpc end_point_service can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_end_point_service.end_point_service end_point_service_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_end_point_service_white_list.go b/tencentcloud/resource_tc_vpc_end_point_service_white_list.go index 20d5d0948c..6e46bfacb5 100644 --- a/tencentcloud/resource_tc_vpc_end_point_service_white_list.go +++ b/tencentcloud/resource_tc_vpc_end_point_service_white_list.go @@ -1,24 +1,3 @@ -/* -Provides a resource to create a vpc end_point_service_white_list - -Example Usage - -```hcl -resource "tencentcloud_vpc_end_point_service_white_list" "end_point_service_white_list" { - user_uin = "100020512675" - end_point_service_id = "vpcsvc-69y13tdb" - description = "terraform for test" -} -``` - -Import - -vpc end_point_service_white_list can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_end_point_service_white_list.end_point_service_white_list end_point_service_white_list_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_flow_log.go b/tencentcloud/resource_tc_vpc_flow_log.go index eaeffc59dd..3d8f0c7505 100644 --- a/tencentcloud/resource_tc_vpc_flow_log.go +++ b/tencentcloud/resource_tc_vpc_flow_log.go @@ -1,116 +1,3 @@ -/* -Provides a resource to create a vpc flow_log - -~> **NOTE:** The cloud server instance specifications that support stream log collection include: M6ce, M6p, SA3se, S4m, DA3, ITA3, I6t, I6, S5se, SA2, SK1, S4, S5, SN3ne, S3ne, S2ne, SA2a, S3ne, SW3a, SW3b, SW3ne, ITA3, IT5c, IT5, IT5c, IT3, I3, D3, DA2, D2, M6, MA2, M4, C6, IT3a, IT3b, IT3c, C4ne, CN3ne, C3ne, GI1, PNV4, GNV4v, GNV4, GT4, GI3X, GN7, GN7vw. - -~> **NOTE:** The following models no longer support the collection of new stream logs, and the stock stream logs will no longer be reported for data from July 25, 2022: Standard models: S3, SA1, S2, S1;Memory type: M3, M2, M1;Calculation type: C4, CN3, C3, C2;Batch calculation type: BC1, BS1;HPCC: HCCIC5, HCCG5v. - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_cls_logset" "logset" { - logset_name = "delogsetmo" - tags = { - "test" = "test" - } -} - -resource "tencentcloud_cls_topic" "topic" { - topic_name = "topic" - logset_id = tencentcloud_cls_logset.logset.id - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-flow-log-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "vpc-flow-log-subnet" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_eni" "example" { - name = "vpc-flow-log-eni" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - description = "eni desc" - ipv4_count = 1 -} - -resource "tencentcloud_instance" "example" { - instance_name = "ci-test-eni-attach" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - disable_security_service = true - disable_monitor_service = true - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_eni_attachment" "example" { - eni_id = tencentcloud_eni.example.id - instance_id = tencentcloud_instance.example.id -} - -resource "tencentcloud_vpc_flow_log" "example" { - flow_log_name = "tf-example-vpc-flow-log" - resource_type = "NETWORKINTERFACE" - resource_id = tencentcloud_eni_attachment.example.eni_id - traffic_type = "ACCEPT" - vpc_id = tencentcloud_vpc.vpc.id - flow_log_description = "this is a testing flow log" - cloud_log_id = tencentcloud_cls_topic.topic.id - storage_type = "cls" - tags = { - "testKey" = "testValue" - } -} -``` - -Import - -vpc flow_log can be imported using the flow log Id combine vpc Id, e.g. - -``` -$ terraform import tencentcloud_vpc_flow_log.flow_log flow_log_id fl-xxxx1234#vpc-yyyy5678 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_flow_log_config.go b/tencentcloud/resource_tc_vpc_flow_log_config.go index 4df927fe47..c6943d4789 100644 --- a/tencentcloud/resource_tc_vpc_flow_log_config.go +++ b/tencentcloud/resource_tc_vpc_flow_log_config.go @@ -1,128 +1,3 @@ -/* -Provides a resource to create a vpc flow_log_config - -Example Usage - -If disable FlowLogs - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - image_name_regex = "Final" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_cls_logset" "logset" { - logset_name = "delogsetmo" - tags = { - "test" = "test" - } -} - -resource "tencentcloud_cls_topic" "topic" { - topic_name = "topic" - logset_id = tencentcloud_cls_logset.logset.id - auto_split = false - max_split_partitions = 20 - partition_count = 1 - period = 10 - storage_type = "hot" - tags = { - "test" = "test", - } -} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-flow-log-vpc" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "vpc-flow-log-subnet" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_eni" "example" { - name = "vpc-flow-log-eni" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - description = "eni desc" - ipv4_count = 1 -} - -resource "tencentcloud_instance" "example" { - instance_name = "ci-test-eni-attach" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - disable_security_service = true - disable_monitor_service = true - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_eni_attachment" "example" { - eni_id = tencentcloud_eni.example.id - instance_id = tencentcloud_instance.example.id -} - -resource "tencentcloud_vpc_flow_log" "example" { - flow_log_name = "tf-example-vpc-flow-log" - resource_type = "NETWORKINTERFACE" - resource_id = tencentcloud_eni_attachment.example.eni_id - traffic_type = "ACCEPT" - vpc_id = tencentcloud_vpc.vpc.id - flow_log_description = "this is a testing flow log" - cloud_log_id = tencentcloud_cls_topic.topic.id - storage_type = "cls" - tags = { - "testKey" = "testValue" - } -} - -resource "tencentcloud_vpc_flow_log_config" "config" { - flow_log_id = tencentcloud_vpc_flow_log.example.id - enable = false -} -``` - -If enable FlowLogs - -```hcl -resource "tencentcloud_vpc_flow_log_config" "config" { - flow_log_id = tencentcloud_vpc_flow_log.example.id - enable = true -} -``` - -Import - -vpc flow_log_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_flow_log_config.flow_log_config flow_log_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_ipv6_cidr_block.go b/tencentcloud/resource_tc_vpc_ipv6_cidr_block.go index 31c022f622..f548647351 100644 --- a/tencentcloud/resource_tc_vpc_ipv6_cidr_block.go +++ b/tencentcloud/resource_tc_vpc_ipv6_cidr_block.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a vpc ipv6_cidr_block - -Example Usage - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_vpc_ipv6_cidr_block" "example" { - vpc_id = tencentcloud_vpc.vpc.id -} -``` - -Import - -vpc ipv6_cidr_block can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_ipv6_cidr_block.ipv6_cidr_block vpc_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_ipv6_eni_address.go b/tencentcloud/resource_tc_vpc_ipv6_eni_address.go index 86ae4ecd17..8d4e2f4080 100644 --- a/tencentcloud/resource_tc_vpc_ipv6_eni_address.go +++ b/tencentcloud/resource_tc_vpc_ipv6_eni_address.go @@ -1,46 +1,3 @@ -/* -Provides a resource to create a vpc ipv6_eni_address - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_eni" "eni" { - name = "eni-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - description = "eni desc." - ipv4_count = 1 -} - -resource "tencentcloud_vpc_ipv6_cidr_block" "example" { - vpc_id = tencentcloud_vpc.vpc.id -} - -resource "tencentcloud_vpc_ipv6_eni_address" "ipv6_eni_address" { - vpc_id = tencentcloud_vpc.vpc.id - network_interface_id = tencentcloud_eni.eni.id - ipv6_addresses { - address = tencentcloud_vpc_ipv6_cidr_block.example.ipv6_cidr_block - description = "desc." - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_ipv6_subnet_cidr_block.go b/tencentcloud/resource_tc_vpc_ipv6_subnet_cidr_block.go index 1dfe7d8a1e..1f355b4787 100644 --- a/tencentcloud/resource_tc_vpc_ipv6_subnet_cidr_block.go +++ b/tencentcloud/resource_tc_vpc_ipv6_subnet_cidr_block.go @@ -1,45 +1,3 @@ -/* -Provides a resource to create a vpc ipv6_subnet_cidr_block - -Example Usage - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - name = "subnet-example" - vpc_id = tencentcloud_vpc.vpc.id - cidr_block = "10.0.0.0/16" - is_multicast = false -} - -resource "tencentcloud_vpc_ipv6_cidr_block" "example" { - vpc_id = tencentcloud_vpc.vpc.id -} - -resource "tencentcloud_vpc_ipv6_subnet_cidr_block" "example" { - vpc_id = tencentcloud_vpc.vpc.id - ipv6_subnet_cidr_blocks { - subnet_id = tencentcloud_subnet.subnet.id - ipv6_cidr_block = tencentcloud_vpc_ipv6_cidr_block.example.ipv6_cidr_block - } -} -``` - -Import - -vpc ipv6_subnet_cidr_block can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_ipv6_subnet_cidr_block.ipv6_subnet_cidr_block ipv6_subnet_cidr_block_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_local_gateway.go b/tencentcloud/resource_tc_vpc_local_gateway.go index d8a5c7a54d..0afa4d6f0b 100644 --- a/tencentcloud/resource_tc_vpc_local_gateway.go +++ b/tencentcloud/resource_tc_vpc_local_gateway.go @@ -1,29 +1,3 @@ -/* -Provides a resource to create a vpc local_gateway - -Example Usage - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_vpc_local_gateway" "example" { - local_gateway_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - cdc_id = "cluster-j9gyu1iy" -} -``` - -Import - -vpc local_gateway can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_local_gateway.local_gateway local_gateway_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_net_detect.go b/tencentcloud/resource_tc_vpc_net_detect.go index ee10aac2f6..4cbbaab5fd 100644 --- a/tencentcloud/resource_tc_vpc_net_detect.go +++ b/tencentcloud/resource_tc_vpc_net_detect.go @@ -1,221 +1,3 @@ -/* -Provides a resource to create a vpc net_detect - -Example Usage - -Create a basic Net Detect - -```hcl -data "tencentcloud_availability_zones" "zones" {} - -resource "tencentcloud_vpc" "vpc" { - name = "vpc-example" - cidr_block = "10.0.0.0/16" -} - -resource "tencentcloud_subnet" "subnet" { - vpc_id = tencentcloud_vpc.vpc.id - name = "subnet-example" - cidr_block = "10.0.0.0/16" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name -} - -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - detect_destination_ip = [ - "10.0.0.1", - "10.0.0.2", - ] -} -``` - -If `next_hop_type` is `VPN` - -```hcl -resource "tencentcloud_vpn_gateway" "vpn" { - name = "tf-example" - bandwidth = 100 - zone = data.tencentcloud_availability_zones.zones.zones.0.name - type = "SSL" - vpc_id = tencentcloud_vpc.vpc.id - - tags = { - test = "test" - } -} - -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - next_hop_type = "VPN" - next_hop_destination = tencentcloud_vpn_gateway.vpn.id - detect_destination_ip = [ - "192.16.10.10", - "172.16.10.22", - ] -} -``` - -If `next_hop_type` is `DIRECTCONNECT` - -```hcl -resource "tencentcloud_dc_gateway" "example" { - name = "ci-cdg-vpc-test" - network_instance_id = tencentcloud_vpc.vpc.id - network_type = "VPC" - gateway_type = "NAT" -} - -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - next_hop_type = "DIRECTCONNECT" - next_hop_destination = tencentcloud_dc_gateway.example.id - detect_destination_ip = [ - "192.16.10.10", - "172.16.10.22", - ] -} -``` - -If `next_hop_type` is `NAT` - -```hcl -resource "tencentcloud_eip" "eip_example1" { - name = "tf_nat_gateway_eip1" -} - -resource "tencentcloud_eip" "eip_example2" { - name = "tf_nat_gateway_eip2" -} - -resource "tencentcloud_nat_gateway" "example" { - name = "tf_example_nat_gateway" - vpc_id = tencentcloud_vpc.vpc.id - bandwidth = 100 - max_concurrent = 1000000 - assigned_eip_set = [ - tencentcloud_eip.eip_example1.public_ip, - tencentcloud_eip.eip_example2.public_ip, - ] - tags = { - tf_tag_key = "tf_tag_value" - } -} - -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - next_hop_type = "NAT" - next_hop_destination = tencentcloud_nat_gateway.example.id - detect_destination_ip = [ - "192.16.10.10", - "172.16.10.22", - ] -} -``` - -If `next_hop_type` is `NORMAL_CVM` - -```hcl -data "tencentcloud_images" "image" { - image_type = ["PUBLIC_IMAGE"] - os_name = "TencentOS Server 3.2 (Final)" -} - -data "tencentcloud_instance_types" "instance_types" { - filter { - name = "zone" - values = [data.tencentcloud_availability_zones.zones.zones.0.name] - } - - filter { - name = "instance-family" - values = ["S5"] - } - - cpu_core_count = 2 - exclude_sold_out = true -} - -resource "tencentcloud_instance" "example" { - instance_name = "tf_example" - availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name - image_id = data.tencentcloud_images.image.images.0.image_id - instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type - system_disk_type = "CLOUD_PREMIUM" - system_disk_size = 50 - hostname = "user" - project_id = 0 - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id -} - -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - next_hop_type = "NORMAL_CVM" - next_hop_destination = tencentcloud_instance.example.private_ip - detect_destination_ip = [ - "192.16.10.10", - "172.16.10.22", - ] -} -``` - -If `next_hop_type` is `CCN` - -```hcl -resource "tencentcloud_ccn" "example" { - name = "tf-example" - description = "desc." - qos = "AU" - charge_type = "POSTPAID" - bandwidth_limit_type = "OUTER_REGION_LIMIT" -} - -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - next_hop_type = "CCN" - next_hop_destination = tencentcloud_ccn.example.id - detect_destination_ip = [ - "172.10.0.1", - "172.10.0.2", - ] -} -``` - -If `next_hop_type` is `NONEXTHOP` - -```hcl -resource "tencentcloud_vpc_net_detect" "example" { - net_detect_name = "tf-example" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.subnet.id - next_hop_type = "NONEXTHOP" - detect_destination_ip = [ - "10.0.0.1", - "10.0.0.2", - ] -} -``` - -Import - -vpc net_detect can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_net_detect.net_detect net_detect_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_resume_snapshot_instance.go b/tencentcloud/resource_tc_vpc_resume_snapshot_instance.go index 3e3d56a050..6e60d9b73e 100644 --- a/tencentcloud/resource_tc_vpc_resume_snapshot_instance.go +++ b/tencentcloud/resource_tc_vpc_resume_snapshot_instance.go @@ -1,63 +1,3 @@ -/* -Provides a resource to create a vpc resume_snapshot_instance - -Example Usage - -Basic example - -```hcl -resource "tencentcloud_vpc_resume_snapshot_instance" "resume_snapshot_instance" { - snapshot_policy_id = "sspolicy-1t6cobbv" - snapshot_file_id = "ssfile-emtabuwu2z" - instance_id = "ntrgm89v" -} -``` - -Complete example - -```hcl -data "tencentcloud_vpc_snapshot_files" "example" { - business_type = "securitygroup" - instance_id = "sg-902tl7t7" - start_date = "2022-10-10 00:00:00" - end_date = "2023-10-30 00:00:00" -} - -resource "tencentcloud_cos_bucket" "example" { - bucket = "tf-example-1308919341" - acl = "private" -} - -resource "tencentcloud_vpc_snapshot_policy" "example" { - snapshot_policy_name = "tf-example" - backup_type = "time" - cos_bucket = tencentcloud_cos_bucket.example.bucket - cos_region = "ap-guangzhou" - create_new_cos = false - keep_time = 2 - - backup_policies { - backup_day = "monday" - backup_time = "00:00:00" - } - backup_policies { - backup_day = "tuesday" - backup_time = "01:00:00" - } - backup_policies { - backup_day = "wednesday" - backup_time = "02:00:00" - } -} - -resource "tencentcloud_vpc_resume_snapshot_instance" "example" { - snapshot_policy_id = tencentcloud_vpc_snapshot_policy.example.id - snapshot_file_id = data.tencentcloud_vpc_snapshot_files.example.snapshot_file_set.0.snapshot_file_id - instance_id = "policy-1t6cob" -} -``` - -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_snapshot_policy.go b/tencentcloud/resource_tc_vpc_snapshot_policy.go index 34b47f2c8c..41a8f0c817 100644 --- a/tencentcloud/resource_tc_vpc_snapshot_policy.go +++ b/tencentcloud/resource_tc_vpc_snapshot_policy.go @@ -1,45 +1,3 @@ -/* -Provides a resource to create a vpc snapshot_policy - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket" "example" { - bucket = "tf-example-1308919341" - acl = "private" -} - -resource "tencentcloud_vpc_snapshot_policy" "example" { - snapshot_policy_name = "tf-example" - backup_type = "time" - cos_bucket = tencentcloud_cos_bucket.example.bucket - cos_region = "ap-guangzhou" - create_new_cos = false - keep_time = 2 - - backup_policies { - backup_day = "monday" - backup_time = "00:00:00" - } - backup_policies { - backup_day = "tuesday" - backup_time = "01:00:00" - } - backup_policies { - backup_day = "wednesday" - backup_time = "02:00:00" - } -} -``` - -Import - -vpc snapshot_policy can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_snapshot_policy.snapshot_policy snapshot_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_snapshot_policy_attachment.go b/tencentcloud/resource_tc_vpc_snapshot_policy_attachment.go index 5b6c5c1b05..74326463db 100644 --- a/tencentcloud/resource_tc_vpc_snapshot_policy_attachment.go +++ b/tencentcloud/resource_tc_vpc_snapshot_policy_attachment.go @@ -1,61 +1,3 @@ -/* -Provides a resource to create a vpc snapshot_policy_attachment - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket" "example" { - bucket = "tf-example-1308919341" - acl = "private" -} - -resource "tencentcloud_vpc_snapshot_policy" "example" { - snapshot_policy_name = "tf-example" - backup_type = "time" - cos_bucket = tencentcloud_cos_bucket.example.bucket - cos_region = "ap-guangzhou" - create_new_cos = false - keep_time = 2 - - backup_policies { - backup_day = "monday" - backup_time = "00:00:00" - } - backup_policies { - backup_day = "tuesday" - backup_time = "01:00:00" - } - backup_policies { - backup_day = "wednesday" - backup_time = "02:00:00" - } -} - -resource "tencentcloud_security_group" "example" { - name = "tf-example" - description = "desc." -} - -resource "tencentcloud_vpc_snapshot_policy_attachment" "attachment" { - snapshot_policy_id = tencentcloud_vpc_snapshot_policy.example.id - - instances { - instance_type = "securitygroup" - instance_id = tencentcloud_security_group.example.id - instance_name = "tf-example" - instance_region = "ap-guangzhou" - } -} -``` - -Import - -vpc snapshot_policy_attachment can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_snapshot_policy_attachment.snapshot_policy_attachment snapshot_policy_attachment_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_snapshot_policy_config.go b/tencentcloud/resource_tc_vpc_snapshot_policy_config.go index d76efe5493..289f22f9c9 100644 --- a/tencentcloud/resource_tc_vpc_snapshot_policy_config.go +++ b/tencentcloud/resource_tc_vpc_snapshot_policy_config.go @@ -1,50 +1,3 @@ -/* -Provides a resource to create a vpc snapshot_policy_config - -Example Usage - -```hcl -resource "tencentcloud_cos_bucket" "example" { - bucket = "tf-example-1308919341" - acl = "private" -} - -resource "tencentcloud_vpc_snapshot_policy" "example" { - snapshot_policy_name = "tf-example" - backup_type = "time" - cos_bucket = tencentcloud_cos_bucket.example.bucket - cos_region = "ap-guangzhou" - create_new_cos = false - keep_time = 2 - - backup_policies { - backup_day = "monday" - backup_time = "00:00:00" - } - backup_policies { - backup_day = "tuesday" - backup_time = "01:00:00" - } - backup_policies { - backup_day = "wednesday" - backup_time = "02:00:00" - } -} - -resource "tencentcloud_vpc_snapshot_policy_config" "config" { - snapshot_policy_id = tencentcloud_vpc_snapshot_policy.example.id - enable = false -} -``` - -Import - -vpc snapshot_policy_config can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_snapshot_policy_config.snapshot_policy_config snapshot_policy_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpc_traffic_package.go b/tencentcloud/resource_tc_vpc_traffic_package.go index d4587db14e..5e25a4c074 100644 --- a/tencentcloud/resource_tc_vpc_traffic_package.go +++ b/tencentcloud/resource_tc_vpc_traffic_package.go @@ -1,22 +1,3 @@ -/* -Provides a resource to create a vpc traffic_package - -Example Usage - -```hcl -resource "tencentcloud_vpc_traffic_package" "example" { - traffic_amount = 10 -} -``` - -Import - -vpc traffic_package can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpc_traffic_package.traffic_package traffic_package_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_connection.go b/tencentcloud/resource_tc_vpn_connection.go index 1d5ea06977..7743c86e5f 100644 --- a/tencentcloud/resource_tc_vpn_connection.go +++ b/tencentcloud/resource_tc_vpn_connection.go @@ -1,48 +1,3 @@ -/* -Provides a resource to create a VPN connection. - -Example Usage - -```hcl -resource "tencentcloud_vpn_connection" "foo" { - name = "vpn_connection_test" - vpc_id = "vpc-dk8zmwuf" - vpn_gateway_id = "vpngw-8ccsnclt" - customer_gateway_id = "cgw-xfqag" - pre_share_key = "testt" - ike_proto_encry_algorithm = "3DES-CBC" - ike_proto_authen_algorithm = "SHA" - ike_local_identity = "ADDRESS" - ike_exchange_mode = "AGGRESSIVE" - ike_local_address = "1.1.1.1" - ike_remote_identity = "ADDRESS" - ike_remote_address = "2.2.2.2" - ike_dh_group_name = "GROUP2" - ike_sa_lifetime_seconds = 86401 - ipsec_encrypt_algorithm = "3DES-CBC" - ipsec_integrity_algorithm = "SHA1" - ipsec_sa_lifetime_seconds = 7200 - ipsec_pfs_dh_group = "NULL" - ipsec_sa_lifetime_traffic = 2570 - - security_group_policy { - local_cidr_block = "172.16.0.0/16" - remote_cidr_block = ["2.2.2.0/26", ] - } - tags = { - test = "testt" - } -} -``` - -Import - -VPN connection can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vpn_connection.foo vpnx-nadifg3s -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_connection_reset.go b/tencentcloud/resource_tc_vpn_connection_reset.go index 42d73a7844..593cfcae7b 100644 --- a/tencentcloud/resource_tc_vpn_connection_reset.go +++ b/tencentcloud/resource_tc_vpn_connection_reset.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a vpc vpn_connection_reset - -Example Usage - -```hcl -resource "tencentcloud_vpn_connection_reset" "vpn_connection_reset" { - vpn_gateway_id = "vpngw-gt8bianl" - vpn_connection_id = "vpnx-kme2tx8m" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_customer_gateway.go b/tencentcloud/resource_tc_vpn_customer_gateway.go index 4a47e289ca..5f941c60cd 100644 --- a/tencentcloud/resource_tc_vpn_customer_gateway.go +++ b/tencentcloud/resource_tc_vpn_customer_gateway.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a VPN customer gateway. - -Example Usage - -```hcl -resource "tencentcloud_vpn_customer_gateway" "foo" { - name = "test_vpn_customer_gateway" - public_ip_address = "1.1.1.1" - - tags = { - tag = "test" - } -} -``` - -Import - -VPN customer gateway can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vpn_customer_gateway.foo cgw-xfqag -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_customer_gateway_configuration_download.go b/tencentcloud/resource_tc_vpn_customer_gateway_configuration_download.go index 645d8c5ff2..e7433d70ac 100644 --- a/tencentcloud/resource_tc_vpn_customer_gateway_configuration_download.go +++ b/tencentcloud/resource_tc_vpn_customer_gateway_configuration_download.go @@ -1,21 +1,3 @@ -/* -Provides a resource to create a vpc vpn_customer_gateway_configuration_download - -Example Usage - -```hcl -resource "tencentcloud_vpn_customer_gateway_configuration_download" "vpn_customer_gateway_configuration_download" { - vpn_gateway_id = "vpngw-gt8bianl" - vpn_connection_id = "vpnx-kme2tx8m" - customer_gateway_vendor { - platform = "comware" - software_version = "V1.0" - vendor_name = "h3c" - } - interface_name = "test" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_gateway.go b/tencentcloud/resource_tc_vpn_gateway.go index 5eb113fb91..a9bb9b44ab 100644 --- a/tencentcloud/resource_tc_vpn_gateway.go +++ b/tencentcloud/resource_tc_vpn_gateway.go @@ -1,91 +1,3 @@ -/* -Provides a resource to create a VPN gateway. - --> **NOTE:** The prepaid VPN gateway do not support renew operation or delete operation with terraform. - -Example Usage - -VPC SSL VPN gateway -```hcl -resource "tencentcloud_vpn_gateway" "my_cgw" { - name = "test" - bandwidth = 5 - zone = "ap-guangzhou-3" - type = "SSL" - vpc_id = "vpc-86v957zb" - - tags = { - test = "test" - } -} -``` - -CCN IPEC VPN gateway -```hcl -resource "tencentcloud_vpn_gateway" "my_cgw" { - name = "test" - bandwidth = 5 - zone = "ap-guangzhou-3" - type = "CCN" - - tags = { - test = "test" - } -} -``` - -CCN SSL VPN gateway -```hcl -resource "tencentcloud_vpn_gateway" "my_cgw" { - name = "test" - bandwidth = 5 - zone = "ap-guangzhou-3" - type = "SSL_CCN" - - tags = { - test = "test" - } -} -``` - -POSTPAID_BY_HOUR VPN gateway -```hcl -resource "tencentcloud_vpn_gateway" "my_cgw" { - name = "test" - vpc_id = "vpc-dk8zmwuf" - bandwidth = 5 - zone = "ap-guangzhou-3" - - tags = { - test = "test" - } -} -``` - -PREPAID VPN gateway -```hcl -resource "tencentcloud_vpn_gateway" "my_cgw" { - name = "test" - vpc_id = "vpc-dk8zmwuf" - bandwidth = 5 - zone = "ap-guangzhou-3" - charge_type = "PREPAID" - prepaid_period = 1 - - tags = { - test = "test" - } -} -``` - -Import - -VPN gateway can be imported using the id, e.g. - -``` -$ terraform import tencentcloud_vpn_gateway.foo vpngw-8ccsnclt -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_gateway_ccn_routes.go b/tencentcloud/resource_tc_vpn_gateway_ccn_routes.go index 8d997d083b..88e7fb94c1 100644 --- a/tencentcloud/resource_tc_vpn_gateway_ccn_routes.go +++ b/tencentcloud/resource_tc_vpn_gateway_ccn_routes.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a vpn_gateway_ccn_routes - -Example Usage - -```hcl -resource "tencentcloud_vpn_gateway_ccn_routes" "vpn_gateway_ccn_routes" { - destination_cidr_block = "192.168.1.0/24" - route_id = "vpnr-akdy0757" - status = "DISABLE" - vpn_gateway_id = "vpngw-lie1a4u7" -} - -``` - -Import - -vpc vpn_gateway_ccn_routes can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpn_gateway_ccn_routes.vpn_gateway_ccn_routes vpn_gateway_id#ccn_routes_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_gateway_route.go b/tencentcloud/resource_tc_vpn_gateway_route.go index ebbb77b6bf..4c9b14714a 100644 --- a/tencentcloud/resource_tc_vpn_gateway_route.go +++ b/tencentcloud/resource_tc_vpn_gateway_route.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a VPN gateway route. - -Example Usage - -```hcl -resource "tencentcloud_vpn_gateway_route" "route" { - vpn_gateway_id = "vpngw-ak9sjem2" - destination_cidr_block = "10.0.0.0/16" - instance_id = "vpnx-5b5dmao3" - instance_type = "VPNCONN" - priority = 100 - status = "DISABLE" -} -``` - -Import - -VPN gateway route can be imported using the id, the id format must be '{vpn_gateway_id}#{route_id}', e.g. - -``` -$ terraform import tencentcloud_vpn_gateway_route.route1 vpngw-ak9sjem2#vpngw-8ccsnclt -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_gateway_ssl_client_cert.go b/tencentcloud/resource_tc_vpn_gateway_ssl_client_cert.go index f6b113890b..1a0706c4b1 100644 --- a/tencentcloud/resource_tc_vpn_gateway_ssl_client_cert.go +++ b/tencentcloud/resource_tc_vpn_gateway_ssl_client_cert.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a vpc vpn_gateway_ssl_client_cert - -Example Usage - -```hcl -resource "tencentcloud_vpn_gateway_ssl_client_cert" "vpn_gateway_ssl_client_cert" { - ssl_vpn_client_id = "vpnc-123456" - switch = "off" -} -``` - -Import - -vpc vpn_gateway_ssl_client_cert can be imported using the id, e.g. - -``` -terraform import tencentcloud_vpn_gateway_ssl_client_cert.vpn_gateway_ssl_client_cert ssl_client_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_ssl_client.go b/tencentcloud/resource_tc_vpn_ssl_client.go index d2f5705f22..5df046ce8f 100644 --- a/tencentcloud/resource_tc_vpn_ssl_client.go +++ b/tencentcloud/resource_tc_vpn_ssl_client.go @@ -1,24 +1,3 @@ -/* -Provide a resource to create a VPN SSL Client. - -Example Usage - -```hcl -resource "tencentcloud_vpn_ssl_client" "client" { - ssl_vpn_server_id = "vpns-aog5xcjj" - ssl_vpn_client_name = "hello" -} - -``` - -Import - -VPN SSL Client can be imported, e.g. - -``` -$ terraform import tencentcloud_vpn_ssl_client.client vpn-client-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_vpn_ssl_server.go b/tencentcloud/resource_tc_vpn_ssl_server.go index 55b01d2d1d..05c0817458 100644 --- a/tencentcloud/resource_tc_vpn_ssl_server.go +++ b/tencentcloud/resource_tc_vpn_ssl_server.go @@ -1,32 +1,3 @@ -/* -Provide a resource to create a VPN SSL Server. - -Example Usage - -```hcl -resource "tencentcloud_vpn_ssl_server" "server" { - local_address = [ - "10.0.0.0/17", - ] - remote_address = "11.0.0.0/16" - ssl_vpn_server_name = "helloworld" - vpn_gateway_id = "vpngw-335lwf7d" - ssl_vpn_protocol = "UDP" - ssl_vpn_port = 1194 - integrity_algorithm = "MD5" - encrypt_algorithm = "AES-128-CBC" - compress = true -} -``` - -Import - -VPN SSL Server can be imported, e.g. - -``` -$ terraform import tencentcloud_vpn_ssl_server.server vpn-server-id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_anti_fake.go b/tencentcloud/resource_tc_waf_anti_fake.go index 9157a9b300..30ac910422 100644 --- a/tencentcloud/resource_tc_waf_anti_fake.go +++ b/tencentcloud/resource_tc_waf_anti_fake.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a waf anti_fake - -~> **NOTE:** Uri: Please configure static resources such as. html,. shtml,. txt,. js,. css,. jpg,. png, or access paths for static resources.. - -Example Usage - -```hcl -resource "tencentcloud_waf_anti_fake" "example" { - domain = "www.waf.com" - name = "tf_example" - uri = "/anti_fake_url.html" - status = 1 -} -``` - -Import - -waf anti_fake can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_anti_fake.example 3200035516#www.waf.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_anti_info_leak.go b/tencentcloud/resource_tc_waf_anti_info_leak.go index a16c43611d..5811e32be6 100644 --- a/tencentcloud/resource_tc_waf_anti_info_leak.go +++ b/tencentcloud/resource_tc_waf_anti_info_leak.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a waf anti_info_leak - -Example Usage - -```hcl -resource "tencentcloud_waf_anti_info_leak" "example" { - domain = "tf.example.com" - name = "tf_example" - action_type = 0 - strategies { - field = "information" - content = "phone" - } - uri = "/anti_info_leak_url" - status = 1 -} -``` - -Import - -waf anti_info_leak can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_anti_info_leak.example 3100077499#tf.example.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_auto_deny_rules.go b/tencentcloud/resource_tc_waf_auto_deny_rules.go index 14b1b392b0..fe76884806 100644 --- a/tencentcloud/resource_tc_waf_auto_deny_rules.go +++ b/tencentcloud/resource_tc_waf_auto_deny_rules.go @@ -1,25 +1,3 @@ -/* -Provides a resource to create a waf auto_deny_rules - -Example Usage - -```hcl -resource "tencentcloud_waf_auto_deny_rules" "example" { - domain = "demo.waf.com" - attack_threshold = 20 - time_threshold = 12 - deny_time_threshold = 5 -} -``` - -Import - -waf auto_deny_rules can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_auto_deny_rules.example demo.waf.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_cc.go b/tencentcloud/resource_tc_waf_cc.go index 3ac832d25c..7585a19b76 100644 --- a/tencentcloud/resource_tc_waf_cc.go +++ b/tencentcloud/resource_tc_waf_cc.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a waf cc - -Example Usage - -```hcl -resource "tencentcloud_waf_cc" "example" { - domain = "www.demo.com" - name = "terraform" - status = 1 - advance = "0" - limit = "60" - interval = "60" - url = "/cc_demo" - match_func = 0 - action_type = "22" - priority = 50 - valid_time = 600 - edition = "sparta-waf" - type = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_cc_auto_status.go b/tencentcloud/resource_tc_waf_cc_auto_status.go index 163e236db1..da3dd8ca04 100644 --- a/tencentcloud/resource_tc_waf_cc_auto_status.go +++ b/tencentcloud/resource_tc_waf_cc_auto_status.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a waf cc_auto_status - -Example Usage - -```hcl -resource "tencentcloud_waf_cc_auto_status" "example" { - domain = "www.demo.com" - edition = "sparta-waf" -} -``` - -Import - -waf cc_auto_status can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_cc_auto_status.example www.demo.com#sparta-waf -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_cc_session.go b/tencentcloud/resource_tc_waf_cc_session.go index 0e398a2a3e..15ec582f1d 100644 --- a/tencentcloud/resource_tc_waf_cc_session.go +++ b/tencentcloud/resource_tc_waf_cc_session.go @@ -1,30 +1,3 @@ -/* -Provides a resource to create a waf cc_session - -Example Usage - -```hcl -resource "tencentcloud_waf_cc_session" "example" { - domain = "www.demo.com" - source = "get" - category = "match" - key_or_start_mat = "key_a=123" - end_mat = "&" - start_offset = "-1" - end_offset = "-1" - edition = "sparta-waf" - session_name = "terraformDemo" -} -``` - -Import - -waf cc_session can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_cc_session.example www.demo.com#sparta-waf#2000000253 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_clb_domain.go b/tencentcloud/resource_tc_waf_clb_domain.go index a0f384ba42..7a10a42a09 100644 --- a/tencentcloud/resource_tc_waf_clb_domain.go +++ b/tencentcloud/resource_tc_waf_clb_domain.go @@ -1,113 +1,3 @@ -/* -Provides a resource to create a waf clb_domain - -Example Usage - -Create a basic waf clb domain - -```hcl -resource "tencentcloud_waf_clb_domain" "example" { - instance_id = "waf_2kxtlbky00b2v1fn" - domain = "test.com" - - load_balancer_set { - load_balancer_id = "lb-5dnrkgry" - load_balancer_name = "keep-listener-clb" - listener_id = "lbl-nonkgvc2" - listener_name = "dsadasd" - vip = "106.55.220.8" - vport = "80" - region = "gz" - protocol = "HTTP" - zone = "ap-guangzhou-6" - numerical_vpc_id = "5232945" - load_balancer_type = "OPEN" - } - - region = "gz" - alb_type = "clb" -} -``` - -Create a complete waf clb domain - -```hcl -resource "tencentcloud_waf_clb_domain" "example" { - instance_id = "waf_2kxtlbky00b2v1fn" - domain = "test.com" - is_cdn = 3 - status = 1 - engine = 21 - - load_balancer_set { - load_balancer_id = "lb-5dnrkgry" - load_balancer_name = "keep-listener-clb" - listener_id = "lbl-nonkgvc2" - listener_name = "dsadasd" - vip = "106.55.220.8" - vport = "80" - region = "gz" - protocol = "HTTP" - zone = "ap-guangzhou-6" - numerical_vpc_id = "5232945" - load_balancer_type = "OPEN" - } - - region = "gz" - flow_mode = 1 - alb_type = "clb" - bot_status = 1 - api_safe_status = 1 - ip_headers = [ - "headers_1", - "headers_2", - "headers_3", - ] -} -``` - -Create a complete waf tsegw domain - -```hcl -resource "tencentcloud_waf_clb_domain" "example" { - instance_id = "waf_2kxtlbky00b2v1fn" - domain = "xxx.com" - is_cdn = 0 - status = 1 - engine = 12 - region = "gz" - flow_mode = 0 - alb_type = "tsegw" - bot_status = 0 - api_safe_status = 0 -} -``` - -Create a complete waf apisix domain - -```hcl -resource "tencentcloud_waf_clb_domain" "example" { - instance_id = "waf_2kxtlbky00b2v1fn" - domain = "xxx.com" - is_cdn = 0 - status = 1 - engine = 12 - region = "gz" - flow_mode = 0 - alb_type = "apisix" - bot_status = 0 - api_safe_status = 0 -} -``` - -Import - -waf clb_domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_clb_domain.example waf_2kxtlbky00b2v1fn#test.com#waf-0FSehoRU -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_clb_instance.go b/tencentcloud/resource_tc_waf_clb_instance.go index 13ba6b5c90..4c2cf8a715 100644 --- a/tencentcloud/resource_tc_waf_clb_instance.go +++ b/tencentcloud/resource_tc_waf_clb_instance.go @@ -1,50 +1,3 @@ -/* -Provides a resource to create a waf clb instance - -~> **NOTE:** Region only supports `ap-guangzhou` and `ap-seoul`. - -Example Usage - -Create a basic waf premium clb instance - -```hcl -resource "tencentcloud_waf_clb_instance" "example" { - goods_category = "premium_clb" - instance_name = "tf-example-clb-waf" -} -``` - -Create a complete waf ultimate_clb instance - -```hcl -resource "tencentcloud_waf_clb_instance" "example" { - goods_category = "ultimate_clb" - instance_name = "tf-example-clb-waf" - time_span = 1 - time_unit = "m" - auto_renew_flag = 1 - elastic_mode = 1 - bot_management = 1 - api_security = 1 -} -``` - -Set waf ultimate_clb instance qps limit - -```hcl -resource "tencentcloud_waf_clb_instance" "example" { - goods_category = "ultimate_clb" - instance_name = "tf-example-clb-waf" - time_span = 1 - time_unit = "m" - auto_renew_flag = 1 - elastic_mode = 1 - qps_limit = 200000 - bot_management = 1 - api_security = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_custom_rule.go b/tencentcloud/resource_tc_waf_custom_rule.go index 542f06da14..1b76517610 100644 --- a/tencentcloud/resource_tc_waf_custom_rule.go +++ b/tencentcloud/resource_tc_waf_custom_rule.go @@ -1,36 +1,3 @@ -/* -Provides a resource to create a waf custom_rule - -Example Usage - -```hcl -resource "tencentcloud_waf_custom_rule" "example" { - name = "tf-example" - sort_id = "50" - redirect = "/" - expire_time = "0" - - strategies { - field = "IP" - compare_func = "ipmatch" - content = "2.2.2.2" - arg = "" - } - - status = "1" - domain = "test.com" - action_type = "1" -} -``` - -Import - -waf custom_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_custom_rule.example test.com#1100310609 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_custom_white_rule.go b/tencentcloud/resource_tc_waf_custom_white_rule.go index d394e74572..da4dafd9b5 100644 --- a/tencentcloud/resource_tc_waf_custom_white_rule.go +++ b/tencentcloud/resource_tc_waf_custom_white_rule.go @@ -1,35 +1,3 @@ -/* -Provides a resource to create a waf custom_white_rule - -Example Usage - -```hcl -resource "tencentcloud_waf_custom_white_rule" "example" { - name = "tf-example" - sort_id = "30" - expire_time = "0" - - strategies { - field = "IP" - compare_func = "ipmatch" - content = "1.1.1.1" - arg = "" - } - - status = "1" - domain = "test.com" - bypass = "geoip,cc,owasp" -} -``` - -Import - -waf custom_white_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_custom_white_rule.example test.com#1100310837 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_ip_access_control.go b/tencentcloud/resource_tc_waf_ip_access_control.go index 340542add4..94fa9d99df 100644 --- a/tencentcloud/resource_tc_waf_ip_access_control.go +++ b/tencentcloud/resource_tc_waf_ip_access_control.go @@ -1,44 +1,3 @@ -/* -Provides a resource to create a waf ip_access_control - -Example Usage - -```hcl -resource "tencentcloud_waf_ip_access_control" "example" { - instance_id = "waf_2kxtlbky00b3b4qz" - domain = "www.demo.com" - edition = "sparta-waf" - items { - ip = "1.1.1.1" - note = "desc info." - action = 40 - valid_ts = "2019571199" - } - - items { - ip = "2.2.2.2" - note = "desc info." - action = 42 - valid_ts = "2019571199" - } - - items { - ip = "3.3.3.3" - note = "desc info." - action = 40 - valid_ts = "1680570420" - } -} -``` - -Import - -waf ip_access_control can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_ip_access_control.example waf_2kxtlbky00b3b4qz#www.demo.com#sparta-waf -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_modify_access_period.go b/tencentcloud/resource_tc_waf_modify_access_period.go index eab49ea1d9..26c155c20c 100644 --- a/tencentcloud/resource_tc_waf_modify_access_period.go +++ b/tencentcloud/resource_tc_waf_modify_access_period.go @@ -1,15 +1,3 @@ -/* -Provides a resource to create a waf modify_access_period - -Example Usage - -```hcl -resource "tencentcloud_waf_modify_access_period" "example" { - topic_id = "1ae37c76-df99-4e2b-998c-20f39eba6226" - period = 30 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_module_status.go b/tencentcloud/resource_tc_waf_module_status.go index 34e503fc4a..4f109a7db4 100644 --- a/tencentcloud/resource_tc_waf_module_status.go +++ b/tencentcloud/resource_tc_waf_module_status.go @@ -1,28 +1,3 @@ -/* -Provides a resource to create a waf module_status - -Example Usage - -```hcl -resource "tencentcloud_waf_module_status" "example" { - domain = "demo.waf.com" - web_security = 1 - access_control = 0 - cc_protection = 1 - api_protection = 1 - anti_tamper = 1 - anti_leakage = 0 -} -``` - -Import - -waf module_status can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_module_status.example demo.waf.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_protection_mode.go b/tencentcloud/resource_tc_waf_protection_mode.go index c838ac6379..4a59c756b2 100644 --- a/tencentcloud/resource_tc_waf_protection_mode.go +++ b/tencentcloud/resource_tc_waf_protection_mode.go @@ -1,17 +1,3 @@ -/* -Provides a resource to create a waf protection_mode - -Example Usage - -```hcl -resource "tencentcloud_waf_protection_mode" "example" { - domain = "keep.qcloudwaf.com" - mode = 10 - edition = "sparta-waf" - type = 0 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_saas_domain.go b/tencentcloud/resource_tc_waf_saas_domain.go index 6cc08c6e42..5950da2f20 100644 --- a/tencentcloud/resource_tc_waf_saas_domain.go +++ b/tencentcloud/resource_tc_waf_saas_domain.go @@ -1,179 +1,3 @@ -/* -Provides a resource to create a waf saas_domain - -Example Usage - -If upstream_type is 0 - -Create a basic waf saas domain - -```hcl -resource "tencentcloud_waf_saas_domain" "example" { - instance_id = "waf_2kxtlbky01b3wceb" - domain = "tf.example.com" - src_list = [ - "1.1.1.1" - ] - - ports { - port = "80" - protocol = "http" - upstream_port = "80" - upstream_protocol = "http" - } -} -``` - -Create a load balancing strategy is weighted polling saas domain - -```hcl -resource "tencentcloud_waf_saas_domain" "example" { - instance_id = "waf_2kxtlbky01b3wceb" - domain = "tf.example.com" - src_list = [ - "1.1.1.1", - "2.2.2.2" - ] - load_balance = "2" - weights = [ - 30, - 50 - ] - - ports { - port = "80" - protocol = "http" - upstream_port = "80" - upstream_protocol = "http" - } -} -``` - -If upstream_type is 1 - -```hcl -resource "tencentcloud_waf_saas_domain" "example" { - instance_id = "waf_2kxtlbky01b3wceb" - domain = "tf.example.com" - upstream_type = 1 - upstream_domain = "test.com" - - ports { - port = "80" - protocol = "http" - upstream_port = "80" - upstream_protocol = "http" - } -} -``` - -Create a waf saas domain with set Http&Https - -```hcl -resource "tencentcloud_waf_saas_domain" "example" { - instance_id = "waf_2kxtlbky01b3wceb" - domain = "tf.example.com" - is_cdn = 3 - cert_type = 2 - ssl_id = "3a6B5y8v" - load_balance = "2" - https_rewrite = 1 - upstream_scheme = "https" - src_list = [ - "1.1.1.1", - "2.2.2.2" - ] - weights = [ - 50, - 60 - ] - - ports { - port = "80" - protocol = "http" - upstream_port = "80" - upstream_protocol = "http" - } - - ports { - port = "443" - protocol = "https" - upstream_port = "443" - upstream_protocol = "https" - } - - ip_headers = [ - "headers_1", - "headers_2", - "headers_3", - ] -} -``` - -Create a complete waf saas domain - -```hcl -resource "tencentcloud_waf_saas_domain" "example" { - instance_id = "waf_2kxtlbky01b3wceb" - domain = "tf.example.com" - is_cdn = 3 - cert_type = 2 - ssl_id = "3a6B5y8v" - load_balance = "2" - https_rewrite = 1 - is_http2 = 1 - upstream_scheme = "https" - src_list = [ - "1.1.1.1", - "2.2.2.2" - ] - weights = [ - 50, - 60 - ] - - ports { - port = "80" - protocol = "http" - upstream_port = "80" - upstream_protocol = "http" - } - - ports { - port = "443" - protocol = "https" - upstream_port = "443" - upstream_protocol = "https" - } - - ip_headers = [ - "headers_1", - "headers_2", - "headers_3", - ] - - is_keep_alive = "1" - active_check = 1 - tls_version = 3 - cipher_template = 1 - proxy_read_timeout = 500 - proxy_send_timeout = 500 - sni_type = 3 - sni_host = "3.3.3.3" - xff_reset = 1 - bot_status = 1 - api_safe_status = 1 -} -``` - -Import - -waf saas_domain can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_saas_domain.example waf_2kxtlbky01b3wceb#tf.example.com#9647c91da0aa5f5aaa49d0ca40e2af24 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_saas_instance.go b/tencentcloud/resource_tc_waf_saas_instance.go index 4cd9d01a5b..bb6b01ce9c 100644 --- a/tencentcloud/resource_tc_waf_saas_instance.go +++ b/tencentcloud/resource_tc_waf_saas_instance.go @@ -1,52 +1,3 @@ -/* -Provides a resource to create a waf saas instance - -~> **NOTE:** Region only supports `ap-guangzhou` and `ap-seoul`. - -Example Usage - -Create a basic waf premium saas instance - -```hcl -resource "tencentcloud_waf_saas_instance" "example" { - goods_category = "premium_saas" - instance_name = "tf-example-saas-waf" -} -``` - -Create a complete waf ultimate_saas instance - -```hcl -resource "tencentcloud_waf_saas_instance" "example" { - goods_category = "ultimate_saas" - instance_name = "tf-example-saas-waf" - time_span = 1 - time_unit = "m" - auto_renew_flag = 1 - elastic_mode = 1 - real_region = "gz" - bot_management = 1 - api_security = 1 -} -``` - -Set waf ultimate_saas instance qps limit - -```hcl -resource "tencentcloud_waf_saas_instance" "example" { - goods_category = "ultimate_saas" - instance_name = "tf-example-saas-waf" - time_span = 1 - time_unit = "m" - auto_renew_flag = 1 - elastic_mode = 1 - real_region = "gz" - qps_limit = 200000 - bot_management = 1 - api_security = 1 -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_waf_web_shell.go b/tencentcloud/resource_tc_waf_web_shell.go index cd29d25df5..97f215779f 100644 --- a/tencentcloud/resource_tc_waf_web_shell.go +++ b/tencentcloud/resource_tc_waf_web_shell.go @@ -1,23 +1,3 @@ -/* -Provides a resource to create a waf web_shell - -Example Usage - -```hcl -resource "tencentcloud_waf_web_shell" "example" { - domain = "demo.waf.com" - status = 0 -} -``` - -Import - -waf web_shell can be imported using the id, e.g. - -``` -terraform import tencentcloud_waf_web_shell.example demo.waf.com -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_baseline.go b/tencentcloud/resource_tc_wedata_baseline.go index ecd2104df7..cf2aa9300c 100644 --- a/tencentcloud/resource_tc_wedata_baseline.go +++ b/tencentcloud/resource_tc_wedata_baseline.go @@ -1,59 +1,3 @@ -/* -Provides a resource to create a wedata baseline - -Example Usage - -```hcl -resource "tencentcloud_wedata_baseline" "example" { - project_id = "1927766435649077248" - baseline_name = "tf_example" - baseline_type = "D" - create_uin = "100028439226" - create_name = "tf_user" - in_charge_uin = "tf_user" - in_charge_name = "100028439226" - promise_tasks { - project_id = "1927766435649077248" - task_name = "tf_demo_task" - task_id = "20231030145334153" - task_cycle = "D" - workflow_name = "dataflow_mpp" - workflow_id = "e4dafb2e-76eb-11ee-bfeb-b8cef68a6637" - task_in_charge_name = ";tf_user;" - } - promise_time = "00:00:00" - warning_margin = 30 - is_new_alarm = true - baseline_create_alarm_rule_request { - alarm_types = [ - "baseLineBroken", - "baseLineWarning", - "baseLineTaskFailure" - ] - alarm_level = 2 - alarm_ways = [ - "email", - "sms" - ] - alarm_recipient_type = 1 - alarm_recipients = [ - "tf_user" - ] - alarm_recipient_ids = [ - "100028439226" - ] - } -} -``` - -Import - -wedata baseline can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_baseline.example 1927766435649077248#2 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_datasource.go b/tencentcloud/resource_tc_wedata_datasource.go index 5957208a5a..f1ad17aeba 100644 --- a/tencentcloud/resource_tc_wedata_datasource.go +++ b/tencentcloud/resource_tc_wedata_datasource.go @@ -1,33 +1,3 @@ -/* -Provides a resource to create a wedata datasource - -Example Usage - -```hcl -resource "tencentcloud_wedata_datasource" "example" { - name = "tf_example" - category = "DB" - type = "MYSQL" - owner_project_id = "1612982498218618880" - owner_project_name = "project_demo" - owner_project_ident = "体验项目" - description = "description." - display = "tf_example_demo" - status = 1 - cos_bucket = "wedata-agent-sh-1257305158" - cos_region = "ap-shanghai" - params = jsonencode({ - "connectType" : "public", - "authorityType" : "true", - "deployType" : "CONNSTR_PUBLICDB", - "url" : "jdbc:mysql://1.1.1.1:8080/database", - "username" : "root", - "password" : "password", - "type" : "MYSQL" - }) -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_dq_rule.go b/tencentcloud/resource_tc_wedata_dq_rule.go index 049c8da1bb..7263144377 100644 --- a/tencentcloud/resource_tc_wedata_dq_rule.go +++ b/tencentcloud/resource_tc_wedata_dq_rule.go @@ -1,42 +1,3 @@ -/* -Provides a resource to create a wedata dq_rule - -Example Usage - -```hcl -resource "tencentcloud_wedata_dq_rule" "example" { - project_id = "1948767646355341312" - rule_group_id = 312 - rule_template_id = 1 - name = "tf_example" - table_id = "N85hbsh5QQ2VLHL2iOUVeQ" - type = 1 - source_object_data_type_name = "table" - source_object_value = "表" - condition_type = 1 - compare_rule { - items { - compare_type = 1 - operator = "==" - value_list { - value_type = 3 - value = "100" - } - } - } - alarm_level = 1 - description = "description." -} -``` - -Import - -wedata dq_rule can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_dq_rule.example 1948767646355341312#894 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_function.go b/tencentcloud/resource_tc_wedata_function.go index 5b1e7de981..6d36b4f8ca 100644 --- a/tencentcloud/resource_tc_wedata_function.go +++ b/tencentcloud/resource_tc_wedata_function.go @@ -1,32 +1,3 @@ -/* -Provides a resource to create a wedata function - -Example Usage - -```hcl -resource "tencentcloud_wedata_function" "example" { - type = "HIVE" - kind = "ANALYSIS" - name = "tf_example" - cluster_identifier = "emr-m6u3qgk0" - db_name = "tf_db_example" - project_id = "1612982498218618880" - class_name = "tf_class_example" - resource_list { - path = "/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar" - name = "untitled3-1.0-SNAPSHOT.jar" - id = "5b28bcdf-a0e6-4022-927d-927d399c4593" - type = "cos" - } - description = "description." - usage = "usage info." - param_desc = "param info." - return_desc = "return value info." - example = "example info." - comment = "V1" -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_integration_offline_task.go b/tencentcloud/resource_tc_wedata_integration_offline_task.go index 5d49c10c9e..e73e5b830c 100644 --- a/tencentcloud/resource_tc_wedata_integration_offline_task.go +++ b/tencentcloud/resource_tc_wedata_integration_offline_task.go @@ -1,63 +1,3 @@ -/* -Provides a resource to create a wedata integration_offline_task - -Example Usage - -```hcl -resource "tencentcloud_wedata_integration_offline_task" "example" { - project_id = "1612982498218618880" - cycle_step = 1 - delay_time = 0 - end_time = "2099-12-31 00:00:00" - notes = "terraform example demo." - start_time = "2023-12-31 00:00:00" - task_name = "tf_example" - task_action = "2" - task_mode = "1" - - task_info { - executor_id = "20230313175748567418" - config { - name = "Args" - value = "args" - } - config { - name = "dirtyDataThreshold" - value = "0" - } - config { - name = "concurrency" - value = "1" - } - config { - name = "syncRateLimitUnit" - value = "0" - } - ext_config { - name = "TaskAlarmRegularList" - value = "73" - } - incharge = "demo" - offline_task_add_entity { - cycle_type = 3 - crontab_expression = "0 0 1 * * ?" - retry_wait = 5 - retriable = 1 - try_limit = 5 - self_depend = 1 - } - } -} -``` - -Import - -wedata integration_offline_task can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_integration_offline_task.example 1612982498218618880#20231102200955095 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_integration_realtime_task.go b/tencentcloud/resource_tc_wedata_integration_realtime_task.go index 38287bad5f..6fa4af9893 100644 --- a/tencentcloud/resource_tc_wedata_integration_realtime_task.go +++ b/tencentcloud/resource_tc_wedata_integration_realtime_task.go @@ -1,66 +1,3 @@ -/* -Provides a resource to create a wedata integration_realtime_task - -Example Usage - -```hcl -resource "tencentcloud_wedata_integration_realtime_task" "example" { - project_id = "1612982498218618880" - task_name = "tf_example" - task_mode = "1" - description = "description." - sync_type = 1 - task_info { - incharge = "100028439226" - executor_id = "20230313175748567418" - config { - name = "concurrency" - value = "1" - } - config { - name = "TaskManager" - value = "1" - } - config { - name = "JobManager" - value = "1" - } - config { - name = "TolerateDirtyData" - value = "0" - } - config { - name = "CheckpointingInterval" - value = "1" - } - config { - name = "CheckpointingIntervalUnit" - value = "min" - } - config { - name = "RestartStrategyFixedDelayAttempts" - value = "-1" - } - config { - name = "ResourceAllocationType" - value = "0" - } - config { - name = "TaskAlarmRegularList" - value = "35" - } - } -} -``` - -Import - -wedata integration_realtime_task can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_integration_realtime_task.example 1776563389209296896#h9d39630a-ae45-4460-90b2-0b093cbfef5d -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_integration_task_node.go b/tencentcloud/resource_tc_wedata_integration_task_node.go index 30eae4b41a..503987112d 100644 --- a/tencentcloud/resource_tc_wedata_integration_task_node.go +++ b/tencentcloud/resource_tc_wedata_integration_task_node.go @@ -1,71 +1,3 @@ -/* -Provides a resource to create a wedata integration_task_node - -Example Usage - -```hcl -resource "tencentcloud_wedata_integration_task_node" "example" { - project_id = "1612982498218618880" - task_id = "20231022181114990" - name = "tf_example1" - node_type = "INPUT" - data_source_type = "MYSQL" - task_type = 202 - task_mode = 2 - node_info { - datasource_id = "5085" - config { - name = "Type" - value = "MYSQL" - } - config { - name = "splitPk" - value = "id" - } - config { - name = "PrimaryKey" - value = "id" - } - config { - name = "isNew" - value = "true" - } - config { - name = "PrimaryKey_INPUT_SYMBOL" - value = "input" - } - config { - name = "splitPk_INPUT_SYMBOL" - value = "input" - } - config { - name = "Database" - value = "demo_mysql" - } - config { - name = "TableNames" - value = "users" - } - config { - name = "SiblingNodes" - value = "[]" - } - schema { - id = "471331072" - name = "id" - type = "INT" - alias = "id" - } - schema { - id = "422052352" - name = "username" - type = "VARCHAR(50)" - alias = "username" - } - } -} -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_resource.go b/tencentcloud/resource_tc_wedata_resource.go index 175c06a6cb..407462e01e 100644 --- a/tencentcloud/resource_tc_wedata_resource.go +++ b/tencentcloud/resource_tc_wedata_resource.go @@ -1,27 +1,3 @@ -/* -Provides a resource to create a wedata resource - -Example Usage - -```hcl -resource "tencentcloud_wedata_resource" "example" { - file_path = "/datastudio/resource/demo" - project_id = "1612982498218618880" - file_name = "tf_example" - cos_bucket_name = "wedata-demo-1314991481" - cos_region = "ap-guangzhou" - files_size = "8165" -} -``` - -Import - -wedata resource can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_resource.example 1612982498218618880#/datastudio/resource/demo#75431931-7d27-4034-b3de-3dc3348a220e -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_rule_template.go b/tencentcloud/resource_tc_wedata_rule_template.go index 508ce50b1e..97644320ac 100644 --- a/tencentcloud/resource_tc_wedata_rule_template.go +++ b/tencentcloud/resource_tc_wedata_rule_template.go @@ -1,31 +1,3 @@ -/* -Provides a resource to create a wedata rule_template - -Example Usage - -```hcl -resource "tencentcloud_wedata_rule_template" "rule_template" { - project_id = "1840731346428280832" - type = 2 - name = "tf-test" - quality_dim = 3 - source_object_type = 2 - description = "for tf test" - source_engine_types = [2, 4, 16] - multi_source_flag = false - sql_expression = base64encode("select * from db") - where_flag = false -} -``` - -Import - -wedata rule_template can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_rule_template.rule_template rule_template_id -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/resource_tc_wedata_script.go b/tencentcloud/resource_tc_wedata_script.go index 5cb9995949..2c214fa268 100644 --- a/tencentcloud/resource_tc_wedata_script.go +++ b/tencentcloud/resource_tc_wedata_script.go @@ -1,26 +1,3 @@ -/* -Provides a resource to create a wedata script - -Example Usage - -```hcl -resource "tencentcloud_wedata_script" "example" { - file_path = "/datastudio/project/tf_example.sql" - project_id = "1470575647377821696" - bucket_name = "wedata-demo-1257305158" - region = "ap-guangzhou" - file_extension_type = "sql" -} -``` - -Import - -wedata script can be imported using the id, e.g. - -``` -terraform import tencentcloud_wedata_script.example 1470575647377821696#/datastudio/project/tf_example.sql#4147824b-7ba2-432b-8a8b-7e747594c926 -``` -*/ package tencentcloud import ( diff --git a/tencentcloud/rum/data_source_tc_rum_custom_url.md b/tencentcloud/rum/data_source_tc_rum_custom_url.md new file mode 100644 index 0000000000..5bc460e6e7 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_custom_url.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum custom_url + +Example Usage + +```hcl +data "tencentcloud_rum_custom_url" "custom_url" { + start_time = 1625444040 + type = "top" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_event_url.md b/tencentcloud/rum/data_source_tc_rum_event_url.md new file mode 100644 index 0000000000..464c7a11b1 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_event_url.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum event_url + +Example Usage + +```hcl +data "tencentcloud_rum_event_url" "event_url" { + start_time = 1625444040 + type = "allcount" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_fetch_url.md b/tencentcloud/rum/data_source_tc_rum_fetch_url.md new file mode 100644 index 0000000000..4266458627 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_fetch_url.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum fetch_url + +Example Usage + +```hcl +data "tencentcloud_rum_fetch_url" "fetch_url" { + start_time = 1625444040 + type = "allcount" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_fetch_url_info.md b/tencentcloud/rum/data_source_tc_rum_fetch_url_info.md new file mode 100644 index 0000000000..1d9bae31f1 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_fetch_url_info.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum fetch_url_info + +Example Usage + +```hcl +data "tencentcloud_rum_fetch_url_info" "fetch_url_info" { + start_time = 1625444040 + type = "top" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_group_log.md b/tencentcloud/rum/data_source_tc_rum_group_log.md new file mode 100644 index 0000000000..70e1b32255 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_group_log.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of rum group_log + +Example Usage + +```hcl +data "tencentcloud_rum_group_log" "group_log" { + order_by = "desc" + start_time = 1625444040000 + query = "id:123 AND type:\"log\"" + end_time = 1625454840000 + project_id = 1 + group_field = "level" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_log_export_list.md b/tencentcloud/rum/data_source_tc_rum_log_export_list.md new file mode 100644 index 0000000000..6abf77c591 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_log_export_list.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of rum log_export_list + +Example Usage + +```hcl +data "tencentcloud_rum_log_export_list" "log_export_list" { + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_log_url_statistics.md b/tencentcloud/rum/data_source_tc_rum_log_url_statistics.md new file mode 100644 index 0000000000..5046f0bb06 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_log_url_statistics.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum log_url_statistics + +Example Usage + +```hcl +data "tencentcloud_rum_log_url_statistics" "log_url_statistics" { + start_time = 1625444040 + type = "analysis" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_offline_log_config.md b/tencentcloud/rum/data_source_tc_rum_offline_log_config.md new file mode 100644 index 0000000000..0347a9465f --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_offline_log_config.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of rum offlineLogConfig + +Example Usage + +```hcl +data "tencentcloud_rum_offline_log_config" "offlineLogConfig" { + project_key = "ZEYrYfvaYQ30jRdmPx" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_performance_page.md b/tencentcloud/rum/data_source_tc_rum_performance_page.md new file mode 100644 index 0000000000..a364c4fc8a --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_performance_page.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of rum performance_page + +Example Usage + +```hcl +data "tencentcloud_rum_performance_page" "performance_page" { + project_id = 1 + start_time = 1625444040 + end_time = 1625454840 + type = "pagepv" + level = "1" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_project.md b/tencentcloud/rum/data_source_tc_rum_project.md new file mode 100644 index 0000000000..e90cec4f63 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_project.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of rum project + +Example Usage + +```hcl +data "tencentcloud_rum_project" "project" { + instance_id = "rum-pasZKEI3RLgakj" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_pv_url_info.md b/tencentcloud/rum/data_source_tc_rum_pv_url_info.md new file mode 100644 index 0000000000..b850750146 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_pv_url_info.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum pv_url_info + +Example Usage + +```hcl +data "tencentcloud_rum_pv_url_info" "pv_url_info" { + start_time = 1625444040 + type = "pagepv" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_pv_url_statistics.md b/tencentcloud/rum/data_source_tc_rum_pv_url_statistics.md new file mode 100644 index 0000000000..b498de33d0 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_pv_url_statistics.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum pv_url_statistics + +Example Usage + +```hcl +data "tencentcloud_rum_pv_url_statistics" "pv_url_statistics" { + start_time = 1625444040 + type = "allcount" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_report_count.md b/tencentcloud/rum/data_source_tc_rum_report_count.md new file mode 100644 index 0000000000..41d4d4eab2 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_report_count.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum report_count + +Example Usage + +```hcl +data "tencentcloud_rum_report_count" "report_count" { + start_time = 1625444040 + end_time = 1625454840 + project_id = 1 + report_type = "log" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_scores.md b/tencentcloud/rum/data_source_tc_rum_scores.md new file mode 100644 index 0000000000..34a21cfcce --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_scores.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum scores + +Example Usage + +```hcl +data "tencentcloud_rum_scores" "scores" { + end_time = "2023082215" + start_time = "2023082214" + project_id = 1 + is_demo = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_set_url_statistics.md b/tencentcloud/rum/data_source_tc_rum_set_url_statistics.md new file mode 100644 index 0000000000..94905a2628 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_set_url_statistics.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum set_url_statistics + +Example Usage + +```hcl +data "tencentcloud_rum_set_url_statistics" "set_url_statistics" { + start_time = 1625444040 + type = "allcount" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_sign.md b/tencentcloud/rum/data_source_tc_rum_sign.md new file mode 100644 index 0000000000..f04ab466be --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_sign.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of rum sign + +Example Usage + +```hcl +data "tencentcloud_rum_sign" "sign" { + timeout = 1800 + file_type = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_static_project.md b/tencentcloud/rum/data_source_tc_rum_static_project.md new file mode 100644 index 0000000000..5b130a2df8 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_static_project.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum static_project + +Example Usage + +```hcl +data "tencentcloud_rum_static_project" "static_project" { + start_time = 1625444040 + type = "allcount" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_static_resource.md b/tencentcloud/rum/data_source_tc_rum_static_resource.md new file mode 100644 index 0000000000..12a0345d1a --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_static_resource.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum static_resource + +Example Usage + +```hcl +data "tencentcloud_rum_static_resource" "static_resource" { + start_time = 1625444040 + type = "top" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_static_url.md b/tencentcloud/rum/data_source_tc_rum_static_url.md new file mode 100644 index 0000000000..4a2b008cb2 --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_static_url.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum static_url + +Example Usage + +```hcl +data "tencentcloud_rum_static_url" "static_url" { + start_time = 1625444040 + type = "pagepv" + end_time = 1625454840 + project_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_taw_instance.md b/tencentcloud/rum/data_source_tc_rum_taw_instance.md new file mode 100644 index 0000000000..87fc6ec95b --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_taw_instance.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of rum tawInstance + +Example Usage + +```hcl +data "tencentcloud_rum_taw_instance" "taw_instance" { + charge_statuses = [1,] + charge_types = [1,] + area_ids = [1,] + instance_statuses = [2,] + instance_ids = ["rum-pasZKEI3RLgakj",] +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_web_vitals_page.md b/tencentcloud/rum/data_source_tc_rum_web_vitals_page.md new file mode 100644 index 0000000000..a002ed651e --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_web_vitals_page.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of rum web_vitals_page + +Example Usage + +```hcl +data "tencentcloud_rum_web_vitals_page" "web_vitals_page" { + start_time = 1625444040 + end_time = 1625454840 + project_id = 1 + type = "from" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/data_source_tc_rum_whitelist.md b/tencentcloud/rum/data_source_tc_rum_whitelist.md new file mode 100644 index 0000000000..ca7ec5fa5f --- /dev/null +++ b/tencentcloud/rum/data_source_tc_rum_whitelist.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of rum whitelist + +Example Usage + +```hcl +data "tencentcloud_rum_whitelist" "whitelist" { + instance_id = "rum-pasZKEI3RLgakj" +} +``` \ No newline at end of file diff --git a/tencentcloud/rum/resource_tc_rum_instance_status_config.md b/tencentcloud/rum/resource_tc_rum_instance_status_config.md new file mode 100644 index 0000000000..0041b17452 --- /dev/null +++ b/tencentcloud/rum/resource_tc_rum_instance_status_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a rum instance_status_config + +Example Usage + +```hcl +resource "tencentcloud_rum_instance_status_config" "instance_status_config" { + instance_id = "rum-pasZKEI3RLgakj" + operate = "stop" +} +``` + +Import + +rum instance_status_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_rum_instance_status_config.instance_status_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/rum/resource_tc_rum_offline_log_config_attachment.md b/tencentcloud/rum/resource_tc_rum_offline_log_config_attachment.md new file mode 100644 index 0000000000..c4ca1c53dc --- /dev/null +++ b/tencentcloud/rum/resource_tc_rum_offline_log_config_attachment.md @@ -0,0 +1,17 @@ +Provides a resource to create a rum offline_log_config_attachment + +Example Usage + +```hcl +resource "tencentcloud_rum_offline_log_config_attachment" "offline_log_config_attachment" { + project_key = "ZEYrYfvaYQ30jRdmPx" + unique_id = "100027012454" +} + +``` +Import + +rum offline_log_config_attachment can be imported using the id, e.g. +``` +$ terraform import tencentcloud_rum_offline_log_config_attachment.offline_log_config_attachment ZEYrYfvaYQ30jRdmPx#100027012454 +``` \ No newline at end of file diff --git a/tencentcloud/rum/resource_tc_rum_project.md b/tencentcloud/rum/resource_tc_rum_project.md new file mode 100644 index 0000000000..338ef9faea --- /dev/null +++ b/tencentcloud/rum/resource_tc_rum_project.md @@ -0,0 +1,23 @@ +Provides a resource to create a rum project + +Example Usage + +```hcl +resource "tencentcloud_rum_project" "project" { + name = "projectName" + instance_id = "rum-pasZKEI3RLgakj" + rate = "100" + enable_url_group = "0" + type = "web" + repo = "" + url = "iac-tf.com" + desc = "projectDesc-1" +} + +``` +Import + +rum project can be imported using the id, e.g. +``` +$ terraform import tencentcloud_rum_project.project project_id +``` \ No newline at end of file diff --git a/tencentcloud/rum/resource_tc_rum_project_status_config.md b/tencentcloud/rum/resource_tc_rum_project_status_config.md new file mode 100644 index 0000000000..03da1297a4 --- /dev/null +++ b/tencentcloud/rum/resource_tc_rum_project_status_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a rum project_status_config + +Example Usage + +```hcl +resource "tencentcloud_rum_project_status_config" "project_status_config" { + project_id = 131407 + operate = "stop" +} +``` + +Import + +rum project_status_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_rum_project_status_config.project_status_config project_id +``` \ No newline at end of file diff --git a/tencentcloud/rum/resource_tc_rum_taw_instance.md b/tencentcloud/rum/resource_tc_rum_taw_instance.md new file mode 100644 index 0000000000..ed63af909e --- /dev/null +++ b/tencentcloud/rum/resource_tc_rum_taw_instance.md @@ -0,0 +1,23 @@ +Provides a resource to create a rum taw_instance + +Example Usage + +```hcl +resource "tencentcloud_rum_taw_instance" "taw_instance" { + area_id = "1" + charge_type = "1" + data_retention_days = "30" + instance_name = "instanceName-1" + tags = { + createdBy = "terraform" + } + instance_desc = "instanceDesc-1" +} + +``` +Import + +rum taw_instance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_rum_taw_instance.taw_instance tawInstance_id +``` \ No newline at end of file diff --git a/tencentcloud/rum/resource_tc_rum_whitelist.md b/tencentcloud/rum/resource_tc_rum_whitelist.md new file mode 100644 index 0000000000..8f0a9660d2 --- /dev/null +++ b/tencentcloud/rum/resource_tc_rum_whitelist.md @@ -0,0 +1,19 @@ +Provides a resource to create a rum whitelist + +Example Usage + +```hcl +resource "tencentcloud_rum_whitelist" "whitelist" { + instance_id = "rum-pasZKEI3RLgakj" + remark = "white list remark" + whitelist_uin = "20221122" + # aid = "" +} + +``` +Import + +rum whitelist can be imported using the id, e.g. +``` +$ terraform import tencentcloud_rum_whitelist.whitelist whitelist_id +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_account_info.md b/tencentcloud/scf/data_source_tc_scf_account_info.md new file mode 100644 index 0000000000..fc8de5275e --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_account_info.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of scf account_info + +Example Usage + +```hcl +data "tencentcloud_scf_account_info" "account_info" {} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_async_event_management.md b/tencentcloud/scf/data_source_tc_scf_async_event_management.md new file mode 100644 index 0000000000..3e5752d704 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_async_event_management.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of scf async_event_management + +Example Usage + +```hcl +data "tencentcloud_scf_async_event_management" "async_event_management" { + function_name = "keep-1676351130" + namespace = "default" + qualifier = "$LATEST" + order = "ASC" + orderby = "StartTime" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_async_event_status.md b/tencentcloud/scf/data_source_tc_scf_async_event_status.md new file mode 100644 index 0000000000..dbc2ffba92 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_async_event_status.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of scf async_event_status + +Example Usage + +```hcl +data "tencentcloud_scf_async_event_status" "async_event_status" { + invoke_request_id = "9de9405a-e33a-498d-bb59-e80b7bed1191" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_function_address.md b/tencentcloud/scf/data_source_tc_scf_function_address.md new file mode 100644 index 0000000000..221dbe8fcc --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_function_address.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of scf function_address + +Example Usage + +```hcl +data "tencentcloud_scf_function_address" "function_address" { + function_name = "keep-1676351130" + namespace = "default" + qualifier = "$LATEST" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_function_aliases.md b/tencentcloud/scf/data_source_tc_scf_function_aliases.md new file mode 100644 index 0000000000..e845408ac2 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_function_aliases.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of scf function_aliases + +Example Usage + +```hcl +data "tencentcloud_scf_function_aliases" "function_aliases" { + function_name = "keep-1676351130" + namespace = "default" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_function_versions.md b/tencentcloud/scf/data_source_tc_scf_function_versions.md new file mode 100644 index 0000000000..b64bac81d7 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_function_versions.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of scf function_versions + +Example Usage + +```hcl +data "tencentcloud_scf_function_versions" "function_versions" { + function_name = "keep-1676351130" + namespace = "default" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_functions.md b/tencentcloud/scf/data_source_tc_scf_functions.md new file mode 100644 index 0000000000..026c821a25 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_functions.md @@ -0,0 +1,19 @@ +Use this data source to query SCF functions. + +Example Usage + +```hcl +resource "tencentcloud_scf_function" "foo" { + name = "ci-test-function" + handler = "main.do_it" + runtime = "Python3.6" + + cos_bucket_name = "scf-code-1234567890" + cos_object_name = "code.zip" + cos_bucket_region = "ap-guangzhou" +} + +data "tencentcloud_scf_functions" "foo" { + name = tencentcloud_scf_function.foo.name +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_layer_versions.md b/tencentcloud/scf/data_source_tc_scf_layer_versions.md new file mode 100644 index 0000000000..51fd20cd5e --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_layer_versions.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of scf layer_versions + +Example Usage + +```hcl +data "tencentcloud_scf_layer_versions" "layer_versions" { + layer_name = "tf-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_layers.md b/tencentcloud/scf/data_source_tc_scf_layers.md new file mode 100644 index 0000000000..6fd04bed7e --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_layers.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of scf layers + +Example Usage + +```hcl +data "tencentcloud_scf_layers" "layers" {} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_logs.md b/tencentcloud/scf/data_source_tc_scf_logs.md new file mode 100644 index 0000000000..d9ff345b89 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_logs.md @@ -0,0 +1,19 @@ +Use this data source to query SCF function logs. + +Example Usage + +```hcl +resource "tencentcloud_scf_function" "foo" { + name = "ci-test-function" + handler = "main.do_it" + runtime = "Python3.6" + + cos_bucket_name = "scf-code-1234567890" + cos_object_name = "code.zip" + cos_bucket_region = "ap-guangzhou" +} + +data "tencentcloud_scf_logs" "foo" { + function_name = tencentcloud_scf_function.foo.name +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_namespaces.md b/tencentcloud/scf/data_source_tc_scf_namespaces.md new file mode 100644 index 0000000000..75f0977c8f --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_namespaces.md @@ -0,0 +1,13 @@ +Use this data source to query SCF namespaces. + +Example Usage + +```hcl +resource "tencentcloud_scf_namespace" "foo" { + namespace = "ci-test-scf" +} + +data "tencentcloud_scf_namespaces" "foo" { + namespace = tencentcloud_scf_namespace.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_request_status.md b/tencentcloud/scf/data_source_tc_scf_request_status.md new file mode 100644 index 0000000000..cd7bc724a7 --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_request_status.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of scf request_status + +Example Usage + +```hcl +data "tencentcloud_scf_request_status" "request_status" { + function_name = "keep-1676351130" + function_request_id = "9de9405a-e33a-498d-bb59-e80b7bed1191" + namespace = "default" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/data_source_tc_scf_triggers.md b/tencentcloud/scf/data_source_tc_scf_triggers.md new file mode 100644 index 0000000000..df4e7a299c --- /dev/null +++ b/tencentcloud/scf/data_source_tc_scf_triggers.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of scf triggers + +Example Usage + +```hcl +data "tencentcloud_scf_triggers" "triggers" { + function_name = "keep-1676351130" + namespace = "default" + order_by = "add_time" + order = "DESC" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_function.md b/tencentcloud/scf/resource_tc_scf_function.md new file mode 100644 index 0000000000..aa2b29ec0d --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_function.md @@ -0,0 +1,50 @@ +Provide a resource to create a SCF function. + +Example Usage + +```hcl +resource "tencentcloud_scf_function" "foo" { + name = "ci-test-function" + handler = "main.do_it" + runtime = "Python3.6" + + cos_bucket_name = "scf-code-1234567890" + cos_object_name = "code.zip" + cos_bucket_region = "ap-guangzhou" +} +``` + +Using Zip file + +```hcl +resource "tencentcloud_scf_function" "foo" { + name = "ci-test-function" + handler = "first.do_it_first" + runtime = "Python3.6" + enable_public_net = true + dns_cache = true + intranet_config { + ip_fixed = "ENABLE" + } + vpc_id = "vpc-391sv4w3" + subnet_id = "subnet-ljyn7h30" + + zip_file = "/scf/first.zip" + + tags = { + "env" = "test" + } +} + +Using CFS config +``` + +Import + +SCF function can be imported, e.g. + +-> **NOTE:** function id is `+` + +``` +$ terraform import tencentcloud_scf_function.test default+test +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_function_alias.md b/tencentcloud/scf/resource_tc_scf_function_alias.md new file mode 100644 index 0000000000..6ae3daa929 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_function_alias.md @@ -0,0 +1,47 @@ +Provides a resource to create a scf function_alias + +Example Usage + +```hcl +// by weight +resource "tencentcloud_scf_function_alias" "function_alias" { + description = "weight test" + function_name = "keep-1676351130" + function_version = "$LATEST" + name = "weight" + namespace = "default" + + routing_config { + additional_version_weights { + version = "2" + weight = 0.4 + } + } +} + +// by route +resource "tencentcloud_scf_function_alias" "function_alias" { + description = "matchs for test 12312312" + function_name = "keep-1676351130" + function_version = "3" + name = "matchs" + namespace = "default" + + routing_config { + additional_version_matches { + expression = "testuser" + key = "invoke.headers.User" + method = "exact" + version = "2" + } + } +} +``` + +Import + +scf function_alias can be imported using the id, e.g. + +``` +terraform import tencentcloud_scf_function_alias.function_alias namespace#functionName#name +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_function_event_invoke_config.md b/tencentcloud/scf/resource_tc_scf_function_event_invoke_config.md new file mode 100644 index 0000000000..21e8b0ddd0 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_function_event_invoke_config.md @@ -0,0 +1,24 @@ +Provides a resource to create a scf function_event_invoke_config + +Example Usage + +```hcl +resource "tencentcloud_scf_function_event_invoke_config" "function_event_invoke_config" { + function_name = "keep-1676351130" + namespace = "default" + async_trigger_config { + retry_config { + retry_num = 2 + } + msg_ttl = 24 + } +} +``` + +Import + +scf function_event_invoke_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_scf_function_event_invoke_config.function_event_invoke_config function_name#namespace +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_function_version.md b/tencentcloud/scf/resource_tc_scf_function_version.md new file mode 100644 index 0000000000..9bb01ba0c7 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_function_version.md @@ -0,0 +1,20 @@ +Provides a resource to create a scf function_version + +Example Usage + +```hcl +resource "tencentcloud_scf_function_version" "function_version" { + function_name = "keep-1676351130" + namespace = "default" + description = "for-terraform-test" +} + +``` + +Import + +scf function_version can be imported using the id, e.g. + +``` +terraform import tencentcloud_scf_function_version.function_version functionName#namespace#functionVersion +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_invoke_function.md b/tencentcloud/scf/resource_tc_scf_invoke_function.md new file mode 100644 index 0000000000..044ddde7c4 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_invoke_function.md @@ -0,0 +1,11 @@ +Provides a resource to create a scf invoke_function + +Example Usage + +```hcl +resource "tencentcloud_scf_invoke_function" "invoke_function" { + function_name = "keep-1676351130" + qualifier = "2" + namespace = "default" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_layer.md b/tencentcloud/scf/resource_tc_scf_layer.md new file mode 100644 index 0000000000..d5ad2067ef --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_layer.md @@ -0,0 +1,24 @@ +Provide a resource to create a SCF layer. + +Example Usage + +```hcl +resource "tencentcloud_scf_layer" "foo" { + layer_name = "foo" + compatible_runtimes = ["Python3.6"] + content { + cos_bucket_name = "test-bucket" + cos_object_name = "/foo.zip" + cos_bucket_region = "ap-guangzhou" + } + description = "foo" + license_info = "foo" +} +``` +Import + +Scf layer can be imported, e.g. + +``` +$ terraform import tencentcloud_scf_layer.layer layerId#layerVersion +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_namespace.md b/tencentcloud/scf/resource_tc_scf_namespace.md new file mode 100644 index 0000000000..c27b51b657 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_namespace.md @@ -0,0 +1,17 @@ +Provide a resource to create a SCF namespace. + +Example Usage + +```hcl +resource "tencentcloud_scf_namespace" "foo" { + namespace = "ci-test-scf" +} +``` + +Import + +SCF namespace can be imported, e.g. + +``` +$ terraform import tencentcloud_scf_function.test default +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_provisioned_concurrency_config.md b/tencentcloud/scf/resource_tc_scf_provisioned_concurrency_config.md new file mode 100644 index 0000000000..eff0e80bb4 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_provisioned_concurrency_config.md @@ -0,0 +1,22 @@ +Provides a resource to create a scf provisioned_concurrency_config + +Example Usage + +```hcl +resource "tencentcloud_scf_provisioned_concurrency_config" "provisioned_concurrency_config" { + function_name = "keep-1676351130" + qualifier = "2" + version_provisioned_concurrency_num = 2 + namespace = "default" + trigger_actions { + trigger_name = "test" + trigger_provisioned_concurrency_num = 2 + trigger_cron_config = "29 45 12 29 05 * 2023" + provisioned_type = "Default" + } + provisioned_type = "Default" + tracking_target = 0.5 + min_capacity = 1 + max_capacity = 2 +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_reserved_concurrency_config.md b/tencentcloud/scf/resource_tc_scf_reserved_concurrency_config.md new file mode 100644 index 0000000000..cea3561152 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_reserved_concurrency_config.md @@ -0,0 +1,19 @@ +Provides a resource to create a scf reserved_concurrency_config + +Example Usage + +```hcl +resource "tencentcloud_scf_reserved_concurrency_config" "reserved_concurrency_config" { + function_name = "keep-1676351130" + reserved_concurrency_mem = 128000 + namespace = "default" +} +``` + +Import + +scf reserved_concurrency_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_scf_reserved_concurrency_config.reserved_concurrency_config reserved_concurrency_config_id +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_sync_invoke_function.md b/tencentcloud/scf/resource_tc_scf_sync_invoke_function.md new file mode 100644 index 0000000000..3b4d89aab9 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_sync_invoke_function.md @@ -0,0 +1,11 @@ +Provides a resource to create a scf sync_invoke_function + +Example Usage + +```hcl +resource "tencentcloud_scf_sync_invoke_function" "invoke_function" { + function_name = "keep-1676351130" + qualifier = "2" + namespace = "default" +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_terminate_async_event.md b/tencentcloud/scf/resource_tc_scf_terminate_async_event.md new file mode 100644 index 0000000000..ee0da1d7f4 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_terminate_async_event.md @@ -0,0 +1,12 @@ +Provides a resource to create a scf terminate_async_event + +Example Usage + +```hcl +resource "tencentcloud_scf_terminate_async_event" "terminate_async_event" { + function_name = "keep-1676351130" + invoke_request_id = "9de9405a-e33a-498d-bb59-e80b7bed1191" + namespace = "default" + grace_shutdown = true +} +``` \ No newline at end of file diff --git a/tencentcloud/scf/resource_tc_scf_trigger_config.md b/tencentcloud/scf/resource_tc_scf_trigger_config.md new file mode 100644 index 0000000000..7be114d3c5 --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_trigger_config.md @@ -0,0 +1,27 @@ +Provides a resource to create a scf trigger_config + +Example Usage + +```hcl + +resource "tencentcloud_scf_trigger_config" "trigger_config" { + enable = "OPEN" + function_name = "keep-1676351130" + trigger_name = "SCF-timer-1685540160" + type = "timer" + qualifier = "$DEFAULT" + namespace = "default" + trigger_desc = "* 1 2 * * * *" + description = "func" + custom_argument = "Information" +} + +``` + +Import + +scf trigger_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_scf_trigger_config.trigger_config functionName#namespace#triggerName +``` \ No newline at end of file diff --git a/tencentcloud/ses/data_source_tc_ses_black_email_address.md b/tencentcloud/ses/data_source_tc_ses_black_email_address.md new file mode 100644 index 0000000000..179c660819 --- /dev/null +++ b/tencentcloud/ses/data_source_tc_ses_black_email_address.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of ses black_email_address + +Example Usage + +```hcl +data "tencentcloud_ses_black_email_address" "black_email_address" { + start_date = "2020-09-22" + end_date = "2020-09-23" + email_address = "xxx@mail.qcloud.com" + task_id = "7000" +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/data_source_tc_ses_email_identities.md b/tencentcloud/ses/data_source_tc_ses_email_identities.md new file mode 100644 index 0000000000..a0f4ced34b --- /dev/null +++ b/tencentcloud/ses/data_source_tc_ses_email_identities.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of ses email_identities + +Example Usage + +```hcl +data "tencentcloud_ses_email_identities" "email_identities" { +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/data_source_tc_ses_receivers.md b/tencentcloud/ses/data_source_tc_ses_receivers.md new file mode 100644 index 0000000000..f97dc58231 --- /dev/null +++ b/tencentcloud/ses/data_source_tc_ses_receivers.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ses receivers + +Example Usage + +```hcl +data "tencentcloud_ses_receivers" "receivers" { + status = 3 + key_word = "keep" +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/data_source_tc_ses_send_email_status.md b/tencentcloud/ses/data_source_tc_ses_send_email_status.md new file mode 100644 index 0000000000..ab2475932c --- /dev/null +++ b/tencentcloud/ses/data_source_tc_ses_send_email_status.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of ses send_email_status + +Example Usage + +```hcl +data "tencentcloud_ses_send_email_status" "send_email_status" { + request_date = "2020-09-22" + message_id = "qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1" + to_email_address = "example@cloud.com" +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/data_source_tc_ses_send_tasks.md b/tencentcloud/ses/data_source_tc_ses_send_tasks.md new file mode 100644 index 0000000000..15b3623e4b --- /dev/null +++ b/tencentcloud/ses/data_source_tc_ses_send_tasks.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of ses send_tasks + +Example Usage + +```hcl +data "tencentcloud_ses_send_tasks" "send_tasks" { + status = 10 + receiver_id = 1063742 + task_type = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/data_source_tc_ses_statistics_report.md b/tencentcloud/ses/data_source_tc_ses_statistics_report.md new file mode 100644 index 0000000000..00fb51285b --- /dev/null +++ b/tencentcloud/ses/data_source_tc_ses_statistics_report.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of ses statistics_report + +Example Usage + +```hcl +data "tencentcloud_ses_statistics_report" "statistics_report" { + start_date = "2020-10-01" + end_date = "2023-09-05" + domain = "iac-tf.cloud" + receiving_mailbox_type = "gmail.com" +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_batch_send_email.md b/tencentcloud/ses/resource_tc_ses_batch_send_email.md new file mode 100644 index 0000000000..254a254596 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_batch_send_email.md @@ -0,0 +1,28 @@ +Provides a resource to create a ses batch_send_email + +Example Usage + +```hcl +resource "tencentcloud_ses_batch_send_email" "batch_send_email" { + from_email_address = "aaa@iac-tf.cloud" + receiver_id = 1063742 + subject = "terraform test" + task_type = 1 + reply_to_addresses = "reply@mail.qcloud.com" + template { + template_id = 99629 + template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" + + } + + cycle_param { + begin_time = "2023-09-07 15:10:00" + interval_time = 1 + } + timed_param { + begin_time = "2023-09-07 15:20:00" + } + unsubscribe = "0" + ad_location = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_black_list_delete.md b/tencentcloud/ses/resource_tc_ses_black_list_delete.md new file mode 100644 index 0000000000..21c389b151 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_black_list_delete.md @@ -0,0 +1,11 @@ +Provides a resource to create a ses black_list + +~> **NOTE:** Used to remove email addresses from blacklists. + +Example Usage + +```hcl +resource "tencentcloud_ses_black_list_delete" "black_list" { + email_address = "terraform-tf@gmail.com" +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_domain.md b/tencentcloud/ses/resource_tc_ses_domain.md new file mode 100644 index 0000000000..b496930da2 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_domain.md @@ -0,0 +1,16 @@ +Provides a resource to create a ses domain + +Example Usage + +```hcl +resource "tencentcloud_ses_domain" "domain" { + email_identity = "iac.cloud" +} + +``` +Import + +ses domain can be imported using the id, e.g. +``` +$ terraform import tencentcloud_ses_domain.domain iac.cloud +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_email_address.md b/tencentcloud/ses/resource_tc_ses_email_address.md new file mode 100644 index 0000000000..b210060d10 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_email_address.md @@ -0,0 +1,17 @@ +Provides a resource to create a ses email_address + +Example Usage + +```hcl +resource "tencentcloud_ses_email_address" "email_address" { + email_address = "aaa@iac-tf.cloud" + email_sender_name = "aaa" +} + +``` +Import + +ses email_address can be imported using the id, e.g. +``` +$ terraform import tencentcloud_ses_email_address.email_address aaa@iac-tf.cloud +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_receiver.md b/tencentcloud/ses/resource_tc_ses_receiver.md new file mode 100644 index 0000000000..c9235f5ac8 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_receiver.md @@ -0,0 +1,42 @@ +Provides a resource to create a ses receiver + +Example Usage + +```hcl +resource "tencentcloud_ses_receiver" "receiver" { + receivers_name = "terraform_test" + desc = "description" + + data { + email = "abc@abc.com" + } + + data { + email = "abcd@abcd.com" + } +} +``` + +Create a template with `template_data` +```hcl +resource "tencentcloud_ses_receiver" "receiver" { + receivers_name = "terraform_test" + desc = "description" + + data { + email = "abc@abc.com" + template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" + } + + data { + email = "abcd@abcd.com" + template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" + } +} +``` +Import + +ses email_address can be imported using the id, e.g. +``` +$ terraform import tencentcloud_ses_receiver.receiver receiverId +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_send_email.md b/tencentcloud/ses/resource_tc_ses_send_email.md new file mode 100644 index 0000000000..8f0097c00a --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_send_email.md @@ -0,0 +1,20 @@ +Provides a resource to create a ses send_email + +Example Usage + +```hcl +resource "tencentcloud_ses_send_email" "send_email" { + from_email_address = "aaa@iac-tf.cloud" + destination = ["1055482519@qq.com"] + subject = "test subject" + reply_to_addresses = "aaa@iac-tf.cloud" + + template { + template_id = 99629 + template_data = "{\"name\":\"xxx\",\"age\":\"xx\"}" + } + + unsubscribe = "1" + trigger_type = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_template.md b/tencentcloud/ses/resource_tc_ses_template.md new file mode 100644 index 0000000000..646675b900 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_template.md @@ -0,0 +1,53 @@ +Provides a resource to create a ses template. + +Example Usage + +Create a ses text template + +```hcl +resource "tencentcloud_ses_template" "example" { + template_name = "tf_example_ses_temp"" + template_content { + text = "example for the ses template" + } +} + +``` + +Create a ses html template + +```hcl +resource "tencentcloud_ses_template" "example" { + template_name = "tf_example_ses_temp" + template_content { + html = <<-EOT + + + + + + mail title + + +
+

Welcome to our service!

+

Dear user,

+

Thank you for using Tencent Cloud:

+

https://cloud.tencent.com/document/product/1653

+

If you did not request this email, please ignore it.

+

from the iac team

+
+ + + EOT + } +} + +``` + +Import + +ses template can be imported using the id, e.g. +``` +$ terraform import tencentcloud_ses_template.example template_id +``` \ No newline at end of file diff --git a/tencentcloud/ses/resource_tc_ses_verify_domain.md b/tencentcloud/ses/resource_tc_ses_verify_domain.md new file mode 100644 index 0000000000..04c68e14b1 --- /dev/null +++ b/tencentcloud/ses/resource_tc_ses_verify_domain.md @@ -0,0 +1,11 @@ +Provides a resource to create a ses verify_domain + +~> **NOTE:** Please add the `attributes` information returned by `tencentcloud_ses_domain` to the domain name resolution record through `tencentcloud_dnspod_record`, and then verify it. + +Example Usage + +```hcl +resource "tencentcloud_ses_verify_domain" "verify_domain" { + email_identity = "example.com" +} +``` \ No newline at end of file diff --git a/tencentcloud/sms/resource_tc_sms_sign.md b/tencentcloud/sms/resource_tc_sms_sign.md new file mode 100644 index 0000000000..9c83d181d9 --- /dev/null +++ b/tencentcloud/sms/resource_tc_sms_sign.md @@ -0,0 +1,16 @@ +Provides a resource to create a sms sign + +Example Usage + +Create a sms sign instance + +```hcl +resource "tencentcloud_sms_sign" "example" { + sign_name = "tf_example_sms_sign" + sign_type = 1 # 1:APP, DocumentType can be chosen(0,1,2,3,4) + document_type = 4 # Screenshot of application background management (personally developed APP) + international = 0 # Mainland China SMS + sign_purpose = 0 # personal use + proof_image = "your_proof_image" +} +``` \ No newline at end of file diff --git a/tencentcloud/sms/resource_tc_sms_template.md b/tencentcloud/sms/resource_tc_sms_template.md new file mode 100644 index 0000000000..a13ec5c8c6 --- /dev/null +++ b/tencentcloud/sms/resource_tc_sms_template.md @@ -0,0 +1,16 @@ +Provides a resource to create a sms template + +Example Usage + +Create a sms template + +```hcl +resource "tencentcloud_sms_template" "template" { + template_name = "tf_example_sms_template" + template_content = "example for sms template" + international = 0 # Mainland China SMS + sms_type = 0 # regular SMS + remark = "terraform example" +} + +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_account_db_attachments.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_account_db_attachments.md new file mode 100644 index 0000000000..1d6365fcc0 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_account_db_attachments.md @@ -0,0 +1,70 @@ +Use this data source to query the list of SQL Server account DB privileges. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +data "tencentcloud_sqlserver_account_db_attachments" "test" { + instance_id = tencentcloud_sqlserver_instance.example.id + account_name = tencentcloud_sqlserver_account_db_attachment.example.account_name +} + +resource "tencentcloud_vpc" "vpc" { + name = "example-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "example-vpc" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "example-sg" + description = "desc." +} + +resource "tencentcloud_sqlserver_instance" "example" { + name = "tf_example_sql" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + charge_type = "POSTPAID_BY_HOUR" + period = 1 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.security_group.id] + project_id = 0 + memory = 2 + storage = 20 + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "01:00" + maintenance_time_span = 3 + tags = { + "createBy" = "tfExample" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_instance.example.id + name = "tfExampleDb" + charset = "Chinese_PRC_BIN" + remark = "remark desc." +} + +resource "tencentcloud_sqlserver_account" "example" { + instance_id = tencentcloud_sqlserver_instance.example.id + name = "tf_example_account" + password = "PassWord@123" + remark = "remark desc." +} + +resource "tencentcloud_sqlserver_account_db_attachment" "example" { + instance_id = tencentcloud_sqlserver_instance.example.id + account_name = tencentcloud_sqlserver_account.example.name + db_name = tencentcloud_sqlserver_db.example.name + privilege = "ReadWrite" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_accounts.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_accounts.md new file mode 100644 index 0000000000..1d1a1fbf70 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_accounts.md @@ -0,0 +1,20 @@ +Use this data source to query the list of SQL Server accounts. + +Example Usage + +Pull instance account list + +```hcl +data "tencentcloud_sqlserver_accounts" "example" { + instance_id = "mssql-3cdq7kx5" +} +``` + +Pull instance account list Filter by name + +```hcl +data "tencentcloud_sqlserver_accounts" "example" { + instance_id = "mssql-3cdq7kx5" + name = "myaccount" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_by_flow_id.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_by_flow_id.md new file mode 100644 index 0000000000..553e62542b --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_by_flow_id.md @@ -0,0 +1,66 @@ +Use this data source to query detailed information of sqlserver datasource_backup_by_flow_id + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +data "tencentcloud_sqlserver_backup_by_flow_id" "example" { + instance_id = tencentcloud_sqlserver_general_backup.example.instance_id + flow_id = tencentcloud_sqlserver_general_backup.example.flow_id +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_general_backup" "example" { + instance_id = tencentcloud_sqlserver_db.example.id + backup_name = "tf_example_backup" + strategy = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_commands.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_commands.md new file mode 100644 index 0000000000..9650127c68 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_commands.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of sqlserver datasource_backup_command + +Example Usage + +```hcl +data "tencentcloud_sqlserver_backup_commands" "example" { + backup_file_type = "FULL" + data_base_name = "keep-publish-instance" + is_recovery = "NO" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_upload_size.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_upload_size.md new file mode 100644 index 0000000000..5b57bdefdc --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_backup_upload_size.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of sqlserver datasource_backup_upload_size + +Example Usage + +```hcl +data "tencentcloud_sqlserver_backup_upload_size" "example" { + instance_id = "mssql-4gmc5805" + backup_migration_id = "mssql-backup-migration-9tj0sxnz" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_basic_instances.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_basic_instances.md new file mode 100644 index 0000000000..7c87de11e4 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_basic_instances.md @@ -0,0 +1,28 @@ +Use this data source to query SQL Server basic instances + +Example Usage + +Filter instance by Id + +```hcl +data "tencentcloud_sqlserver_basic_instances" "example_id" { + id = "mssql-3l3fgqn7" +} +``` + +Filter instance by project Id + +```hcl +data "tencentcloud_sqlserver_basic_instances" "example_project" { + project_id = 0 +} +``` + +Filter instance by VPC/Subnet + +```hcl +data "tencentcloud_sqlserver_basic_instances" "example_vpc" { + vpc_id = "vpc-409mvdvv" + subnet_id = "subnet-nf9n81ps" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_cross_region_zone.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_cross_region_zone.md new file mode 100644 index 0000000000..3cf159ef6e --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_cross_region_zone.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of sqlserver datasource_cross_region_zone + +Example Usage + +```hcl +data "tencentcloud_sqlserver_cross_region_zone" "example" { + instance_id = "mssql-qelbzgwf" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_db_charsets.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_db_charsets.md new file mode 100644 index 0000000000..2f386536da --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_db_charsets.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of sqlserver datasource_d_b_charsets + +Example Usage + +```hcl +data "tencentcloud_sqlserver_db_charsets" "example" { + instance_id = "mssql-qelbzgwf" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_dbs.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_dbs.md new file mode 100644 index 0000000000..e969d689ff --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_dbs.md @@ -0,0 +1,59 @@ +Use this data source to query DB resources for the specific SQL Server instance. + +Example Usage + +```hcl +data "tencentcloud_sqlserver_dbs" "example" { + instance_id = tencentcloud_sqlserver_db.example.instance_id +} + +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_ins_attribute.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_ins_attribute.md new file mode 100644 index 0000000000..561a6444b2 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_ins_attribute.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of sqlserver_ins_attribute + +Example Usage + +```hcl +data "tencentcloud_sqlserver_ins_attribute" "example" { + instance_id = "mssql-gyg9xycl" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_instance_param_records.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_instance_param_records.md new file mode 100644 index 0000000000..cafe8e0e40 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_instance_param_records.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of sqlserver instance_param_records + +Example Usage + +```hcl +data "tencentcloud_sqlserver_instance_param_records" "example" { + instance_id = "mssql-qelbzgwf" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_instances.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_instances.md new file mode 100644 index 0000000000..9e947ffd5b --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_instances.md @@ -0,0 +1,28 @@ +Use this data source to query SQL Server instances + +Example Usage + +Filter instance by Id + +```hcl +data "tencentcloud_sqlserver_instances" "example_id" { + id = "mssql-3l3fgqn7" +} +``` + +Filter instance by project Id + +```hcl +data "tencentcloud_sqlserver_instances" "example_project" { + project_id = 0 +} +``` + +Filter instance by VPC/Subnet + +```hcl +data "tencentcloud_sqlserver_instances" "example_vpc" { + vpc_id = "vpc-409mvdvv" + subnet_id = "subnet-nf9n81ps" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_project_security_groups.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_project_security_groups.md new file mode 100644 index 0000000000..c3a70eec6b --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_project_security_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of sqlserver project_security_groups + +Example Usage + +```hcl +data "tencentcloud_sqlserver_project_security_groups" "example" { + project_id = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_publish_subscribes.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_publish_subscribes.md new file mode 100644 index 0000000000..8c957f6575 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_publish_subscribes.md @@ -0,0 +1,104 @@ +Use this data source to query Publish Subscribe resources for the specific SQL Server instance. + +Example Usage + +```hcl +data "tencentcloud_sqlserver_publish_subscribes" "example" { + instance_id = tencentcloud_sqlserver_publish_subscribe.example.publish_instance_id +} + +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_general_cloud_instance" "example_pub" { + name = "tf-example-pub" + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_HSSD" + instance_charge_type = "POSTPAID" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "2008R2" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 5, 6, 7] + start_time = "00:00" + span = 6 + resource_tags { + tag_key = "test" + tag_value = "test" + } + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" +} + +resource "tencentcloud_sqlserver_general_cloud_instance" "example_sub" { + name = "tf-example-sub" + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_HSSD" + instance_charge_type = "POSTPAID" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "2008R2" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 5, 6, 7] + start_time = "00:00" + span = 6 + resource_tags { + tag_key = "test" + tag_value = "test" + } + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" +} + +resource "tencentcloud_sqlserver_db" "example_pub" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id + name = "tf_example_db_pub" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_db" "example_sub" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id + name = "tf_example_db_sub" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_publish_subscribe" "example" { + publish_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id + subscribe_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id + publish_subscribe_name = "example" + delete_subscribe_db = false + database_tuples { + publish_database = tencentcloud_sqlserver_db.example_pub.name + subscribe_database = tencentcloud_sqlserver_db.example_sub.name + } +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_query_xevent.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_query_xevent.md new file mode 100644 index 0000000000..40e54ded12 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_query_xevent.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of sqlserver query_xevent + +Example Usage + +```hcl +data "tencentcloud_sqlserver_query_xevent" "example" { + instance_id = "mssql-gyg9xycl" + event_type = "blocked" + start_time = "2023-08-01 00:00:00" + end_time = "2023-08-10 00:00:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_readonly_groups.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_readonly_groups.md new file mode 100644 index 0000000000..a7930399c6 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_readonly_groups.md @@ -0,0 +1,9 @@ +Use this data source to query the list of SQL Server readonly groups. + +Example Usage + +```hcl +data "tencentcloud_sqlserver_dbs" "example" { + instance_id = "mssql-ds1xhnt9" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_regions.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_regions.md new file mode 100644 index 0000000000..13d4029eae --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_regions.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of sqlserver datasource_regions + +Example Usage + +```hcl +data "tencentcloud_sqlserver_regions" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_rollback_time.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_rollback_time.md new file mode 100644 index 0000000000..004d4db15b --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_rollback_time.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of sqlserver rollback_time + +Example Usage + +```hcl +data "tencentcloud_sqlserver_rollback_time" "example" { + instance_id = "mssql-qelbzgwf" + dbs = ["keep_pubsub_db"] +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_slowlogs.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_slowlogs.md new file mode 100644 index 0000000000..e5fede015c --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_slowlogs.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of sqlserver slowlogs + +Example Usage + +```hcl +data "tencentcloud_sqlserver_slowlogs" "example" { + instance_id = "mssql-qelbzgwf" + start_time = "2023-08-01 00:00:00" + end_time = "2023-08-07 00:00:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_upload_backup_info.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_upload_backup_info.md new file mode 100644 index 0000000000..bfa8ec6e13 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_upload_backup_info.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of sqlserver upload_backup_info + +Example Usage + +```hcl +data "tencentcloud_sqlserver_upload_backup_info" "example" { + instance_id = "mssql-qelbzgwf" + backup_migration_id = "mssql-backup-migration-8a0f3eht" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_upload_incremental_info.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_upload_incremental_info.md new file mode 100644 index 0000000000..3a2e33ae2b --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_upload_incremental_info.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of sqlserver upload_incremental_info + +Example Usage + +```hcl +data "tencentcloud_sqlserver_upload_incremental_info" "example" { + instance_id = "mssql-4tgeyeeh" + backup_migration_id = "mssql-backup-migration-83t5u3tv" + incremental_migration_id = "mssql-incremental-migration-h36gkdxn" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/data_source_tc_sqlserver_zone_config.md b/tencentcloud/sqlserver/data_source_tc_sqlserver_zone_config.md new file mode 100644 index 0000000000..557c865f26 --- /dev/null +++ b/tencentcloud/sqlserver/data_source_tc_sqlserver_zone_config.md @@ -0,0 +1,7 @@ +Use this data source to query purchasable specification configuration for each availability zone in this specific region. + +Example Usage + +```hcl +data "tencentcloud_sqlserver_zone_config" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_account.md b/tencentcloud/sqlserver/resource_tc_sqlserver_account.md new file mode 100644 index 0000000000..9374063cef --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_account.md @@ -0,0 +1,63 @@ +Use this resource to create SQL Server account + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_account" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_account" + password = "Qwer@234" + remark = "test-remark" +} +``` + +Import + +SQL Server account can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_account.example mssql-3cdq7kx5#tf_example_account +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_account_db_attachment.md b/tencentcloud/sqlserver/resource_tc_sqlserver_account_db_attachment.md new file mode 100644 index 0000000000..d1c75e2c08 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_account_db_attachment.md @@ -0,0 +1,77 @@ +Use this resource to create SQL Server account DB attachment + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_account" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_account" + password = "Qwer@234" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_account_db_attachment" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + account_name = tencentcloud_sqlserver_account.example.name + db_name = tencentcloud_sqlserver_db.example.name + privilege = "ReadWrite" +} +``` + +Import + +SQL Server account DB attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_account_db_attachment.example mssql-3cdq7kx5#tf_example_account#tf_example_db +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_basic_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_basic_instance.md new file mode 100644 index 0000000000..8a23873dc4 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_basic_instance.md @@ -0,0 +1,55 @@ +Provides a SQL Server instance resource to create basic database instances. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} +``` +Import + +SQL Server basic instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_basic_instance.example mssql-3cdq7kx5 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_file.md b/tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_file.md new file mode 100644 index 0000000000..25081eea9a --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_file.md @@ -0,0 +1,59 @@ +Provides a resource to create a sqlserver business_intelligence_file + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_business_intelligence_instance" "example" { + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "201603" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 4, 5, 6, 7] + start_time = "00:00" + span = 6 + instance_name = "tf_example" +} + +resource "tencentcloud_sqlserver_business_intelligence_file" "example" { + instance_id = tencentcloud_sqlserver_business_intelligence_instance.example.id + file_url = "https://tf-example-1208515315.cos.ap-guangzhou.myqcloud.com/sqlserver_business_intelligence_file.txt" + file_type = "FLAT" + remark = "desc." +} +``` + +Import + +sqlserver business_intelligence_file can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_business_intelligence_file.example mssqlbi-fo2dwujt#test.xlsx +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_instance.md new file mode 100644 index 0000000000..0162f1d38a --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_instance.md @@ -0,0 +1,52 @@ +Provides a resource to create a sqlserver business_intelligence_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_business_intelligence_instance" "example" { + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "201603" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 4, 5, 6, 7] + start_time = "00:00" + span = 6 + instance_name = "tf_example" +} +``` + +Import + +sqlserver business_intelligence_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_business_intelligence_instance.example mssqlbi-fo2dwujt +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_complete_expansion.md b/tencentcloud/sqlserver/resource_tc_sqlserver_complete_expansion.md new file mode 100644 index 0000000000..033b19509c --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_complete_expansion.md @@ -0,0 +1,78 @@ +Provides a resource to create a sqlserver complete_expansion + +Example Usage + +First, Create a basic SQL instance + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "example-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "example-vpc" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "example-sg" + description = "desc." +} + +resource "tencentcloud_sqlserver_instance" "example" { + name = "tf_example_sql" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.security_group.id] + project_id = 0 + memory = 2 + storage = 20 + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "01:00" + maintenance_time_span = 3 + tags = { + "createBy" = "tfExample" + } +} +``` + +Expand the current instance, storage: 20->40, wait_switch = 1 + +```hcl +resource "tencentcloud_sqlserver_instance" "example" { + name = "tf_example_sql" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + security_groups = [tencentcloud_security_group.security_group.id] + project_id = 0 + memory = 2 + storage = 40 + wait_switch = 1 + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "01:00" + maintenance_time_span = 3 + tags = { + "createBy" = "tfExample" + } +} +``` + +Complete the expansion task immediately + +```hcl +resource "tencentcloud_sqlserver_complete_expansion" "example" { + instance_id = tencentcloud_sqlserver_instance.example.id +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_backup_strategy.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_backup_strategy.md new file mode 100644 index 0000000000..b4cc71df09 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_backup_strategy.md @@ -0,0 +1,106 @@ +Provides a resource to create a sqlserver config_backup_strategy + +Example Usage + +Daily backup + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_config_backup_strategy" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + backup_type = "daily" + backup_time = 0 + backup_day = 1 + backup_model = "master_no_pkg" + backup_cycle = [1] + backup_save_days = 7 + regular_backup_enable = "disable" + regular_backup_save_days = 90 + regular_backup_strategy = "months" + regular_backup_counts = 1 +} +``` + +Weekly backup + +```hcl +resource "tencentcloud_sqlserver_config_backup_strategy" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + backup_type = "weekly" + backup_time = 0 + backup_model = "master_no_pkg" + backup_cycle = [1, 3, 5] + backup_save_days = 7 + regular_backup_enable = "disable" + regular_backup_save_days = 90 + regular_backup_strategy = "months" + regular_backup_counts = 1 +} +``` + +Regular backup + +```hcl +resource "tencentcloud_sqlserver_config_backup_strategy" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + backup_time = 0 + backup_model = "master_no_pkg" + backup_cycle = [1, 3] + backup_save_days = 7 + regular_backup_enable = "enable" + regular_backup_save_days = 120 + regular_backup_strategy = "months" + regular_backup_counts = 1 + regular_backup_start_time = "%s" +} +``` + +Import + +sqlserver config_backup_strategy can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_backup_strategy.example mssql-si2823jyl +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_cdc.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_cdc.md new file mode 100644 index 0000000000..c2f0228f9b --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_cdc.md @@ -0,0 +1,81 @@ +Provides a resource to create a sqlserver config_database_cdc + +Example Usage + +Turn off database data change capture (CDC) + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_config_database_cdc" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + db_name = tencentcloud_sqlserver_db.example.name + modify_type = "disable" +} +``` + +Enable Database Data Change Capture (CDC) + +```hcl +resource "tencentcloud_sqlserver_config_database_cdc" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + db_name = tencentcloud_sqlserver_db.example.name + modify_type = "enable" +} +``` + +Import + +sqlserver config_database_cdc can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_database_cdc.example mssql-i9ma6oy7#tf_example_db +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_ct.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_ct.md new file mode 100644 index 0000000000..4e0c76b362 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_ct.md @@ -0,0 +1,70 @@ +Provides a resource to create a sqlserver config_database_ct + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_config_database_ct" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + db_name = tencentcloud_sqlserver_db.example.name + modify_type = "disable" + change_retention_day = 7 +} +``` + +Import + +sqlserver tencentcloud_sqlserver_config_database_ct can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_database_ct.example mssql-i9ma6oy7#tf_example_db +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_mdf.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_mdf.md new file mode 100644 index 0000000000..7802c6a347 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_database_mdf.md @@ -0,0 +1,68 @@ +Provides a resource to create a sqlserver config_database_mdf + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_config_database_mdf" "example" { + db_name = tencentcloud_sqlserver_db.example.name + instance_id = tencentcloud_sqlserver_basic_instance.example.id +} +``` + +Import + +sqlserver config_database_mdf can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_database_mdf.example mssql-i9ma6oy7#tf_example_db +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_param.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_param.md new file mode 100644 index 0000000000..350652171c --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_param.md @@ -0,0 +1,64 @@ +Provides a resource to create a sqlserver config_instance_param + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_config_instance_param" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + param_list { + name = "fill factor(%)" + current_value = "90" + } +} +``` + +Import + +sqlserver config_instance_param can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_instance_param.example config_instance_param +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_ro_group.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_ro_group.md new file mode 100644 index 0000000000..6f64370c97 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_ro_group.md @@ -0,0 +1,82 @@ +Provides a resource to create a sqlserver config_instance_ro_group + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_readonly_instance" "example" { + name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + memory = 4 + storage = 20 + master_instance_id = tencentcloud_sqlserver_basic_instance.example.id + readonly_group_type = 2 + read_only_group_name = "tf_example_ro" + is_offline_delay = 1 + read_only_max_delay_time = 10 + min_read_only_in_group = 0 + force_upgrade = true +} + +resource "tencentcloud_sqlserver_config_instance_ro_group" "example" { + instance_id = tencentcloud_sqlserver_readonly_instance.example.master_instance_id + read_only_group_id = tencentcloud_sqlserver_readonly_instance.example.readonly_group_id + read_only_group_name = "tf_example_ro_update" + is_offline_delay = 1 + read_only_max_delay_time = 5 + min_read_only_in_group = 1 +} +``` + +Import + +sqlserver config_instance_ro_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_instance_ro_group.example mssql-ds1xhnt9#mssqlro-o6dv2ugx#0#0 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_config_terminate_db_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_config_terminate_db_instance.md new file mode 100644 index 0000000000..226c69fd2a --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_config_terminate_db_instance.md @@ -0,0 +1,60 @@ +Provides a resource to create a sqlserver config_terminate_db_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_config_terminate_db_instance" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id +} +``` + +Import + +sqlserver config_terminate_db_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_config_terminate_db_instance.example mssql-i9ma6oy7 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_database_tde.md b/tencentcloud/sqlserver/resource_tc_sqlserver_database_tde.md new file mode 100644 index 0000000000..cf0fe6f1e9 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_database_tde.md @@ -0,0 +1,81 @@ +Provides a resource to create a sqlserver database_tde + +Example Usage + +Open database tde encryption + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_database_tde" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + db_names = [tencentcloud_sqlserver_db.example.name] + encryption = "enable" +} +``` + +Close database tde encryption + +```hcl +resource "tencentcloud_sqlserver_database_tde" "example" { + instance_id = tencentcloud_sqlserver_instance.example.id + db_names = [tencentcloud_sqlserver_db.example.name] + encryption = "disable" +} +``` + +Import + +sqlserver database_tde can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_database_tde.example mssql-farjz9tz#tf_example_db +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_db.md b/tencentcloud/sqlserver/resource_tc_sqlserver_db.md new file mode 100644 index 0000000000..20c74b591e --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_db.md @@ -0,0 +1,63 @@ +Provides a SQL Server DB resource belongs to SQL Server instance. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} +``` + +Import + +SQL Server DB can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_db.example mssql-3cdq7kx5#tf_example_db +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_full_backup_migration.md b/tencentcloud/sqlserver/resource_tc_sqlserver_full_backup_migration.md new file mode 100644 index 0000000000..7ee421d239 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_full_backup_migration.md @@ -0,0 +1,84 @@ +Provides a resource to create a sqlserver full_backup_migration + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +data "tencentcloud_sqlserver_backups" "example" { + instance_id = tencentcloud_sqlserver_db.example.instance_id + backup_name = tencentcloud_sqlserver_general_backup.example.backup_name + start_time = "2023-07-25 00:00:00" + end_time = "2023-08-04 00:00:00" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_general_backup" "example" { + instance_id = tencentcloud_sqlserver_db.example.instance_id + backup_name = "tf_example_backup" + strategy = 0 +} + +resource "tencentcloud_sqlserver_full_backup_migration" "example" { + instance_id = tencentcloud_sqlserver_general_backup.example.instance_id + recovery_type = "FULL" + upload_type = "COS_URL" + migration_name = "migration_test" + backup_files = [data.tencentcloud_sqlserver_backups.example.list.0.internet_url] +} +``` + +Import + +sqlserver full_backup_migration can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_full_backup_migration.example mssql-si2823jyl#mssql-backup-migration-cg0ffgqt +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_general_backup.md b/tencentcloud/sqlserver/resource_tc_sqlserver_general_backup.md new file mode 100644 index 0000000000..c32a8767e3 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_general_backup.md @@ -0,0 +1,69 @@ +Provides a resource to create a sqlserver general_backup + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_general_backup" "example" { + instance_id = tencentcloud_sqlserver_db.example.instance_id + backup_name = "tf_example_backup" + strategy = 0 +} +``` + +Import + +sqlserver general_backups can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_general_backups.example mssql-qelbzgwf#3512621#5293#2020-07-31 14:28:51#2020-07-31 15:10:27#autoed_instance_58037_20200728011545.bak.tar +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_general_clone.md b/tencentcloud/sqlserver/resource_tc_sqlserver_general_clone.md new file mode 100644 index 0000000000..52f8e27b68 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_general_clone.md @@ -0,0 +1,69 @@ +Provides a resource to create a sqlserver general_communication + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + name = "tf_example_db" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_general_clone" "example" { + instance_id = tencentcloud_sqlserver_db.example.instance_id + old_name = tencentcloud_sqlserver_db.example.name + new_name = "tf_example_db_clone" +} +``` + +Import + +sqlserver general_communication can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_general_clone.example mssql-si2823jyl#tf_example_db#tf_example_db_clone +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_instance.md new file mode 100644 index 0000000000..3278c6d48b --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_instance.md @@ -0,0 +1,59 @@ +Provides a resource to create a sqlserver general_cloud_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_general_cloud_instance" "example" { + name = "tf_example" + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_HSSD" + instance_charge_type = "POSTPAID" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "2008R2" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 5, 6, 7] + start_time = "00:00" + span = 6 + resource_tags { + tag_key = "test" + tag_value = "test" + } + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" +} +``` + +Import + +sqlserver general_cloud_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_general_cloud_instance.example mssql-i9ma6oy7 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_ro_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_ro_instance.md new file mode 100644 index 0000000000..e7f4da4281 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_ro_instance.md @@ -0,0 +1,126 @@ +Provides a resource to create a sqlserver general_cloud_ro_instance + +Example Usage + +If read_only_group_type value is 1 - Ship according to one instance and one read-only group: + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_general_cloud_instance" "example" { + name = "tf_example" + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_HSSD" + instance_charge_type = "POSTPAID" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "2008R2" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 5, 6, 7] + start_time = "00:00" + span = 6 + resource_tags { + tag_key = "test" + tag_value = "test" + } + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" +} + +resource "tencentcloud_sqlserver_general_cloud_ro_instance" "example" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example.id + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + read_only_group_type = 1 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_BSSD" + instance_charge_type = "POSTPAID" + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + security_group_list = [tencentcloud_security_group.security_group.id] + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" + resource_tags = { + test-key1 = "test-value1" + test-key2 = "test-value2" + } +} +``` + +If read_only_group_type value is 2 - Ship after creating a read-only group, all instances are under this read-only group: + +```hcl +resource "tencentcloud_sqlserver_general_cloud_ro_instance" "example" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example.id + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + read_only_group_type = 2 + read_only_group_name = "test-ro-group" + read_only_group_is_offline_delay = 1 + read_only_group_max_delay_time = 10 + read_only_group_min_in_group = 1 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_BSSD" + instance_charge_type = "POSTPAID" + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + security_group_list = [tencentcloud_security_group.security_group.id] + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" + resource_tags = { + test-key1 = "test-value1" + test-key2 = "test-value2" + } +} +``` + +If read_only_group_type value is 3 - All instances shipped are in the existing Some read-only groups below: + +```hcl +resource "tencentcloud_sqlserver_general_cloud_ro_instance" "example" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example.id + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + read_only_group_type = 3 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_BSSD" + read_only_group_id = "mssqlrg-clboghrj" + instance_charge_type = "POSTPAID" + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + security_group_list = [tencentcloud_security_group.security_group.id] + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" + resource_tags = { + test-key1 = "test-value1" + test-key2 = "test-value2" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_general_communication.md b/tencentcloud/sqlserver/resource_tc_sqlserver_general_communication.md new file mode 100644 index 0000000000..6458c5c240 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_general_communication.md @@ -0,0 +1,60 @@ +Provides a resource to create a sqlserver general_communication + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_general_communication" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id +} +``` + +Import + +sqlserver general_communication can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_general_communication.example mssql-hlh6yka1 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_incre_backup_migration.md b/tencentcloud/sqlserver/resource_tc_sqlserver_incre_backup_migration.md new file mode 100644 index 0000000000..5adcb23191 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_incre_backup_migration.md @@ -0,0 +1,20 @@ +Provides a resource to create a sqlserver incre_backup_migration + +Example Usage + +```hcl +resource "tencentcloud_sqlserver_incre_backup_migration" "example" { + instance_id = "mssql-4gmc5805" + backup_migration_id = "mssql-backup-migration-9tj0sxnz" + backup_files = [] + is_recovery = "YES" +} +``` + +Import + +sqlserver incre_backup_migration can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_incre_backup_migration.incre_backup_migration incre_backup_migration_id +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_instance.md new file mode 100644 index 0000000000..caaf4ae3f0 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_instance.md @@ -0,0 +1,41 @@ +Use this resource to create SQL Server instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_sqlserver_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 16 + storage = 100 +} +``` + +Import + +SQL Server instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_instance.example mssql-3cdq7kx5 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_instance_tde.md b/tencentcloud/sqlserver/resource_tc_sqlserver_instance_tde.md new file mode 100644 index 0000000000..96f3887200 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_instance_tde.md @@ -0,0 +1,61 @@ +Provides a resource to create a sqlserver instance_tde + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_instance_tde" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + certificate_attribution = "self" +} +``` + +Import + +sqlserver instance_tde can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_instance_tde.example mssql-farjz9tz +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_migration.md b/tencentcloud/sqlserver/resource_tc_sqlserver_migration.md new file mode 100644 index 0000000000..d6eed333da --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_migration.md @@ -0,0 +1,139 @@ +Provides a resource to create a sqlserver migration + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "src_example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_basic_instance" "dst_example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_db" "src" { + instance_id = tencentcloud_sqlserver_basic_instance.src_example.id + name = "tf_example_db_src" + charset = "Chinese_PRC_BIN" + remark = "testACC-remark" +} + +resource "tencentcloud_sqlserver_db" "dst" { + instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id + name = "tf_example_db_dst" + charset = "Chinese_PRC_BIN" + remark = "testACC-remark" +} + +resource "tencentcloud_sqlserver_account" "src" { + instance_id = tencentcloud_sqlserver_basic_instance.src_example.id + name = "tf_example_src_account" + password = "Qwer@234" + is_admin = true +} + +resource "tencentcloud_sqlserver_account" "dst" { + instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id + name = "tf_example_dst_account" + password = "Qwer@234" + is_admin = true +} + +resource "tencentcloud_sqlserver_account_db_attachment" "src" { + instance_id = tencentcloud_sqlserver_basic_instance.src_example.id + account_name = tencentcloud_sqlserver_account.src.name + db_name = tencentcloud_sqlserver_db.src.name + privilege = "ReadWrite" +} + +resource "tencentcloud_sqlserver_account_db_attachment" "dst" { + instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id + account_name = tencentcloud_sqlserver_account.dst.name + db_name = tencentcloud_sqlserver_db.dst.name + privilege = "ReadWrite" +} + +resource "tencentcloud_sqlserver_migration" "migration" { + migrate_name = "tf_test_migration" + migrate_type = 1 + source_type = 1 + source { + instance_id = tencentcloud_sqlserver_basic_instance.src_example.id + user_name = tencentcloud_sqlserver_account.src.name + password = tencentcloud_sqlserver_account.src.password + } + target { + instance_id = tencentcloud_sqlserver_basic_instance.dst_example.id + user_name = tencentcloud_sqlserver_account.dst.name + password = tencentcloud_sqlserver_account.dst.password + } + + migrate_db_set { + db_name = tencentcloud_sqlserver_db.src.name + } +} +``` + +Import + +sqlserver migration can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_migration.migration migration_id +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_publish_subscribe.md b/tencentcloud/sqlserver/resource_tc_sqlserver_publish_subscribe.md new file mode 100644 index 0000000000..a60484db6a --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_publish_subscribe.md @@ -0,0 +1,108 @@ +Provides a SQL Server PublishSubscribe resource belongs to SQL Server instance. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_general_cloud_instance" "example_pub" { + name = "tf-example-pub" + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_HSSD" + instance_charge_type = "POSTPAID" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "2008R2" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 5, 6, 7] + start_time = "00:00" + span = 6 + resource_tags { + tag_key = "test" + tag_value = "test" + } + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" +} + +resource "tencentcloud_sqlserver_general_cloud_instance" "example_sub" { + name = "tf-example-sub" + zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_HSSD" + instance_charge_type = "POSTPAID" + project_id = 0 + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + db_version = "2008R2" + security_group_list = [tencentcloud_security_group.security_group.id] + weekly = [1, 2, 3, 5, 6, 7] + start_time = "00:00" + span = 6 + resource_tags { + tag_key = "test" + tag_value = "test" + } + collation = "Chinese_PRC_CI_AS" + time_zone = "China Standard Time" +} + +resource "tencentcloud_sqlserver_db" "example_pub" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id + name = "tf_example_db_pub" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_db" "example_sub" { + instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id + name = "tf_example_db_sub" + charset = "Chinese_PRC_BIN" + remark = "test-remark" +} + +resource "tencentcloud_sqlserver_publish_subscribe" "example" { + publish_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_pub.id + subscribe_instance_id = tencentcloud_sqlserver_general_cloud_instance.example_sub.id + publish_subscribe_name = "example" + delete_subscribe_db = false + database_tuples { + publish_database = tencentcloud_sqlserver_db.example_pub.name + subscribe_database = tencentcloud_sqlserver_db.example_sub.name + } +} +``` + +Import + +SQL Server PublishSubscribe can be imported using the publish_sqlserver_id#subscribe_sqlserver_id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_publish_subscribe.example publish_sqlserver_id#subscribe_sqlserver_id +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_readonly_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_readonly_instance.md new file mode 100644 index 0000000000..81498d4fa0 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_readonly_instance.md @@ -0,0 +1,72 @@ +Provides a SQL Server instance resource to create read-only database instances. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_readonly_instance" "example" { + name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + memory = 4 + storage = 20 + master_instance_id = tencentcloud_sqlserver_basic_instance.example.id + readonly_group_type = 1 + force_upgrade = true + tags = { + "test" = "test" + } +} +``` + +Import + +SQL Server readonly instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_sqlserver_readonly_instance.example mssqlro-3cdq7kx5 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_renew_db_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_renew_db_instance.md new file mode 100644 index 0000000000..4b75365721 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_renew_db_instance.md @@ -0,0 +1,61 @@ +Provides a resource to create a sqlserver renew_db_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "PREPAID" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_renew_db_instance" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + period = 1 +} +``` + +Import + +sqlserver renew_db_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_renew_db_instance.example mssql-i9ma6oy7#1 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_renew_postpaid_db_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_renew_postpaid_db_instance.md new file mode 100644 index 0000000000..d3bc46a819 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_renew_postpaid_db_instance.md @@ -0,0 +1,64 @@ +Provides a resource to create a sqlserver renew_postpaid_db_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_config_terminate_db_instance" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id +} + +resource "tencentcloud_sqlserver_renew_postpaid_db_instance" "example" { + instance_id = tencentcloud_sqlserver_config_terminate_db_instance.example.id +} +``` + +Import + +sqlserver renew_postpaid_db_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_renew_postpaid_db_instance.example mssql-i9ma6oy7 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_restart_db_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_restart_db_instance.md new file mode 100644 index 0000000000..9133af44a4 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_restart_db_instance.md @@ -0,0 +1,60 @@ +Provides a resource to create a sqlserver restart_db_instance + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_restart_db_instance" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id +} +``` + +Import + +sqlserver restart_db_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_restart_db_instance.example mssql-i9ma6oy7 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_restore_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_restore_instance.md new file mode 100644 index 0000000000..5ee3297bdb --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_restore_instance.md @@ -0,0 +1,22 @@ +Provides a resource to create a sqlserver restore_instance + +Example Usage + +```hcl +resource "tencentcloud_sqlserver_restore_instance" "restore_instance" { + instance_id = "mssql-qelbzgwf" + backup_id = 3482091273 + rename_restore { + old_name = "keep_pubsub_db2" + new_name = "restore_keep_pubsub_db2" + } +} +``` + +Import + +sqlserver restore_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_restore_instance.restore_instance mssql-qelbzgwf#3482091273#keep_pubsub_db2#restore_keep_pubsub_db2 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_rollback_instance.md b/tencentcloud/sqlserver/resource_tc_sqlserver_rollback_instance.md new file mode 100644 index 0000000000..b366fee7fb --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_rollback_instance.md @@ -0,0 +1,22 @@ +Provides a resource to create a sqlserver rollback_instance + +Example Usage + +```hcl +resource "tencentcloud_sqlserver_rollback_instance" "rollback_instance" { + instance_id = "mssql-qelbzgwf" + time = "2023-05-23 01:00:00" + rename_restore { + old_name = "keep_pubsub_db2" + new_name = "rollback_pubsub_db3" + } +} +``` + +Import + +sqlserver rollback_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_sqlserver_rollback_instance.rollback_instance mssql-qelbzgwf#2023-05-23 01:00:00#keep_pubsub_db2#rollback_pubsub_db3 +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_full_migration.md b/tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_full_migration.md new file mode 100644 index 0000000000..c8d8d3be89 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_full_migration.md @@ -0,0 +1,10 @@ +Provides a resource to create a sqlserver start_backup_full_migration + +Example Usage + +```hcl +resource "tencentcloud_sqlserver_start_backup_full_migration" "start_backup_full_migration" { + instance_id = "mssql-i1z41iwd" + backup_migration_id = "mssql-backup-migration-kpl74n9l" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_incremental_migration.md b/tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_incremental_migration.md new file mode 100644 index 0000000000..217cc6229b --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_incremental_migration.md @@ -0,0 +1,11 @@ +Provides a resource to create a sqlserver start_backup_incremental_migration + +Example Usage + +```hcl +resource "tencentcloud_sqlserver_start_backup_incremental_migration" "start_backup_incremental_migration" { + instance_id = "mssql-i1z41iwd" + backup_migration_id = "mssql-backup-migration-cg0ffgqt" + incremental_migration_id = "mssql-incremental-migration-kp7bgv8p" +} +``` \ No newline at end of file diff --git a/tencentcloud/sqlserver/resource_tc_sqlserver_start_xevent.md b/tencentcloud/sqlserver/resource_tc_sqlserver_start_xevent.md new file mode 100644 index 0000000000..873f122189 --- /dev/null +++ b/tencentcloud/sqlserver/resource_tc_sqlserver_start_xevent.md @@ -0,0 +1,56 @@ +Provides a resource to create a sqlserver start_xevent + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "sqlserver" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_sqlserver_basic_instance" "example" { + name = "tf-example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.4.name + charge_type = "POSTPAID_BY_HOUR" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + project_id = 0 + memory = 4 + storage = 100 + cpu = 2 + machine_type = "CLOUD_PREMIUM" + maintenance_week_set = [1, 2, 3] + maintenance_start_time = "09:00" + maintenance_time_span = 3 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + "test" = "test" + } +} + +resource "tencentcloud_sqlserver_start_xevent" "example" { + instance_id = tencentcloud_sqlserver_basic_instance.example.id + event_config { + event_type = "slow" + threshold = 0 + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_certificates.md b/tencentcloud/ssl/data_source_tc_ssl_certificates.md new file mode 100644 index 0000000000..2e679416c7 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_certificates.md @@ -0,0 +1,9 @@ +Use this data source to query SSL certificate. + +Example Usage + +```hcl +data "tencentcloud_ssl_certificates" "foo" { + name = "certificate" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_certificate.md b/tencentcloud/ssl/data_source_tc_ssl_describe_certificate.md new file mode 100644 index 0000000000..eebed8faa6 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_certificate.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_certificate + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_certificate" "describe_certificate" { + certificate_id = "8cj4g8h8" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_companies.md b/tencentcloud/ssl/data_source_tc_ssl_describe_companies.md new file mode 100644 index 0000000000..0426dee52d --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_companies.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_companies + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_companies" "describe_companies" { + company_id = 122 + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_api_gateway_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_api_gateway_instance_list.md new file mode 100644 index 0000000000..09eec9f8d6 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_api_gateway_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_api_gateway_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_api_gateway_instance_list" "describe_host_api_gateway_instance_list" { + certificate_id = "9Bpk7XOu" + resource_type = "apiGateway" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_cdn_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_cdn_instance_list.md new file mode 100644 index 0000000000..f5d4ba5604 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_cdn_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_cdn_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_cdn_instance_list" "describe_host_cdn_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "cdn" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_clb_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_clb_instance_list.md new file mode 100644 index 0000000000..7a9fbd5dfd --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_clb_instance_list.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_host_clb_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_clb_instance_list" "describe_host_clb_instance_list" { + certificate_id = "8u8DII0l" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_cos_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_cos_instance_list.md new file mode 100644 index 0000000000..1bf1ef475d --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_cos_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_cos_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_cos_instance_list" "describe_host_cos_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "cos" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_ddos_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_ddos_instance_list.md new file mode 100644 index 0000000000..d1d6c09573 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_ddos_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_ddos_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_ddos_instance_list" "describe_host_ddos_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "ddos" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record.md new file mode 100644 index 0000000000..898b5cb329 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_deploy_record + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_deploy_record" "describe_host_deploy_record" { + certificate_id = "8u8DII0l" + resource_type = "ddos" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record_detail.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record_detail.md new file mode 100644 index 0000000000..7ac1d96eec --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_host_deploy_record_detail + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_deploy_record_detail" "describe_host_deploy_record_detail" { + deploy_record_id = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_lighthouse_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_lighthouse_instance_list.md new file mode 100644 index 0000000000..6e9dff4497 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_lighthouse_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_lighthouse_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_lighthouse_instance_list" "describe_host_lighthouse_instance_list" { + certificate_id = "8tvMCvGF" + resource_type = "lighthouse" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_live_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_live_instance_list.md new file mode 100644 index 0000000000..10aa86b420 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_live_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_live_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_live_instance_list" "describe_host_live_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "live" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_teo_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_teo_instance_list.md new file mode 100644 index 0000000000..a0ecaca420 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_teo_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_teo_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_teo_instance_list" "describe_host_teo_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "teo" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_tke_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_tke_instance_list.md new file mode 100644 index 0000000000..0ebbbbb057 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_tke_instance_list.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_host_tke_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_tke_instance_list" "describe_host_tke_instance_list" { + certificate_id = "8u8DII0l" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record.md new file mode 100644 index 0000000000..f128a3e405 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_host_update_record + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_update_record" "describe_host_update_record" { + old_certificate_id = "8u8DII0l" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record_detail.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record_detail.md new file mode 100644 index 0000000000..a6c61932cd --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_host_update_record_detail + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_update_record_detail" "describe_host_update_record_detail" { + deploy_record_id = "35364" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_vod_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_vod_instance_list.md new file mode 100644 index 0000000000..06647614fe --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_vod_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_vod_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_vod_instance_list" "describe_host_vod_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "vod" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_host_waf_instance_list.md b/tencentcloud/ssl/data_source_tc_ssl_describe_host_waf_instance_list.md new file mode 100644 index 0000000000..d31a8efb7c --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_host_waf_instance_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of ssl describe_host_waf_instance_list + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_host_waf_instance_list" "describe_host_waf_instance_list" { + certificate_id = "8u8DII0l" + resource_type = "waf" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_manager_detail.md b/tencentcloud/ssl/data_source_tc_ssl_describe_manager_detail.md new file mode 100644 index 0000000000..47275dadbd --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_manager_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_manager_detail + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_manager_detail" "describe_manager_detail" { + manager_id = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssl/data_source_tc_ssl_describe_managers.md b/tencentcloud/ssl/data_source_tc_ssl_describe_managers.md new file mode 100644 index 0000000000..eedce01a71 --- /dev/null +++ b/tencentcloud/ssl/data_source_tc_ssl_describe_managers.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssl describe_managers + +Example Usage + +```hcl +data "tencentcloud_ssl_describe_managers" "describe_managers" { + company_id = "11772" + } +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_certificate.md b/tencentcloud/ssl/resource_tc_ssl_certificate.md new file mode 100644 index 0000000000..ef23bafcfb --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_certificate.md @@ -0,0 +1,54 @@ +Provides a resource to create a SSL certificate. + +Upload the existing SSL certificate to Tencent Cloud. + +Example Usage + +If SSL certificate type is `CA` + +```hcl +variable "ca" { + default = "-----BEGIN CERTIFICATE-----\nMIIEDjCCAnagAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMQ0wCwYDVQQDEwR0ZXN0\nMRcwFQYDVQQKEw50ZXJyYWZvcm0gdGVzdDAeFw0xOTA4MTMwMzA4MjBaFw0yOTA4\nMTAwMzA4MjBaMCgxDTALBgNVBAMTBHRlc3QxFzAVBgNVBAoTDnRlcnJhZm9ybSB0\nZXN0MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA0k2vqg/GHtFP5P7r\ndbzswfx1jSHeK9r4StV4mGOAoKyzvAJA5BvYbAHpSrL2ZAd6ShjHgRVU1qEroeFn\n8fwTrAVQttMltBFABx7G4iN4Zf6EUXzhhFN6vVVbWaqhYhrdMoPvZxgGSA/4hG4W\nGIr8MXZzXbKLoRoz4Bvq1Ymg5eO14KLJFSTahvIkG60egGN5pmi4czxWy2U7ycA5\nQ5TuQBnF0rKQJW5XKIV3kr5YrzDdJK7up9E6Od4T5jz+qY97KAjIpWD/pTAsc7+6\nfPBpY7NHT9Bw0fDmvsWO/PtswY4hW02n86b5eWA9sfKJGphhsBxgpuuhmxYHS6pA\nB+C7IkyxcADNT5u9tEo2JGOj+/veXKrEhZin7inKsQLD0WOobcg1Rh/3NSWD7geF\nTJBRnzgplaN7cK6c/utEAAnngS38q4DGBR/jHmkWjAeQPZj1eLLBk686HEEbKeU+\n9yAVcPRhA9tuL7wMeSX32VunWZunoA/f8iuGZYJlZsNBqyJbAgMBAAGjQzBBMA8G\nA1UdEwEB/wQFMAMBAf8wDwYDVR0PAQH/BAUDAweGADAdBgNVHQ4EFgQUKwfrmq79\n1mY831S6UHARHtgYnlgwDQYJKoZIhvcNAQELBQADggGBAInM+aeaHoZdw9B9nAH2\nHscEoOulF+RxnysSXTTRLd2VQph4+ynlfRZT4evLBBj/ppmqjp8F7/OcRiiZwSXl\nnamyP/UUINtHfgDM0kll/5Za0aYzMhrORNw+3ythIv2yPJX8t4LmsG1L4PMO8ZU8\nN0K9XyKRaL/tq6rw1gQM152OmNgTzfAQoKYxrvbftOZz4J0ZACctuBmwtp5upKvJ\n36aQ4wJLUzOt69mnW+AaL5EPA37mwtzdnzTTxd3SBfOYXjsflc3l2raljJznnqU2\nySynjb6L3D3L/pObL1Uu7nQBy8CazJBsBsVFK/pr61vcllm8lG7vOhHOUSFUeezq\nFWukAolm9/cagmD6IhNishM3Uzng+UYyCC8uQq3Z7FGqJpXSI79wZYjudnCLPVCg\nOIfJHQeJFLryn6GxiSYmYs6dgUJiiTV+I/2Y5X7ZFdb5FC1J/WmvoCv6yO7NiirY\nBSgfV0lp5CuV8SfiSClpYfrM28NbNgxveUqET642BJOPLQ==\n-----END CERTIFICATE-----" +} + +data "tencentcloud_ssl_certificates" "ca" { + name = tencentcloud_ssl_certificate.ca.name +} + +resource "tencentcloud_ssl_certificate" "ca" { + name = "ssl-ca" + type = "CA" + cert = var.ca +} +``` + +If SSL certificate type is `SVR` + +```hcl +variable "cert" { + default = "-----BEGIN CERTIFICATE-----\nMIIERzCCAq+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADAoMQ0wCwYDVQQDEwR0ZXN0\nMRcwFQYDVQQKEw50ZXJyYWZvcm0gdGVzdDAeFw0xOTA4MTMwMzE5MzlaFw0yOTA4\nMTAwMzE5MzlaMC4xEzARBgNVBAMTCnNlcnZlciBzc2wxFzAVBgNVBAoTDnRlcnJh\nZm9ybS10ZXN0MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA1Ryp+DKK\nSNFKZsPtwfR+jzOnQ8YFieIKYgakV688d8YgpolenbmeEPrzT87tunFD7G9f6ALG\nND8rj7npj0AowxhOL/h/v1D9u0UsIaj5i2GWJrqNAhGLaxWiEB/hy5WOiwxDrGei\ngQqJkFM52Ep7G1Yx7PHJmKFGwN9FhIsFi1cNZfVRopZuCe/RMPNusNVZaIi+qcEf\nfsE1cmfmuSlG3Ap0RKOIyR0ajDEzqZn9/0R7VwWCF97qy8TNYk94K/1tq3zyhVzR\nZ83xOSfrTqEfb3so3AU2jyKgYdwr/FZS72VCHS8IslgnqJW4izIXZqgIKmHaRZtM\nN4jUloi6l/6lktt6Lsgh9xECecxziSJtPMaog88aC8HnMqJJ3kScGCL36GYG+Kaw\n5PnDlWXBaeiDe8z/eWK9+Rr2M+rhTNxosAVGfDJyxAXyiX49LQ0v7f9qzwc/0JiD\nbvsUv1cm6OgpoEMP9SXqqBdwGqeKbD2/2jlP48xlYP6l1SoJG3GgZ8dbAgMBAAGj\ndjB0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0PAQH/\nBAUDAweAADAdBgNVHQ4EFgQULwWKBQNLL9s3cb3tTnyPVg+mpCMwHwYDVR0jBBgw\nFoAUKwfrmq791mY831S6UHARHtgYnlgwDQYJKoZIhvcNAQELBQADggGBAMo5RglS\nAHdPgaicWJvmvjjexjF/42b7Rz4pPfMjYw6uYO8He/f4UZWv5CZLrbEe7MywaK3y\n0OsfH8AhyN29pv2x8g9wbmq7omZIOZ0oCAGduEXs/A/qY/hFaCohdkz/IN8qi6JW\nVXreGli3SrpcHFchSwHTyJEXgkutcGAsOvdsOuVSmplOyrkLHc8uUe8SG4j8kGyg\nEzaszFjHkR7g1dVyDVUedc588mjkQxYeAamJgfkgIhljWKMa2XzkVMcVfQHfNpM1\nn+bu8SmqRt9Wma2bMijKRG/Blm756LoI+skY+WRZmlDnq8zj95TT0vceGP0FUWh5\nhKyiocABmpQs9OK9HMi8vgSWISP+fYgkm/bKtKup2NbZBoO5/VL2vCEPInYzUhBO\njCbLMjNjtM5KriCaR7wDARgHiG0gBEPOEW1PIjZ9UOH+LtIxbNZ4eEIIINLHnBHf\nL+doVeZtS/gJc4G4Adr5HYuaS9ZxJ0W2uy0eQlOHzjyxR6Mf/rpnilJlcQ==\n-----END CERTIFICATE-----" +} + +variable "key" { + default = "Public Key Info:\n Public Key Algorithm: RSA\n Key Security Level: High (3072 bits)\n\nmodulus:\n 00:d5:1c:a9:f8:32:8a:48:d1:4a:66:c3:ed:c1:f4:7e\n 8f:33:a7:43:c6:05:89:e2:0a:62:06:a4:57:af:3c:77\n c6:20:a6:89:5e:9d:b9:9e:10:fa:f3:4f:ce:ed:ba:71\n 43:ec:6f:5f:e8:02:c6:34:3f:2b:8f:b9:e9:8f:40:28\n c3:18:4e:2f:f8:7f:bf:50:fd:bb:45:2c:21:a8:f9:8b\n 61:96:26:ba:8d:02:11:8b:6b:15:a2:10:1f:e1:cb:95\n 8e:8b:0c:43:ac:67:a2:81:0a:89:90:53:39:d8:4a:7b\n 1b:56:31:ec:f1:c9:98:a1:46:c0:df:45:84:8b:05:8b\n 57:0d:65:f5:51:a2:96:6e:09:ef:d1:30:f3:6e:b0:d5\n 59:68:88:be:a9:c1:1f:7e:c1:35:72:67:e6:b9:29:46\n dc:0a:74:44:a3:88:c9:1d:1a:8c:31:33:a9:99:fd:ff\n 44:7b:57:05:82:17:de:ea:cb:c4:cd:62:4f:78:2b:fd\n 6d:ab:7c:f2:85:5c:d1:67:cd:f1:39:27:eb:4e:a1:1f\n 6f:7b:28:dc:05:36:8f:22:a0:61:dc:2b:fc:56:52:ef\n 65:42:1d:2f:08:b2:58:27:a8:95:b8:8b:32:17:66:a8\n 08:2a:61:da:45:9b:4c:37:88:d4:96:88:ba:97:fe:a5\n 92:db:7a:2e:c8:21:f7:11:02:79:cc:73:89:22:6d:3c\n c6:a8:83:cf:1a:0b:c1:e7:32:a2:49:de:44:9c:18:22\n f7:e8:66:06:f8:a6:b0:e4:f9:c3:95:65:c1:69:e8:83\n 7b:cc:ff:79:62:bd:f9:1a:f6:33:ea:e1:4c:dc:68:b0\n 05:46:7c:32:72:c4:05:f2:89:7e:3d:2d:0d:2f:ed:ff\n 6a:cf:07:3f:d0:98:83:6e:fb:14:bf:57:26:e8:e8:29\n a0:43:0f:f5:25:ea:a8:17:70:1a:a7:8a:6c:3d:bf:da\n 39:4f:e3:cc:65:60:fe:a5:d5:2a:09:1b:71:a0:67:c7\n 5b:\n\npublic exponent:\n 01:00:01:\n\nprivate exponent:\n 00:b1:56:d0:fa:00:d4:a2:13:c7:5e:0c:dc:e4:f1:97\n ff:82:74:46:29:9a:a2:4a:bf:69:23:2d:ce:e9:bb:df\n cf:b7:8b:dd:f4:26:3c:38:14:d9:3f:6f:c2:3a:81:53\n 8f:ba:48:53:fe:b5:90:4a:19:e7:1e:0b:0f:18:6d:c3\n 7d:d5:d3:fa:87:47:86:e4:d6:bf:e7:a7:f9:ba:ab:2e\n 19:5e:e1:8b:8b:9b:95:0d:f7:66:61:1e:19:e9:c3:88\n 08:be:1c:ce:93:c1:09:b1:68:1b:61:46:60:74:64:46\n 5d:51:34:ea:7f:a9:ca:a1:2a:47:85:84:4b:ef:84:05\n 97:c3:46:7d:06:19:ce:24:73:90:64:fb:df:16:d5:80\n 34:8e:90:7c:58:b6:a4:86:ce:30:b3:ab:52:8b:f2:95\n 4c:b6:46:5a:77:db:73:c0:0c:3f:6d:12:18:a8:54:7c\n ff:77:c3:ca:89:9f:63:98:ef:48:2d:c1:09:70:6e:ea\n cb:bb:78:91:42:8a:22:3e:21:ef:a5:bf:16:ee:66:45\n e5:f0:26:6a:85:8e:e1:69:62:ac:05:00:a6:44:ba:c8\n ac:10:00:97:f5:51:65:7f:9a:1f:7b:99:9d:02:d4:87\n 50:ce:74:06:51:67:fa:fb:90:e4:33:79:f2:a8:61:ee\n 45:1d:87:ca:22:5b:ac:e7:32:38:f8:2c:fd:55:92:1e\n 3d:60:1e:7c:4b:fd:28:ff:e5:b1:02:6a:aa:22:f7:ae\n a8:36:90:7b:a6:f7:29:05:14:3a:21:da:36:05:f9:b0\n 9d:f7:fb:10:75:d7:2c:21:32:95:e7:f7:17:be:09:cb\n 66:fe:f1:69:71:df:a4:5e:3f:fc:67:6c:37:65:b8:51\n c6:22:38:fb:07:ce:89:54:50:43:71:44:3d:c3:51:5a\n bd:e5:c7:87:b2:ea:7b:64:0f:5d:34:9c:a1:52:b3:ce\n 06:86:ba:7a:05:80:48:b3:6c:1b:79:74:9b:49:f2:30\n c1:\n\nprime1:\n 00:e4:31:46:59:3d:24:f7:31:d9:22:26:af:c0:3e:f5\n c1:6d:be:ba:d3:9e:3f:b9:2c:43:a0:d0:47:09:e4:35\n 63:19:a4:33:82:af:f9:76:3c:11:c2:cb:34:f9:a6:ab\n dd:ab:64:5a:6b:9c:c1:2a:52:89:64:7e:b5:a7:f0:4d\n 29:13:a4:cf:17:f4:f2:0d:a0:6e:b9:5d:95:41:10:df\n ae:f3:7a:13:49:21:66:73:2a:b7:e2:8d:7c:c2:34:e5\n 3f:bd:78:ca:fc:64:c5:1c:3a:66:7a:12:53:96:bd:b0\n c3:7a:0c:ec:5e:55:c0:c3:3f:7f:25:72:f4:e2:19:94\n 9d:65:15:be:c8:82:20:57:12:97:b2:a8:4d:3d:e0:8f\n e2:1f:d0:c8:49:aa:f4:34:fa:91:d1:d1:cc:98:bc:3d\n 8b:b1:9b:8f:fd:ef:03:dd:92:fb:ca:99:45:af:cc:83\n 58:4c:bb:ba:73:9e:23:84:f9:7e:4f:40:fe:00:b5:bf\n 6f:\n\nprime2:\n 00:ef:14:ef:73:fc:0c:fc:e3:87:d9:7f:a6:f8:55:86\n 57:63:8a:86:87:f5:ef:63:20:1f:b2:ae:28:dc:ab:59\n 80:8f:15:64:44:e2:bc:a5:7b:d7:69:ef:30:b1:83:b3\n bd:09:fd:4a:0c:c6:31:5b:a4:79:d0:e5:d3:a8:31:fd\n 59:ea:52:63:cf:17:a7:c1:54:bf:a8:11:9b:b1:85:47\n 5a:08:a6:9c:2f:47:9d:ac:5d:e8:7c:e4:31:6c:99:71\n 04:7d:20:98:be:8b:60:07:66:2d:b9:41:10:ea:dd:5b\n 87:20:65:62:ea:75:a7:a6:04:a2:18:66:6b:db:5b:a4\n 9f:12:97:cb:7c:8c:d2:e0:ce:02:ef:1e:df:a1:9d:6a\n bc:00:38:18:36:a1:c5:97:16:be:7a:df:5f:4f:4f:de\n a3:cb:25:fe:f6:67:0d:31:aa:0a:d4:1b:be:df:91:2c\n 05:14:20:37:cc:4f:50:33:a6:50:1b:90:f9:b2:08:80\n d5:\n\ncoefficient:\n 47:d1:7f:ca:93:6a:14:9b:fe:85:8d:c2:15:11:52:a2\n a5:bc:f5:6b:a2:69:76:49:1e:09:79:f1:15:bf:39:48\n 41:ff:92:78:af:bc:7d:6f:76:3b:32:9e:08:d2:42:06\n 04:5f:36:e0:be:a8:1d:21:5c:ec:39:09:e0:77:c5:86\n 06:e6:ce:98:16:fc:0f:30:de:a7:69:7a:8f:dd:01:42\n 2a:22:f5:b7:c2:fc:c8:90:5a:78:dc:b3:e0:4d:e7:2d\n 98:6c:e3:34:1b:d7:e8:f8:90:57:7e:4d:41:d6:4a:29\n 81:92:eb:89:5b:45:85:dd:b9:16:20:63:cb:59:f6:06\n 59:c1:dd:3b:6b:92:0a:5e:5e:63:4a:f1:a7:d5:16:b9\n 8b:6c:d8:ad:76:0e:2d:3c:e0:b3:73:e0:6d:af:d4:a2\n bc:4b:fd:6c:2d:d7:5d:4d:cd:28:03:64:b2:ef:9a:1d\n 82:8d:53:40:c5:f8:fb:f3:63:de:8e:1a:21:b6:35:14\n \n\nexp1:\n 00:9c:a5:8a:d2:65:dc:03:69:8f:d2:16:d6:9d:55:5b\n 25:4e:ae:18:d8:7e:90:e6:10:11:d8:ca:41:89:f3:c4\n 06:64:aa:c8:c5:95:01:dd:fd:7c:7f:c9:39:73:8b:cb\n fd:9e:d3:84:12:cd:87:f9:02:b1:d8:6f:f7:49:f2:f7\n 35:14:8c:15:b2:2f:6f:1e:95:9c:8c:d9:46:45:65:4c\n f8:6f:a1:c4:ad:76:25:3b:37:ff:05:a1:f5:1b:e8:6d\n db:64:b9:10:37:55:01:ce:cf:f4:5b:26:4b:85:76:70\n 6a:b0:55:40:c9:bd:7a:57:4e:36:7d:41:be:03:9c:65\n dd:ea:6f:94:09:56:f2:d6:73:27:f9:f7:f9:16:5a:1a\n cb:b2:e5:83:28:b7:17:6f:6a:f7:41:1f:11:a1:63:cf\n a8:1e:e3:58:64:8c:78:8d:d9:81:c9:e1:8f:ea:0f:ad\n b6:a6:ee:54:1f:5c:56:ab:c9:0d:c1:60:2f:3d:d3:86\n 37:\n\nexp2:\n 64:12:b7:48:2d:30:a2:89:fa:cb:27:8b:94:56:f8:2c\n 8c:15:e7:c9:f1:3f:8a:96:5f:ae:43:08:07:96:11:98\n a6:4b:a5:f4:cf:93:77:11:27:51:c8:34:f1:98:d7:1b\n 41:9b:2b:eb:bc:e9:dc:1a:34:83:24:30:3c:2e:f0:85\n 3a:77:d2:1f:55:1f:7a:e5:26:74:0b:2a:c8:5b:a9:4a\n 1e:64:de:eb:4b:66:cc:47:62:91:24:53:2b:c9:ee:6c\n 9a:93:92:5b:ef:aa:fa:6d:e2:a5:b0:7e:8c:50:ab:87\n 1c:20:54:0f:1f:c0:54:d5:8b:a3:fa:fb:1a:8e:79:91\n bc:0e:9d:b6:3c:9b:e8:4d:53:1d:14:27:37:56:d4:de\n 6c:99:0e:49:8f:dd:4d:28:d0:02:4e:8d:6e:7d:58:0b\n e7:74:b8:0c:1b:86:82:4b:52:cd:05:f0:17:54:84:c0\n 7b:74:20:e6:fc:2b:ed:f2:a7:85:62:61:a2:0b:bd:21\n \n\n\nPublic Key PIN:\n pin-sha256:t5OXXC5gYqMNtUMsTqRs3A3vhfK2BiXVOgYzIEYv7Y8=\nPublic Key ID:\n sha256:b793975c2e6062a30db5432c4ea46cdc0def85f2b60625d53a063320462fed8f\n sha1:2f058a05034b2fdb3771bded4e7c8f560fa6a423\n\n-----BEGIN RSA PRIVATE KEY-----\nMIIG5AIBAAKCAYEA1Ryp+DKKSNFKZsPtwfR+jzOnQ8YFieIKYgakV688d8Ygpole\nnbmeEPrzT87tunFD7G9f6ALGND8rj7npj0AowxhOL/h/v1D9u0UsIaj5i2GWJrqN\nAhGLaxWiEB/hy5WOiwxDrGeigQqJkFM52Ep7G1Yx7PHJmKFGwN9FhIsFi1cNZfVR\nopZuCe/RMPNusNVZaIi+qcEffsE1cmfmuSlG3Ap0RKOIyR0ajDEzqZn9/0R7VwWC\nF97qy8TNYk94K/1tq3zyhVzRZ83xOSfrTqEfb3so3AU2jyKgYdwr/FZS72VCHS8I\nslgnqJW4izIXZqgIKmHaRZtMN4jUloi6l/6lktt6Lsgh9xECecxziSJtPMaog88a\nC8HnMqJJ3kScGCL36GYG+Kaw5PnDlWXBaeiDe8z/eWK9+Rr2M+rhTNxosAVGfDJy\nxAXyiX49LQ0v7f9qzwc/0JiDbvsUv1cm6OgpoEMP9SXqqBdwGqeKbD2/2jlP48xl\nYP6l1SoJG3GgZ8dbAgMBAAECggGBALFW0PoA1KITx14M3OTxl/+CdEYpmqJKv2kj\nLc7pu9/Pt4vd9CY8OBTZP2/COoFTj7pIU/61kEoZ5x4LDxhtw33V0/qHR4bk1r/n\np/m6qy4ZXuGLi5uVDfdmYR4Z6cOICL4czpPBCbFoG2FGYHRkRl1RNOp/qcqhKkeF\nhEvvhAWXw0Z9BhnOJHOQZPvfFtWANI6QfFi2pIbOMLOrUovylUy2Rlp323PADD9t\nEhioVHz/d8PKiZ9jmO9ILcEJcG7qy7t4kUKKIj4h76W/Fu5mReXwJmqFjuFpYqwF\nAKZEusisEACX9VFlf5ofe5mdAtSHUM50BlFn+vuQ5DN58qhh7kUdh8oiW6znMjj4\nLP1Vkh49YB58S/0o/+WxAmqqIveuqDaQe6b3KQUUOiHaNgX5sJ33+xB11ywhMpXn\n9xe+Cctm/vFpcd+kXj/8Z2w3ZbhRxiI4+wfOiVRQQ3FEPcNRWr3lx4ey6ntkD100\nnKFSs84Ghrp6BYBIs2wbeXSbSfIwwQKBwQDkMUZZPST3MdkiJq/APvXBbb66054/\nuSxDoNBHCeQ1YxmkM4Kv+XY8EcLLNPmmq92rZFprnMEqUolkfrWn8E0pE6TPF/Ty\nDaBuuV2VQRDfrvN6E0khZnMqt+KNfMI05T+9eMr8ZMUcOmZ6ElOWvbDDegzsXlXA\nwz9/JXL04hmUnWUVvsiCIFcSl7KoTT3gj+If0MhJqvQ0+pHR0cyYvD2LsZuP/e8D\n3ZL7yplFr8yDWEy7unOeI4T5fk9A/gC1v28CgcEA7xTvc/wM/OOH2X+m+FWGV2OK\nhof172MgH7KuKNyrWYCPFWRE4ryle9dp7zCxg7O9Cf1KDMYxW6R50OXTqDH9WepS\nY88Xp8FUv6gRm7GFR1oIppwvR52sXeh85DFsmXEEfSCYvotgB2YtuUEQ6t1bhyBl\nYup1p6YEohhma9tbpJ8Sl8t8jNLgzgLvHt+hnWq8ADgYNqHFlxa+et9fT0/eo8sl\n/vZnDTGqCtQbvt+RLAUUIDfMT1AzplAbkPmyCIDVAoHBAJylitJl3ANpj9IW1p1V\nWyVOrhjYfpDmEBHYykGJ88QGZKrIxZUB3f18f8k5c4vL/Z7ThBLNh/kCsdhv90ny\n9zUUjBWyL28elZyM2UZFZUz4b6HErXYlOzf/BaH1G+ht22S5EDdVAc7P9FsmS4V2\ncGqwVUDJvXpXTjZ9Qb4DnGXd6m+UCVby1nMn+ff5Floay7Llgyi3F29q90EfEaFj\nz6ge41hkjHiN2YHJ4Y/qD622pu5UH1xWq8kNwWAvPdOGNwKBwGQSt0gtMKKJ+ssn\ni5RW+CyMFefJ8T+Kll+uQwgHlhGYpkul9M+TdxEnUcg08ZjXG0GbK+u86dwaNIMk\nMDwu8IU6d9IfVR965SZ0CyrIW6lKHmTe60tmzEdikSRTK8nubJqTklvvqvpt4qWw\nfoxQq4ccIFQPH8BU1Yuj+vsajnmRvA6dtjyb6E1THRQnN1bU3myZDkmP3U0o0AJO\njW59WAvndLgMG4aCS1LNBfAXVITAe3Qg5vwr7fKnhWJhogu9IQKBwEfRf8qTahSb\n/oWNwhURUqKlvPVroml2SR4JefEVvzlIQf+SeK+8fW92OzKeCNJCBgRfNuC+qB0h\nXOw5CeB3xYYG5s6YFvwPMN6naXqP3QFCKiL1t8L8yJBaeNyz4E3nLZhs4zQb1+j4\nkFd+TUHWSimBkuuJW0WF3bkWIGPLWfYGWcHdO2uSCl5eY0rxp9UWuYts2K12Di08\n4LNz4G2v1KK8S/1sLdddTc0oA2Sy75odgo1TQMX4+/Nj3o4aIbY1FA==\n-----END RSA PRIVATE KEY-----" +} + +data "tencentcloud_ssl_certificates" "svr" { + name = tencentcloud_ssl_certificate.svr.name +} + +resource "tencentcloud_ssl_certificate" "svr" { + name = "ssl-svr" + type = "SVR" + cert = var.cert + key = var.key +} +``` + +Import + +ssl certificate can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_ssl_certificate.cert GjTNRoK7 +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_check_certificate_chain_operation.md b/tencentcloud/ssl/resource_tc_ssl_check_certificate_chain_operation.md new file mode 100644 index 0000000000..7d47c00cc7 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_check_certificate_chain_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl check_certificate_chain + +Example Usage + +```hcl +resource "tencentcloud_ssl_check_certificate_chain_operation" "check_certificate_chain" { + certificate_chain = "-----BEGIN CERTIFICATE--·····---END CERTIFICATE-----" +} +``` + +Import + +ssl check_certificate_chain can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_check_certificate_chain_operation.check_certificate_chain check_certificate_chain_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_complete_certificate_operation.md b/tencentcloud/ssl/resource_tc_ssl_complete_certificate_operation.md new file mode 100644 index 0000000000..5e6081b37b --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_complete_certificate_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl complete_certificate + +Example Usage + +```hcl +resource "tencentcloud_ssl_complete_certificate_operation" "complete_certificate" { + certificate_id = "9Bfe1IBR" +} +``` + +Import + +ssl complete_certificate can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_complete_certificate_operation.complete_certificate complete_certificate_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_instance_operation.md b/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_instance_operation.md new file mode 100644 index 0000000000..d2707d7b40 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_instance_operation.md @@ -0,0 +1,19 @@ +Provides a resource to create a ssl deploy_certificate_instance + +Example Usage + +```hcl +resource "tencentcloud_ssl_deploy_certificate_instance_operation" "deploy_certificate_instance" { + certificate_id = "8x1eUSSl" + instance_id_list = ["cdndomain1.example.com|on","cdndomain1.example.com|off"] + resource_type = "cdn" +} +``` + +Import + +ssl deploy_certificate_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_deploy_certificate_instance_operation.deploy_certificate_instance deploy_certificate_instance_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_retry_operation.md b/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_retry_operation.md new file mode 100644 index 0000000000..ee2276a9a1 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_retry_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl deploy_certificate_record_retry + +Example Usage + +```hcl +resource "tencentcloud_ssl_deploy_certificate_record_retry_operation" "deploy_certificate_record_retry" { + deploy_record_id = 35474 +} +``` + +Import + +ssl deploy_certificate_record_retry can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_deploy_certificate_record_retry_operation.deploy_certificate_record_retry deploy_certificate_record_retry_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_rollback_operation.md b/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_rollback_operation.md new file mode 100644 index 0000000000..37c6b842e9 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_rollback_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl deploy_certificate_record_rollback + +Example Usage + +```hcl +resource "tencentcloud_ssl_deploy_certificate_record_rollback_operation" "deploy_certificate_record_rollback" { + deploy_record_id = 35471 +} +``` + +Import + +ssl deploy_certificate_record_rollback can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_deploy_certificate_record_rollback_operation.deploy_certificate_record_rollback deploy_certificate_record_rollback_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_download_certificate_operation.md b/tencentcloud/ssl/resource_tc_ssl_download_certificate_operation.md new file mode 100644 index 0000000000..aedf1aeaf3 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_download_certificate_operation.md @@ -0,0 +1,18 @@ +Provides a resource to create a ssl download_certificate + +Example Usage + +```hcl +resource "tencentcloud_ssl_download_certificate_operation" "download_certificate" { + certificate_id = "8x1eUSSl" + output_path = "./" +} +``` + +Import + +ssl download_certificate can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_download_certificate_operation.download_certificate download_certificate_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_free_certificate.md b/tencentcloud/ssl/resource_tc_ssl_free_certificate.md new file mode 100644 index 0000000000..c69f0a4c41 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_free_certificate.md @@ -0,0 +1,29 @@ +Provide a resource to create a Free Certificate. + +~> **NOTE:** Once certificat created, it cannot be removed within 1 hours. + +Example Usage + +Currently, `package_type` only support type 2. 2=TrustAsia TLS RSA CA. + +```hcl +resource "tencentcloud_ssl_free_certificate" "example" { + dv_auth_method = "DNS_AUTO" + domain = "example.com" + package_type = "2" + contact_email = "test@example.com" + contact_phone = "18352458901" + validity_period = 12 + csr_encrypt_algo = "RSA" + csr_key_parameter = "2048" + csr_key_password = "csr_pwd" + alias = "example_free_cert" +} +``` + +Import + +FreeCertificate instance can be imported, e.g. +``` +$ terraform import tencentcloud_ssl_free_certificate.test free_certificate-id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_pay_certificate.md b/tencentcloud/ssl/resource_tc_ssl_pay_certificate.md new file mode 100644 index 0000000000..c957bb951d --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_pay_certificate.md @@ -0,0 +1,54 @@ +Provide a resource to create a payment SSL. + +~> **NOTE:** Provides the creation of a paid certificate, including the submission of certificate information and order functions; +currently, it does not support re-issuing certificates, revoking certificates, and deleting certificates; the certificate remarks +and belonging items can be updated. The Destroy operation will only cancel the certificate order, and will not delete the +certificate and refund the fee. If you need a refund, you need to check the current certificate status in the console +as `Review Cancel`, and then you can click `Request a refund` to refund the fee. To update the information of a certificate, +we will automatically roll back your certificate if this certificate is already in the validation stage. This process may take +some time because the CA callback is time-consuming. Please be patient and follow the prompt message. Or, feel free to contact +Tencent Cloud Support. + +Example Usage + +```hcl +resource "tencentcloud_ssl_pay_certificate" "example" { + product_id = 33 + domain_num = 1 + alias = "ssl desc." + project_id = 0 + information { + csr_type = "online" + certificate_domain = "www.example.com" + organization_name = "Tencent" + organization_division = "Qcloud" + organization_address = "广东省深圳市南山区腾讯大厦1000号" + organization_country = "CN" + organization_city = "深圳市" + organization_region = "广东省" + postal_code = "0755" + phone_area_code = "0755" + phone_number = "86013388" + verify_type = "DNS" + admin_first_name = "test" + admin_last_name = "test" + admin_phone_num = "12345678901" + admin_email = "test@tencent.com" + admin_position = "developer" + contact_first_name = "test" + contact_last_name = "test" + contact_email = "test@tencent.com" + contact_number = "12345678901" + contact_position = "developer" + } +} + +``` + +Import + +payment SSL instance can be imported, e.g. + +``` +$ terraform import tencentcloud_ssl_pay_certificate.ssl iPQNn61x#33#1#1 +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_replace_certificate_operation.md b/tencentcloud/ssl/resource_tc_ssl_replace_certificate_operation.md new file mode 100644 index 0000000000..316b9bb9b8 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_replace_certificate_operation.md @@ -0,0 +1,19 @@ +Provides a resource to create a ssl replace_certificate + +Example Usage + +```hcl +resource "tencentcloud_ssl_replace_certificate_operation" "replace_certificate" { + certificate_id = "8L6JsWq2" + valid_type = "DNS_AUTO" + csr_type = "online" +} +``` + +Import + +ssl replace_certificate can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_replace_certificate_operation.replace_certificate replace_certificate_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_revoke_certificate_operation.md b/tencentcloud/ssl/resource_tc_ssl_revoke_certificate_operation.md new file mode 100644 index 0000000000..62c8855a65 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_revoke_certificate_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl revoke_certificate + +Example Usage + +```hcl +resource "tencentcloud_ssl_revoke_certificate_operation" "revoke_certificate" { + certificate_id = "7zUGkVab" +} +``` + +Import + +ssl revoke_certificate can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_revoke_certificate_operation.revoke_certificate revoke_certificate_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_update_certificate_instance_operation.md b/tencentcloud/ssl/resource_tc_ssl_update_certificate_instance_operation.md new file mode 100644 index 0000000000..fad1570b27 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_update_certificate_instance_operation.md @@ -0,0 +1,19 @@ +Provides a resource to create a ssl update_certificate_instance + +Example Usage + +```hcl +resource "tencentcloud_ssl_update_certificate_instance_operation" "update_certificate_instance" { + certificate_id = "8x1eUSSl" + old_certificate_id = "8xNdi2ig" + resource_types = ["cdn"] +} +``` + +Import + +ssl update_certificate_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance update_certificate_instance_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_update_certificate_record_retry_operation.md b/tencentcloud/ssl/resource_tc_ssl_update_certificate_record_retry_operation.md new file mode 100644 index 0000000000..330c5bef94 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_update_certificate_record_retry_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl update_certificate_record_retry + +Example Usage + +```hcl +resource "tencentcloud_ssl_update_certificate_record_retry_operation" "update_certificate_record_retry" { + deploy_record_id = "1603" +} +``` + +Import + +ssl update_certificate_record_retry can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry update_certificate_record_retry_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_update_certificate_record_rollback_operation.md b/tencentcloud/ssl/resource_tc_ssl_update_certificate_record_rollback_operation.md new file mode 100644 index 0000000000..9ec129a3f3 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_update_certificate_record_rollback_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a ssl update_certificate_record_rollback + +Example Usage + +```hcl +resource "tencentcloud_ssl_update_certificate_record_rollback_operation" "update_certificate_record_rollback" { + deploy_record_id = "1603" +} +``` + +Import + +ssl update_certificate_record_rollback can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_update_certificate_record_rollback_operation.update_certificate_record_rollback update_certificate_record_rollback_id +``` \ No newline at end of file diff --git a/tencentcloud/ssl/resource_tc_ssl_upload_revoke_letter_operation.md b/tencentcloud/ssl/resource_tc_ssl_upload_revoke_letter_operation.md new file mode 100644 index 0000000000..d838718f86 --- /dev/null +++ b/tencentcloud/ssl/resource_tc_ssl_upload_revoke_letter_operation.md @@ -0,0 +1,18 @@ +Provides a resource to create a ssl upload_revoke_letter + +Example Usage + +```hcl +resource "tencentcloud_ssl_upload_revoke_letter_operation" "upload_revoke_letter" { + certificate_id = "8xRYdDlc" + revoke_letter = filebase64("./c.pdf") +} +``` + +Import + +ssl upload_revoke_letter can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter upload_revoke_letter_id +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_products.md b/tencentcloud/ssm/data_source_tc_ssm_products.md new file mode 100644 index 0000000000..34431a77d9 --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_products.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of ssm products + +Example Usage + +```hcl +data "tencentcloud_ssm_products" "products" {} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_rotation_detail.md b/tencentcloud/ssm/data_source_tc_ssm_rotation_detail.md new file mode 100644 index 0000000000..c5fbacaf52 --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_rotation_detail.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssm rotation_detail + +Example Usage + +```hcl +data "tencentcloud_ssm_rotation_detail" "example" { + secret_name = "tf_example" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_rotation_history.md b/tencentcloud/ssm/data_source_tc_ssm_rotation_history.md new file mode 100644 index 0000000000..13cbb99c42 --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_rotation_history.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of ssm rotation_history + +Example Usage + +```hcl +data "tencentcloud_ssm_rotation_history" "example" { + secret_name = "keep_terraform" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_secret_versions.md b/tencentcloud/ssm/data_source_tc_ssm_secret_versions.md new file mode 100644 index 0000000000..cfbbdcb71a --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_secret_versions.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of SSM secret version + +Example Usage + +```hcl +data "tencentcloud_ssm_secret_versions" "example" { + secret_name = tencentcloud_ssm_secret_version.v1.secret_name + version_id = tencentcloud_ssm_secret_version.v1.version_id +} + +resource "tencentcloud_ssm_secret" "example" { + secret_name = "tf-example" + description = "desc." + + tags = { + createdBy = "terraform" + } +} + +resource "tencentcloud_ssm_secret_version" "v1" { + secret_name = tencentcloud_ssm_secret.example.secret_name + version_id = "v1" + secret_binary = "MTIzMTIzMTIzMTIzMTIzQQ==" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_secrets.md b/tencentcloud/ssm/data_source_tc_ssm_secrets.md new file mode 100644 index 0000000000..3e26150d37 --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_secrets.md @@ -0,0 +1,32 @@ +Use this data source to query detailed information of SSM secret + +Example Usage + +```hcl +data "tencentcloud_ssm_secrets" "example" { + secret_name = tencentcloud_ssm_secret.example.secret_name + state = 1 +} + +resource "tencentcloud_ssm_secret" "example" { + secret_name = "tf_example" + description = "desc." + + tags = { + createdBy = "terraform" + } +} +``` + +OR you can filter by tags + +```hcl +data "tencentcloud_ssm_secrets" "example" { + secret_name = tencentcloud_ssm_secret.example.secret_name + state = 1 + + tags = { + createdBy = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_service_status.md b/tencentcloud/ssm/data_source_tc_ssm_service_status.md new file mode 100644 index 0000000000..173d3e1c41 --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_service_status.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of ssm service_status + +Example Usage + +```hcl +data "tencentcloud_ssm_service_status" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/data_source_tc_ssm_ssh_key_pair_value.md b/tencentcloud/ssm/data_source_tc_ssm_ssh_key_pair_value.md new file mode 100644 index 0000000000..e5da2cf43e --- /dev/null +++ b/tencentcloud/ssm/data_source_tc_ssm_ssh_key_pair_value.md @@ -0,0 +1,28 @@ +Use this data source to query detailed information of ssm ssh_key_pair_value + +~> **NOTE:** Must set at least one of `secret_name` or `ssh_key_id`. + +Example Usage + +```hcl +data "tencentcloud_ssm_ssh_key_pair_value" "example" { + secret_name = "keep_terraform" + ssh_key_id = "skey-2ae2snwd" +} +``` + +Or + +```hcl +data "tencentcloud_ssm_ssh_key_pair_value" "example" { + secret_name = "keep_terraform" +} +``` + +Or + +```hcl +data "tencentcloud_ssm_ssh_key_pair_value" "example" { + ssh_key_id = "skey-2ae2snwd" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/resource_tc_ssm_product_secret.md b/tencentcloud/ssm/resource_tc_ssm_product_secret.md new file mode 100644 index 0000000000..6dd5a0d83d --- /dev/null +++ b/tencentcloud/ssm/resource_tc_ssm_product_secret.md @@ -0,0 +1,86 @@ +Provides a resource to create a ssm product_secret + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "cdb" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "security_group" { + name = "sg-example" + description = "desc." +} + +resource "tencentcloud_mysql_instance" "example" { + internet_service = 1 + engine_version = "5.7" + charge_type = "POSTPAID" + root_password = "PassWord123" + slave_deploy_mode = 0 + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + slave_sync_mode = 1 + instance_name = "tf-example" + mem_size = 4000 + volume_size = 200 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + intranet_port = 3306 + security_groups = [tencentcloud_security_group.security_group.id] + + tags = { + createBy = "terraform" + } + + parameters = { + character_set_server = "utf8" + max_connections = "1000" + } +} + +resource "tencentcloud_kms_key" "example" { + alias = "tf-example-kms-key" + description = "example of kms key" + key_rotation_enabled = false + is_enabled = true + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_ssm_product_secret" "example" { + secret_name = "tf-example" + user_name_prefix = "prefix" + product_name = "Mysql" + instance_id = tencentcloud_mysql_instance.example.id + domains = ["10.0.0.0"] + privileges_list { + privilege_name = "GlobalPrivileges" + privileges = ["ALTER ROUTINE"] + } + description = "for ssm product test" + kms_key_id = tencentcloud_kms_key.example.id + status = "Enabled" + enable_rotation = true + rotation_begin_time = "2023-08-05 20:54:33" + rotation_frequency = 30 + + tags = { + "createdBy" = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/resource_tc_ssm_rotate_product_secret.md b/tencentcloud/ssm/resource_tc_ssm_rotate_product_secret.md new file mode 100644 index 0000000000..37a4b2ac1a --- /dev/null +++ b/tencentcloud/ssm/resource_tc_ssm_rotate_product_secret.md @@ -0,0 +1,9 @@ +Provides a resource to create a ssm rotate_product_secret + +Example Usage + +```hcl +resource "tencentcloud_ssm_rotate_product_secret" "example" { + secret_name = "tf_example" +} +``` \ No newline at end of file diff --git a/tencentcloud/ssm/resource_tc_ssm_secret.md b/tencentcloud/ssm/resource_tc_ssm_secret.md new file mode 100644 index 0000000000..fecf962d28 --- /dev/null +++ b/tencentcloud/ssm/resource_tc_ssm_secret.md @@ -0,0 +1,78 @@ +Provide a resource to create a SSM secret. + +Example Usage + +Create user defined secret + +```hcl +resource "tencentcloud_ssm_secret" "example" { + secret_name = "tf-example" + description = "desc." + is_enabled = true + recovery_window_in_days = 0 + + tags = { + createBy = "terraform" + } +} +``` + +Create redis secret + +```hcl +data "tencentcloud_redis_zone_config" "zone" { + type_id = 8 +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = data.tencentcloud_redis_zone_config.zone.list[3].zone + name = "subnet-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_redis_instance" "example" { + availability_zone = data.tencentcloud_redis_zone_config.zone.list[3].zone + type_id = data.tencentcloud_redis_zone_config.zone.list[3].type_id + password = "Qwer@234" + mem_size = data.tencentcloud_redis_zone_config.zone.list[3].mem_sizes[0] + redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[3].redis_shard_nums[0] + redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[3].redis_replicas_nums[0] + name = "tf_example" + port = 6379 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_ssm_secret" "example" { + secret_name = "tf-example" + description = "redis desc." + is_enabled = true + secret_type = 4 + additional_config = jsonencode( + { + "Region" : "ap-guangzhou" + "Privilege" : "r", + "InstanceId" : tencentcloud_redis_instance.example.id + "ReadonlyPolicy" : ["master"], + "Remark" : "for tf test" + } + ) + tags = { + createdBy = "terraform" + } + recovery_window_in_days = 0 +} +``` + +Import + +SSM secret can be imported using the secretName, e.g. +``` +$ terraform import tencentcloud_ssm_secret.foo test +``` \ No newline at end of file diff --git a/tencentcloud/ssm/resource_tc_ssm_secret_version.md b/tencentcloud/ssm/resource_tc_ssm_secret_version.md new file mode 100644 index 0000000000..1e98c906a7 --- /dev/null +++ b/tencentcloud/ssm/resource_tc_ssm_secret_version.md @@ -0,0 +1,43 @@ +Provide a resource to create a SSM secret version. + +-> **Note:** A maximum of 10 versions can be supported under one credential. Only new versions can be added to credentials in the enabled and disabled states. + +Example Usage + +Text type credential information plaintext + +```hcl +resource "tencentcloud_ssm_secret" "example" { + secret_name = "tf-example" + description = "desc." + recovery_window_in_days = 0 + is_enabled = true + + tags = { + createdBy = "terraform" + } +} + +resource "tencentcloud_ssm_secret_version" "v1" { + secret_name = tencentcloud_ssm_secret.example.secret_name + version_id = "v1" + secret_string = "this is secret string" +} +``` + +Binary credential information, encoded using base64 + +```hcl +resource "tencentcloud_ssm_secret_version" "v2" { + secret_name = tencentcloud_ssm_secret.example.secret_name + version_id = "v2" + secret_binary = "MTIzMTIzMTIzMTIzMTIzQQ==" +} +``` + +Import + +SSM secret version can be imported using the secretName#versionId, e.g. +``` +$ terraform import tencentcloud_ssm_secret_version.v1 test#v1 +``` \ No newline at end of file diff --git a/tencentcloud/ssm/resource_tc_ssm_ssh_key_pair_secret.md b/tencentcloud/ssm/resource_tc_ssm_ssh_key_pair_secret.md new file mode 100644 index 0000000000..df83d9a212 --- /dev/null +++ b/tencentcloud/ssm/resource_tc_ssm_ssh_key_pair_secret.md @@ -0,0 +1,38 @@ +Provides a resource to create a ssm ssh key pair secret + +Example Usage + +```hcl +resource "tencentcloud_kms_key" "example" { + alias = "tf-example-kms-key" + description = "example of kms key" + key_rotation_enabled = false + is_enabled = true + + tags = { + createdBy = "terraform" + } +} + +resource "tencentcloud_ssm_ssh_key_pair_secret" "example" { + secret_name = "tf-example" + project_id = 0 + description = "desc." + kms_key_id = tencentcloud_kms_key.example.id + ssh_key_name = "tf_example_ssh" + status = "Enabled" + clean_ssh_key = true + + tags = { + createdBy = "terraform" + } +} +``` + +Import + +ssm ssh_key_pair_secret can be imported using the id, e.g. + +``` +terraform import tencentcloud_ssm_ssh_key_pair_secret.ssh_key_pair_secret ssh_key_pair_secret_name +``` \ No newline at end of file diff --git a/tencentcloud/sts/data_source_tc_sts_caller_identity.md b/tencentcloud/sts/data_source_tc_sts_caller_identity.md new file mode 100644 index 0000000000..8f7291b549 --- /dev/null +++ b/tencentcloud/sts/data_source_tc_sts_caller_identity.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of sts callerIdentity + +Example Usage + +```hcl +data "tencentcloud_sts_caller_identity" "callerIdentity" { +} +``` \ No newline at end of file diff --git a/tencentcloud/tag/resource_tc_tag.md b/tencentcloud/tag/resource_tc_tag.md new file mode 100644 index 0000000000..c8489687e8 --- /dev/null +++ b/tencentcloud/tag/resource_tc_tag.md @@ -0,0 +1,20 @@ +Provides a resource to create a tag + +Example Usage + +```hcl + +resource "tencentcloud_tag" "tag" { + tag_key = "test" + tag_value = "Terraform" +} + +``` + +Import + +tag tag can be imported using the id, e.g. + +``` +terraform import tencentcloud_tag.tag tag_id +``` \ No newline at end of file diff --git a/tencentcloud/tag/resource_tc_tag_attachment.md b/tencentcloud/tag/resource_tc_tag_attachment.md new file mode 100644 index 0000000000..29bfdc6a17 --- /dev/null +++ b/tencentcloud/tag/resource_tc_tag_attachment.md @@ -0,0 +1,21 @@ +Provides a resource to create a tag attachment + +Example Usage + +```hcl + +resource "tencentcloud_tag_attachment" "attachment" { + tag_key = "test3" + tag_value = "Terraform3" + resource = "qcs::cvm:ap-guangzhou:uin/100020512675:instance/ins-kfrlvcp4" +} + +``` + +Import + +tag attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_tag_attachment.attachment attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/tat/data_source_tc_tat_agent.md b/tencentcloud/tat/data_source_tc_tat_agent.md new file mode 100644 index 0000000000..67e5ec96da --- /dev/null +++ b/tencentcloud/tat/data_source_tc_tat_agent.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tat agent + +Example Usage + +```hcl +data "tencentcloud_tat_agent" "agent" { + # instance_ids = ["ins-f9jr4bd2"] + filters { + name = "environment" + values = ["Linux"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tat/data_source_tc_tat_command.md b/tencentcloud/tat/data_source_tc_tat_command.md new file mode 100644 index 0000000000..18020b0b3a --- /dev/null +++ b/tencentcloud/tat/data_source_tc_tat_command.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tat command + +Example Usage + +```hcl +data "tencentcloud_tat_command" "command" { + # command_id = "" + # command_name = "" + command_type = "SHELL" + created_by = "TAT" +} +``` \ No newline at end of file diff --git a/tencentcloud/tat/data_source_tc_tat_invocation_task.md b/tencentcloud/tat/data_source_tc_tat_invocation_task.md new file mode 100644 index 0000000000..39756facf2 --- /dev/null +++ b/tencentcloud/tat/data_source_tc_tat_invocation_task.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tat invocation_task + +Example Usage + +```hcl +data "tencentcloud_tat_invocation_task" "invocation_task" { + # invocation_task_ids = ["invt-a8bv0ip7"] + filters { + name = "instance-id" + values = ["ins-p4pq4gaq"] + } + hide_output = true +} +``` \ No newline at end of file diff --git a/tencentcloud/tat/data_source_tc_tat_invoker.md b/tencentcloud/tat/data_source_tc_tat_invoker.md new file mode 100644 index 0000000000..b64a9e2e68 --- /dev/null +++ b/tencentcloud/tat/data_source_tc_tat_invoker.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of tat invoker + +Example Usage + +```hcl +data "tencentcloud_tat_invoker" "invoker" { + # invoker_id = "" + # command_id = "" + # type = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/tat/data_source_tc_tat_invoker_records.md b/tencentcloud/tat/data_source_tc_tat_invoker_records.md new file mode 100644 index 0000000000..d85f47f79c --- /dev/null +++ b/tencentcloud/tat/data_source_tc_tat_invoker_records.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tat invoker_records + +Example Usage + +```hcl +data "tencentcloud_tat_invoker_records" "invoker_records" { + invoker_ids = ["ivk-cas4upyf"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tat/resource_tc_tat_command.md b/tencentcloud/tat/resource_tc_tat_command.md new file mode 100644 index 0000000000..71f13f317a --- /dev/null +++ b/tencentcloud/tat/resource_tc_tat_command.md @@ -0,0 +1,26 @@ +Provides a resource to create a tat command + +Example Usage + +```hcl +resource "tencentcloud_tat_command" "command" { + username = "root" + command_name = "ls" + content = "bHM=" + description = "xxx" + command_type = "SHELL" + working_directory = "/root" + timeout = 50 + tags { + key = "" + value = "" + } +} + +``` +Import + +tat command can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tat_command.command cmd-6fydo27j +``` \ No newline at end of file diff --git a/tencentcloud/tat/resource_tc_tat_invocation_command_attachment.md b/tencentcloud/tat/resource_tc_tat_invocation_command_attachment.md new file mode 100644 index 0000000000..ee861002e2 --- /dev/null +++ b/tencentcloud/tat/resource_tc_tat_invocation_command_attachment.md @@ -0,0 +1,22 @@ +Provides a resource to create a tat invocation_command_attachment + +Example Usage + +```hcl +resource "tencentcloud_tat_invocation_command_attachment" "invocation_command_attachment" { + content = base64encode("pwd") + instance_id = "ins-881b1c8w" + command_name = "terraform-test" + description = "shell test" + command_type = "SHELL" + working_directory = "/root" + timeout = 100 + save_command = false + enable_parameter = false + # default_parameters = "{\"varA\": \"222\"}" + # parameters = "{\"varA\": \"222\"}" + username = "root" + output_cos_bucket_url = "https://BucketName-123454321.cos.ap-beijing.myqcloud.com" + output_cos_key_prefix = "log" +} +``` \ No newline at end of file diff --git a/tencentcloud/tat/resource_tc_tat_invocation_invoke_attachment.md b/tencentcloud/tat/resource_tc_tat_invocation_invoke_attachment.md new file mode 100644 index 0000000000..aef3fd444a --- /dev/null +++ b/tencentcloud/tat/resource_tc_tat_invocation_invoke_attachment.md @@ -0,0 +1,24 @@ +Provides a resource to create a tat invocation_invoke_attachment + +Example Usage + +```hcl +resource "tencentcloud_tat_invocation_invoke_attachment" "invocation_invoke_attachment" { + instance_id = "ins-881b1c8w" + working_directory = "/root" + timeout = 100 + # parameters = "{\"varA\": \"222\"}" + username = "root" + output_cos_bucket_url = "https://BucketName-123454321.cos.ap-beijing.myqcloud.com" + output_cos_key_prefix = "log" + command_id = "cmd-rxbs7f5z" +} +``` + +Import + +tat invocation can be imported using the invocation_id#instance_id, e.g. + +``` +terraform import tencentcloud_tat_invocation_invoke_attachment.invocation_invoke_attachment inv-mhs6ca8z#ins-881b1c8w +``` \ No newline at end of file diff --git a/tencentcloud/tat/resource_tc_tat_invoker.md b/tencentcloud/tat/resource_tc_tat_invoker.md new file mode 100644 index 0000000000..ca87aa4b13 --- /dev/null +++ b/tencentcloud/tat/resource_tc_tat_invoker.md @@ -0,0 +1,26 @@ +Provides a resource to create a tat invoker + +Example Usage + +```hcl +resource "tencentcloud_tat_invoker" "invoker" { + name = "pwd-1" + type = "SCHEDULE" + command_id = "cmd-6fydo27j" + instance_ids = ["ins-3c7q2ebs",] + username = "root" + # parameters = "" + schedule_settings { + policy = "ONCE" + # recurrence = "" + invoke_time = "2099-11-17T16:00:00Z" + } +} + +``` +Import + +tat invoker can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tat_invoker.invoker ivk-gwb4ztk5 +``` \ No newline at end of file diff --git a/tencentcloud/tat/resource_tc_tat_invoker_config.md b/tencentcloud/tat/resource_tc_tat_invoker_config.md new file mode 100644 index 0000000000..7e64dec788 --- /dev/null +++ b/tencentcloud/tat/resource_tc_tat_invoker_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a tat invoker_config + +Example Usage + +```hcl +resource "tencentcloud_tat_invoker_config" "invoker_config" { + invoker_id = "ivk-cas4upyf" + invoker_status = "on" +} +``` + +Import + +tat invoker_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_tat_invoker_config.invoker_config invoker_config_id +``` \ No newline at end of file diff --git a/tencentcloud/tcaplusdb/data_source_tc_tcaplus_clusters.md b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_clusters.md new file mode 100644 index 0000000000..26a2d4f19f --- /dev/null +++ b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_clusters.md @@ -0,0 +1,16 @@ +Use this data source to query TcaplusDB clusters. + +Example Usage + +```hcl +data "tencentcloud_tcaplus_clusters" "name" { + cluster_name = "cluster" +} +data "tencentcloud_tcaplus_clusters" "id" { + cluster_id = tencentcloud_tcaplus_cluster.test.id +} +data "tencentcloud_tcaplus_clusters" "idname" { + cluster_id = tencentcloud_tcaplus_cluster.test.id + cluster_name = "cluster" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcaplusdb/data_source_tc_tcaplus_idls.md b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_idls.md new file mode 100644 index 0000000000..d989c4fcc0 --- /dev/null +++ b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_idls.md @@ -0,0 +1,9 @@ +Use this data source to query IDL information of the TcaplusDB table. + +Example Usage + +```hcl +data "tencentcloud_tcaplus_idls" "id_test" { + cluster_id = "19162256624" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcaplusdb/data_source_tc_tcaplus_tablegroups.md b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_tablegroups.md new file mode 100644 index 0000000000..d5bf93df04 --- /dev/null +++ b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_tablegroups.md @@ -0,0 +1,22 @@ +Use this data source to query table groups of the TcaplusDB cluster. + +Example Usage + +```hcl +data "tencentcloud_tcaplus_tablegroups" "null" { + cluster_id = "19162256624" +} +data "tencentcloud_tcaplus_tablegroups" "id" { + cluster_id = "19162256624" + tablegroup_id = "19162256624:1" +} +data "tencentcloud_tcaplus_tablegroups" "name" { + cluster_id = "19162256624" + tablegroup_name = "test" +} +data "tencentcloud_tcaplus_tablegroups" "all" { + cluster_id = "19162256624" + tablegroup_id = "19162256624:1" + tablegroup_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcaplusdb/data_source_tc_tcaplus_tables.md b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_tables.md new file mode 100644 index 0000000000..303c3186c1 --- /dev/null +++ b/tencentcloud/tcaplusdb/data_source_tc_tcaplus_tables.md @@ -0,0 +1,31 @@ +Use this data source to query TcaplusDB tables. + +Example Usage + +```hcl +data "tencentcloud_tcaplus_tables" "null" { + cluster_id = "19162256624" +} + +data "tencentcloud_tcaplus_tables" "tablegroup" { + cluster_id = "19162256624" + tablegroup_id = "19162256624:3" +} + +data "tencentcloud_tcaplus_tables" "name" { + cluster_id = "19162256624" + tablegroup_id = "19162256624:3" + table_name = "guagua" +} + +data "tencentcloud_tcaplus_tables" "id" { + cluster_id = "19162256624" + table_id = "tcaplus-faa65eb7" +} +data "tencentcloud_tcaplus_tables" "all" { + cluster_id = "19162256624" + tablegroup_id = "19162256624:3" + table_id = "tcaplus-faa65eb7" + table_name = "guagua" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcaplusdb/resource_tc_tcaplus_cluster.md b/tencentcloud/tcaplusdb/resource_tc_tcaplus_cluster.md new file mode 100644 index 0000000000..1e5244ccdb --- /dev/null +++ b/tencentcloud/tcaplusdb/resource_tc_tcaplus_cluster.md @@ -0,0 +1,40 @@ +Use this resource to create TcaplusDB cluster. + +~> **NOTE:** TcaplusDB now only supports the following regions: `ap-shanghai,ap-hongkong,na-siliconvalley,ap-singapore,ap-seoul,ap-tokyo,eu-frankfurt, and na-ashburn`. + +Example Usage + +Create a new tcaplus cluster instance + +```hcl +locals { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id +} + +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +resource "tencentcloud_tcaplus_cluster" "example" { + idl_type = "PROTO" + cluster_name = "tf_example_tcaplus_cluster" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + password = "your_pw_123111" + old_password_expire_last = 3600 +} +``` + +Import + +tcaplus cluster can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_tcaplus_cluster.example cluster_id +``` \ No newline at end of file diff --git a/tencentcloud/tcaplusdb/resource_tc_tcaplus_idl.md b/tencentcloud/tcaplusdb/resource_tc_tcaplus_idl.md new file mode 100644 index 0000000000..ad2117021d --- /dev/null +++ b/tencentcloud/tcaplusdb/resource_tc_tcaplus_idl.md @@ -0,0 +1,72 @@ +Use this resource to create TcaplusDB IDL file. + +Example Usage + +Create a tcaplus database idl file + +The file will be with a specified cluster and tablegroup. + +```hcl +locals { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id +} + +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +resource "tencentcloud_tcaplus_cluster" "example" { + idl_type = "PROTO" + cluster_name = "tf_example_tcaplus_cluster" + vpc_id = local.vpc_id + subnet_id = local.subnet_id + password = "your_pw_123111" + old_password_expire_last = 3600 +} + +resource "tencentcloud_tcaplus_tablegroup" "example" { + cluster_id = tencentcloud_tcaplus_cluster.example.id + tablegroup_name = "tf_example_group_name" +} + +resource "tencentcloud_tcaplus_idl" "main" { + cluster_id = tencentcloud_tcaplus_cluster.example.id + tablegroup_id = tencentcloud_tcaplus_tablegroup.example.id + file_name = "tf_example_tcaplus_idl" + file_type = "PROTO" + file_ext_type = "proto" + file_content = < **NOTE:** Instructions for use: 1. Use Tencent Cloud Prometheus to monitor TMP, please enter `vpc_id`, `subnet_id`, `region` or `instance_id`, it is recommended to use an existing tmp instance; 2. To use the third-party Prometheus service, please enter `custom_prom`; 3. `tencentcloud_tcm_prometheus_attachment` does not support modification; 4. If you use Tencent Cloud Prometheus to monitor TMP, enter `vpc_id`, `subnet_id`, `region` to create a new Prometheus monitoring instance, destroy will not destroy the Prometheus monitoring instance +~> **NOTE:** If you use the config attribute prometheus in tencentcloud_tcm_mesh, do not use tencentcloud_tcm_prometheus_attachment + +Example Usage + +```hcl +resource "tencentcloud_tcm_prometheus_attachment" "prometheus_attachment" { + mesh_id = "mesh-rofjmxxx" + prometheus { + vpc_id = "vpc-pewdpxxx" + subnet_id = "subnet-driddxxx" + region = "ap-guangzhou" + instance_id = "" + # custom_prom { + # is_public_addr = false + # vpc_id = "vpc-pewdpxxx" + # url = "http://10.0.0.1:9090" + # auth_type = "basic" + # username = "test" + # password = "test" + # } + } +} + +``` +Import + +tcm prometheus_attachment can be imported using the mesh_id, e.g. +``` +$ terraform import tencentcloud_tcm_prometheus_attachment.prometheus_attachment mesh-rofjmxxx +``` \ No newline at end of file diff --git a/tencentcloud/tcm/resource_tc_tcm_tracing_config.md b/tencentcloud/tcm/resource_tc_tcm_tracing_config.md new file mode 100644 index 0000000000..81adeb67e4 --- /dev/null +++ b/tencentcloud/tcm/resource_tc_tcm_tracing_config.md @@ -0,0 +1,42 @@ +Provides a resource to create a tcm tracing_config + +~> **NOTE:** If you use the config attribute tracing in tencentcloud_tcm_mesh, do not use tencentcloud_tcm_tracing_config + +Example Usage + +```hcl +resource "tencentcloud_tcm_tracing_config" "tracing_config" { + mesh_id = "mesh-xxxxxxxx" + enable = true + apm { + enable = true + region = "ap-guangzhou" + instance_id = "apm-xxx" + } + sampling = + zipkin { + address = "10.10.10.10:9411" + } +} + +resource "tencentcloud_tcm_tracing_config" "delete_config" { + mesh_id = "mesh-rofjmxxx" + enable = true + apm { + enable = false + # region = "ap-guangzhou" + # instance_id = "apm-xxx" + } + sampling = 0 + zipkin { + address = "" + } +} + +``` +Import + +tcm tracing_config can be imported using the mesh_id, e.g. +``` +$ terraform import tencentcloud_tcm_tracing_config.tracing_config mesh-rofjmxxx +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/data_source_tc_monitor_grafana_plugin_overviews.md b/tencentcloud/tcmg/data_source_tc_monitor_grafana_plugin_overviews.md new file mode 100644 index 0000000000..3cfc3e6a83 --- /dev/null +++ b/tencentcloud/tcmg/data_source_tc_monitor_grafana_plugin_overviews.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of monitor grafana_plugin_overviews + +Example Usage + +```hcl +data "tencentcloud_monitor_grafana_plugin_overviews" "grafana_plugin_overviews" { +} +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_dns_config.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_dns_config.md new file mode 100644 index 0000000000..fb1e875552 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_dns_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a monitor grafana_dns_config + +Example Usage + +```hcl +resource "tencentcloud_monitor_grafana_dns_config" "grafana_dns_config" { + instance_id = "grafana-dp2hnnfa" + name_servers = ["10.1.2.1", "10.1.2.2", "10.1.2.3"] +} +``` + +Import + +monitor grafana_dns_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_grafana_dns_config.grafana_dns_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_env_config.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_env_config.md new file mode 100644 index 0000000000..a88e07057a --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_env_config.md @@ -0,0 +1,21 @@ +Provides a resource to create a monitor grafana_env_config + +Example Usage + +```hcl +resource "tencentcloud_monitor_grafana_env_config" "grafana_env_config" { + instance_id = "grafana-dp2hnnfa" + envs = { + "aaa" = "ccc" + "bbb" = "ccc" + } +} +``` + +Import + +monitor grafana_env_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_grafana_env_config.grafana_env_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_instance.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_instance.md new file mode 100644 index 0000000000..fccb29a03e --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_instance.md @@ -0,0 +1,41 @@ +Provides a resource to create a monitor grafanaInstance + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-6" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "test-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + is_destroy = true + + tags = { + "createdBy" = "test" + } +} + +``` +Import + +monitor grafanaInstance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_monitor_grafana_instance.foo grafanaInstance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_integration.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_integration.md new file mode 100644 index 0000000000..ea4034f91a --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_integration.md @@ -0,0 +1,41 @@ +Provides a resource to create a monitor grafanaIntegration + +Example Usage + +Create a grafan instance and integrate the configuration + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-6" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "test-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + + tags = { + "createdBy" = "test" + } +} + +resource "tencentcloud_monitor_grafana_integration" "grafanaIntegration" { + instance_id = tencentcloud_monitor_grafana_instance.foo.id + kind = "tencentcloud-monitor-app" + content = "{\"kind\":\"tencentcloud-monitor-app\",\"spec\":{\"dataSourceSpec\":{\"authProvider\":{\"__anyOf\":\"使用密钥\",\"useRole\":true,\"secretId\":\"arunma@tencent.com\",\"secretKey\":\"12345678\"},\"name\":\"uint-test\"},\"grafanaSpec\":{\"organizationIds\":[]}}}" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_notification_channel.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_notification_channel.md new file mode 100644 index 0000000000..68ae46ee44 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_notification_channel.md @@ -0,0 +1,71 @@ +Provides a resource to create a monitor grafanaNotificationChannel + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-6" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "test-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + + tags = { + "createdBy" = "test" + } +} + +resource "tencentcloud_monitor_alarm_notice" "foo" { + name = "tf_alarm_notice" + notice_type = "ALL" + notice_language = "zh-CN" + + user_notices { + receiver_type = "USER" + start_time = 0 + end_time = 1 + notice_way = ["SMS","EMAIL"] + user_ids = [10001] + group_ids = [] + phone_order = [10001] + phone_circle_times = 2 + phone_circle_interval = 50 + phone_inner_interval = 60 + need_phone_arrive_notice = 1 + phone_call_type = "CIRCLE" + weekday =[1,2,3,4,5,6,7] + } + + url_notices { + url = "https://www.mytest.com/validate" + end_time = 0 + start_time = 1 + weekday = [1,2,3,4,5,6,7] + } +} + +resource "tencentcloud_monitor_grafana_notification_channel" "grafanaNotificationChannel" { + instance_id = tencentcloud_monitor_grafana_instance.foo.id + channel_name = "tf-channel" + org_id = 1 + receivers = [tencentcloud_monitor_alarm_notice.foo.amp_consumer_id] + extra_org_ids = ["1"] +} + +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_plugin.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_plugin.md new file mode 100644 index 0000000000..09c4d141a2 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_plugin.md @@ -0,0 +1,46 @@ +Provides a resource to create a monitor grafanaPlugin + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-6" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "test-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + + tags = { + "createdBy" = "test" + } +} + +resource "tencentcloud_monitor_grafana_plugin" "grafanaPlugin" { + instance_id = tencentcloud_monitor_grafana_instance.foo.id + plugin_id = "grafana-piechart-panel" + version = "1.6.2" +} + +``` +Import + +monitor grafanaPlugin can be imported using the instance_id#plugin_id, e.g. +``` +$ terraform import tencentcloud_monitor_grafana_plugin.grafanaPlugin grafana-50nj6v00#grafana-piechart-panel +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_account.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_account.md new file mode 100644 index 0000000000..14825a5e77 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_account.md @@ -0,0 +1,50 @@ +Provides a resource to create a monitor grafana ssoAccount + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-6" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "test-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + + tags = { + "createdBy" = "test" + } +} + +resource "tencentcloud_monitor_grafana_sso_account" "ssoAccount" { + instance_id = tencentcloud_monitor_grafana_instance.foo.id + user_id = "111" + notes = "desc12222" + role { + organization = "Main Org." + role = "Admin" + } +} + +``` +Import + +monitor grafana ssoAccount can be imported using the instance_id#user_id, e.g. +``` +$ terraform import tencentcloud_monitor_grafana_sso_account.ssoAccount grafana-50nj6v00#111 +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_cam_config.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_cam_config.md new file mode 100644 index 0000000000..6dd303b883 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_cam_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a monitor grafana_sso_cam_config + +Example Usage + +```hcl +resource "tencentcloud_monitor_grafana_sso_cam_config" "grafana_sso_cam_config" { + instance_id = "grafana-dp2hnnfa" + enable_sso_cam_check = false +} +``` + +Import + +monitor grafana_sso_cam_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_grafana_sso_cam_config.grafana_sso_cam_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_config.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_config.md new file mode 100644 index 0000000000..3e0ffba194 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_sso_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a monitor grafana_sso_config + +Example Usage + +```hcl +resource "tencentcloud_monitor_grafana_sso_config" "grafana_sso_config" { + instance_id = "grafana-dp2hnnfa" + enable_sso = false +} +``` + +Import + +monitor grafana_sso_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_grafana_sso_config.grafana_sso_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_version_upgrade.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_version_upgrade.md new file mode 100644 index 0000000000..cb620e3444 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_version_upgrade.md @@ -0,0 +1,18 @@ +Provides a resource to create a monitor grafana_version_upgrade + +Example Usage + +```hcl +resource "tencentcloud_monitor_grafana_version_upgrade" "grafana_version_upgrade" { + instance_id = "grafana-dp2hnnfa" + alias = "v8.2.7" +} +``` + +Import + +monitor grafana_version_upgrade can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_grafana_version_upgrade.grafana_version_upgrade instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_grafana_whitelist_config.md b/tencentcloud/tcmg/resource_tc_monitor_grafana_whitelist_config.md new file mode 100644 index 0000000000..89a52c0232 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_grafana_whitelist_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a monitor grafana_whitelist_config + +Example Usage + +```hcl +resource "tencentcloud_monitor_grafana_whitelist_config" "grafana_whitelist_config" { + instance_id = "grafana-dp2hnnfa" + whitelist = ["10.1.1.1", "10.1.1.2", "10.1.1.3"] +} +``` + +Import + +monitor grafana_whitelist_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_grafana_whitelist_config.grafana_whitelist_config instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmg/resource_tc_monitor_tmp_grafana_config.md b/tencentcloud/tcmg/resource_tc_monitor_tmp_grafana_config.md new file mode 100644 index 0000000000..8e919336c1 --- /dev/null +++ b/tencentcloud/tcmg/resource_tc_monitor_tmp_grafana_config.md @@ -0,0 +1,55 @@ +Provides a resource to create a monitor tmp_grafana_config + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "tf-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + is_destroy = true + + tags = { + "createdBy" = "test" + } +} + +resource "tencentcloud_monitor_tmp_grafana_config" "foo" { + config = jsonencode( + { + server = { + http_port = 8080 + root_url = "https://cloud-grafana.woa.com/grafana-ffrdnrfa/" + serve_from_sub_path = true + } + } + ) + instance_id = tencentcloud_monitor_grafana_instance.foo.id +} +``` + +Import + +monitor tmp_grafana_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_tmp_grafana_config.tmp_grafana_config tmp_grafana_config_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmq/data_source_tc_tcmq_queue.md b/tencentcloud/tcmq/data_source_tc_tcmq_queue.md new file mode 100644 index 0000000000..73794e695f --- /dev/null +++ b/tencentcloud/tcmq/data_source_tc_tcmq_queue.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tcmq queue + +Example Usage + +```hcl +data "tencentcloud_tcmq_queue" "queue" { + queue_name = "queue_name" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcmq/data_source_tc_tcmq_subscribe.md b/tencentcloud/tcmq/data_source_tc_tcmq_subscribe.md new file mode 100644 index 0000000000..e752e12fb6 --- /dev/null +++ b/tencentcloud/tcmq/data_source_tc_tcmq_subscribe.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tcmq subscribe + +Example Usage + +```hcl +data "tencentcloud_tcmq_subscribe" "subscribe" { + topic_name = "topic_name" + subscription_name = "subscription_name"; +} +``` \ No newline at end of file diff --git a/tencentcloud/tcmq/data_source_tc_tcmq_topic.md b/tencentcloud/tcmq/data_source_tc_tcmq_topic.md new file mode 100644 index 0000000000..aa2911401e --- /dev/null +++ b/tencentcloud/tcmq/data_source_tc_tcmq_topic.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tcmq topic + +Example Usage + +```hcl +data "tencentcloud_tcmq_topic" "topic" { + topic_name = "topic_name" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcmq/resource_tc_tcmq_queue.md b/tencentcloud/tcmq/resource_tc_tcmq_queue.md new file mode 100644 index 0000000000..87ef21e3d3 --- /dev/null +++ b/tencentcloud/tcmq/resource_tc_tcmq_queue.md @@ -0,0 +1,17 @@ +Provides a resource to create a tcmq queue + +Example Usage + +```hcl +resource "tencentcloud_tcmq_queue" "queue" { + queue_name = "queue_name" +} +``` + +Import + +tcmq queue can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcmq_queue.queue queue_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmq/resource_tc_tcmq_subscribe.md b/tencentcloud/tcmq/resource_tc_tcmq_subscribe.md new file mode 100644 index 0000000000..908c84ea30 --- /dev/null +++ b/tencentcloud/tcmq/resource_tc_tcmq_subscribe.md @@ -0,0 +1,20 @@ +Provides a resource to create a tcmq subscribe + +Example Usage + +```hcl +resource "tencentcloud_tcmq_subscribe" "subscribe" { + topic_name = "topic_name" + subscription_name = "subscription_name" + protocol = "http" + endpoint = "http://xxxxxx"; +} +``` + +Import + +tcmq subscribe can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcmq_subscribe.subscribe subscribe_id +``` \ No newline at end of file diff --git a/tencentcloud/tcmq/resource_tc_tcmq_topic.md b/tencentcloud/tcmq/resource_tc_tcmq_topic.md new file mode 100644 index 0000000000..d97d42ddd3 --- /dev/null +++ b/tencentcloud/tcmq/resource_tc_tcmq_topic.md @@ -0,0 +1,17 @@ +Provides a resource to create a tcmq topic + +Example Usage + +```hcl +resource "tencentcloud_tcmq_topic" "topic" { + topic_name = "topic_name" +} +``` + +Import + +tcmq topic can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcmq_topic.topic topic_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/data_source_tc_organization_members.md b/tencentcloud/tco/data_source_tc_organization_members.md new file mode 100644 index 0000000000..1ea860a449 --- /dev/null +++ b/tencentcloud/tco/data_source_tc_organization_members.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of organization members + +Example Usage + +```hcl +data "tencentcloud_organization_members" "members" {} +``` diff --git a/tencentcloud/tco/data_source_tc_organization_org_auth_node.md b/tencentcloud/tco/data_source_tc_organization_org_auth_node.md new file mode 100644 index 0000000000..610f102e8a --- /dev/null +++ b/tencentcloud/tco/data_source_tc_organization_org_auth_node.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of organization org_auth_node + +Example Usage + +```hcl +data "tencentcloud_organization_org_auth_node" "org_auth_node" { + } +``` \ No newline at end of file diff --git a/tencentcloud/tco/data_source_tc_organization_org_financial_by_member.md b/tencentcloud/tco/data_source_tc_organization_org_financial_by_member.md new file mode 100644 index 0000000000..ab921e2611 --- /dev/null +++ b/tencentcloud/tco/data_source_tc_organization_org_financial_by_member.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of organization org_financial_by_member + +Example Usage + +```hcl +data "tencentcloud_organization_org_financial_by_member" "org_financial_by_member" { + month = "2023-05" + end_month = "2023-10" + member_uins = [100015591986,100029796005] + } +``` \ No newline at end of file diff --git a/tencentcloud/tco/data_source_tc_organization_org_financial_by_month.md b/tencentcloud/tco/data_source_tc_organization_org_financial_by_month.md new file mode 100644 index 0000000000..faeeafd7b6 --- /dev/null +++ b/tencentcloud/tco/data_source_tc_organization_org_financial_by_month.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of organization org_financial_by_month + +Example Usage + +```hcl + +data "tencentcloud_organization_org_financial_by_month" "org_financial_by_month" { + end_month = "2023-05" + member_uins = [100026517717] +} +``` \ No newline at end of file diff --git a/tencentcloud/tco/data_source_tc_organization_org_financial_by_product.md b/tencentcloud/tco/data_source_tc_organization_org_financial_by_product.md new file mode 100644 index 0000000000..c75ac900ff --- /dev/null +++ b/tencentcloud/tco/data_source_tc_organization_org_financial_by_product.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of organization org_financial_by_product + +Example Usage + +```hcl + +data "tencentcloud_organization_org_financial_by_product" "org_financial_by_product" { + month = "2023-05" + end_month = "2023-09" + product_codes = ["p_eip"] + } +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_instance.md b/tencentcloud/tco/resource_tc_organization_instance.md new file mode 100644 index 0000000000..61268d7df9 --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_instance.md @@ -0,0 +1,16 @@ +Provides a resource to create a organization organization + +Example Usage + +```hcl +resource "tencentcloud_organization_instance" "organization" { + } +``` + +Import + +organization organization can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_instance.organization organization_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_org_identity.md b/tencentcloud/tco/resource_tc_organization_org_identity.md new file mode 100644 index 0000000000..06b2f30377 --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_org_identity.md @@ -0,0 +1,23 @@ +Provides a resource to create a organization org_identity + +Example Usage + +```hcl +resource "tencentcloud_organization_org_identity" "org_identity" { + identity_alias_name = "example-iac-test" + identity_policy { + policy_id = 1 + policy_name = "AdministratorAccess" + policy_type = 2 + } + description = "iac-test" +} +``` + +Import + +organization org_identity can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_org_identity.org_identity org_identity_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_org_member.md b/tencentcloud/tco/resource_tc_organization_org_member.md new file mode 100644 index 0000000000..ee440d1a63 --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_org_member.md @@ -0,0 +1,25 @@ +Provides a resource to create a organization org_member + +Example Usage + +```hcl +resource "tencentcloud_organization_org_member" "org_member" { + name = "terraform_test" + node_id = 2003721 + permission_ids = [ + 1, + 2, + 3, + 4, + ] + policy_type = "Financial" + remark = "for terraform test" +} + +``` +Import + +organization org_member can be imported using the id, e.g. +``` +$ terraform import tencentcloud_organization_org_member.org_member orgMember_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_org_member_auth_identity_attachment.md b/tencentcloud/tco/resource_tc_organization_org_member_auth_identity_attachment.md new file mode 100644 index 0000000000..e506e74f66 --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_org_member_auth_identity_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a organization org_member_auth_identity + +Example Usage + +```hcl +resource "tencentcloud_organization_org_member_auth_identity_attachment" "org_member_auth_identity" { + member_uin = 100033704327 + identity_ids = [1657] +} +``` + +Import + +organization org_member_auth_identity can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_org_member_auth_identity.org_member_auth_identity org_member_auth_identity_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_org_member_email.md b/tencentcloud/tco/resource_tc_organization_org_member_email.md new file mode 100644 index 0000000000..c16777c78f --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_org_member_email.md @@ -0,0 +1,20 @@ +Provides a resource to create a organization org_member_email + +Example Usage + +```hcl +resource "tencentcloud_organization_org_member_email" "org_member_email" { + member_uin = 100033704327 + email = "iac-example@qq.com" + country_code = "86" + phone = "12345678901" + } +``` + +Import + +organization org_member_email can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_org_member_email.org_member_email org_member_email_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_org_member_policy_attachment.md b/tencentcloud/tco/resource_tc_organization_org_member_policy_attachment.md new file mode 100644 index 0000000000..5d95e3aa3f --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_org_member_policy_attachment.md @@ -0,0 +1,19 @@ +Provides a resource to create a organization org_member_policy_attachment + +Example Usage + +```hcl +resource "tencentcloud_organization_org_member_policy_attachment" "org_member_policy_attachment" { + member_uins = [100033905366,100033905356] + policy_name = "example-iac" + identity_id = 1 +} +``` + +Import + +organization org_member_policy_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_org_member_policy_attachment.org_member_policy_attachment org_member_policy_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_org_node.md b/tencentcloud/tco/resource_tc_organization_org_node.md new file mode 100644 index 0000000000..87fcd4117f --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_org_node.md @@ -0,0 +1,18 @@ +Provides a resource to create a organization org_node + +Example Usage + +```hcl +resource "tencentcloud_organization_org_node" "org_node" { + name = "terraform_test" + parent_node_id = 2003721 + remark = "for terraform test" +} + +``` +Import + +organization org_node can be imported using the id, e.g. +``` +$ terraform import tencentcloud_organization_org_node.org_node orgNode_id +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_policy_sub_account_attachment.md b/tencentcloud/tco/resource_tc_organization_policy_sub_account_attachment.md new file mode 100644 index 0000000000..fb65808762 --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_policy_sub_account_attachment.md @@ -0,0 +1,17 @@ +Provides a resource to create a organization policy_sub_account_attachment + +Example Usage + +```hcl +resource "tencentcloud_organization_policy_sub_account_attachment" "policy_sub_account_attachment" { + member_uin = 100028582828 + org_sub_account_uin = 100028223737 + policy_id = 144256499 +} +``` +Import + +organization policy_sub_account_attachment can be imported using the id, e.g. +``` +$ terraform import tencentcloud_organization_policy_sub_account_attachment.policy_sub_account_attachment policyId#memberUin#orgSubAccountUin +``` \ No newline at end of file diff --git a/tencentcloud/tco/resource_tc_organization_quit_organization_operation.md b/tencentcloud/tco/resource_tc_organization_quit_organization_operation.md new file mode 100644 index 0000000000..1b39759a53 --- /dev/null +++ b/tencentcloud/tco/resource_tc_organization_quit_organization_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a organization quit_organization_operation + +Example Usage + +```hcl +resource "tencentcloud_organization_quit_organization_operation" "quit_organization_operation" { + org_id = 45155 +} +``` + +Import + +organization quit_organization_operation can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_quit_organization_operation.quit_organization_operation quit_organization_operation_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_image_manifests.md b/tencentcloud/tcr/data_source_tc_tcr_image_manifests.md new file mode 100644 index 0000000000..2ac76ec24e --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_image_manifests.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tcr image_manifests + +Example Usage + +```hcl +data "tencentcloud_tcr_image_manifests" "image_manifests" { + registry_id = "%s" + namespace_name = "%s" + repository_name = "%s" + image_version = "v1" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_images.md b/tencentcloud/tcr/data_source_tc_tcr_images.md new file mode 100644 index 0000000000..a297e5971f --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_images.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tcr images + +Example Usage + +```hcl +data "tencentcloud_tcr_images" "images" { + registry_id = "tcr-xxx" + namespace_name = "ns" + repository_name = "repo" + image_version = "v1" + digest = "sha256:xxxxx" + exact_match = false + } +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_instances.md b/tencentcloud/tcr/data_source_tc_tcr_instances.md new file mode 100644 index 0000000000..09ab96df96 --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_instances.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of TCR instances. + +Example Usage + +```hcl +data "tencentcloud_tcr_instances" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_namespaces.md b/tencentcloud/tcr/data_source_tc_tcr_namespaces.md new file mode 100644 index 0000000000..6e80c7ddef --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_namespaces.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of TCR namespaces. + +Example Usage + +```hcl +data "tencentcloud_tcr_namespaces" "name" { + instance_id = "cls-satg5125" + namespace_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_replication_instance_create_tasks.md b/tencentcloud/tcr/data_source_tc_tcr_replication_instance_create_tasks.md new file mode 100644 index 0000000000..adb94fa550 --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_replication_instance_create_tasks.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of tcr replication_instance_create_tasks + +Example Usage + +```hcl +local { + src_registry_id = local.tcr_id + dst_registry_id = tencentcloud_tcr_manage_replication_operation.my_replica.destination_registry_id + dst_region_id = tencentcloud_tcr_manage_replication_operation.my_replica.destination_region_id +} + +data "tencentcloud_tcr_replication_instance_create_tasks" "create_tasks" { + replication_registry_id = local.dst_registry_id + replication_region_id = local.dst_region_id +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_replication_instance_sync_status.md b/tencentcloud/tcr/data_source_tc_tcr_replication_instance_sync_status.md new file mode 100644 index 0000000000..3a29c6b922 --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_replication_instance_sync_status.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tcr replication_instance_sync_status + +Example Usage + +```hcl +data "tencentcloud_tcr_replication_instance_sync_status" "sync_status" { + registry_id = local.src_registry_id + replication_registry_id = local.dst_registry_id + replication_region_id = local.dst_region_id + show_replication_log = false +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_repositories.md b/tencentcloud/tcr/data_source_tc_tcr_repositories.md new file mode 100644 index 0000000000..c03d15004c --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_repositories.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of TCR repositories. + +Example Usage + +```hcl +data "tencentcloud_tcr_repositories" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_tag_retention_execution_tasks.md b/tencentcloud/tcr/data_source_tc_tcr_tag_retention_execution_tasks.md new file mode 100644 index 0000000000..6d3ad146ed --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_tag_retention_execution_tasks.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of tcr tag_retention_execution_tasks + +Example Usage + +```hcl +data "tencentcloud_tcr_tag_retention_execution_tasks" "tasks" { + registry_id = "tcr_ins_id" + retention_id = 1 + execution_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_tag_retention_executions.md b/tencentcloud/tcr/data_source_tc_tcr_tag_retention_executions.md new file mode 100644 index 0000000000..8002705657 --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_tag_retention_executions.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tcr tag_retention_executions + +Example Usage + +```hcl +data "tencentcloud_tcr_tag_retention_executions" "tag_retention_executions" { + registry_id = "tcr_ins_id" + retention_id = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_tokens.md b/tencentcloud/tcr/data_source_tc_tcr_tokens.md new file mode 100644 index 0000000000..d4b76dd94e --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_tokens.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of TCR tokens. + +Example Usage + +```hcl +data "tencentcloud_tcr_tokens" "name" { + instance_id = "cls-satg5125" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_vpc_attachments.md b/tencentcloud/tcr/data_source_tc_tcr_vpc_attachments.md new file mode 100644 index 0000000000..f454190158 --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_vpc_attachments.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of TCR VPC attachment. + +Example Usage + +```hcl +data "tencentcloud_tcr_vpc_attachments" "id" { + instance_id = "cls-satg5125" +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/data_source_tc_tcr_webhook_trigger_logs.md b/tencentcloud/tcr/data_source_tc_tcr_webhook_trigger_logs.md new file mode 100644 index 0000000000..168d47f953 --- /dev/null +++ b/tencentcloud/tcr/data_source_tc_tcr_webhook_trigger_logs.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tencentcloud_tcr_webhook_trigger_logs + +Example Usage + +```hcl +data "tencentcloud_tcr_webhook_trigger_logs" "my_logs" { + registry_id = local.tcr_id + namespace = var.tcr_namespace + trigger_id = var.trigger_id + tags = { + "createdBy" = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_create_image_signature_operation.md b/tencentcloud/tcr/resource_tc_tcr_create_image_signature_operation.md new file mode 100644 index 0000000000..38ef134be6 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_create_image_signature_operation.md @@ -0,0 +1,48 @@ +Provides a resource to operate a tcr image signature. + +Example Usage + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +resource "tencentcloud_tcr_repository" "example" { + instance_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + name = "test" + brief_desc = "111" + description = "111111111111111111111111111111111111" +} + +resource "tencentcloud_tcr_create_image_signature_operation" "example" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + repository_name = tencentcloud_tcr_repository.example.name + image_version = "v1" +} +``` + +Import + +tcr image_signature_operation can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcr_create_image_signature_operation.image_signature_operation image_signature_operation_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_customized_domain.md b/tencentcloud/tcr/resource_tc_tcr_customized_domain.md new file mode 100644 index 0000000000..220ab4e29c --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_customized_domain.md @@ -0,0 +1,32 @@ +Provides a resource to create a tcr customized domain + +Example Usage + +Create a tcr customized domain + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_customized_domain" "example" { + registry_id = tencentcloud_tcr_instance.example.id + domain_name = "www.test.com" + certificate_id = "your_cert_id" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tcr customized_domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcr_customized_domain.customized_domain customized_domain_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_delete_image_operation.md b/tencentcloud/tcr/resource_tc_tcr_delete_image_operation.md new file mode 100644 index 0000000000..bf2dbdef8f --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_delete_image_operation.md @@ -0,0 +1,34 @@ +Provides a resource to delete the specified tcr image. + +Example Usage + +To delete the specified image + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +resource "tencentcloud_tcr_delete_image_operation" "example" { + registry_id = tencentcloud_tcr_instance.example.id + repository_name = "repo" + image_version = "v1" # the image want to delete + namespace_name = tencentcloud_tcr_namespace.example.name +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_immutable_tag_rule.md b/tencentcloud/tcr/resource_tc_tcr_immutable_tag_rule.md new file mode 100644 index 0000000000..c4ad4f86d1 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_immutable_tag_rule.md @@ -0,0 +1,101 @@ +Provides a resource to create a tcr immutable tag rule. + +Example Usage + +Create a immutable tag rule with specified tags and exclude specified repositories + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + delete_bucket = true +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +resource "tencentcloud_tcr_immutable_tag_rule" "example" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + rule { + repository_pattern = "deprecated_repo" # specify exclude repo + tag_pattern = "**" # all tags + repository_decoration = "repoExcludes" + tag_decoration = "matches" + disabled = false + } + tags = { + "createdBy" = "terraform" + } +} +``` + +With specified repositories and exclude specified version tag + +```hcl +resource "tencentcloud_tcr_immutable_tag_rule" "example" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + rule { + repository_pattern = "**" # all repo + tag_pattern = "v1" # exlude v1 tags + repository_decoration = "repoMatches" + tag_decoration = "excludes" + disabled = false + } + tags = { + "createdBy" = "terraform" + } +} +``` + +Disabled the specified rule + +```hcl +resource "tencentcloud_tcr_immutable_tag_rule" "example_rule_A" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + rule { + repository_pattern = "deprecated_repo" # specify exclude repo + tag_pattern = "**" # all tags + repository_decoration = "repoExcludes" + tag_decoration = "matches" + disabled = false + } + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_immutable_tag_rule" "example_rule_B" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + rule { + repository_pattern = "**" # all repo + tag_pattern = "v1" # exlude v1 tags + repository_decoration = "repoMatches" + tag_decoration = "excludes" + disabled = true # disable it + } + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tcr immutable_tag_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcr_immutable_tag_rule.immutable_tag_rule immutable_tag_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_instance.md b/tencentcloud/tcr/resource_tc_tcr_instance.md new file mode 100644 index 0000000000..0a50756a9d --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_instance.md @@ -0,0 +1,78 @@ +Use this resource to create tcr instance. + +Example Usage + +Create a basic tcr instance. + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + + tags = { + "createdBy" = "terraform" + } +} +``` + +Create instance with the public network access whitelist. + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + open_public_operation = true + security_policy { + cidr_block = "10.0.0.1/24" + } + security_policy { + cidr_block = "192.168.1.1" + } +} +``` + +Create instance with Replications. + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + replications { + region_id = var.tcr_region_map["ap-guangzhou"] # 1 + } + replications { + region_id = var.tcr_region_map["ap-singapore"] # 9 + } +} + +variable "tcr_region_map" { + default = { + "ap-guangzhou" = 1 + "ap-shanghai" = 4 + "ap-hongkong" = 5 + "ap-beijing" = 8 + "ap-singapore" = 9 + "na-siliconvalley" = 15 + "ap-chengdu" = 16 + "eu-frankfurt" = 17 + "ap-seoul" = 18 + "ap-chongqing" = 19 + "ap-mumbai" = 21 + "na-ashburn" = 22 + "ap-bangkok" = 23 + "eu-moscow" = 24 + "ap-tokyo" = 25 + "ap-nanjing" = 33 + "ap-taipei" = 39 + "ap-jakarta" = 72 + } +} +``` + +Import + +tcr instance can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_tcr_instance.foo instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_manage_replication_operation.md b/tencentcloud/tcr/resource_tc_tcr_manage_replication_operation.md new file mode 100644 index 0000000000..ee8333889a --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_manage_replication_operation.md @@ -0,0 +1,113 @@ +Provides a resource to start a tcr instance replication operation + +Example Usage + +Sync source tcr instance to target instance + +Synchronize an existing tcr instance to the destination instance. This operation is often used in the cross-multiple region scenario. +Assume you have had two TCR instances before this operation. This example shows how to sync a tcr instance from ap-guangzhou(gz) to ap-shanghai(sh). + +```hcl +# tcr instance on ap-guangzhou +resource "tencentcloud_tcr_instance" "example_gz" { + name = "tf-example-tcr-gz" + instance_type = "premium" + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example_gz" { + instance_id = tencentcloud_tcr_instance.example_gz.id + name = "tf_example_ns_gz" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +# tcr instance on ap-shanghai +resource "tencentcloud_tcr_instance" "example_sh" { + name = "tf-example-tcr-sh" + instance_type = "premium" + delete_bucket = true +} + +resource "tencentcloud_tcr_namespace" "example_sh" { + instance_id = tencentcloud_tcr_instance.example_sh.id + name = "tf_example_ns_sh" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +``` + +```hcl +# Run this on region ap-guangzhou +locals { + src_id = tencentcloud_tcr_instance.example_gz.id + dest_id = tencentcloud_tcr_instance.example_sh.id + src_ns = tencentcloud_tcr_namespace.example_gz.name + dest_ns = tencentcloud_tcr_instance.example_sh.id +} + +variable "tcr_region_map" { + default = { + "ap-guangzhou" = 1 + "ap-shanghai" = 4 + "ap-hongkong" = 5 + "ap-beijing" = 8 + "ap-singapore" = 9 + "na-siliconvalley" = 15 + "ap-chengdu" = 16 + "eu-frankfurt" = 17 + "ap-seoul" = 18 + "ap-chongqing" = 19 + "ap-mumbai" = 21 + "na-ashburn" = 22 + "ap-bangkok" = 23 + "eu-moscow" = 24 + "ap-tokyo" = 25 + "ap-nanjing" = 33 + "ap-taipei" = 39 + "ap-jakarta" = 72 + } +} + +resource "tencentcloud_tcr_manage_replication_operation" "example_sync" { + source_registry_id = local.src_id + destination_registry_id = local.dest_id + rule { + name = "tf_example_sync_gz_to_sh" + dest_namespace = local.dest_ns + override = true + filters { + type = "name" + value = join("/", [local.src_ns, "**"]) + } + filters { + type = "tag" + value = "" + } + filters { + type = "resource" + value = "" + } + } + description = "example for tcr sync operation" + destination_region_id = var.tcr_region_map["ap-shanghai"] # 4 + peer_replication_option { + peer_registry_uin = "" + peer_registry_token = "" + enable_peer_replication = false + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_namespace.md b/tencentcloud/tcr/resource_tc_tcr_namespace.md new file mode 100644 index 0000000000..0373bce6d8 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_namespace.md @@ -0,0 +1,35 @@ +Use this resource to create tcr namespace. + +Example Usage + +Create a tcr namespace instance + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "example" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} +``` + +Import + +tcr namespace can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_tcr_namespace.example tcr_instance_id#namespace_name +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_repository.md b/tencentcloud/tcr/resource_tc_tcr_repository.md new file mode 100644 index 0000000000..521f1aab61 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_repository.md @@ -0,0 +1,41 @@ +Use this resource to create tcr repository. + +Example Usage + +Create a tcr repository instance + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "premium" + delete_bucket = true +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +resource "tencentcloud_tcr_repository" "example" { + instance_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + name = "test" + brief_desc = "111" + description = "111111111111111111111111111111111111" +} +``` + +Import + +tcr repository can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_tcr_repository.foo instance_id#namespace_name#repository_name +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_service_account.md b/tencentcloud/tcr/resource_tc_tcr_service_account.md new file mode 100644 index 0000000000..6175702aed --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_service_account.md @@ -0,0 +1,70 @@ +Provides a resource to create a tcr service account. + +Example Usage + +Create custom account with specified duration days + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr-instance" + instance_type = "basic" + delete_bucket = true + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_test_tcr_namespace" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "tf_example_cve_id" + } +} + +resource "tencentcloud_tcr_service_account" "example" { + registry_id = tencentcloud_tcr_instance.example.id + name = "tf_example_account" + permissions { + resource = tencentcloud_tcr_namespace.example.name + actions = ["tcr:PushRepository", "tcr:PullRepository"] + } + description = "tf example for tcr custom account" + duration = 10 + disable = false + tags = { + "createdBy" = "terraform" + } +} +``` + +With specified expiration time + +```hcl +resource "tencentcloud_tcr_service_account" "example" { + registry_id = tencentcloud_tcr_instance.example.id + name = "tf_example_account" + permissions { + resource = tencentcloud_tcr_namespace.example.name + actions = ["tcr:PushRepository", "tcr:PullRepository"] + } + description = "tf example for tcr custom account" + expires_at = 1676897989000 //time stamp + disable = false + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tcr service_account can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcr_service_account.service_account registry_id#account_name +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_tag_retention_execution_config.md b/tencentcloud/tcr/resource_tc_tcr_tag_retention_execution_config.md new file mode 100644 index 0000000000..d9324a8f35 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_tag_retention_execution_config.md @@ -0,0 +1,43 @@ +Provides a resource to configure a tcr tag retention execution. + +Example Usage + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + delete_bucket = true + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns_retention" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +resource "tencentcloud_tcr_tag_retention_rule" "example" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + retention_rule { + key = "nDaysSinceLastPush" + value = 2 + } + cron_setting = "manual" + disabled = true +} + +resource "tencentcloud_tcr_tag_retention_execution_config" "example" { + registry_id = tencentcloud_tcr_tag_retention_rule.example.registry_id + retention_id = tencentcloud_tcr_tag_retention_rule.example.retention_id + dry_run = false +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_tag_retention_rule.md b/tencentcloud/tcr/resource_tc_tcr_tag_retention_rule.md new file mode 100644 index 0000000000..8baf4debd9 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_tag_retention_rule.md @@ -0,0 +1,39 @@ +Provides a resource to create a tcr tag retention rule. + +Example Usage + +Create a tcr tag retention rule instance + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + delete_bucket = true + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns_retention" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} + +resource "tencentcloud_tcr_tag_retention_rule" "my_rule" { + registry_id = tencentcloud_tcr_instance.example.id + namespace_name = tencentcloud_tcr_namespace.example.name + retention_rule { + key = "nDaysSinceLastPush" + value = 2 + } + cron_setting = "daily" + disabled = true +} +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_token.md b/tencentcloud/tcr/resource_tc_tcr_token.md new file mode 100644 index 0000000000..c85a5ce277 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_token.md @@ -0,0 +1,29 @@ +Use this resource to create tcr long term token. + +Example Usage + +Create a token for tcr instance + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + delete_bucket = true + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_token" "example" { + instance_id = tencentcloud_tcr_instance.example.id + description = "example for the tcr token" +} +``` + +Import + +tcr token can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_tcr_token.example instance_id#token_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_vpc_attachment.md b/tencentcloud/tcr/resource_tc_tcr_vpc_attachment.md new file mode 100644 index 0000000000..7c11c25d90 --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_vpc_attachment.md @@ -0,0 +1,45 @@ +Use this resource to attach tcr instance with the vpc and subnet network. + +Example Usage + +Attach a tcr instance with vpc resource + +```hcl +locals { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id + tcr_id = tencentcloud_tcr_instance.example.id +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +data "tencentcloud_security_groups" "sg" { + name = "default" +} + +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + delete_bucket = true + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tcr_vpc_attachment" "foo" { + instance_id = local.tcr_id + vpc_id = local.vpc_id + subnet_id = local.subnet_id +} +``` + +Import + +tcr vpc attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_tcr_vpc_attachment.foo instance_id#vpc_id#subnet_id +``` \ No newline at end of file diff --git a/tencentcloud/tcr/resource_tc_tcr_webhook_trigger.md b/tencentcloud/tcr/resource_tc_tcr_webhook_trigger.md new file mode 100644 index 0000000000..7c9f72f93e --- /dev/null +++ b/tencentcloud/tcr/resource_tc_tcr_webhook_trigger.md @@ -0,0 +1,69 @@ +Provides a resource to create a tcr webhook trigger + +Example Usage + +Create a tcr webhook trigger instance + +```hcl +resource "tencentcloud_tcr_instance" "example" { + name = "tf-example-tcr" + instance_type = "basic" + delete_bucket = true + + tags ={ + test = "test" + } +} + +resource "tencentcloud_tcr_namespace" "example" { + instance_id = tencentcloud_tcr_instance.example.id + name = "tf_example_ns_retention" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } + } + +data "tencentcloud_tcr_namespaces" "example" { + instance_id = tencentcloud_tcr_namespace.example.instance_id + } + +locals { + ns_id = data.tencentcloud_tcr_namespaces.example.namespace_list.0.id + } + +resource "tencentcloud_tcr_webhook_trigger" "example" { + registry_id = tencentcloud_tcr_instance.example.id + namespace = tencentcloud_tcr_namespace.example.name + trigger { + name = "trigger-example" + targets { + address = "http://example.org/post" + headers { + key = "X-Custom-Header" + values = ["a"] + } + } + event_types = ["pushImage"] + condition = ".*" + enabled = true + description = "example for trigger description" + namespace_id = local.ns_id + + } + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tcr webhook_trigger can be imported using the id, e.g. + +``` +terraform import tencentcloud_tcr_webhook_trigger.example webhook_trigger_id +``` \ No newline at end of file diff --git a/tencentcloud/tdcpg/data_source_tc_tdcpg_clusters.md b/tencentcloud/tdcpg/data_source_tc_tdcpg_clusters.md new file mode 100644 index 0000000000..a438eff0fd --- /dev/null +++ b/tencentcloud/tdcpg/data_source_tc_tdcpg_clusters.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of tdcpg clusters. + +~> **NOTE:** This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. + +Example Usage + +```hcl +data "tencentcloud_tdcpg_clusters" "clusters" { + cluster_id = "" + cluster_name = "" + status = "" + pay_mode = "" + project_id = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/tdcpg/data_source_tc_tdcpg_instances.md b/tencentcloud/tdcpg/data_source_tc_tdcpg_instances.md new file mode 100644 index 0000000000..5acc611346 --- /dev/null +++ b/tencentcloud/tdcpg/data_source_tc_tdcpg_instances.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of tdcpg instances. + +~> **NOTE:** This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. + +Example Usage + +```hcl +data "tencentcloud_tdcpg_instances" "instances" { + cluster_id = "" + instance_id = "" + instance_name = "" + status = "" + instance_type = "" + } +``` \ No newline at end of file diff --git a/tencentcloud/tdcpg/resource_tc_tdcpg_cluster.md b/tencentcloud/tdcpg/resource_tc_tdcpg_cluster.md new file mode 100644 index 0000000000..8ede5fa448 --- /dev/null +++ b/tencentcloud/tdcpg/resource_tc_tdcpg_cluster.md @@ -0,0 +1,29 @@ +Provides a resource to create a tdcpg cluster. + +~> **NOTE:** This resource is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. + +Example Usage + +```hcl +resource "tencentcloud_tdcpg_cluster" "cluster" { + zone = "ap-guangzhou-3" + master_user_password = "" + cpu = 1 + memory = 1 + vpc_id = "vpc_id" + subnet_id = "subnet_id" + pay_mode = "POSTPAID_BY_HOUR" + cluster_name = "cluster_name" + db_version = "10.17" + instance_count = 1 + period = 1 + project_id = 0 +} + +``` +Import + +tdcpg cluster can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tdcpg_cluster.cluster cluster_id +``` \ No newline at end of file diff --git a/tencentcloud/tdcpg/resource_tc_tdcpg_instance.md b/tencentcloud/tdcpg/resource_tc_tdcpg_instance.md new file mode 100644 index 0000000000..7bb211fd7a --- /dev/null +++ b/tencentcloud/tdcpg/resource_tc_tdcpg_instance.md @@ -0,0 +1,29 @@ +Provides a resource to create a tdcpg instance. + +~> **NOTE:** This resource is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud. + +Example Usage + +```hcl +resource "tencentcloud_tdcpg_instance" "instance1" { + cluster_id = "cluster_id" + cpu = 1 + memory = 1 + instance_name = "instance_name" +} + +resource "tencentcloud_tdcpg_instance" "instance2" { + cluster_id = "cluster_id" + cpu = 1 + memory = 2 + instance_name = "instance_name" + operation_timing = "IMMEDIATE" +} + +``` +Import + +tdcpg instance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tdcpg_instance.instance cluster_id#instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_app_config.md b/tencentcloud/tem/resource_tc_tem_app_config.md new file mode 100644 index 0000000000..e844bdfd6d --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_app_config.md @@ -0,0 +1,24 @@ +Provides a resource to create a tem appConfig + +Example Usage + +```hcl +resource "tencentcloud_tem_app_config" "appConfig" { + environment_id = "en-o5edaepv" + name = "demo" + config_data { + key = "key" + value = "value" + } + config_data { + key = "key1" + value = "value1" + } +} +``` +Import + +tem appConfig can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tem_app_config.appConfig environmentId#name +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_application.md b/tencentcloud/tem/resource_tc_tem_application.md new file mode 100644 index 0000000000..cf6adc9e23 --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_application.md @@ -0,0 +1,18 @@ +Provides a resource to create a tem application + +Example Usage + +```hcl +resource "tencentcloud_tem_application" "application" { + application_name = "demo" + description = "demo for test" + coding_language = "JAVA" + use_default_image_service = 0 + repo_type = 2 + repo_name = "qcloud/nginx" + repo_server = "ccr.ccs.tencentyun.com" + tags = { + "created" = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_application_service.md b/tencentcloud/tem/resource_tc_tem_application_service.md new file mode 100644 index 0000000000..97d01b313c --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_application_service.md @@ -0,0 +1,27 @@ +Provides a resource to create a tem application_service + +Example Usage + +```hcl +resource "tencentcloud_tem_application_service" "application_service" { + environment_id = "en-dpxyydl5" + application_id = "app-jrl3346j" + service { + type = "CLUSTER" + service_name = "test0-1" + port_mapping_item_list { + port = 80 + target_port = 80 + protocol = "TCP" + } + } +} +``` + +Import + +tem application_service can be imported using the environmentId#applicationId#serviceName, e.g. + +``` +terraform import tencentcloud_tem_application_service.application_service en-dpxyydl5#app-jrl3346j#test0-1 +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_environment.md b/tencentcloud/tem/resource_tc_tem_environment.md new file mode 100644 index 0000000000..4af7732754 --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_environment.md @@ -0,0 +1,22 @@ +Provides a resource to create a tem environment + +Example Usage + +```hcl +resource "tencentcloud_tem_environment" "environment" { + environment_name = "demo" + description = "demo for test" + vpc = "vpc-2hfyray3" + subnet_ids = ["subnet-rdkj0agk", "subnet-r1c4pn5m", "subnet-02hcj95c"] + tags = { + "created" = "terraform" + } +} + +``` +Import + +tem environment can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tem_environment.environment environment_id +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_gateway.md b/tencentcloud/tem/resource_tc_tem_gateway.md new file mode 100644 index 0000000000..ecf4208f02 --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_gateway.md @@ -0,0 +1,48 @@ +Provides a resource to create a tem gateway + +Example Usage + +```hcl +resource "tencentcloud_tem_gateway" "gateway" { + ingress { + ingress_name = "demo" + environment_id = "en-853mggjm" + address_ip_version = "IPV4" + rewrite_type = "NONE" + mixed = false + rules { + host = "test.com" + protocol = "http" + http { + paths { + path = "/" + backend { + service_name = "demo" + service_port = 80 + } + } + } + } + rules { + host = "hello.com" + protocol = "http" + http { + paths { + path = "/" + backend { + service_name = "hello" + service_port = 36000 + } + } + } + } + } +} + +``` +Import + +tem gateway can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tem_gateway.gateway environmentId#gatewayName +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_log_config.md b/tencentcloud/tem/resource_tc_tem_log_config.md new file mode 100644 index 0000000000..dfe6ca2241 --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_log_config.md @@ -0,0 +1,23 @@ +Provides a resource to create a tem logConfig + +Example Usage + +```hcl +resource "tencentcloud_tem_log_config" "logConfig" { + environment_id = "en-o5edaepv" + application_id = "app-3j29aa2p" + workload_id = resource.tencentcloud_tem_workload.workload.id + name = "terraform" + logset_id = "b5824781-8d5b-4029-a2f7-d03c37f72bdf" + topic_id = "5a85bb6d-8e41-4e04-b7bd-c05e04782f94" + input_type = "container_stdout" + log_type = "minimalist_log" +} + +``` +Import + +tem logConfig can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tem_log_config.logConfig environmentId#applicationId#name +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_scale_rule.md b/tencentcloud/tem/resource_tc_tem_scale_rule.md new file mode 100644 index 0000000000..6926116e7d --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_scale_rule.md @@ -0,0 +1,53 @@ +Provides a resource to create a tem scaleRule + +Example Usage + +```hcl +resource "tencentcloud_tem_scale_rule" "scaleRule" { + environment_id = "en-o5edaepv" + application_id = "app-3j29aa2p" + workload_id = resource.tencentcloud_tem_workload.workload.id + autoscaler { + autoscaler_name = "test3123" + description = "test" + enabled = true + min_replicas = 1 + max_replicas = 4 + cron_horizontal_autoscaler { + name = "test" + period = "* * *" + priority = 1 + enabled = true + schedules { + start_at = "03:00" + target_replicas = 1 + } + } + cron_horizontal_autoscaler { + name = "test123123" + period = "* * *" + priority = 0 + enabled = true + schedules { + start_at = "04:13" + target_replicas = 1 + } + } + horizontal_autoscaler { + metrics = "CPU" + enabled = true + max_replicas = 4 + min_replicas = 1 + threshold = 60 + } + + } +} + +``` +Import + +tem scaleRule can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tem_scale_rule.scaleRule environmentId#applicationId#scaleRuleId +``` \ No newline at end of file diff --git a/tencentcloud/tem/resource_tc_tem_workload.md b/tencentcloud/tem/resource_tc_tem_workload.md new file mode 100644 index 0000000000..e0d73e06a0 --- /dev/null +++ b/tencentcloud/tem/resource_tc_tem_workload.md @@ -0,0 +1,53 @@ +Provides a resource to create a tem workload + +Example Usage + +```hcl +resource "tencentcloud_tem_workload" "workload" { + application_id = "app-j4d3x6kj" + environment_id = "en-85377m6j" + deploy_version = "hello-world" + deploy_mode = "IMAGE" + img_repo = "tem_demo/tem_demo" + repo_server = "ccr.ccs.tencentyun.com" + init_pod_num = 1 + cpu_spec = 1 + memory_spec = 1 + # liveness { + # type = "HttpGet" + # protocol = "HTTP" + # path = "/" + # port = 8080 + # initial_delay_seconds = 0 + # timeout_seconds = 1 + # period_seconds = 10 + + # } + # readiness { + # type = "HttpGet" + # protocol = "HTTP" + # path = "/" + # port = 8000 + # initial_delay_seconds = 0 + # timeout_seconds = 1 + # period_seconds = 10 + + # } + # startup_probe { + # type = "HttpGet" + # protocol = "HTTP" + # path = "/" + # port = 36000 + # initial_delay_seconds = 0 + # timeout_seconds = 1 + # period_seconds = 10 + + # } +} +``` +Import + +tem workload can be imported using the id, e.g. +``` +$ terraform import tencentcloud_tem_workload.workload envirnomentId#applicationId +``` \ No newline at end of file diff --git a/tencentcloud/teo/data_source_tc_teo_rule_engine_settings.md b/tencentcloud/teo/data_source_tc_teo_rule_engine_settings.md new file mode 100644 index 0000000000..2115656a34 --- /dev/null +++ b/tencentcloud/teo/data_source_tc_teo_rule_engine_settings.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of teo ruleEngineSettings + +Example Usage + +```hcl +data "tencentcloud_teo_rule_engine_settings" "ruleEngineSettings" { +} +``` \ No newline at end of file diff --git a/tencentcloud/teo/data_source_tc_teo_zone_available_plans.md b/tencentcloud/teo/data_source_tc_teo_zone_available_plans.md new file mode 100644 index 0000000000..a699628fd0 --- /dev/null +++ b/tencentcloud/teo/data_source_tc_teo_zone_available_plans.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of teo zoneAvailablePlans + +Example Usage + +```hcl +data "tencentcloud_teo_zone_available_plans" "zoneAvailablePlans" { +} +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_acceleration_domain.md b/tencentcloud/teo/resource_tc_teo_acceleration_domain.md new file mode 100644 index 0000000000..1873d40bc6 --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_acceleration_domain.md @@ -0,0 +1,23 @@ +Provides a resource to create a teo acceleration_domain + +Example Usage + +```hcl +resource "tencentcloud_teo_acceleration_domain" "acceleration_domain" { + zone_id = "zone-2o0i41pv2h8c" + domain_name = "aaa.makn.cn" + + origin_info { + origin = "150.109.8.1" + origin_type = "IP_DOMAIN" + } +} +``` + +Import + +teo acceleration_domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_teo_acceleration_domain.acceleration_domain acceleration_domain_id +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_application_proxy_rule.md b/tencentcloud/teo/resource_tc_teo_application_proxy_rule.md new file mode 100644 index 0000000000..5ea2fd9328 --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_application_proxy_rule.md @@ -0,0 +1,29 @@ +Provides a resource to create a teo application_proxy_rule + +Example Usage + +```hcl +resource "tencentcloud_teo_application_proxy_rule" "application_proxy_rule" { + forward_client_ip = "TOA" + origin_type = "custom" + origin_port = "8083" + origin_value = [ + "127.0.0.1", + ] + port = [ + "8083", + ] + proto = "TCP" + proxy_id = "proxy-6972528a-373a-11ed-afca-52540044a456" + session_persist = false + status = "online" + zone_id = "zone-2983wizgxqvm" +} + +``` +Import + +teo application_proxy_rule can be imported using the zoneId#proxyId#ruleId, e.g. +``` +terraform import tencentcloud_teo_application_proxy_rule.application_proxy_rule zone-2983wizgxqvm#proxy-6972528a-373a-11ed-afca-52540044a456#rule-90b13bb4-373a-11ed-8794-525400eddfed +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_certificate_config.md b/tencentcloud/teo/resource_tc_teo_certificate_config.md new file mode 100644 index 0000000000..7674058885 --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_certificate_config.md @@ -0,0 +1,33 @@ +Provides a resource to create a teo certificate + +Example Usage + +```hcl +resource "tencentcloud_teo_certificate_config" "certificate" { + host = "test.tencentcloud-terraform-provider.cn" + mode = "eofreecert" + zone_id = "zone-2o1t24kgy362" +} +``` + +Configure SSL certificate + +```hcl +resource "tencentcloud_teo_certificate_config" "certificate" { + host = "test.tencentcloud-terraform-provider.cn" + mode = "sslcert" + zone_id = "zone-2o1t24kgy362" + + server_cert_info { + cert_id = "8xiUJIJd" + } +} +``` + +Import + +teo certificate can be imported using the id, e.g. + +``` +terraform import tencentcloud_teo_certificate_config.certificate zone_id#host#cert_id +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_origin_group.md b/tencentcloud/teo/resource_tc_teo_origin_group.md new file mode 100644 index 0000000000..6a37df060d --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_origin_group.md @@ -0,0 +1,47 @@ +Provides a resource to create a teo origin_group + +Example Usage + +Self origin group + +```hcl +resource "tencentcloud_teo_origin_group" "origin_group" { + zone_id = "zone-297z8rf93cfw" + configuration_type = "weight" + origin_group_name = "test-group" + origin_type = "self" + origin_records { + area = [] + port = 8080 + private = false + record = "150.109.8.1" + weight = 100 + } +} + +``` + +Cos origin group + +```hcl +resource "tencentcloud_teo_origin_group" "origin_group" { + configuration_type = "weight" + origin_group_name = "test" + origin_type = "cos" + zone_id = "zone-2o3h21ed8bpu" + + origin_records { + area = [] + port = 0 + private = true + record = "test-ruichaolin-1310708577.cos.ap-nanjing.myqcloud.com" + weight = 100 + } +} +``` +Import + +teo origin_group can be imported using the zone_id#originGroup_id, e.g. +```` +terraform import tencentcloud_teo_origin_group.origin_group zone-297z8rf93cfw#origin-4f8a30b2-3720-11ed-b66b-525400dceb86 +```` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_ownership_verify.md b/tencentcloud/teo/resource_tc_teo_ownership_verify.md new file mode 100644 index 0000000000..55da198c7c --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_ownership_verify.md @@ -0,0 +1,9 @@ +Provides a resource to create a teo ownership_verify + +Example Usage + +```hcl +resource "tencentcloud_teo_ownership_verify" "ownership_verify" { + domain = "qq.com" +} +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_rule_engine.md b/tencentcloud/teo/resource_tc_teo_rule_engine.md new file mode 100644 index 0000000000..397bd89da9 --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_rule_engine.md @@ -0,0 +1,130 @@ +Provides a resource to create a teo rule_engine + +Example Usage + +```hcl +resource "tencentcloud_teo_rule_engine" "rule1" { + zone_id = tencentcloud_teo_zone.example.id + rule_name = "test-rule" + status = "disable" + + rules { + actions { + normal_action { + action = "UpstreamUrlRedirect" + parameters { + name = "Type" + values = [ + "Path", + ] + } + parameters { + name = "Action" + values = [ + "addPrefix", + ] + } + parameters { + name = "Value" + values = [ + "/sss", + ] + } + } + } + + or { + and { + operator = "equal" + target = "host" + ignore_case = false + values = [ + "a.tf-teo-t.xyz", + ] + } + and { + operator = "equal" + target = "extension" + ignore_case = false + values = [ + "jpg", + ] + } + } + or { + and { + operator = "equal" + target = "filename" + ignore_case = false + values = [ + "test.txt", + ] + } + } + + sub_rules { + tags = ["png"] + rules { + or { + and { + operator = "notequal" + target = "host" + ignore_case = false + values = [ + "a.tf-teo-t.xyz", + ] + } + and { + operator = "equal" + target = "extension" + ignore_case = false + values = [ + "png", + ] + } + } + or { + and { + operator = "notequal" + target = "filename" + ignore_case = false + values = [ + "test.txt", + ] + } + } + actions { + normal_action { + action = "UpstreamUrlRedirect" + parameters { + name = "Type" + values = [ + "Path", + ] + } + parameters { + name = "Action" + values = [ + "addPrefix", + ] + } + parameters { + name = "Value" + values = [ + "/www", + ] + } + } + } + } + } + } +} + +``` +Import + +teo rule_engine can be imported using the id#rule_id, e.g. +``` +terraform import tencentcloud_teo_rule_engine.rule_engine zone-297z8rf93cfw#rule-ajol584a +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_zone.md b/tencentcloud/teo/resource_tc_teo_zone.md new file mode 100644 index 0000000000..6c0a114e61 --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_zone.md @@ -0,0 +1,24 @@ +Provides a resource to create a teo zone + +Example Usage + +```hcl +resource "tencentcloud_teo_zone" "zone" { + zone_name = "tf-teo.com" + type = "partial" + area = "overseas" + alias_zone_name = "teo-test" + paused = false + plan_id = "edgeone-2kfv1h391n6w" + tags = { + "createdBy" = "terraform" + } +} + +``` +Import + +teo zone can be imported using the id, e.g. +``` +terraform import tencentcloud_teo_zone.zone zone_id +``` \ No newline at end of file diff --git a/tencentcloud/teo/resource_tc_teo_zone_setting.md b/tencentcloud/teo/resource_tc_teo_zone_setting.md new file mode 100644 index 0000000000..84d3264536 --- /dev/null +++ b/tencentcloud/teo/resource_tc_teo_zone_setting.md @@ -0,0 +1,119 @@ +Provides a resource to create a teo zone_setting + +Example Usage + +```hcl +resource "tencentcloud_teo_zone_setting" "zone_setting" { + zone_id = "zone-297z8rf93cfw" + + cache { + + follow_origin { + switch = "on" + } + + no_cache { + switch = "off" + } + } + + cache_key { + full_url_cache = "on" + ignore_case = "off" + + query_string { + action = "includeCustom" + switch = "off" + value = [] + } + } + + cache_prefresh { + percent = 90 + switch = "off" + } + + client_ip_header { + switch = "off" + } + + compression { + algorithms = [ + "brotli", + "gzip", + ] + switch = "on" + } + + force_redirect { + redirect_status_code = 302 + switch = "off" + } + + https { + http2 = "on" + ocsp_stapling = "off" + tls_version = [ + "TLSv1", + "TLSv1.1", + "TLSv1.2", + "TLSv1.3", + ] + + hsts { + include_sub_domains = "off" + max_age = 0 + preload = "off" + switch = "off" + } + } + + ipv6 { + switch = "off" + } + + max_age { + follow_origin = "on" + max_age_time = 0 + } + + offline_cache { + switch = "on" + } + + origin { + backup_origins = [] + origin_pull_protocol = "follow" + origins = [] + } + + post_max_size { + max_size = 524288000 + switch = "on" + } + + quic { + switch = "off" + } + + smart_routing { + switch = "off" + } + + upstream_http2 { + switch = "off" + } + + web_socket { + switch = "off" + timeout = 30 + } +} + +``` +Import + +teo zone_setting can be imported using the zone_id, e.g. +``` +terraform import tencentcloud_teo_zone_setting.zone_setting zone-297z8rf93cfw# +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_container_cluster_instances.md b/tencentcloud/tke/data_source_tc_container_cluster_instances.md new file mode 100644 index 0000000000..5568569898 --- /dev/null +++ b/tencentcloud/tke/data_source_tc_container_cluster_instances.md @@ -0,0 +1,13 @@ +Get all instances of the specific cluster. + +Use this data source to get all instances in a specific cluster. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_clusters. + +Example Usage + +```hcl +data "tencentcloud_container_cluster_instances" "foo_instance" { + cluster_id = "cls-abcdefg" +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_container_clusters.md b/tencentcloud/tke/data_source_tc_container_clusters.md new file mode 100644 index 0000000000..a871a718d4 --- /dev/null +++ b/tencentcloud/tke/data_source_tc_container_clusters.md @@ -0,0 +1,12 @@ +Get container clusters in the current region. + +Use this data source to get container clusters in the current region. By default every clusters in current region will be returned. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_clusters. + +Example Usage + +```hcl +data "tencentcloud_container_clusters" "foo" { +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_available_cluster_versions.md b/tencentcloud/tke/data_source_tc_kubernetes_available_cluster_versions.md new file mode 100644 index 0000000000..3be48b38f6 --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_available_cluster_versions.md @@ -0,0 +1,23 @@ +Use this data source to query detailed information of kubernetes available_cluster_versions + +Example Usage + +```hcl +data "tencentcloud_kubernetes_available_cluster_versions" "query_by_id" { + cluster_id = "xxx" +} + +output "versions_id"{ + description = "Query versions from id." + value = data.tencentcloud_kubernetes_available_cluster_versions.query_by_id.versions +} + +data "tencentcloud_kubernetes_available_cluster_versions" "query_by_ids" { + cluster_ids = ["xxx"] +} + +output "versions_ids"{ + description = "Query versions from ids." + value = data.tencentcloud_kubernetes_available_cluster_versions.query_by_ids.clusters +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_charts.md b/tencentcloud/tke/data_source_tc_kubernetes_charts.md new file mode 100644 index 0000000000..52d88e91de --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_charts.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of kubernetes cluster addons. + +Example Usage + +```hcl +data "tencentcloud_kubernetes_charts" "name" {} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_cluster_authentication_options.md b/tencentcloud/tke/data_source_tc_kubernetes_cluster_authentication_options.md new file mode 100644 index 0000000000..ed7e7846a7 --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_cluster_authentication_options.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of kubernetes cluster_authentication_options + +Example Usage + +```hcl +data "tencentcloud_kubernetes_cluster_authentication_options" "cluster_authentication_options" { + cluster_id = "cls-kzilgv5m" +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_cluster_common_names.md b/tencentcloud/tke/data_source_tc_kubernetes_cluster_common_names.md new file mode 100644 index 0000000000..4b59a14d6b --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_cluster_common_names.md @@ -0,0 +1,10 @@ +Provide a datasource to query cluster CommonNames. + +Example Usage + +```hcl +data "tencentcloud_kubernetes_cluster_common_names" "foo" { + cluster_id = "cls-12345678" + subaccount_uins = ["1234567890", "0987654321"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_cluster_instances.md b/tencentcloud/tke/data_source_tc_kubernetes_cluster_instances.md new file mode 100644 index 0000000000..798446f419 --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_cluster_instances.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of kubernetes cluster_instances + +Example Usage + +```hcl +data "tencentcloud_kubernetes_cluster_instances" "cluster_instances" { + cluster_id = "cls-ely08ic4" + instance_ids = ["ins-kqmx8dm2"] + instance_role = "WORKER" + filters { + name = "nodepool-id" + values = ["np-p4e6whqu"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_cluster_levels.md b/tencentcloud/tke/data_source_tc_kubernetes_cluster_levels.md new file mode 100644 index 0000000000..e31eebc73f --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_cluster_levels.md @@ -0,0 +1,11 @@ +Provide a datasource to query TKE cluster levels. + +Example Usage + +```hcl +data "tencentcloud_kubernetes_cluster_levels" "foo" {} + +output "level5" { + value = data.tencentcloud_kubernetes_cluster_levels.foo.list.0.alias +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/data_source_tc_kubernetes_cluster_node_pools.md b/tencentcloud/tke/data_source_tc_kubernetes_cluster_node_pools.md new file mode 100644 index 0000000000..c4925d080d --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_cluster_node_pools.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of kubernetes cluster_node_pools + +Example Usage + +```hcl +data "tencentcloud_kubernetes_cluster_node_pools" "cluster_node_pools" { + cluster_id = "cls-kzilgv5m" + filters { + name = "NodePoolsName" + values = ["mynodepool_xxxx"] + } + filters { + name = "NodePoolsId" + values = ["np-ngjwhdv4"] + } +} +``` diff --git a/tencentcloud/tke/data_source_tc_kubernetes_clusters.md b/tencentcloud/tke/data_source_tc_kubernetes_clusters.md new file mode 100644 index 0000000000..8dc71a8558 --- /dev/null +++ b/tencentcloud/tke/data_source_tc_kubernetes_clusters.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of kubernetes clusters. + +Example Usage + +```hcl +data "tencentcloud_kubernetes_clusters" "name" { + cluster_name = "terraform" +} + +data "tencentcloud_kubernetes_clusters" "id" { + cluster_id = "cls-godovr32" +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_container_cluster.md b/tencentcloud/tke/resource_tc_container_cluster.md new file mode 100644 index 0000000000..b4079d1818 --- /dev/null +++ b/tencentcloud/tke/resource_tc_container_cluster.md @@ -0,0 +1,35 @@ +Provides a TencentCloud Container Cluster resource. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_cluster. + +Example Usage + +```hcl +resource "tencentcloud_container_cluster" "foo" { + cluster_name = "terraform-acc-test" + cpu = 1 + mem = 1 + os_name = "ubuntu16.04.1 LTSx86_64" + bandwidth = 1 + bandwidth_type = "PayByHour" + require_wan_ip = 1 + subnet_id = "subnet-abcdabc" + is_vpc_gateway = 0 + storage_size = 0 + root_size = 50 + goods_num = 1 + password = "Admin12345678" + vpc_id = "vpc-abcdabc" + cluster_cidr = "10.0.2.0/24" + ignore_cluster_cidr_conflict = 0 + cvm_type = "PayByHour" + cluster_desc = "foofoofoo" + period = 1 + zone_id = 100004 + instance_type = "S2.SMALL1" + mount_target = "" + docker_graph_path = "" + instance_name = "bar-vm" + cluster_version = "1.7.8" +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_container_cluster_instance.md b/tencentcloud/tke/resource_tc_container_cluster_instance.md new file mode 100644 index 0000000000..84fe00f1f5 --- /dev/null +++ b/tencentcloud/tke/resource_tc_container_cluster_instance.md @@ -0,0 +1,27 @@ +Provides a TencentCloud Container Cluster Instance resource. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_kubernetes_scale_worker. + +Example Usage + +```hcl +resource "tencentcloud_container_cluster_instance" "bar_instance" { + cpu = 1 + mem = 1 + bandwidth = 1 + bandwidth_type = "PayByHour" + require_wan_ip = 1 + is_vpc_gateway = 0 + storage_size = 10 + root_size = 50 + password = "Admin12345678" + cvm_type = "PayByMonth" + period = 1 + zone_id = 100004 + instance_type = "CVM.S2" + mount_target = "/data" + docker_graph_path = "" + subnet_id = "subnet-abcdedf" + cluster_id = "cls-abcdef" +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_addon_attachment.md b/tencentcloud/tke/resource_tc_kubernetes_addon_attachment.md new file mode 100644 index 0000000000..2e8cf74754 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_addon_attachment.md @@ -0,0 +1,126 @@ +Provide a resource to configure kubernetes cluster app addons. + +~> **NOTE**: Avoid to using legacy "1.0.0" version, leave the versions empty so we can fetch the latest while creating. + +Example Usage + +Install cbs addon by passing values + +```hcl + +resource "tencentcloud_kubernetes_addon_attachment" "addon_cbs" { + cluster_id = "cls-xxxxxxxx" + name = "cbs" + # version = "1.0.5" + values = [ + "rootdir=/var/lib/kubelet" + ] +} +``` + +Install tcr addon by passing values + +```hcl +resource "tencentcloud_kubernetes_addon_attachment" "addon_tcr" { + cluster_id = "cls-xxxxxxxx" #specify your tke cluster id + name = "tcr" + version = "1.0.0" + values = [ + # imagePullSecretsCrs is an array which can configure image pull + "global.imagePullSecretsCrs[0].name=${local.tcr_id}-vpc", #specify a unique name, invalid format as: `${tcrId}-vpc` + "global.imagePullSecretsCrs[0].namespaces=${local.ns_name}", #input the specified namespaces of the cluster, or input `*` for all. + "global.imagePullSecretsCrs[0].serviceAccounts=*", #input the specified service account of the cluster, or input `*` for all. + "global.imagePullSecretsCrs[0].type=docker", #only support docker now + "global.imagePullSecretsCrs[0].dockerUsername=${local.user_name}", #input the access username, or you can create it from `tencentcloud_tcr_token` + "global.imagePullSecretsCrs[0].dockerPassword=${local.token}", #input the access token, or you can create it from `tencentcloud_tcr_token` + "global.imagePullSecretsCrs[0].dockerServer=${local.tcr_name}-vpc.tencentcloudcr.com", #invalid format as: `${tcr_name}-vpc.tencentcloudcr.com` + "global.imagePullSecretsCrs[1].name=${local.tcr_id}-public", #specify a unique name, invalid format as: `${tcr_id}-public` + "global.imagePullSecretsCrs[1].namespaces=${local.ns_name}", + "global.imagePullSecretsCrs[1].serviceAccounts=*", + "global.imagePullSecretsCrs[1].type=docker", + "global.imagePullSecretsCrs[1].dockerUsername=${local.user_name}", #refer to previous description + "global.imagePullSecretsCrs[1].dockerPassword=${local.token}", #refer to previous description + "global.imagePullSecretsCrs[1].dockerServer=${local.tcr_name}.tencentcloudcr.com", #invalid format as: `${tcr_name}.tencentcloudcr.com` + "global.cluster.region=gz", + "global.cluster.longregion=ap-guangzhou", + # Specify global hosts(optional), the numbers of hosts must be matched with the numbers of imagePullSecretsCrs + "global.hosts[0].domain=${local.tcr_name}-vpc.tencentcloudcr.com", #Corresponds to the dockerServer in the imagePullSecretsCrs above + "global.hosts[0].ip=${local.end_point}", #input InternalEndpoint of tcr instance, you can get it from data source `tencentcloud_tcr_instances` + "global.hosts[0].disabled=false", #disabled this host config or not + "global.hosts[1].domain=${local.tcr_name}.tencentcloudcr.com", + "global.hosts[1].ip=${local.end_point}", + "global.hosts[1].disabled=false", + ] +} + +locals { + tcr_id = tencentcloud_tcr_instance.mytcr.id + tcr_name = tencentcloud_tcr_instance.mytcr.name + ns_name = tencentcloud_tcr_namespace.my_ns.name + user_name = tencentcloud_tcr_token.my_token.user_name + token = tencentcloud_tcr_token.my_token.token + end_point = data.tencentcloud_tcr_instances.my_ins.instance_list.0.internal_end_point +} + +resource "tencentcloud_tcr_token" "my_token" { + instance_id = local.tcr_id + description = "tcr token" +} + +data "tencentcloud_tcr_instances" "my_ins" { + instance_id = local.tcr_id +} + +resource "tencentcloud_tcr_instance" "mytcr" { + name = "tf-test-tcr-addon" + instance_type = "basic" + delete_bucket = true + + tags = { + test = "test" + } +} + +resource "tencentcloud_tcr_namespace" "my_ns" { + instance_id = local.tcr_id + name = "tf_test_tcr_ns_addon" + is_public = true + is_auto_scan = true + is_prevent_vul = true + severity = "medium" + cve_whitelist_items { + cve_id = "cve-xxxxx" + } +} +``` + +Install new addon by passing spec json to req_body directly + +```hcl +resource "tencentcloud_kubernetes_addon_attachment" "addon_cbs" { + cluster_id = "cls-xxxxxxxx" + request_body = < **NOTE:** Only available for cluster version >= 1.20 + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "cluster_cidr" { + default = "172.16.0.0/16" +} + +variable "default_instance_type" { + default = "S1.SMALL1" +} + +data "tencentcloud_images" "default" { + image_type = ["PUBLIC_IMAGE"] + os_name = "centos" +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +resource "tencentcloud_kubernetes_cluster" "managed_cluster" { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + cluster_cidr = "10.31.0.0/16" + cluster_max_pod_num = 32 + cluster_name = "keep" + cluster_desc = "test cluster desc" + cluster_version = "1.20.6" + cluster_max_service_num = 32 + + worker_config { + count = 1 + availability_zone = var.availability_zone + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + password = "ZZXXccvv1212" + } + + cluster_deploy_type = "MANAGED_CLUSTER" +} + +resource "tencentcloud_kubernetes_auth_attachment" "test_auth_attach" { + cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id + jwks_uri = "https://${tencentcloud_kubernetes_cluster.managed_cluster.id}.ccs.tencent-cloud.com/openid/v1/jwks" + issuer = "https://${tencentcloud_kubernetes_cluster.managed_cluster.id}.ccs.tencent-cloud.com" + auto_create_discovery_anonymous_auth = true +} +``` + +Use the TKE default issuer and jwks_uri + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "cluster_cidr" { + default = "172.16.0.0/16" +} + +variable "default_instance_type" { + default = "S1.SMALL1" +} + +data "tencentcloud_images" "default" { + image_type = ["PUBLIC_IMAGE"] + os_name = "centos" +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +resource "tencentcloud_kubernetes_cluster" "managed_cluster" { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + cluster_cidr = "10.31.0.0/16" + cluster_max_pod_num = 32 + cluster_name = "keep" + cluster_desc = "test cluster desc" + cluster_version = "1.20.6" + cluster_max_service_num = 32 + + worker_config { + count = 1 + availability_zone = var.availability_zone + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + password = "ZZXXccvv1212" + } + + cluster_deploy_type = "MANAGED_CLUSTER" +} + +# if you want to use tke default issuer and jwks_uri, please set use_tke_default to true and set issuer to empty string. +resource "tencentcloud_kubernetes_auth_attachment" "test_use_tke_default_auth_attach" { + cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id + auto_create_discovery_anonymous_auth = true + use_tke_default = true +} +``` + +Use OIDC Config +``` +resource "tencentcloud_kubernetes_auth_attachment" "test_auth_attach" { + cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id + use_tke_default = true + auto_create_discovery_anonymous_auth = true + auto_create_oidc_config = true + auto_install_pod_identity_webhook_addon = true +} + +data "tencentcloud_cam_oidc_config" "oidc_config" { + name = tencentcloud_kubernetes_cluster.managed_cluster.id + depends_on = [ + tencentcloud_kubernetes_auth_attachment.test_auth_attach + ] +} + +output "identity_key" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key +} + +output "identity_url" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url +} + +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_backup_storage_location.md b/tencentcloud/tke/resource_tc_kubernetes_backup_storage_location.md new file mode 100644 index 0000000000..42cd61d0f1 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_backup_storage_location.md @@ -0,0 +1,22 @@ +Provide a resource to create tke backup storage location. + +~> **NOTE:** To create this resource, you need to create a cos bucket with prefix "tke-backup" in advance. + +Example Usage +``` + + resource "tencentcloud_kubernetes_backup_storage_location" "example_backup" { + name = "example-backup-1" + storage_region = "ap-guangzhou" # region of you pre-created COS bucket + bucket = "tke-backup-example-1" # bucket name of your pre-created COS bucket + } + +``` + +Import + +tke backup storage location can be imported, e.g. + +``` +$ terraform import tencentcloud_kubernetes_backup_storage_location.test xxx +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_cluster.md b/tencentcloud/tke/resource_tc_kubernetes_cluster.md new file mode 100644 index 0000000000..a8a962b37b --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_cluster.md @@ -0,0 +1,780 @@ +Provide a resource to create a kubernetes cluster. + +~> **NOTE:** To use the custom Kubernetes component startup parameter function (parameter `extra_args`), you need to submit a ticket for application. + +~> **NOTE:** We recommend this usage that uses the `tencentcloud_kubernetes_cluster` resource to create a cluster without any `worker_config`, then adds nodes by the `tencentcloud_kubernetes_node_pool` resource. +It's more flexible than managing worker config directly with `tencentcloud_kubernetes_cluster`, `tencentcloud_kubernetes_scale_worker`, or existing node management of `tencentcloud_kubernetes_attachment`. The reason is that `worker_config` is unchangeable and may cause the whole cluster resource to `ForceNew`. + +Example Usage + +Create a basic cluster with two worker nodes + +```hcl +variable "default_instance_type" { + default = "SA2.2XLARGE16" +} + +variable "availability_zone_first" { + default = "ap-guangzhou-3" +} + +variable "availability_zone_second" { + default = "ap-guangzhou-4" +} + +variable "example_cluster_cidr" { + default = "10.31.0.0/16" +} + +locals { + first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id + first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id + second_vpc_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.vpc_id + second_subnet_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.subnet_id + sg_id = tencentcloud_security_group.sg.id + image_id = data.tencentcloud_images.default.image_id +} + +data "tencentcloud_vpc_subnets" "vpc_one" { + is_default = true + availability_zone = var.availability_zone_first +} + +data "tencentcloud_vpc_subnets" "vpc_two" { + is_default = true + availability_zone = var.availability_zone_second +} + +resource "tencentcloud_security_group" "sg" { + name = "tf-example-sg" +} + +resource "tencentcloud_security_group_lite_rule" "sg_rule" { + security_group_id = tencentcloud_security_group.sg.id + + ingress = [ + "ACCEPT#10.0.0.0/16#ALL#ALL", + "ACCEPT#172.16.0.0/22#ALL#ALL", + "DROP#0.0.0.0/0#ALL#ALL", + ] + + egress = [ + "ACCEPT#172.16.0.0/22#ALL#ALL", + ] +} + +data "tencentcloud_images" "default" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +resource "tencentcloud_kubernetes_cluster" "example" { + vpc_id = local.first_vpc_id + cluster_cidr = var.example_cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf_example_cluster" + cluster_desc = "example for tke cluster" + cluster_max_service_num = 32 + cluster_internet = false + cluster_internet_security_group = local.sg_id + cluster_version = "1.22.5" + cluster_deploy_type = "MANAGED_CLUSTER" + + worker_config { + count = 1 + availability_zone = var.availability_zone_first + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = local.first_subnet_id + img_id = local.image_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + # key_ids = ["skey-11112222"] + password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + } + + worker_config { + count = 1 + availability_zone = var.availability_zone_second + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = local.second_subnet_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + key_ids = ["skey-11112222"] + cam_role_name = "CVM_QcsRole" + # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } +} + +``` + +Create an empty cluster with a node pool + +The cluster does not have any nodes, nodes will be added through node pool. + +```hcl +variable "default_instance_type" { + default = "SA2.2XLARGE16" +} + +variable "availability_zone_first" { + default = "ap-guangzhou-3" +} + +variable "availability_zone_second" { + default = "ap-guangzhou-4" +} + +variable "example_cluster_cidr" { + default = "10.31.0.0/16" +} + +locals { + first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id + first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id + sg_id = tencentcloud_security_group.sg.id +} + +data "tencentcloud_vpc_subnets" "vpc_one" { + is_default = true + availability_zone = var.availability_zone_first +} + +data "tencentcloud_vpc_subnets" "vpc_two" { + is_default = true + availability_zone = var.availability_zone_second +} + +resource "tencentcloud_security_group" "sg" { + name = "tf-example-np-sg" +} + +resource "tencentcloud_security_group_lite_rule" "sg_rule" { + security_group_id = tencentcloud_security_group.sg.id + + ingress = [ + "ACCEPT#10.0.0.0/16#ALL#ALL", + "ACCEPT#172.16.0.0/22#ALL#ALL", + "DROP#0.0.0.0/0#ALL#ALL", + ] + + egress = [ + "ACCEPT#172.16.0.0/22#ALL#ALL", + ] +} + +resource "tencentcloud_kubernetes_cluster" "example" { + vpc_id = local.first_vpc_id + cluster_cidr = var.example_cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf_example_cluster_np" + cluster_desc = "example for tke cluster" + cluster_max_service_num = 32 + cluster_version = "1.22.5" + cluster_deploy_type = "MANAGED_CLUSTER" + # without any worker config +} + +resource "tencentcloud_kubernetes_node_pool" "example" { + name = "tf_example_node_pool" + cluster_id = tencentcloud_kubernetes_cluster.example.id + max_size = 6 # set the node scaling range [1,6] + min_size = 1 + vpc_id = local.first_vpc_id + subnet_ids = [local.first_subnet_id] + retry_policy = "INCREMENTAL_INTERVALS" + desired_capacity = 4 + enable_auto_scale = true + multi_zone_subnet_policy = "EQUALITY" + + auto_scaling_config { + instance_type = var.default_instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = "50" + orderly_security_group_ids = [local.sg_id] + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 10 + public_ip_assigned = true + password = "test123#" + enhanced_security_service = false + enhanced_monitor_service = false + host_name = "12.123.0.0" + host_name_style = "ORIGINAL" + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } + + taints { + key = "test_taint" + value = "taint_value" + effect = "PreferNoSchedule" + } + + taints { + key = "test_taint2" + value = "taint_value2" + effect = "PreferNoSchedule" + } + + node_config { + extra_args = [ + "root-dir=/var/lib/kubelet" + ] + } +} + +```` + +Create a cluster with a node pool and open the network access with cluster endpoint + +The cluster's internet and intranet access will be opened after nodes are added through node pool. + +```hcl +variable "default_instance_type" { + default = "SA2.2XLARGE16" +} + +variable "availability_zone_first" { + default = "ap-guangzhou-3" +} + +variable "availability_zone_second" { + default = "ap-guangzhou-4" +} + +variable "example_cluster_cidr" { + default = "10.31.0.0/16" +} + +locals { + first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id + first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id + sg_id = tencentcloud_security_group.sg.id +} + +data "tencentcloud_vpc_subnets" "vpc_one" { + is_default = true + availability_zone = var.availability_zone_first +} + +data "tencentcloud_vpc_subnets" "vpc_two" { + is_default = true + availability_zone = var.availability_zone_second +} + +resource "tencentcloud_security_group" "sg" { + name = "tf-example-np-ep-sg" +} + +resource "tencentcloud_security_group_lite_rule" "sg_rule" { + security_group_id = tencentcloud_security_group.sg.id + + ingress = [ + "ACCEPT#10.0.0.0/16#ALL#ALL", + "ACCEPT#172.16.0.0/22#ALL#ALL", + "DROP#0.0.0.0/0#ALL#ALL", + ] + + egress = [ + "ACCEPT#172.16.0.0/22#ALL#ALL", + ] +} + +resource "tencentcloud_kubernetes_cluster" "example" { + vpc_id = local.first_vpc_id + cluster_cidr = var.example_cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf_example_cluster" + cluster_desc = "example for tke cluster" + cluster_max_service_num = 32 + cluster_internet = false # (can be ignored) open it after the nodes added + cluster_version = "1.22.5" + cluster_deploy_type = "MANAGED_CLUSTER" + # without any worker config +} + +resource "tencentcloud_kubernetes_node_pool" "example" { + name = "tf_example_node_pool" + cluster_id = tencentcloud_kubernetes_cluster.example.id + max_size = 6 # set the node scaling range [1,6] + min_size = 1 + vpc_id = local.first_vpc_id + subnet_ids = [local.first_subnet_id] + retry_policy = "INCREMENTAL_INTERVALS" + desired_capacity = 4 + enable_auto_scale = true + multi_zone_subnet_policy = "EQUALITY" + + auto_scaling_config { + instance_type = var.default_instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = "50" + orderly_security_group_ids = [local.sg_id] + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 10 + public_ip_assigned = true + password = "test123#" + enhanced_security_service = false + enhanced_monitor_service = false + host_name = "12.123.0.0" + host_name_style = "ORIGINAL" + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } + + taints { + key = "test_taint" + value = "taint_value" + effect = "PreferNoSchedule" + } + + taints { + key = "test_taint2" + value = "taint_value2" + effect = "PreferNoSchedule" + } + + node_config { + extra_args = [ + "root-dir=/var/lib/kubelet" + ] + } +} + +resource "tencentcloud_kubernetes_cluster_endpoint" "example" { + cluster_id = tencentcloud_kubernetes_cluster.example.id + cluster_internet = true # open the internet here + cluster_intranet = true + cluster_internet_security_group = local.sg_id + cluster_intranet_subnet_id = local.first_subnet_id + depends_on = [ # wait for the node pool ready + tencentcloud_kubernetes_node_pool.example + ] +} + +```` + +Use Kubelet + +```hcl +# Create a baisc kubernetes cluster with two nodes. +variable "default_instance_type" { + default = "SA2.2XLARGE16" +} + +variable "availability_zone_first" { + default = "ap-guangzhou-3" +} + +variable "availability_zone_second" { + default = "ap-guangzhou-4" +} + +variable "example_cluster_cidr" { + default = "10.31.0.0/16" +} + +locals { + first_vpc_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.vpc_id + first_subnet_id = data.tencentcloud_vpc_subnets.vpc_one.instance_list.0.subnet_id + second_vpc_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.vpc_id + second_subnet_id = data.tencentcloud_vpc_subnets.vpc_two.instance_list.0.subnet_id + sg_id = tencentcloud_security_group.sg.id + image_id = data.tencentcloud_images.default.image_id +} + +data "tencentcloud_vpc_subnets" "vpc_one" { + is_default = true + availability_zone = var.availability_zone_first +} + +data "tencentcloud_vpc_subnets" "vpc_two" { + is_default = true + availability_zone = var.availability_zone_second +} + +resource "tencentcloud_security_group" "sg" { + name = "tf-example-sg" +} + +resource "tencentcloud_security_group_lite_rule" "sg_rule" { + security_group_id = tencentcloud_security_group.sg.id + + ingress = [ + "ACCEPT#10.0.0.0/16#ALL#ALL", + "ACCEPT#172.16.0.0/22#ALL#ALL", + "DROP#0.0.0.0/0#ALL#ALL", + ] + + egress = [ + "ACCEPT#172.16.0.0/22#ALL#ALL", + ] +} + +data "tencentcloud_images" "default" { + image_type = ["PUBLIC_IMAGE"] + image_name_regex = "Final" +} + +resource "tencentcloud_kubernetes_cluster" "example" { + vpc_id = local.first_vpc_id + cluster_cidr = var.example_cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf_example_cluster" + cluster_desc = "example for tke cluster" + cluster_max_service_num = 32 + cluster_internet = false + cluster_internet_security_group = local.sg_id + cluster_version = "1.22.5" + cluster_deploy_type = "MANAGED_CLUSTER" + + worker_config { + count = 1 + availability_zone = var.availability_zone_first + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = local.first_subnet_id + img_id = local.image_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + encrypt = false + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + disaster_recover_group_ids = [] + security_group_ids = [] + key_ids = [] + password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + } + + worker_config { + count = 1 + availability_zone = var.availability_zone_second + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = local.second_subnet_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + disaster_recover_group_ids = [] + security_group_ids = [] + key_ids = [] + cam_role_name = "CVM_QcsRole" + password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } + + extra_args = [ + "root-dir=/var/lib/kubelet" + ] +} +``` + +Use extension addons + +```hcl +variable "availability_zone_first" { + default = "ap-guangzhou-3" +} + +variable "cluster_cidr" { + default = "10.31.0.0/16" +} + +variable "default_instance_type" { + default = "S5.SMALL1" +} + +data "tencentcloud_vpc_subnets" "vpc_first" { + is_default = true + availability_zone = var.availability_zone_first +} + +# fetch latest addon(chart) versions +data "tencentcloud_kubernetes_charts" "charts" {} + +locals { + chartNames = data.tencentcloud_kubernetes_charts.charts.chart_list.*.name + chartVersions = data.tencentcloud_kubernetes_charts.charts.chart_list.*.latest_version + chartMap = zipmap(local.chartNames, local.chartVersions) +} + +resource "tencentcloud_kubernetes_cluster" "cluster_with_addon" { + vpc_id = data.tencentcloud_vpc_subnets.vpc_first.instance_list.0.vpc_id + cluster_cidr = var.cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "test" + cluster_desc = "test cluster desc" + cluster_max_service_num = 32 + cluster_internet = true + # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"] + cluster_deploy_type = "MANAGED_CLUSTER" + + worker_config { + count = 1 + availability_zone = var.availability_zone_first + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = data.tencentcloud_vpc_subnets.vpc_first.instance_list.0.subnet_id + img_id = "img-rkiynh11" + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + key_ids = "skey-11112222" + } + + extension_addon { + name = "COS" + param = jsonencode({ + "kind" : "App", "spec" : { + "chart" : { "chartName" : "cos", "chartVersion" : local.chartMap["cos"] }, + "values" : { "values" : [], "rawValues" : "e30=", "rawValuesType" : "json" } + } + }) + } + extension_addon { + name = "SecurityGroupPolicy" + param = jsonencode({ + "kind" : "App", "spec" : { "chart" : { "chartName" : "securitygrouppolicy", "chartVersion" : local.chartMap["securitygrouppolicy"] } } + }) + } + extension_addon { + name = "OOMGuard" + param = jsonencode({ + "kind" : "App", "spec" : { "chart" : { "chartName" : "oomguard", "chartVersion" : local.chartMap["oomguard"] } } + }) + } + extension_addon { + name = "OLM" + param = jsonencode({ + "kind" : "App", "spec" : { "chart" : { "chartName" : "olm", "chartVersion" : local.chartMap["olm"] } } + }) + } +} +``` + +Use node pool global config + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "vpc" { + default = "vpc-dk8zmwuf" +} + +variable "subnet" { + default = "subnet-pqfek0t8" +} + +variable "default_instance_type" { + default = "SA1.LARGE8" +} + +resource "tencentcloud_kubernetes_cluster" "test_node_pool_global_config" { + vpc_id = var.vpc + cluster_cidr = "10.1.0.0/16" + cluster_max_pod_num = 32 + cluster_name = "test" + cluster_desc = "test cluster desc" + cluster_max_service_num = 32 + cluster_internet = true + # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"] + cluster_deploy_type = "MANAGED_CLUSTER" + + worker_config { + count = 1 + availability_zone = var.availability_zone + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = var.subnet + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + key_ids = "skey-11112222" + } + + node_pool_global_config { + is_scale_in_enabled = true + expander = "random" + ignore_daemon_sets_utilization = true + max_concurrent_scale_in = 5 + scale_in_delay = 15 + scale_in_unneeded_time = 15 + scale_in_utilization_threshold = 30 + skip_nodes_with_local_storage = false + skip_nodes_with_system_pods = true + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } +} +``` + +Using VPC-CNI network type +```hcl +variable "availability_zone" { + default = "ap-guangzhou-1" +} + +variable "vpc" { + default = "vpc-r1m1fyx5" +} + +variable "default_instance_type" { + default = "SA2.SMALL2" +} + +resource "tencentcloud_kubernetes_cluster" "managed_cluster" { + vpc_id = var.vpc + cluster_max_pod_num = 32 + cluster_name = "test" + cluster_desc = "test cluster desc" + cluster_max_service_num = 256 + cluster_internet = true + # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"] + cluster_deploy_type = "MANAGED_CLUSTER" + network_type = "VPC-CNI" + eni_subnet_ids = ["subnet-bk1etlyu"] + service_cidr = "10.1.0.0/24" + + worker_config { + count = 1 + availability_zone = var.availability_zone + instance_type = var.default_instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = "subnet-t5dv27rs" + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + # password = "ZZXXccvv1212" // Optional, should be set if key_ids not set. + key_ids = "skey-11112222" + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } +} +``` + +Using ops options +``` +resource "tencentcloud_kubernetes_cluster" "managed_cluster" { + # ...your basic fields + + log_agent { + enabled = true + kubelet_root_dir = "" # optional + } + + event_persistence { + enabled = true + log_set_id = "" # optional + topic_id = "" # optional + } + + cluster_audit { + enabled = true + log_set_id = "" # optional + topic_id = "" # optional + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_cluster_attachment.md b/tencentcloud/tke/resource_tc_kubernetes_cluster_attachment.md new file mode 100644 index 0000000000..6e852b1b02 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_cluster_attachment.md @@ -0,0 +1,96 @@ +Provide a resource to attach an existing cvm to kubernetes cluster. + +Example Usage + +```hcl + + variable "availability_zone" { + default = "ap-guangzhou-3" + } + + variable "cluster_cidr" { + default = "172.16.0.0/16" + } + + variable "default_instance_type" { + default = "S1.SMALL1" + } + + data "tencentcloud_images" "default" { + image_type = ["PUBLIC_IMAGE"] + os_name = "centos" + } + + data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone + } + + data "tencentcloud_instance_types" "default" { + filter { + name = "instance-family" + values = ["SA2"] + } + + cpu_core_count = 8 + memory_size = 16 + } + + resource "tencentcloud_instance" "foo" { + instance_name = "tf-auto-test-1-1" + availability_zone = var.availability_zone + image_id = data.tencentcloud_images.default.images.0.image_id + instance_type = var.default_instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + } + + resource "tencentcloud_kubernetes_cluster" "managed_cluster" { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + cluster_cidr = "10.1.0.0/16" + cluster_max_pod_num = 32 + cluster_name = "keep" + cluster_desc = "test cluster desc" + cluster_max_service_num = 32 + + worker_config { + count = 1 + availability_zone = var.availability_zone + instance_type = var.default_instance_type + system_disk_type = "CLOUD_SSD" + system_disk_size = 60 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + password = "ZZXXccvv1212" + } + + cluster_deploy_type = "MANAGED_CLUSTER" + } + + resource "tencentcloud_kubernetes_cluster_attachment" "test_attach" { + cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id + instance_id = tencentcloud_instance.foo.id + password = "Lo4wbdit" + + labels = { + "test1" = "test1", + "test2" = "test2", + } + + worker_config_overrides { + desired_pod_num = 8 + } + } + +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_cluster_endpoint.md b/tencentcloud/tke/resource_tc_kubernetes_cluster_endpoint.md new file mode 100644 index 0000000000..68c5b643a1 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_cluster_endpoint.md @@ -0,0 +1,29 @@ +Provide a resource to create a KubernetesClusterEndpoint. This resource allows you to create an empty cluster first without any workers. Only all attached node depends create complete, cluster endpoint will finally be enabled. + +~> **NOTE:** Recommend using `depends_on` to make sure endpoint create after node pools or workers does. + +Example Usage + +```hcl +resource "tencentcloud_kubernetes_node_pool" "pool1" {} + +resource "tencentcloud_kubernetes_cluster_endpoint" "foo" { + cluster_id = "cls-xxxxxxxx" + cluster_internet = true + cluster_intranet = true + # managed_cluster_internet_security_policies = [ + "192.168.0.0/24" + ] + cluster_intranet_subnet_id = "subnet-xxxxxxxx" + depends_on = [ + tencentcloud_kubernetes_node_pool.pool1 + ] +} +``` + +Import + +KubernetesClusterEndpoint instance can be imported by passing cluster id, e.g. +``` +$ terraform import tencentcloud_kubernetes_cluster_endpoint.test cluster-id +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_encryption_protection.md b/tencentcloud/tke/resource_tc_kubernetes_encryption_protection.md new file mode 100644 index 0000000000..68d76566c3 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_encryption_protection.md @@ -0,0 +1,49 @@ +Provides a resource to create a tke encryption_protection + +Example Usage + +Enable tke encryption protection + +```hcl +variable "example_region" { + default = "ap-guangzhou" +} + +variable "example_cluster_cidr" { + default = "10.32.0.0/16" +} + +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +resource "tencentcloud_kubernetes_cluster" "example" { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + cluster_cidr = var.example_cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf_example_cluster" + cluster_desc = "a tf example cluster for the kms test" + cluster_max_service_num = 32 + cluster_deploy_type = "MANAGED_CLUSTER" +} + +resource "tencentcloud_kms_key" "example" { + alias = "tf-example-kms-key" + description = "example of kms key instance" + key_usage = "ENCRYPT_DECRYPT" + is_enabled = true +} + +resource "tencentcloud_kubernetes_encryption_protection" "example" { + cluster_id = tencentcloud_kubernetes_cluster.example.id + kms_configuration { + key_id = tencentcloud_kms_key.example.id + kms_region = var.example_region + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_node_pool.md b/tencentcloud/tke/resource_tc_kubernetes_node_pool.md new file mode 100644 index 0000000000..43a9bdaa95 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_node_pool.md @@ -0,0 +1,144 @@ +Provide a resource to create an auto scaling group for kubernetes cluster. + +~> **NOTE:** We recommend the usage of one cluster with essential worker config + node pool to manage cluster and nodes. Its a more flexible way than manage worker config with tencentcloud_kubernetes_cluster, tencentcloud_kubernetes_scale_worker or exist node management of `tencentcloud_kubernetes_attachment`. Cause some unchangeable parameters of `worker_config` may cause the whole cluster resource `force new`. + +~> **NOTE:** In order to ensure the integrity of customer data, if you destroy nodepool instance, it will keep the cvm instance associate with nodepool by default. If you want to destroy together, please set `delete_keep_instance` to `false`. + +~> **NOTE:** In order to ensure the integrity of customer data, if the cvm instance was destroyed due to shrinking, it will keep the cbs associate with cvm by default. If you want to destroy together, please set `delete_with_instance` to `true`. + +Example Usage + +```hcl + +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "cluster_cidr" { + default = "172.31.0.0/16" +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +variable "default_instance_type" { + default = "S1.SMALL1" +} + +//this is the cluster with empty worker config +resource "tencentcloud_kubernetes_cluster" "managed_cluster" { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + cluster_cidr = var.cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf-tke-unit-test" + cluster_desc = "test cluster desc" + cluster_max_service_num = 32 + cluster_version = "1.18.4" + cluster_deploy_type = "MANAGED_CLUSTER" +} + +//this is one example of managing node using node pool +resource "tencentcloud_kubernetes_node_pool" "mynodepool" { + name = "mynodepool" + cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id + max_size = 6 + min_size = 1 + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + subnet_ids = [data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id] + retry_policy = "INCREMENTAL_INTERVALS" + desired_capacity = 4 + enable_auto_scale = true + multi_zone_subnet_policy = "EQUALITY" + + auto_scaling_config { + instance_type = var.default_instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = "50" + orderly_security_group_ids = ["sg-24vswocp"] + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 10 + public_ip_assigned = true + password = "test123#" + enhanced_security_service = false + enhanced_monitor_service = false + host_name = "12.123.0.0" + host_name_style = "ORIGINAL" + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } + + taints { + key = "test_taint" + value = "taint_value" + effect = "PreferNoSchedule" + } + + taints { + key = "test_taint2" + value = "taint_value2" + effect = "PreferNoSchedule" + } + + node_config { + extra_args = [ + "root-dir=/var/lib/kubelet" + ] + } +} +``` + +Using Spot CVM Instance +```hcl +resource "tencentcloud_kubernetes_node_pool" "mynodepool" { + name = "mynodepool" + cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id + max_size = 6 + min_size = 1 + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + subnet_ids = [data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id] + retry_policy = "INCREMENTAL_INTERVALS" + desired_capacity = 4 + enable_auto_scale = true + multi_zone_subnet_policy = "EQUALITY" + + auto_scaling_config { + instance_type = var.default_instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = "50" + orderly_security_group_ids = ["sg-24vswocp", "sg-3qntci2v", "sg-7y1t2wax"] + instance_charge_type = "SPOTPAID" + spot_instance_type = "one-time" + spot_max_price = "1000" + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 10 + public_ip_assigned = true + password = "test123#" + enhanced_security_service = false + enhanced_monitor_service = false + } + + labels = { + "test1" = "test1", + "test2" = "test2", + } + +} + +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_scale_worker.md b/tencentcloud/tke/resource_tc_kubernetes_scale_worker.md new file mode 100644 index 0000000000..4c74d3c2cd --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_scale_worker.md @@ -0,0 +1,102 @@ +Provide a resource to increase instance to cluster + +~> **NOTE:** To use the custom Kubernetes component startup parameter function (parameter `extra_args`), you need to submit a ticket for application. + +~> **NOTE:** Import Node: Currently, only one node can be imported at a time. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "subnet" { + default = "subnet-pqfek0t8" +} + +variable "scale_instance_type" { + default = "S2.LARGE16" +} + +resource tencentcloud_kubernetes_scale_worker test_scale { + cluster_id = "cls-godovr32" + desired_pod_num = 16 + labels = { + "test1" = "test1", + "test2" = "test2", + } + worker_config { + count = 3 + availability_zone = var.availability_zone + instance_type = var.scale_instance_type + subnet_id = var.subnet + system_disk_type = "CLOUD_SSD" + system_disk_size = 50 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + password = "AABBccdd1122" + } +} +``` + +Use Kubelet + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "subnet" { + default = "subnet-pqfek0t8" +} + +variable "scale_instance_type" { + default = "S2.LARGE16" +} + +resource tencentcloud_kubernetes_scale_worker test_scale { + cluster_id = "cls-godovr32" + + extra_args = [ + "root-dir=/var/lib/kubelet" + ] + + labels = { + "test1" = "test1", + "test2" = "test2", + } + + worker_config { + count = 3 + availability_zone = var.availability_zone + instance_type = var.scale_instance_type + subnet_id = var.subnet + system_disk_type = "CLOUD_SSD" + system_disk_size = 50 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" + internet_max_bandwidth_out = 100 + public_ip_assigned = true + + data_disk { + disk_type = "CLOUD_PREMIUM" + disk_size = 50 + } + + enhanced_security_service = false + enhanced_monitor_service = false + user_data = "dGVzdA==" + password = "AABBccdd1122" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tke/resource_tc_kubernetes_serverless_node_pool.md b/tencentcloud/tke/resource_tc_kubernetes_serverless_node_pool.md new file mode 100644 index 0000000000..196cfd2c95 --- /dev/null +++ b/tencentcloud/tke/resource_tc_kubernetes_serverless_node_pool.md @@ -0,0 +1,109 @@ +Provide a resource to create serverless node pool of cluster. + +Example Usage + +Add serverless node pool to a cluster + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +variable "example_cluster_cidr" { + default = "10.31.0.0/16" +} + +locals { + vpc_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.vpc_id + subnet_id = data.tencentcloud_vpc_subnets.vpc.instance_list.0.subnet_id + sg_id = data.tencentcloud_security_groups.sg.security_groups.0.security_group_id +} + +data "tencentcloud_vpc_subnets" "vpc" { + is_default = true + availability_zone = var.availability_zone +} + +data "tencentcloud_security_groups" "sg" { + name = "default" +} + +resource "tencentcloud_kubernetes_cluster" "example" { + vpc_id = local.vpc_id + cluster_cidr = var.example_cluster_cidr + cluster_max_pod_num = 32 + cluster_name = "tf_example_cluster" + cluster_desc = "tf example cluster" + cluster_max_service_num = 32 + cluster_version = "1.18.4" + cluster_deploy_type = "MANAGED_CLUSTER" +} + +resource "tencentcloud_kubernetes_serverless_node_pool" "example" { + cluster_id = tencentcloud_kubernetes_cluster.example.id + name = "tf_example_serverless_node_pool" + + serverless_nodes { + display_name = "tf_example_serverless_node1" + subnet_id = local.subnet_id + } + + serverless_nodes { + display_name = "tf_example_serverless_node2" + subnet_id = local.subnet_id + } + + security_group_ids = [local.sg_id] + labels = { + "label1" : "value1", + "label2" : "value2", + } +} +``` + +Adding taints to the virtual nodes under this node pool + +The pods without appropriate tolerations will not be scheduled on this node. Refer [taint-and-toleration](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more details. + +```hcl +resource "tencentcloud_kubernetes_serverless_node_pool" "example" { + cluster_id = tencentcloud_kubernetes_cluster.example.id + name = "tf_example_serverless_node_pool" + + serverless_nodes { + display_name = "tf_example_serverless_node1" + subnet_id = local.subnet_id + } + + serverless_nodes { + display_name = "tf_example_serverless_node2" + subnet_id = local.subnet_id + } + + security_group_ids = [local.sg_id] + labels = { + "label1" : "value1", + "label2" : "value2", + } + + taints{ + key = "key1" + value = "value1" + effect = "NoSchedule" + } + + taints{ + key = "key1" + value = "value1" + effect = "NoExecute" + } +} +``` + +Import + +serverless node pool can be imported, e.g. + +``` +$ terraform import tencentcloud_kubernetes_serverless_node_pool.test cls-xxx#np-xxx +``` \ No newline at end of file diff --git a/tencentcloud/tmp/data_source_tc_monitor_tmp_regions.md b/tencentcloud/tmp/data_source_tc_monitor_tmp_regions.md new file mode 100644 index 0000000000..c06318db51 --- /dev/null +++ b/tencentcloud/tmp/data_source_tc_monitor_tmp_regions.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of monitor tmp_regions + +Example Usage + +```hcl +data "tencentcloud_monitor_tmp_regions" "tmp_regions" { + pay_mode = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/tmp/resource_tc_monitor_tmp_alert_rule.md b/tencentcloud/tmp/resource_tc_monitor_tmp_alert_rule.md new file mode 100644 index 0000000000..0558196de7 --- /dev/null +++ b/tencentcloud/tmp/resource_tc_monitor_tmp_alert_rule.md @@ -0,0 +1,68 @@ +Provides a resource to create a monitor tmpAlertRule + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_tmp_instance" "foo" { + instance_name = "tf-tmp-instance" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + data_retention_time = 30 + zone = var.availability_zone + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_monitor_tmp_cvm_agent" "foo" { + instance_id = tencentcloud_monitor_tmp_instance.foo.id + name = "tf-agent" +} + +resource "tencentcloud_monitor_tmp_alert_rule" "foo" { + duration = "2m" + expr = "avg by (instance) (mysql_global_status_threads_connected) / avg by (instance) (mysql_global_variables_max_connections) > 0.8" + instance_id = tencentcloud_monitor_tmp_instance.foo.id + receivers = ["notice-f2svbu3w"] + rule_name = "MySQL 连接数过多" + rule_state = 2 + type = "MySQL/MySQL 连接数过多" + + annotations { + key = "description" + value = "MySQL 连接数过多, 实例: {{$labels.instance}},当前值: {{ $value | humanizePercentage }}。" + } + annotations { + key = "summary" + value = "MySQL 连接数过多(>80%)" + } + + labels { + key = "severity" + value = "warning" + } +} + +``` +Import + +monitor tmpAlertRule can be imported using the id, e.g. +``` +$ terraform import tencentcloud_monitor_tmp_alert_rule.tmpAlertRule instanceId#Rule_id +``` \ No newline at end of file diff --git a/tencentcloud/tmp/resource_tc_monitor_tmp_cvm_agent.md b/tencentcloud/tmp/resource_tc_monitor_tmp_cvm_agent.md new file mode 100644 index 0000000000..69e47c7964 --- /dev/null +++ b/tencentcloud/tmp/resource_tc_monitor_tmp_cvm_agent.md @@ -0,0 +1,44 @@ +Provides a resource to create a monitor tmpCvmAgent + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_tmp_instance" "foo" { + instance_name = "tf-tmp-instance" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + data_retention_time = 30 + zone = var.availability_zone + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_monitor_tmp_cvm_agent" "foo" { + instance_id = tencentcloud_monitor_tmp_instance.foo.id + name = "tf-agent" +} + +``` +Import + +monitor tmpCvmAgent can be imported using the id, e.g. +``` +$ terraform import tencentcloud_monitor_tmp_cvm_agent.tmpCvmAgent instance_id#agent_id +``` \ No newline at end of file diff --git a/tencentcloud/tmp/resource_tc_monitor_tmp_exporter_integration.md b/tencentcloud/tmp/resource_tc_monitor_tmp_exporter_integration.md new file mode 100644 index 0000000000..9fb04b7d16 --- /dev/null +++ b/tencentcloud/tmp/resource_tc_monitor_tmp_exporter_integration.md @@ -0,0 +1,50 @@ +Provides a resource to create a monitor tmpExporterIntegration + +~> **NOTE:** If you only want to upgrade the exporter version with same config, you can set `version` under `instanceSpec` with any value to trigger the change. + +Example Usage + +Use blackbox-exporter + +```hcl +resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration" { + instance_id = "prom-dko9d0nu" + kind = "blackbox-exporter" + content = "{\"name\":\"test\",\"kind\":\"blackbox-exporter\",\"spec\":{\"instanceSpec\":{\"module\":\"http_get\",\"urls\":[\"xx\"]}}}" + kube_type = 1 + cluster_id = "cls-bmuaukfu" +} +``` + +Use es-exporter + +``` +resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationEs" { + instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id + kind = "es-exporter" + content = jsonencode({ + "name": "ex-exporter-example", + "kind": "es-exporter", + "spec": { + "instanceSpec": { + "url": "http://127.0.0.1:9123", + "labels": { + "instance": "es-abcd" + }, + "version": "1.70.1", + "user": "fugiat Duis minim", + "password": "exercitation cillum velit" + }, + "exporterSpec": { + "all": true, + "indicesSettings": false, + "snapshots": false, + "indices": true, + "shards": false + } + } + }) + cluster_id = "" + kube_type = 3 +} +``` \ No newline at end of file diff --git a/tencentcloud/tmp/resource_tc_monitor_tmp_instance.md b/tencentcloud/tmp/resource_tc_monitor_tmp_instance.md new file mode 100644 index 0000000000..1ebe81ba03 --- /dev/null +++ b/tencentcloud/tmp/resource_tc_monitor_tmp_instance.md @@ -0,0 +1,39 @@ +Provides a resource to create a monitor tmpInstance + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_tmp_instance" "foo" { + instance_name = "tf-tmp-instance" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + data_retention_time = 30 + zone = var.availability_zone + tags = { + "createdBy" = "terraform" + } +} + +``` +Import + +monitor tmpInstance can be imported using the id, e.g. +``` +$ terraform import tencentcloud_monitor_tmp_instance.tmpInstance tmpInstance_id +``` \ No newline at end of file diff --git a/tencentcloud/tmp/resource_tc_monitor_tmp_manage_grafana_attachment.md b/tencentcloud/tmp/resource_tc_monitor_tmp_manage_grafana_attachment.md new file mode 100644 index 0000000000..548e07a25b --- /dev/null +++ b/tencentcloud/tmp/resource_tc_monitor_tmp_manage_grafana_attachment.md @@ -0,0 +1,58 @@ +Provides a resource to create a monitor tmp_manage_grafana_attachment + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_tmp_instance" "foo" { + instance_name = "tf-tmp-instance" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + data_retention_time = 30 + zone = var.availability_zone + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_monitor_grafana_instance" "foo" { + instance_name = "tf-grafana" + vpc_id = tencentcloud_vpc.vpc.id + subnet_ids = [tencentcloud_subnet.subnet.id] + grafana_init_password = "1234567890" + enable_internet = false + is_destroy = true + + tags = { + "createdBy" = "test" + } +} + +resource "tencentcloud_monitor_tmp_manage_grafana_attachment" "foo" { + grafana_id = tencentcloud_monitor_grafana_instance.foo.id + instance_id = tencentcloud_monitor_tmp_instance.foo.id +} +``` + +Import + +monitor tmp_manage_grafana_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_monitor_tmp_manage_grafana_attachment.manage_grafana_attachment prom-xxxxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/tmp/resource_tc_monitor_tmp_recording_rule.md b/tencentcloud/tmp/resource_tc_monitor_tmp_recording_rule.md new file mode 100644 index 0000000000..24a8a215de --- /dev/null +++ b/tencentcloud/tmp/resource_tc_monitor_tmp_recording_rule.md @@ -0,0 +1,52 @@ +Provides a resource to create a monitor tmp recordingRule + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_monitor_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_monitor_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_monitor_tmp_instance" "foo" { + instance_name = "tf-tmp-instance" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + data_retention_time = 30 + zone = var.availability_zone + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_monitor_tmp_recording_rule" "recordingRule" { + instance_id = tencentcloud_monitor_tmp_instance.foo.id + rule_state = 2 + name = "tf-recording-rule" + group = < **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.1.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_tdmq_rocketmq_vip_instance" "example" { + name = "tx-example" + spec = "rocket-vip-basic-2" + node_count = 2 + storage_size = 200 + zone_ids = [ + data.tencentcloud_availability_zones.zones.zones.0.id, + data.tencentcloud_availability_zones.zones.zones.1.id + ] + + vpc_info { + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + + } + + time_span = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/trocket/resource_tc_tdmq_send_rocketmq_message.md b/tencentcloud/trocket/resource_tc_tdmq_send_rocketmq_message.md new file mode 100644 index 0000000000..afb6d18f1c --- /dev/null +++ b/tencentcloud/trocket/resource_tc_tdmq_send_rocketmq_message.md @@ -0,0 +1,14 @@ +Provides a resource to create a tdmq send_rocketmq_message + +Example Usage + +```hcl +resource "tencentcloud_tdmq_send_rocketmq_message" "send_rocketmq_message" { + cluster_id = "rocketmq-7k45z9dkpnne" + namespace_id = "test_ns" + topic_name = "test_topic" + msg_body = "msg key" + msg_key = "msg tag" + msg_tag = "msg value" +} +``` \ No newline at end of file diff --git a/tencentcloud/trocket/resource_tc_trocket_rocketmq_consumer_group.md b/tencentcloud/trocket/resource_tc_trocket_rocketmq_consumer_group.md new file mode 100644 index 0000000000..0c48a6d67f --- /dev/null +++ b/tencentcloud/trocket/resource_tc_trocket_rocketmq_consumer_group.md @@ -0,0 +1,35 @@ +Provides a resource to create a trocket rocketmq_consumer_group + +Example Usage + +```hcl +resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { + instance_type = "EXPERIMENT" + name = "test" + sku_code = "experiment_500" + remark = "test" + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxx" + tags = { + tag_key = "rocketmq" + tag_value = "5.x" + } +} + +resource "tencentcloud_trocket_rocketmq_consumer_group" "rocketmq_consumer_group" { + instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id + consumer_group = "test_consumer_group" + max_retry_times = 20 + consume_enable = false + consume_message_orderly = true + remark = "test for terraform" +} +``` + +Import + +trocket rocketmq_consumer_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_trocket_rocketmq_consumer_group.rocketmq_consumer_group instanceId#consumerGroup +``` \ No newline at end of file diff --git a/tencentcloud/trocket/resource_tc_trocket_rocketmq_instance.md b/tencentcloud/trocket/resource_tc_trocket_rocketmq_instance.md new file mode 100644 index 0000000000..da41266348 --- /dev/null +++ b/tencentcloud/trocket/resource_tc_trocket_rocketmq_instance.md @@ -0,0 +1,47 @@ +Provides a resource to create a rocketmq 5.x instance + +~> **NOTE:** It only support create postpaid rocketmq 5.x instance. + +Example Usage + +Basic Instance +```hcl +resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { + instance_type = "EXPERIMENT" + name = "rocketmq-instance" + sku_code = "experiment_500" + remark = "remark" + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxxx" + tags = { + tag_key = "rocketmq" + tag_value = "5.x" + } +} +``` + +Enable Public Instance +```hcl +resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance_public" { + instance_type = "EXPERIMENT" + name = "rocketmq-enable-public-instance" + sku_code = "experiment_500" + remark = "remark" + vpc_id = "vpc-xxxxxx" + subnet_id = "subnet-xxxxxx" + tags = { + tag_key = "rocketmq" + tag_value = "5.x" + } + enable_public = true + bandwidth = 1 +} +``` + +Import + +trocket rocketmq_instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_trocket_rocketmq_instance.rocketmq_instance rocketmq_instance_id +``` \ No newline at end of file diff --git a/tencentcloud/trocket/resource_tc_trocket_rocketmq_role.md b/tencentcloud/trocket/resource_tc_trocket_rocketmq_role.md new file mode 100644 index 0000000000..0109a5fb32 --- /dev/null +++ b/tencentcloud/trocket/resource_tc_trocket_rocketmq_role.md @@ -0,0 +1,42 @@ +Provides a resource to create a trocket rocketmq_role + +Example Usage + +```hcl +resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { + instance_type = "EXPERIMENT" + name = "test_role" + sku_code = "experiment_500" + remark = "test" + vpc_id = "vpc-xxxxx" + subnet_id = "subnet-xxxxx" + tags = { + tag_key = "rocketmq" + tag_value = "5.x" + } +} + +resource "tencentcloud_trocket_rocketmq_role" "rocketmq_role" { + instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id + role = "test_role" + remark = "test for terraform" + perm_write = false + perm_read = true +} + +output "access_key" { + value = tencentcloud_trocket_rocketmq_role.rocketmq_role.access_key +} + +output "secret_key" { + value = tencentcloud_trocket_rocketmq_role.rocketmq_role.secret_key +} +``` + +Import + +trocket rocketmq_role can be imported using the id, e.g. + +``` +terraform import tencentcloud_trocket_rocketmq_role.rocketmq_role instanceId#role +``` \ No newline at end of file diff --git a/tencentcloud/trocket/resource_tc_trocket_rocketmq_topic.md b/tencentcloud/trocket/resource_tc_trocket_rocketmq_topic.md new file mode 100644 index 0000000000..d8005be4fb --- /dev/null +++ b/tencentcloud/trocket/resource_tc_trocket_rocketmq_topic.md @@ -0,0 +1,34 @@ +Provides a resource to create a trocket rocketmq_topic + +Example Usage + +```hcl +resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" { + instance_type = "EXPERIMENT" + name = "test" + sku_code = "experiment_500" + remark = "test" + vpc_id = "vpc-xxxxx" + subnet_id = "subnet-xxxxx" + tags = { + tag_key = "rocketmq" + tag_value = "5.x" + } +} + +resource "tencentcloud_trocket_rocketmq_topic" "rocketmq_topic" { + instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id + topic = "test_topic" + topic_type = "NORMAL" + queue_num = 4 + remark = "test for terraform" +} +``` + +Import + +trocket rocketmq_topic can be imported using the id, e.g. + +``` +terraform import tencentcloud_trocket_rocketmq_topic.rocketmq_topic instanceId#topic +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_access_address.md b/tencentcloud/tse/data_source_tc_tse_access_address.md new file mode 100644 index 0000000000..cc8812c410 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_access_address.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tse access_address + +Example Usage + +```hcl +data "tencentcloud_tse_access_address" "access_address" { + instance_id = "ins-7eb7eea7" + # vpc_id = "vpc-xxxxxx" + # subnet_id = "subnet-xxxxxx" + # workload = "pushgateway" + engine_region = "ap-guangzhou" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_gateway_canary_rules.md b/tencentcloud/tse/data_source_tc_tse_gateway_canary_rules.md new file mode 100644 index 0000000000..b1d5abd09d --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_gateway_canary_rules.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tse gateway_canary_rules + +Example Usage + +```hcl +data "tencentcloud_tse_gateway_canary_rules" "gateway_canary_rules" { + gateway_id = "gateway-xxxxxx" + service_id = "451a9920-e67a-4519-af41-fccac0e72005" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_gateway_certificates.md b/tencentcloud/tse/data_source_tc_tse_gateway_certificates.md new file mode 100644 index 0000000000..410fcdc626 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_gateway_certificates.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tse gateway_certificates + +Example Usage + +```hcl + +data "tencentcloud_tse_gateway_certificates" "gateway_certificates" { + gateway_id = "gateway-ddbb709b" + filters { + key = "BindDomain" + value = "example.com" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_gateway_nodes.md b/tencentcloud/tse/data_source_tc_tse_gateway_nodes.md new file mode 100644 index 0000000000..3a420d9493 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_gateway_nodes.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tse gateway_nodes + +Example Usage + +```hcl +data "tencentcloud_tse_gateway_nodes" "gateway_nodes" { + gateway_id = "gateway-ddbb709b" + group_id = "group-013c0d8e" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_gateway_routes.md b/tencentcloud/tse/data_source_tc_tse_gateway_routes.md new file mode 100644 index 0000000000..6f6cb5e9b7 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_gateway_routes.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of tse gateway_routes + +Example Usage + +```hcl +data "tencentcloud_tse_gateway_routes" "gateway_routes" { + gateway_id = "gateway-ddbb709b" + service_name = "test" + route_name = "keep-routes" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_gateway_services.md b/tencentcloud/tse/data_source_tc_tse_gateway_services.md new file mode 100644 index 0000000000..ee5d00634e --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_gateway_services.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tse gateway_services + +Example Usage + +```hcl +data "tencentcloud_tse_gateway_services" "gateway_services" { + gateway_id = "gateway-ddbb709b" + filters { + key = "name" + value = "test" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_gateways.md b/tencentcloud/tse/data_source_tc_tse_gateways.md new file mode 100644 index 0000000000..9e27e4f393 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_gateways.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tse gateways + +Example Usage + +```hcl +data "tencentcloud_tse_gateways" "gateways" { + filters { + name = "GatewayId" + values = ["gateway-ddbb709b"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_groups.md b/tencentcloud/tse/data_source_tc_tse_groups.md new file mode 100644 index 0000000000..0a53e7a08c --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_groups.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tse groups + +Example Usage + +```hcl +data "tencentcloud_tse_groups" "groups" { + gateway_id = "gateway-ddbb709b" + filters { + name = "GroupId" + values = ["group-013c0d8e"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_nacos_replicas.md b/tencentcloud/tse/data_source_tc_tse_nacos_replicas.md new file mode 100644 index 0000000000..f175a75a68 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_nacos_replicas.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tse nacos_replicas + +Example Usage + +```hcl +data "tencentcloud_tse_nacos_replicas" "nacos_replicas" { + instance_id = "ins-8078da86" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_nacos_server_interfaces.md b/tencentcloud/tse/data_source_tc_tse_nacos_server_interfaces.md new file mode 100644 index 0000000000..5867abeb55 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_nacos_server_interfaces.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tse nacos_server_interfaces + +Example Usage + +```hcl +data "tencentcloud_tse_nacos_server_interfaces" "nacos_server_interfaces" { + instance_id = "ins-xxxxxx" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_zookeeper_replicas.md b/tencentcloud/tse/data_source_tc_tse_zookeeper_replicas.md new file mode 100644 index 0000000000..ff572de108 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_zookeeper_replicas.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tse zookeeper_replicas + +Example Usage + +```hcl +data "tencentcloud_tse_zookeeper_replicas" "zookeeper_replicas" { + instance_id = "ins-7eb7eea7" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/data_source_tc_tse_zookeeper_server_interfaces.md b/tencentcloud/tse/data_source_tc_tse_zookeeper_server_interfaces.md new file mode 100644 index 0000000000..5c001b9fd2 --- /dev/null +++ b/tencentcloud/tse/data_source_tc_tse_zookeeper_server_interfaces.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tse zookeeper_server_interfaces + +Example Usage + +```hcl +data "tencentcloud_tse_zookeeper_server_interfaces" "zookeeper_server_interfaces" { + instance_id = "ins-7eb7eea7" +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_canary_rule.md b/tencentcloud/tse/resource_tc_tse_cngw_canary_rule.md new file mode 100644 index 0000000000..a1b75ee349 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_canary_rule.md @@ -0,0 +1,69 @@ +Provides a resource to create a tse cngw_canary_rule + +Example Usage + +```hcl +resource "tencentcloud_tse_cngw_service" "cngw_service" { + gateway_id = "gateway-ddbb709b" + name = "terraform-test" + path = "/test" + protocol = "http" + retries = 5 + tags = { + "created" = "terraform" + } + timeout = 6000 + upstream_type = "IPList" + + upstream_info { + algorithm = "round-robin" + auto_scaling_cvm_port = 80 + auto_scaling_group_id = "asg-519acdug" + auto_scaling_hook_status = "Normal" + auto_scaling_tat_cmd_status = "Normal" + port = 0 + slow_start = 20 + + targets { + health = "HEALTHCHECKS_OFF" + host = "192.168.0.1" + port = 80 + weight = 100 + } + } +} + +resource "tencentcloud_tse_cngw_canary_rule" "cngw_canary_rule" { + gateway_id = tencentcloud_tse_cngw_service.cngw_service.gateway_id + service_id = tencentcloud_tse_cngw_service.cngw_service.service_id + tags = { + "created" = "terraform" + } + + canary_rule { + enabled = true + priority = 100 + + balanced_service_list { + percent = 100 + service_id = tencentcloud_tse_cngw_service.cngw_service.service_id + service_name = tencentcloud_tse_cngw_service.cngw_service.name + } + + condition_list { + key = "test" + operator = "eq" + type = "query" + value = "1" + } + } +} +``` + +Import + +tse cngw_canary_rule can be imported using the gatewayId#serviceId#priority, e.g. + +``` +terraform import tencentcloud_tse_cngw_canary_rule.cngw_canary_rule gateway-ddbb709b#b6017eaf-2363-481e-9e93-8d65aaf498cd#100 +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_certificate.md b/tencentcloud/tse/resource_tc_tse_cngw_certificate.md new file mode 100644 index 0000000000..808936ab0b --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_certificate.md @@ -0,0 +1,22 @@ +Provides a resource to create a tse cngw_certificate + +Example Usage + +```hcl + +resource "tencentcloud_tse_cngw_certificate" "cngw_certificate" { + gateway_id = "gateway-ddbb709b" + bind_domains = ["example1.com"] + cert_id = "vYSQkJ3K" + name = "xxx1" +} + +``` + +Import + +tse cngw_certificate can be imported using the id, e.g. + +``` +terraform import tencentcloud_tse_cngw_certificate.cngw_certificate gatewayId#Id +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_gateway.md b/tencentcloud/tse/resource_tc_tse_cngw_gateway.md new file mode 100644 index 0000000000..1bf65f5d11 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_gateway.md @@ -0,0 +1,48 @@ +Provides a resource to create a tse cngw_gateway + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_tse_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_tse_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { + description = "terraform test1" + enable_cls = true + engine_region = "ap-guangzhou" + feature_version = "STANDARD" + gateway_version = "2.5.1" + ingress_class_name = "tse-nginx-ingress" + internet_max_bandwidth_out = 0 + name = "terraform-gateway1" + trade_type = 0 + type = "kong" + + node_config { + number = 2 + specification = "1c2g" + } + + vpc_config { + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + } + + tags = { + "createdBy" = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_group.md b/tencentcloud/tse/resource_tc_tse_cngw_group.md new file mode 100644 index 0000000000..c57b4adf07 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_group.md @@ -0,0 +1,60 @@ +Provides a resource to create a tse cngw_group + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_tse_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_tse_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { + description = "terraform test1" + enable_cls = true + engine_region = "ap-guangzhou" + feature_version = "STANDARD" + gateway_version = "2.5.1" + ingress_class_name = "tse-nginx-ingress" + internet_max_bandwidth_out = 0 + name = "terraform-gateway1" + trade_type = 0 + type = "kong" + + node_config { + number = 2 + specification = "1c2g" + } + + vpc_config { + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + } + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tse_cngw_group" "cngw_group" { + description = "terraform desc" + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + name = "terraform-group" + subnet_id = tencentcloud_subnet.subnet.id + + node_config { + number = 2 + specification = "1c2g" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_route.md b/tencentcloud/tse/resource_tc_tse_cngw_route.md new file mode 100644 index 0000000000..e65c085f1c --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_route.md @@ -0,0 +1,91 @@ +Provides a resource to create a tse cngw_route + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_tse_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_tse_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { + description = "terraform test1" + enable_cls = true + engine_region = "ap-guangzhou" + feature_version = "STANDARD" + gateway_version = "2.5.1" + ingress_class_name = "tse-nginx-ingress" + internet_max_bandwidth_out = 0 + name = "terraform-gateway1" + trade_type = 0 + type = "kong" + + node_config { + number = 2 + specification = "1c2g" + } + + vpc_config { + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + } + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tse_cngw_service" "cngw_service" { + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + name = "terraform-test" + path = "/test" + protocol = "http" + retries = 5 + timeout = 60000 + upstream_type = "HostIP" + + upstream_info { + algorithm = "round-robin" + auto_scaling_cvm_port = 0 + host = "arunma.cn" + port = 8012 + slow_start = 0 + } +} + +resource "tencentcloud_tse_cngw_route" "cngw_route" { + destination_ports = [] + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + hosts = [ + "192.168.0.1:9090", + ] + https_redirect_status_code = 426 + paths = [ + "/user", + ] + headers { + key = "req" + value = "terraform" + } + preserve_host = false + protocols = [ + "http", + "https", + ] + route_name = "terraform-route" + service_id = tencentcloud_tse_cngw_service.cngw_service.service_id + strip_path = true +} + +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_route_rate_limit.md b/tencentcloud/tse/resource_tc_tse_cngw_route_rate_limit.md new file mode 100644 index 0000000000..a3aaa2d093 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_route_rate_limit.md @@ -0,0 +1,120 @@ +Provides a resource to create a tse cngw_route_rate_limit + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_tse_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_tse_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { + description = "terraform test1" + enable_cls = true + engine_region = "ap-guangzhou" + feature_version = "STANDARD" + gateway_version = "2.5.1" + ingress_class_name = "tse-nginx-ingress" + internet_max_bandwidth_out = 0 + name = "terraform-gateway1" + trade_type = 0 + type = "kong" + + node_config { + number = 2 + specification = "1c2g" + } + + vpc_config { + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + } + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tse_cngw_service" "cngw_service" { + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + name = "terraform-test" + path = "/test" + protocol = "http" + retries = 5 + timeout = 60000 + upstream_type = "HostIP" + + upstream_info { + algorithm = "round-robin" + auto_scaling_cvm_port = 0 + host = "arunma.cn" + port = 8012 + slow_start = 0 + } +} + +resource "tencentcloud_tse_cngw_route" "cngw_route" { + destination_ports = [] + force_https = false + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + hosts = [ + "192.168.0.1:9090", + ] + https_redirect_status_code = 426 + paths = [ + "/user", + ] + headers { + key = "req" + value = "terraform" + } + preserve_host = false + protocols = [ + "http", + "https", + ] + route_name = "terraform-route" + service_id = tencentcloud_tse_cngw_service.cngw_service.service_id + strip_path = true +} + +resource "tencentcloud_tse_cngw_route_rate_limit" "cngw_route_rate_limit" { + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + route_id = tencentcloud_tse_cngw_route.cngw_route.route_id + + limit_detail { + enabled = true + header = "req" + hide_client_headers = true + is_delay = true + limit_by = "header" + line_up_time = 10 + policy = "redis" + response_type = "default" + + qps_thresholds { + max = 10 + unit = "minute" + } + } +} +``` + +Import + +tse cngw_route_rate_limit can be imported using the id, e.g. + +``` +terraform import tencentcloud_tse_cngw_route_rate_limit.cngw_route_rate_limit gatewayId#routeId +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_service.md b/tencentcloud/tse/resource_tc_tse_cngw_service.md new file mode 100644 index 0000000000..8a5abde4af --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_service.md @@ -0,0 +1,74 @@ +Provides a resource to create a tse cngw_service + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_tse_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_tse_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { + description = "terraform test1" + enable_cls = true + engine_region = "ap-guangzhou" + feature_version = "STANDARD" + gateway_version = "2.5.1" + ingress_class_name = "tse-nginx-ingress" + internet_max_bandwidth_out = 0 + name = "terraform-gateway1" + trade_type = 0 + type = "kong" + + node_config { + number = 2 + specification = "1c2g" + } + + vpc_config { + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + } + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tse_cngw_service" "cngw_service" { + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + name = "terraform-test" + path = "/test" + protocol = "http" + retries = 5 + timeout = 60000 + upstream_type = "HostIP" + + upstream_info { + algorithm = "round-robin" + auto_scaling_cvm_port = 0 + host = "arunma.cn" + port = 8012 + slow_start = 0 + } +} +``` + +Import + +tse cngw_service can be imported using the id, e.g. + +``` +terraform import tencentcloud_tse_cngw_service.cngw_service gatewayId#name +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_cngw_service_rate_limit.md b/tencentcloud/tse/resource_tc_tse_cngw_service_rate_limit.md new file mode 100644 index 0000000000..f55293c4d1 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_cngw_service_rate_limit.md @@ -0,0 +1,96 @@ +Provides a resource to create a tse cngw_service_rate_limit + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-4" +} + +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_tse_vpc" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + availability_zone = var.availability_zone + name = "tf_tse_subnet" + cidr_block = "10.0.1.0/24" +} + +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { + description = "terraform test1" + enable_cls = true + engine_region = "ap-guangzhou" + feature_version = "STANDARD" + gateway_version = "2.5.1" + ingress_class_name = "tse-nginx-ingress" + internet_max_bandwidth_out = 0 + name = "terraform-gateway1" + trade_type = 0 + type = "kong" + + node_config { + number = 2 + specification = "1c2g" + } + + vpc_config { + subnet_id = tencentcloud_subnet.subnet.id + vpc_id = tencentcloud_vpc.vpc.id + } + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_tse_cngw_service" "cngw_service" { + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + name = "terraform-test" + path = "/test" + protocol = "http" + retries = 5 + timeout = 60000 + upstream_type = "HostIP" + + upstream_info { + algorithm = "round-robin" + auto_scaling_cvm_port = 0 + host = "arunma.cn" + port = 8012 + slow_start = 0 + } +} + +resource "tencentcloud_tse_cngw_service_rate_limit" "cngw_service_rate_limit" { + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id + name = tencentcloud_tse_cngw_service.cngw_service.name + + limit_detail { + enabled = true + header = "req" + hide_client_headers = true + is_delay = true + limit_by = "header" + line_up_time = 15 + policy = "redis" + response_type = "default" + + qps_thresholds { + max = 100 + unit = "hour" + } + } +} + +``` + +Import + +tse cngw_service_rate_limit can be imported using the id, e.g. + +``` +terraform import tencentcloud_tse_cngw_service_rate_limit.cngw_service_rate_limit gatewayId#name +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_instance.md b/tencentcloud/tse/resource_tc_tse_instance.md new file mode 100644 index 0000000000..5996984df6 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_instance.md @@ -0,0 +1,105 @@ +Provides a resource to create a tse instance + +Example Usage + +Create zookeeper standard version +```hcl +resource "tencentcloud_tse_instance" "zookeeper_standard" { + engine_type = "zookeeper" + engine_version = "3.5.9.4" + engine_product_version = "STANDARD" + engine_region = "ap-guangzhou" + engine_name = "zookeeper-test" + trade_type = 0 + engine_resource_spec = "spec-qvj6k7t4q" + engine_node_num = 3 + vpc_id = "vpc-4owdpnwr" + subnet_id = "subnet-dwj7ipnc" + + tags = { + "createdBy" = "terraform" + } +} +``` + +Create zookeeper professional version +```hcl +resource "tencentcloud_tse_instance" "zookeeper_professional" { + engine_type = "zookeeper" + engine_version = "3.5.9.4" + engine_product_version = "PROFESSIONAL" + engine_region = "ap-guangzhou" + engine_name = "zookeeper-test" + trade_type = 0 + engine_resource_spec = "spec-qvj6k7t4q" + engine_node_num = 3 + vpc_id = "vpc-4owdpnwr" + subnet_id = "subnet-dwj7ipnc" + + engine_region_infos { + engine_region = "ap-guangzhou" + replica = 3 + + vpc_infos { + subnet_id = "subnet-dwj7ipnc" + vpc_id = "vpc-4owdpnwr" + } + vpc_infos { + subnet_id = "subnet-403mgks4" + vpc_id = "vpc-b1puef4z" + } + } + tags = { + "createdBy" = "terraform" + } +} +``` + +Create nacos standard version +```hcl +resource "tencentcloud_tse_instance" "nacos" { + enable_client_internet_access = false + engine_name = "test" + engine_node_num = 3 + engine_product_version = "STANDARD" + engine_region = "ap-guangzhou" + engine_resource_spec = "spec-1160a35a" + engine_type = "nacos" + engine_version = "2.0.3.4" + subnet_id = "subnet-5vpegquy" + trade_type = 0 + vpc_id = "vpc-99xmasf9" + + tags = { + "createdBy" = "terraform" + } +} +``` + +Create polaris base version +```hcl +resource "tencentcloud_tse_instance" "polaris" { + enable_client_internet_access = false + engine_name = "test" + engine_node_num = 2 + engine_product_version = "BASE" + engine_region = "ap-guangzhou" + engine_resource_spec = "spec-c160bas1" + engine_type = "polaris" + engine_version = "1.16.0.1" + subnet_id = "subnet-5vpegquy" + trade_type = 0 + vpc_id = "vpc-99xmasf9" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tse instance can be imported using the id, e.g. + +``` +terraform import tencentcloud_tse_instance.instance instance_id +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_waf_domains.md b/tencentcloud/tse/resource_tc_tse_waf_domains.md new file mode 100644 index 0000000000..5516f5c481 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_waf_domains.md @@ -0,0 +1,18 @@ +Provides a resource to create a tse waf_domains + +Example Usage + +```hcl +resource "tencentcloud_tse_waf_domains" "waf_domains" { + domain = "tse.exmaple.com" + gateway_id = "gateway-ed63e957" +} +``` + +Import + +tse waf_domains can be imported using the id, e.g. + +``` +terraform import tencentcloud_tse_waf_domains.waf_domains waf_domains_id +``` \ No newline at end of file diff --git a/tencentcloud/tse/resource_tc_tse_waf_protection.md b/tencentcloud/tse/resource_tc_tse_waf_protection.md new file mode 100644 index 0000000000..2293d72a50 --- /dev/null +++ b/tencentcloud/tse/resource_tc_tse_waf_protection.md @@ -0,0 +1,12 @@ +Provides a resource to create a tse waf_protection + +Example Usage + +```hcl +resource "tencentcloud_tse_waf_protection" "waf_protection" { + gateway_id = "gateway-ed63e957" + type = "Route" + list = ["7324a769-9d87-48ce-a904-48c3defc4abd"] + operate = "open" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_api_detail.md b/tencentcloud/tsf/data_source_tc_tsf_api_detail.md new file mode 100644 index 0000000000..4fd0ce5aa5 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_api_detail.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tsf api_detail + +Example Usage + +```hcl +data "tencentcloud_tsf_api_detail" "api_detail" { + microservice_id = "ms-yq3jo6jd" + path = "/printRequest" + method = "GET" + pkg_version = "20210625192923" + application_id = "application-a24x29xv" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_api_group.md b/tencentcloud/tsf/data_source_tc_tsf_api_group.md new file mode 100644 index 0000000000..e6714df988 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_api_group.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of tsf api_group + +Example Usage + +```hcl +data "tencentcloud_tsf_api_group" "api_group" { + search_word = "xxx01" + group_type = "ms" + auth_type = "none" + status = "released" + order_by = "created_time" + order_type = 0 + gateway_instance_id = "gw-ins-lvdypq5k" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_application.md b/tencentcloud/tsf/data_source_tc_tsf_application.md new file mode 100644 index 0000000000..22f749d5a4 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_application.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tsf application + +Example Usage + +```hcl +data "tencentcloud_tsf_application" "application" { + application_type = "V" + microservice_type = "N" + # application_resource_type_list = [""] + application_id_list = ["application-a24x29xv"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_application_attribute.md b/tencentcloud/tsf/data_source_tc_tsf_application_attribute.md new file mode 100644 index 0000000000..66117dd48c --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_application_attribute.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tsf application_attribute + +Example Usage + +```hcl +data "tencentcloud_tsf_application_attribute" "application_attribute" { + application_id = "application-a24x29xv" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_application_config.md b/tencentcloud/tsf/data_source_tc_tsf_application_config.md new file mode 100644 index 0000000000..666d2a36a8 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_application_config.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tsf application_config + +Example Usage + +```hcl +data "tencentcloud_tsf_application_config" "application_config" { + application_id = "app-123456" + config_id = "config-123456" + config_id_list = + config_name = "test-config" + config_version = "1.0" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_application_file_config.md b/tencentcloud/tsf/data_source_tc_tsf_application_file_config.md new file mode 100644 index 0000000000..1d1d13b2aa --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_application_file_config.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of tsf application_file_config + +Example Usage + +```hcl +data "tencentcloud_tsf_application_file_config" "application_file_config" { + config_id = "dcfg-f-4y4ekzqv" + # config_id_list = [""] + config_name = "file-log1" + application_id = "application-2vzk6n3v" + config_version = "1.2" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_application_public_config.md b/tencentcloud/tsf/data_source_tc_tsf_application_public_config.md new file mode 100644 index 0000000000..18b69db5b5 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_application_public_config.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tsf application_public_config + +Example Usage + +```hcl +data "tencentcloud_tsf_application_public_config" "application_public_config" { + config_id = "dcfg-p-evjrbgly" + # config_id_list = [""] + config_name = "dsadsa" + config_version = "123" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_business_log_configs.md b/tencentcloud/tsf/data_source_tc_tsf_business_log_configs.md new file mode 100644 index 0000000000..85710d1ed6 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_business_log_configs.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of tsf business_log_configs + +Example Usage + +```hcl +data "tencentcloud_tsf_business_log_configs" "business_log_configs" { + search_word = "terraform" + disable_program_auth_check = true + config_id_list = ["apm-busi-log-cfg-qv3x3rdv"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_cluster.md b/tencentcloud/tsf/data_source_tc_tsf_cluster.md new file mode 100644 index 0000000000..9f7979298b --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_cluster.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tsf cluster + +Example Usage + +```hcl +data "tencentcloud_tsf_cluster" "cluster" { + cluster_id_list = ["cluster-vwgj5e6y"] + cluster_type = "V" + # search_word = "" + disable_program_auth_check = true +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_config_summary.md b/tencentcloud/tsf/data_source_tc_tsf_config_summary.md new file mode 100644 index 0000000000..5c9f5aeb03 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_config_summary.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tsf config_summary + +Example Usage + +```hcl +data "tencentcloud_tsf_config_summary" "config_summary" { + application_id = "application-a24x29xv" + search_word = "terraform" + order_by = "last_update_time" + order_type = 0 + disable_program_auth_check = true + config_id_list = ["dcfg-y54wzk3a"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_container_group.md b/tencentcloud/tsf/data_source_tc_tsf_container_group.md new file mode 100644 index 0000000000..ee8e2f37ab --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_container_group.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tsf container_group + +Example Usage + +```hcl +data "tencentcloud_tsf_container_group" "container_group" { + application_id = "application-a24x29xv" + search_word = "keep" + order_by = "createTime" + order_type = 0 + cluster_id = "cluster-vwgj5e6y" + namespace_id = "namespace-aemrg36v" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_delivery_config_by_group_id.md b/tencentcloud/tsf/data_source_tc_tsf_delivery_config_by_group_id.md new file mode 100644 index 0000000000..4bc02f12c7 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_delivery_config_by_group_id.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tsf delivery_config_by_group_id + +Example Usage + +```hcl +data "tencentcloud_tsf_delivery_config_by_group_id" "delivery_config_by_group_id" { + group_id = "group-yrjkln9v" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_delivery_configs.md b/tencentcloud/tsf/data_source_tc_tsf_delivery_configs.md new file mode 100644 index 0000000000..5bbbb12380 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_delivery_configs.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tsf delivery_configs + +Example Usage + +```hcl +data "tencentcloud_tsf_delivery_configs" "delivery_configs" { + search_word = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_gateway_all_group_apis.md b/tencentcloud/tsf/data_source_tc_tsf_gateway_all_group_apis.md new file mode 100644 index 0000000000..96874dcb5c --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_gateway_all_group_apis.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tsf gateway_all_group_apis + +Example Usage + +```hcl +data "tencentcloud_tsf_gateway_all_group_apis" "gateway_all_group_apis" { + gateway_deploy_group_id = "group-aeoej4qy" + search_word = "user" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_group_config_release.md b/tencentcloud/tsf/data_source_tc_tsf_group_config_release.md new file mode 100644 index 0000000000..b4d5feaae6 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_group_config_release.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tsf group_config_release + +Example Usage + +```hcl +data "tencentcloud_tsf_group_config_release" "group_config_release" { + group_id = "group-yrjkln9v" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_group_gateways.md b/tencentcloud/tsf/data_source_tc_tsf_group_gateways.md new file mode 100644 index 0000000000..50cadaa13c --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_group_gateways.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tsf group_gateways + +Example Usage + +```hcl +data "tencentcloud_tsf_group_gateways" "group_gateways" { + gateway_deploy_group_id = "group-aeoej4qy" + search_word = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_group_instances.md b/tencentcloud/tsf/data_source_tc_tsf_group_instances.md new file mode 100644 index 0000000000..c744158a58 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_group_instances.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tsf group_instances + +Example Usage + +```hcl +data "tencentcloud_tsf_group_instances" "group_instances" { + group_id = "group-yrjkln9v" + search_word = "testing" + order_by = "ASC" + order_type = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_groups.md b/tencentcloud/tsf/data_source_tc_tsf_groups.md new file mode 100644 index 0000000000..554a26252a --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_groups.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of tsf groups + +Example Usage + +```hcl +data "tencentcloud_tsf_groups" "groups" { + search_word = "keep" + application_id = "application-a24x29xv" + order_by = "createTime" + order_type = 0 + namespace_id = "namespace-aemrg36v" + cluster_id = "cluster-vwgj5e6y" + group_resource_type_list = ["DEF"] + status = "Running" + group_id_list = ["group-yrjkln9v"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_microservice.md b/tencentcloud/tsf/data_source_tc_tsf_microservice.md new file mode 100644 index 0000000000..eb2158e2af --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_microservice.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of tsf microservice + +Example Usage + +```hcl +data "tencentcloud_tsf_microservice" "microservice" { + namespace_id = var.namespace_id + # status = + microservice_id_list = ["ms-yq3jo6jd"] + microservice_name_list = ["provider-demo"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_microservice_api_version.md b/tencentcloud/tsf/data_source_tc_tsf_microservice_api_version.md new file mode 100644 index 0000000000..8ead664ab2 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_microservice_api_version.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of tsf microservice_api_version + +Example Usage + +```hcl +data "tencentcloud_tsf_microservice_api_version" "microservice_api_version" { + microservice_id = "ms-yq3jo6jd" + path = "" + method = "get" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_ms_api_list.md b/tencentcloud/tsf/data_source_tc_tsf_ms_api_list.md new file mode 100644 index 0000000000..4fd14e633b --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_ms_api_list.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tsf ms_api_list + +Example Usage + +```hcl +data "tencentcloud_tsf_ms_api_list" "ms_api_list" { + microservice_id = "ms-yq3jo6jd" + search_word = "echo" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_pod_instances.md b/tencentcloud/tsf/data_source_tc_tsf_pod_instances.md new file mode 100644 index 0000000000..6ac215af21 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_pod_instances.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tsf pod_instances + +Example Usage + +```hcl +data "tencentcloud_tsf_pod_instances" "pod_instances" { + group_id = "group-ynd95rea" + pod_name_list = ["keep-terraform-6f8f977688-zvphm"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_public_config_summary.md b/tencentcloud/tsf/data_source_tc_tsf_public_config_summary.md new file mode 100644 index 0000000000..ad692deb70 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_public_config_summary.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of tsf public_config_summary + +Example Usage + +```hcl +data "tencentcloud_tsf_describe_public_config_summary" "describe_public_config_summary" { + search_word = "test" + order_by = "last_update_time" + order_type = 0 + # config_tag_list = [""] + disable_program_auth_check = true + config_id_list = ["dcfg-p-ygbdw5mv"] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_repository.md b/tencentcloud/tsf/data_source_tc_tsf_repository.md new file mode 100644 index 0000000000..09ce540e89 --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_repository.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tsf repository + +Example Usage + +```hcl +data "tencentcloud_tsf_repository" "repository" { + search_word = "test" + repository_type = "default" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_unit_rules.md b/tencentcloud/tsf/data_source_tc_tsf_unit_rules.md new file mode 100644 index 0000000000..89c61217da --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_unit_rules.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of tsf unit_rules + +Example Usage + +```hcl +data "tencentcloud_tsf_unit_rules" "unit_rules" { + gateway_instance_id = "gw-ins-lvdypq5k" + status = "disabled" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/data_source_tc_tsf_usable_unit_namespaces.md b/tencentcloud/tsf/data_source_tc_tsf_usable_unit_namespaces.md new file mode 100644 index 0000000000..6b91b5396a --- /dev/null +++ b/tencentcloud/tsf/data_source_tc_tsf_usable_unit_namespaces.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of tsf usable_unit_namespaces + +Example Usage + +```hcl +data "tencentcloud_tsf_usable_unit_namespaces" "usable_unit_namespaces" { + search_word = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_api_group.md b/tencentcloud/tsf/resource_tc_tsf_api_group.md new file mode 100644 index 0000000000..e73ae34687 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_api_group.md @@ -0,0 +1,26 @@ +Provides a resource to create a tsf api_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_api_group" "api_group" { + group_name = "terraform_test_group" + group_context = "/terraform-test" + auth_type = "none" + description = "terraform-test" + group_type = "ms" + gateway_instance_id = "gw-ins-i6mjpgm8" + # namespace_name_key = "path" + # service_name_key = "path" + namespace_name_key_position = "path" + service_name_key_position = "path" +} +``` + +Import + +tsf api_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_api_group.api_group api_group_id +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_api_rate_limit_rule.md b/tencentcloud/tsf/resource_tc_tsf_api_rate_limit_rule.md new file mode 100644 index 0000000000..4c0b4b343b --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_api_rate_limit_rule.md @@ -0,0 +1,19 @@ +Provides a resource to create a tsf api_rate_limit_rule + +Example Usage + +```hcl +resource "tencentcloud_tsf_api_rate_limit_rule" "api_rate_limit_rule" { + api_id = "api-xxxxxx" + max_qps = 10 + usable_status = "enable" +} +``` + +Import + +tsf api_rate_limit_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_api_rate_limit_rule.api_rate_limit_rule api_rate_limit_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application.md b/tencentcloud/tsf/resource_tc_tsf_application.md new file mode 100644 index 0000000000..e50a31735d --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application.md @@ -0,0 +1,24 @@ +Provides a resource to create a tsf application + +Example Usage + +```hcl +resource "tencentcloud_tsf_application" "application" { + application_name = "my-app" + application_type = "C" + microservice_type = "M" + application_desc = "This is my application" + application_runtime_type = "Java" + service_config_list { + name = "my-service" + ports { + target_port = 8080 + protocol = "HTTP" + } + health_check { + path = "/health" + } + } + ignore_create_image_repository = true +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application_config.md b/tencentcloud/tsf/resource_tc_tsf_application_config.md new file mode 100644 index 0000000000..f0904f2929 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application_config.md @@ -0,0 +1,16 @@ +Provides a resource to create a tsf application_config + +Example Usage + +```hcl +resource "tencentcloud_tsf_application_config" "application_config" { + config_name = "test-2" + config_version = "1.0" + config_value = "name: \"name\"" + application_id = "application-ym9mxmza" + config_version_desc = "test2" + # config_type = "" + encode_with_base64 = false + # program_id_list = +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application_file_config.md b/tencentcloud/tsf/resource_tc_tsf_application_file_config.md new file mode 100644 index 0000000000..5417d0b48b --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application_file_config.md @@ -0,0 +1,18 @@ +Provides a resource to create a tsf application_file_config + +Example Usage + +```hcl +resource "tencentcloud_tsf_application_file_config" "application_file_config" { + config_name = "terraform-test" + config_version = "1.0" + config_file_name = "application.yaml" + config_file_value = "test: 1" + application_id = "application-a24x29xv" + config_file_path = "/etc/nginx" + config_version_desc = "1.0" + config_file_code = "UTF-8" + config_post_cmd = "source .bashrc" + encode_with_base64 = true +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application_file_config_release.md b/tencentcloud/tsf/resource_tc_tsf_application_file_config_release.md new file mode 100644 index 0000000000..aab08f6dce --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application_file_config_release.md @@ -0,0 +1,19 @@ +Provides a resource to create a tsf application_file_config_release + +Example Usage + +```hcl +resource "tencentcloud_tsf_application_file_config_release" "application_file_config_release" { + config_id = "dcfg-f-123456" + group_id = "group-123456" + release_desc = "product release" +} +``` + +Import + +tsf applicationfile_config_release can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_application_file_config_release.application_file_config_release application_file_config_release_id +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application_public_config.md b/tencentcloud/tsf/resource_tc_tsf_application_public_config.md new file mode 100644 index 0000000000..df855535cd --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application_public_config.md @@ -0,0 +1,15 @@ +Provides a resource to create a tsf application_public_config + +Example Usage + +```hcl +resource "tencentcloud_tsf_application_public_config" "application_public_config" { + config_name = "my_config" + config_version = "1.0" + config_value = "test: 1" + config_version_desc = "product version" + config_type = "P" + encode_with_base64 = true + # program_id_list = +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application_public_config_release.md b/tencentcloud/tsf/resource_tc_tsf_application_public_config_release.md new file mode 100644 index 0000000000..38e62c3757 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application_public_config_release.md @@ -0,0 +1,19 @@ +Provides a resource to create a tsf application_public_config_release + +Example Usage + +```hcl +resource "tencentcloud_tsf_application_public_config_release" "application_public_config_release" { + config_id = "dcfg-p-123456" + namespace_id = "namespace-123456" + release_desc = "product version" +} +``` + +Import + +tsf application_public_config_release can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_application_public_config_release.application_public_config_release application_public_config_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_application_release_config.md b/tencentcloud/tsf/resource_tc_tsf_application_release_config.md new file mode 100644 index 0000000000..8acf073820 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_application_release_config.md @@ -0,0 +1,19 @@ +Provides a resource to create a tsf application_release_config + +Example Usage + +```hcl +resource "tencentcloud_tsf_application_release_config" "application_release_config" { + config_id = "dcfg-nalqbqwv" + group_id = "group-yxmz72gv" + release_desc = "terraform-test" +} +``` + +Import + +tsf application_release_config can be imported using the configId#groupId#configReleaseId, e.g. + +``` +terraform import tencentcloud_tsf_application_release_config.application_release_config dcfg-nalqbqwv#group-yxmz72gv#dcfgr-maeeq2ea +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_bind_api_group.md b/tencentcloud/tsf/resource_tc_tsf_bind_api_group.md new file mode 100644 index 0000000000..8b146fcf03 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_bind_api_group.md @@ -0,0 +1,18 @@ +Provides a resource to create a tsf bind_api_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_bind_api_group" "bind_api_group" { + gateway_deploy_group_id = "group-vzd97zpy" + group_id = "grp-qp0rj3zi" +} +``` + +Import + +tsf bind_api_group can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_bind_api_group.bind_api_group bind_api_group_id +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_cluster.md b/tencentcloud/tsf/resource_tc_tsf_cluster.md new file mode 100644 index 0000000000..68113362a8 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_cluster.md @@ -0,0 +1,20 @@ +Provides a resource to create a tsf cluster + +Example Usage + +```hcl +resource "tencentcloud_tsf_cluster" "cluster" { + cluster_name = "terraform-test" + cluster_type = "C" + vpc_id = "vpc-xxxxxx" + cluster_cidr = "9.165.120.0/24" + cluster_desc = "test" + tsf_region_id = "ap-guangzhou" + cluster_version = "1.18.4" + max_node_pod_num = 32 + max_cluster_service_num = 128 + tags = { + "createdBy" = "terraform" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_config_template.md b/tencentcloud/tsf/resource_tc_tsf_config_template.md new file mode 100644 index 0000000000..0c51a64b1d --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_config_template.md @@ -0,0 +1,18 @@ +Provides a resource to create a tsf config_template + +Example Usage + +```hcl +resource "tencentcloud_tsf_config_template" "config_template" { + config_template_name = "terraform-template-name" + config_template_type = "Ribbon" + config_template_value = <<-EOT + ribbon.ReadTimeout: 5000 + ribbon.ConnectTimeout: 2000 + ribbon.MaxAutoRetries: 0 + ribbon.MaxAutoRetriesNextServer: 1 + ribbon.OkToRetryOnAllOperations: true + EOT + config_template_desc = "terraform-test" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_deploy_container_group.md b/tencentcloud/tsf/resource_tc_tsf_deploy_container_group.md new file mode 100644 index 0000000000..90a07997c8 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_deploy_container_group.md @@ -0,0 +1,66 @@ +Provides a resource to create a tsf deploy_container_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_deploy_container_group" "deploy_container_group" { + group_id = "group-yqml6w3a" + cpu_request = "0.25" + mem_request = "640" + server = "ccr.ccs.tencentyun.com" + reponame = "tsf_100011913960/terraform" + tag_name = "terraform-only-1" + do_not_start = false + instance_num = 1 + update_type = 1 + update_ivl = 10 + mem_limit = "1280" + cpu_limit = "0.5" + agent_cpu_request = "0.1" + agent_cpu_limit = "0.2" + agent_mem_request = "125" + agent_mem_limit = "400" + max_surge = "25%" + max_unavailable = "0" + service_setting { + access_type = 1 + protocol_ports { + protocol = "TCP" + port = 18081 + target_port = 18081 + node_port = 30001 + } + subnet_id = "" + disable_service = false + headless_service = false + allow_delete_service = true + open_session_affinity = false + session_affinity_timeout_seconds = 10800 + + } + health_check_settings { + readiness_probe { + action_type = "TCP" + initial_delay_seconds = 0 + timeout_seconds = 3 + period_seconds = 30 + success_threshold = 1 + failure_threshold = 3 + scheme = "HTTP" + port = 80 + path = "/" + type = "TSF_DEFAULT" + } + } + scheduling_strategy { + type = "NONE" + } + deploy_agent = true + repo_type = "personal" + volume_clean = false + jvm_opts = "-Xms128m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m" + warmup_setting { + enabled = false + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_deploy_vm_group.md b/tencentcloud/tsf/resource_tc_tsf_deploy_vm_group.md new file mode 100644 index 0000000000..db310dd897 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_deploy_vm_group.md @@ -0,0 +1,31 @@ +Provides a resource to create a tsf deploy_vm_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_deploy_vm_group" "deploy_vm_group" { + group_id = "group-vzd97zpy" + pkg_id = "pkg-131bc1d3" + startup_parameters = "-Xms128m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m" + deploy_desc = "deploy test" + force_start = false + enable_health_check = true + health_check_settings { + readiness_probe { + action_type = "HTTP" + initial_delay_seconds = 10 + timeout_seconds = 2 + period_seconds = 10 + success_threshold = 1 + failure_threshold = 3 + scheme = "HTTP" + port = "80" + path = "/" + } + } + update_type = 0 + jdk_name = "konaJDK" + jdk_version = "8" + +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_enable_unit_rule.md b/tencentcloud/tsf/resource_tc_tsf_enable_unit_rule.md new file mode 100644 index 0000000000..04c4db75d3 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_enable_unit_rule.md @@ -0,0 +1,18 @@ +Provides a resource to create a tsf enable_unit_rule + +Example Usage + +```hcl +resource "tencentcloud_tsf_enable_unit_rule" "enable_unit_rule" { + rule_id = "unit-rl-is9m4nxz" + switch = "enabled" +} +``` + +Import + +tsf enable_unit_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_enable_unit_rule.enable_unit_rule enable_unit_rule_id +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_group.md b/tencentcloud/tsf/resource_tc_tsf_group.md new file mode 100644 index 0000000000..02c812257b --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_group.md @@ -0,0 +1,25 @@ +Provides a resource to create a tsf group + +Example Usage + +```hcl +resource "tencentcloud_tsf_group" "group" { + application_id = "application-xxx" + namespace_id = "namespace-aemrxxx" + group_name = "terraform-test" + cluster_id = "cluster-vwgjxxxx" + group_desc = "terraform desc" + alias = "terraform test" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tsf group can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_group.group group-axxx +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_instances_attachment.md b/tencentcloud/tsf/resource_tc_tsf_instances_attachment.md new file mode 100644 index 0000000000..064d602415 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_instances_attachment.md @@ -0,0 +1,23 @@ +Provides a resource to create a tsf instances_attachment + +Example Usage + +```hcl +resource "tencentcloud_tsf_instances_attachment" "instances_attachment" { + cluster_id = "cluster-123456" + instance_id_list = [""] + os_name = "Ubuntu 20.04" + image_id = "img-123456" + password = "MyP@ssw0rd" + key_id = "key-123456" + sg_id = "sg-123456" + instance_import_mode = "R" + os_customize_type = "my_customize" + feature_id_list = + instance_advanced_settings { + mount_target = "/mnt/data" + docker_graph_path = "/var/lib/docker" + } + security_group_ids = [""] +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_lane.md b/tencentcloud/tsf/resource_tc_tsf_lane.md new file mode 100644 index 0000000000..bbe68fcb4c --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_lane.md @@ -0,0 +1,14 @@ +Provides a resource to create a tsf lane + +Example Usage + +```hcl +resource "tencentcloud_tsf_lane" "lane" { + lane_name = "lane-name-1" + remark = "lane desc1" + lane_group_list { + group_id = "group-yn7j5l8a" + entrance = true + } +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_lane_rule.md b/tencentcloud/tsf/resource_tc_tsf_lane_rule.md new file mode 100644 index 0000000000..dab44d33e1 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_lane_rule.md @@ -0,0 +1,18 @@ +Provides a resource to create a tsf lane_rule + +Example Usage + +```hcl +resource "tencentcloud_tsf_lane_rule" "lane_rule" { + rule_name = "terraform-rule-name" + remark = "terraform-test" + rule_tag_list { + tag_name = "xxx" + tag_operator = "EQUAL" + tag_value = "222" + } + rule_tag_relationship = "RELEATION_AND" + lane_id = "lane-abw5oo5a" + enable = false +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_microservice.md b/tencentcloud/tsf/resource_tc_tsf_microservice.md new file mode 100644 index 0000000000..81e39a5392 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_microservice.md @@ -0,0 +1,22 @@ +Provides a resource to create a tsf microservice + +Example Usage + +```hcl +resource "tencentcloud_tsf_microservice" "microservice" { + namespace_id = "namespace-vjlkzkgy" + microservice_name = "test-microservice" + microservice_desc = "desc-microservice" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +tsf microservice can be imported using the namespaceId#microserviceId, e.g. + +``` +terraform import tencentcloud_tsf_microservice.microservice namespace-vjlkzkgy#ms-vjeb43lw +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_namespace.md b/tencentcloud/tsf/resource_tc_tsf_namespace.md new file mode 100644 index 0000000000..11cc374b42 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_namespace.md @@ -0,0 +1,16 @@ +Provides a resource to create a tsf namespace + +Example Usage + +```hcl +resource "tencentcloud_tsf_namespace" "namespace" { + namespace_name = "namespace-name" + # cluster_id = "cls-xxxx" + namespace_desc = "namespace desc" + # namespace_resource_type = "" + namespace_type = "DEF" + # namespace_id = "" + is_ha_enable = "0" + # program_id = "" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_operate_container_group.md b/tencentcloud/tsf/resource_tc_tsf_operate_container_group.md new file mode 100644 index 0000000000..ba52346fa3 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_operate_container_group.md @@ -0,0 +1,10 @@ +Provides a resource to create a tsf operate_container_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_operate_container_group" "operate_container_group" { + group_id = "group-ynd95rea" + operate = "stop" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_operate_group.md b/tencentcloud/tsf/resource_tc_tsf_operate_group.md new file mode 100644 index 0000000000..0091241d29 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_operate_group.md @@ -0,0 +1,10 @@ +Provides a resource to create a tsf operate_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_operate_group" "operate_group" { + group_id = "group-ynd95rea" + operate = "start" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_path_rewrite.md b/tencentcloud/tsf/resource_tc_tsf_path_rewrite.md new file mode 100644 index 0000000000..36a8db5052 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_path_rewrite.md @@ -0,0 +1,21 @@ +Provides a resource to create a tsf path_rewrite + +Example Usage + +```hcl +resource "tencentcloud_tsf_path_rewrite" "path_rewrite" { + gateway_group_id = "group-a2j9zxpv" + regex = "/test" + replacement = "/tt" + blocked = "N" + order = 2 +} +``` + +Import + +tsf path_rewrite can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_path_rewrite.path_rewrite rewrite-nygq33v2 +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_release_api_group.md b/tencentcloud/tsf/resource_tc_tsf_release_api_group.md new file mode 100644 index 0000000000..3affff143a --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_release_api_group.md @@ -0,0 +1,9 @@ +Provides a resource to create a tsf release_api_group + +Example Usage + +```hcl +resource "tencentcloud_tsf_release_api_group" "release_api_group" { + group_id = "grp-qp0rj3zi" +} +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_task.md b/tencentcloud/tsf/resource_tc_tsf_task.md new file mode 100644 index 0000000000..fb829cc4e3 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_task.md @@ -0,0 +1,34 @@ +Provides a resource to create a tsf task + +Example Usage + +```hcl +resource "tencentcloud_tsf_task" "task" { + task_name = "terraform-test" + task_content = "/test" + execute_type = "unicast" + task_type = "java" + time_out = 60000 + group_id = "group-y8pnmoga" + task_rule { + rule_type = "Cron" + expression = "0 * 1 * * ? " + } + retry_count = 0 + retry_interval = 0 + success_operator = "GTE" + success_ratio = "100" + advance_settings { + sub_task_concurrency = 2 + } + task_argument = "a=c" +} +``` + +Import + +tsf task can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_task.task task-y37eqq95 +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_unit_namespace.md b/tencentcloud/tsf/resource_tc_tsf_unit_namespace.md new file mode 100644 index 0000000000..68e51c9e54 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_unit_namespace.md @@ -0,0 +1,19 @@ +Provides a resource to create a tsf unit_namespace + +Example Usage + +```hcl +resource "tencentcloud_tsf_unit_namespace" "unit_namespace" { + gateway_instance_id = "gw-ins-lvdypq5k" + namespace_id = "namespace-vwgo38wy" + namespace_name = "keep-terraform-cls" +} +``` + +Import + +tsf unit_namespace can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_unit_namespace.unit_namespace gw-ins-lvdypq5k#namespace-vwgo38wy +``` \ No newline at end of file diff --git a/tencentcloud/tsf/resource_tc_tsf_unit_rule.md b/tencentcloud/tsf/resource_tc_tsf_unit_rule.md new file mode 100644 index 0000000000..32d248a7d0 --- /dev/null +++ b/tencentcloud/tsf/resource_tc_tsf_unit_rule.md @@ -0,0 +1,33 @@ +Provides a resource to create a tsf unit_rule + +Example Usage + +```hcl +resource "tencentcloud_tsf_unit_rule" "unit_rule" { + gateway_instance_id = "gw-ins-rug79a70" + name = "terraform-test" + description = "terraform-desc" + unit_rule_item_list { + relationship = "AND" + dest_namespace_id = "namespace-y8p88eka" + dest_namespace_name = "garden-test_default" + name = "Rule1" + description = "rule1-desc" + unit_rule_tag_list { + tag_type = "U" + tag_field = "aaa" + tag_operator = "IN" + tag_value = "1" + } + + } +} +``` + +Import + +tsf unit_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_tsf_unit_rule.unit_rule unit-rl-zbywqeca +``` \ No newline at end of file diff --git a/tencentcloud/vod/data_source_tc_vod_adaptive_dynamic_streaming_templates.md b/tencentcloud/vod/data_source_tc_vod_adaptive_dynamic_streaming_templates.md new file mode 100644 index 0000000000..6b40098769 --- /dev/null +++ b/tencentcloud/vod/data_source_tc_vod_adaptive_dynamic_streaming_templates.md @@ -0,0 +1,51 @@ +Use this data source to query detailed information of VOD adaptive dynamic streaming templates. + +Example Usage + +```hcl +resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { + format = "HLS" + name = "tf-adaptive" + drm_type = "SimpleAES" + disable_higher_video_bitrate = false + disable_higher_video_resolution = false + comment = "test" + + stream_info { + video { + codec = "libx265" + fps = 4 + bitrate = 129 + resolution_adaptive = false + width = 128 + height = 128 + fill_type = "stretch" + } + audio { + codec = "libmp3lame" + bitrate = 129 + sample_rate = 44100 + audio_channel = "dual" + } + remove_audio = false + } + stream_info { + video { + codec = "libx264" + fps = 4 + bitrate = 256 + } + audio { + codec = "libfdk_aac" + bitrate = 256 + sample_rate = 44100 + } + remove_audio = true + } +} + +data "tencentcloud_vod_adaptive_dynamic_streaming_templates" "foo" { + type = "Custom" + definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vod/data_source_tc_vod_image_sprite_templates.md b/tencentcloud/vod/data_source_tc_vod_image_sprite_templates.md new file mode 100644 index 0000000000..1cc9ab5b3f --- /dev/null +++ b/tencentcloud/vod/data_source_tc_vod_image_sprite_templates.md @@ -0,0 +1,23 @@ +Use this data source to query detailed information of VOD image sprite templates. + +Example Usage + +```hcl +resource "tencentcloud_vod_image_sprite_template" "foo" { + sample_type = "Percent" + sample_interval = 10 + row_count = 3 + column_count = 3 + name = "tf-sprite" + comment = "test" + fill_type = "stretch" + width = 128 + height = 128 + resolution_adaptive = false +} + +data "tencentcloud_vod_image_sprite_templates" "foo" { + type = "Custom" + definition = tencentcloud_vod_image_sprite_template.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vod/data_source_tc_vod_procedure_templates.md b/tencentcloud/vod/data_source_tc_vod_procedure_templates.md new file mode 100644 index 0000000000..c3abf904da --- /dev/null +++ b/tencentcloud/vod/data_source_tc_vod_procedure_templates.md @@ -0,0 +1,29 @@ +Use this data source to query detailed information of VOD procedure templates. + +Example Usage + +```hcl +resource "tencentcloud_vod_procedure_template" "foo" { + name = "tf-procedure" + comment = "test" + media_process_task { + adaptive_dynamic_streaming_task_list { + definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id + } + snapshot_by_time_offset_task_list { + definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id + ext_time_offset_list = [ + "3.5s" + ] + } + image_sprite_task_list { + definition = tencentcloud_vod_image_sprite_template.foo.id + } + } +} + +data "tencentcloud_vod_procedure_templates" "foo" { + type = "Custom" + name = tencentcloud_vod_procedure_template.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vod/data_source_tc_vod_snapshot_by_time_offset_templates.md b/tencentcloud/vod/data_source_tc_vod_snapshot_by_time_offset_templates.md new file mode 100644 index 0000000000..ca7b14bcd8 --- /dev/null +++ b/tencentcloud/vod/data_source_tc_vod_snapshot_by_time_offset_templates.md @@ -0,0 +1,20 @@ +Use this data source to query detailed information of VOD snapshot by time offset templates. + +Example Usage + +```hcl +resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" { + name = "tf-snapshot" + width = 130 + height = 128 + resolution_adaptive = false + format = "png" + comment = "test" + fill_type = "white" +} + +data "tencentcloud_vod_snapshot_by_time_offset_templates" "foo" { + type = "Custom" + definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vod/data_source_tc_vod_super_player_configs.md b/tencentcloud/vod/data_source_tc_vod_super_player_configs.md new file mode 100644 index 0000000000..463573e805 --- /dev/null +++ b/tencentcloud/vod/data_source_tc_vod_super_player_configs.md @@ -0,0 +1,30 @@ +Use this data source to query detailed information of VOD super player configs. + +Example Usage + +```hcl +resource "tencentcloud_vod_super_player_config" "foo" { + name = "tf-super-player" + drm_switch = true + drm_streaming_info { + simple_aes_definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id + } + image_sprite_definition = tencentcloud_vod_image_sprite_template.foo.id + resolution_names { + min_edge_length = 889 + name = "test1" + } + resolution_names { + min_edge_length = 890 + name = "test2" + } + domain = "Default" + scheme = "Default" + comment = "test" +} + +data "tencentcloud_vod_super_player_configs" "foo" { + type = "Custom" + name = "tf-super-player" +} +``` \ No newline at end of file diff --git a/tencentcloud/vod/resource_tc_vod_adaptive_dynamic_streaming_template.md b/tencentcloud/vod/resource_tc_vod_adaptive_dynamic_streaming_template.md new file mode 100644 index 0000000000..487b9c6c04 --- /dev/null +++ b/tencentcloud/vod/resource_tc_vod_adaptive_dynamic_streaming_template.md @@ -0,0 +1,54 @@ +Provide a resource to create a VOD adaptive dynamic streaming template. + +Example Usage + +```hcl +resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { + format = "HLS" + name = "tf-adaptive" + drm_type = "SimpleAES" + disable_higher_video_bitrate = false + disable_higher_video_resolution = false + comment = "test" + + stream_info { + video { + codec = "libx265" + fps = 4 + bitrate = 129 + resolution_adaptive = false + width = 128 + height = 128 + fill_type = "stretch" + } + audio { + codec = "libmp3lame" + bitrate = 129 + sample_rate = 44100 + audio_channel = "dual" + } + remove_audio = false + } + stream_info { + video { + codec = "libx264" + fps = 4 + bitrate = 256 + } + audio { + codec = "libfdk_aac" + bitrate = 256 + sample_rate = 44100 + } + remove_audio = true + } +} +``` + +Import + +VOD adaptive dynamic streaming template can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vod_adaptive_dynamic_streaming_template.foo 169141 +``` \ No newline at end of file diff --git a/tencentcloud/vod/resource_tc_vod_image_sprite_template.md b/tencentcloud/vod/resource_tc_vod_image_sprite_template.md new file mode 100644 index 0000000000..d40212a128 --- /dev/null +++ b/tencentcloud/vod/resource_tc_vod_image_sprite_template.md @@ -0,0 +1,26 @@ +Provide a resource to create a VOD image sprite template. + +Example Usage + +```hcl +resource "tencentcloud_vod_image_sprite_template" "foo" { + sample_type = "Percent" + sample_interval = 10 + row_count = 3 + column_count = 3 + name = "tf-sprite" + comment = "test" + fill_type = "stretch" + width = 128 + height = 128 + resolution_adaptive = false +} +``` + +Import + +VOD image sprite template can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vod_image_sprite_template.foo 51156 +``` \ No newline at end of file diff --git a/tencentcloud/vod/resource_tc_vod_procedure_template.md b/tencentcloud/vod/resource_tc_vod_procedure_template.md new file mode 100644 index 0000000000..b61ccc57e3 --- /dev/null +++ b/tencentcloud/vod/resource_tc_vod_procedure_template.md @@ -0,0 +1,96 @@ +Provide a resource to create a VOD procedure template. + +Example Usage + +```hcl +resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { + format = "HLS" + name = "tf-adaptive" + drm_type = "SimpleAES" + disable_higher_video_bitrate = false + disable_higher_video_resolution = false + comment = "test" + + stream_info { + video { + codec = "libx265" + fps = 4 + bitrate = 129 + resolution_adaptive = false + width = 128 + height = 128 + fill_type = "stretch" + } + audio { + codec = "libmp3lame" + bitrate = 129 + sample_rate = 44100 + audio_channel = "dual" + } + remove_audio = false + } + stream_info { + video { + codec = "libx264" + fps = 4 + bitrate = 256 + } + audio { + codec = "libfdk_aac" + bitrate = 256 + sample_rate = 44100 + } + remove_audio = true + } +} + +resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" { + name = "tf-snapshot" + width = 130 + height = 128 + resolution_adaptive = false + format = "png" + comment = "test" + fill_type = "white" +} + +resource "tencentcloud_vod_image_sprite_template" "foo" { + sample_type = "Percent" + sample_interval = 10 + row_count = 3 + column_count = 3 + name = "tf-sprite" + comment = "test" + fill_type = "stretch" + width = 128 + height = 128 + resolution_adaptive = false +} + +resource "tencentcloud_vod_procedure_template" "foo" { + name = "tf-procedure" + comment = "test" + media_process_task { + adaptive_dynamic_streaming_task_list { + definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id + } + snapshot_by_time_offset_task_list { + definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id + ext_time_offset_list = [ + "3.5s" + ] + } + image_sprite_task_list { + definition = tencentcloud_vod_image_sprite_template.foo.id + } + } +} +``` + +Import + +VOD procedure template can be imported using the name, e.g. + +``` +$ terraform import tencentcloud_vod_procedure_template.foo tf-procedure +``` \ No newline at end of file diff --git a/tencentcloud/vod/resource_tc_vod_snapshot_by_time_offset_template.md b/tencentcloud/vod/resource_tc_vod_snapshot_by_time_offset_template.md new file mode 100644 index 0000000000..8b6dc8d6f5 --- /dev/null +++ b/tencentcloud/vod/resource_tc_vod_snapshot_by_time_offset_template.md @@ -0,0 +1,23 @@ +Provide a resource to create a VOD snapshot by time offset template. + +Example Usage + +```hcl +resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" { + name = "tf-snapshot" + width = 130 + height = 128 + resolution_adaptive = false + format = "png" + comment = "test" + fill_type = "white" +} +``` + +Import + +VOD snapshot by time offset template can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vod_snapshot_by_time_offset_template.foo 46906 +``` \ No newline at end of file diff --git a/tencentcloud/vod/resource_tc_vod_sub_application.md b/tencentcloud/vod/resource_tc_vod_sub_application.md new file mode 100644 index 0000000000..6f7d02b1d9 --- /dev/null +++ b/tencentcloud/vod/resource_tc_vod_sub_application.md @@ -0,0 +1,19 @@ +Provide a resource to create a VOD sub application. + +Example Usage + +```hcl +resource "tencentcloud_vod_sub_application" "foo" { + name = "foo" + status = "On" + description = "this is sub application" +} +``` + +Import + +VOD super player config can be imported using the name+, e.g. + +``` +$ terraform import tencentcloud_vod_sub_application.foo name+"#"+id +``` \ No newline at end of file diff --git a/tencentcloud/vod/resource_tc_vod_super_player_config.md b/tencentcloud/vod/resource_tc_vod_super_player_config.md new file mode 100644 index 0000000000..4698dbe4ca --- /dev/null +++ b/tencentcloud/vod/resource_tc_vod_super_player_config.md @@ -0,0 +1,87 @@ +Provide a resource to create a VOD super player config. + +Example Usage + +```hcl +resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" { + format = "HLS" + name = "tf-adaptive" + drm_type = "SimpleAES" + disable_higher_video_bitrate = false + disable_higher_video_resolution = false + comment = "test" + + stream_info { + video { + codec = "libx265" + fps = 4 + bitrate = 129 + resolution_adaptive = false + width = 128 + height = 128 + fill_type = "stretch" + } + audio { + codec = "libmp3lame" + bitrate = 129 + sample_rate = 44100 + audio_channel = "dual" + } + remove_audio = false + } + stream_info { + video { + codec = "libx264" + fps = 4 + bitrate = 256 + } + audio { + codec = "libfdk_aac" + bitrate = 256 + sample_rate = 44100 + } + remove_audio = true + } +} + +resource "tencentcloud_vod_image_sprite_template" "foo" { + sample_type = "Percent" + sample_interval = 10 + row_count = 3 + column_count = 3 + name = "tf-sprite" + comment = "test" + fill_type = "stretch" + width = 128 + height = 128 + resolution_adaptive = false +} + +resource "tencentcloud_vod_super_player_config" "foo" { + name = "tf-super-player" + drm_switch = true + drm_streaming_info { + simple_aes_definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id + } + image_sprite_definition = tencentcloud_vod_image_sprite_template.foo.id + resolution_names { + min_edge_length = 889 + name = "test1" + } + resolution_names { + min_edge_length = 890 + name = "test2" + } + domain = "Default" + scheme = "Default" + comment = "test" +} +``` + +Import + +VOD super player config can be imported using the name, e.g. + +``` +$ terraform import tencentcloud_vod_super_player_config.foo tf-super-player +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_address_template_groups.md b/tencentcloud/vpc/data_source_tc_address_template_groups.md new file mode 100644 index 0000000000..cbca71753b --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_address_template_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of address template groups. + +Example Usage + +```hcl +data "tencentcloud_address_template_groups" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_address_templates.md b/tencentcloud/vpc/data_source_tc_address_templates.md new file mode 100644 index 0000000000..a681ff76a4 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_address_templates.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of address templates. + +Example Usage + +```hcl +data "tencentcloud_address_templates" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_dnats.md b/tencentcloud/vpc/data_source_tc_dnats.md new file mode 100644 index 0000000000..f6e07488f4 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_dnats.md @@ -0,0 +1,20 @@ +Use this data source to query detailed information of DNATs. + +Example Usage + +```hcl +# query by nat gateway id +data "tencentcloud_dnats" "foo" { + nat_id = "nat-xfaq1" +} + +# query by vpc id +data "tencentcloud_dnats" "foo" { + vpc_id = "vpc-xfqag" +} + +# query by elastic ip +data "tencentcloud_dnats" "foo" { + elastic_ip = "123.207.115.136" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_enis.md b/tencentcloud/vpc/data_source_tc_enis.md new file mode 100644 index 0000000000..a19d214b7d --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_enis.md @@ -0,0 +1,9 @@ +Use this data source to query query ENIs. + +Example Usage + +```hcl +data "tencentcloud_enis" "name" { + name = "test eni" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_ha_vip_eip_attachments.md b/tencentcloud/vpc/data_source_tc_ha_vip_eip_attachments.md new file mode 100644 index 0000000000..98b81994e5 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_ha_vip_eip_attachments.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of HA VIP EIP attachments + +Example Usage + +```hcl +data "tencentcloud_ha_vip_eip_attachments" "foo" { + havip_id = "havip-kjqwe4ba" + address_ip = "1.1.1.1" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_ha_vips.md b/tencentcloud/vpc/data_source_tc_ha_vips.md new file mode 100644 index 0000000000..586e97cd6f --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_ha_vips.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of HA VIPs. + +Example Usage + +```hcl +data "tencentcloud_ha_vips" "havips" { + id = "havip-kjqwe4ba" + name = "test" + vpc_id = "vpc-gzea3dd7" + subnet_id = "subnet-4d4m4cd4" + address_ip = "10.0.4.16" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_nat_dc_route.md b/tencentcloud/vpc/data_source_tc_nat_dc_route.md new file mode 100644 index 0000000000..de37fc2e14 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_nat_dc_route.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of vpc nat_dc_route + +Example Usage + +```hcl +data "tencentcloud_nat_dc_route" "nat_dc_route" { + nat_gateway_id = "nat-gnxkey2e" + vpc_id = "vpc-pyyv5k3v" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_nat_gateway_snats.md b/tencentcloud/vpc/data_source_tc_nat_gateway_snats.md new file mode 100644 index 0000000000..544a8bb0e2 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_nat_gateway_snats.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of VPN gateways. + +Example Usage + +```hcl +data "tencentcloud_nat_gateway_snats" "snat" { + nat_gateway_id = tencentcloud_nat_gateway.my_nat.id + subnet_id = tencentcloud_nat_gateway_snat.my_subnet.id + public_ip_addr = ["50.29.23.234"] + description = "snat demo" + result_output_file = "./snat.txt" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_nat_gateways.md b/tencentcloud/vpc/data_source_tc_nat_gateways.md new file mode 100644 index 0000000000..9819020709 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_nat_gateways.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of NAT gateways. + +Example Usage + +```hcl +data "tencentcloud_nat_gateways" "foo" { + name = "main" + vpc_id = "vpc-xfqag" + id = "nat-xfaq1" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_nats.md b/tencentcloud/vpc/data_source_tc_nats.md new file mode 100644 index 0000000000..889457e28f --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_nats.md @@ -0,0 +1,25 @@ +The NATs data source lists a number of NATs resource information owned by an TencentCloud account. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_nat_gateways. + +Example Usage + +```hcl +# Query the NAT gateway by ID +data "tencentcloud_nats" "anat" { + id = "nat-k6ualnp2" +} + +# Query the list of normal NAT gateways +data "tencentcloud_nats" "nat_state" { + state = 0 +} + +# Multi conditional query NAT gateway list +data "tencentcloud_nats" "multi_nat" { + name = "terraform test" + vpc_id = "vpc-ezij4ltv" + max_concurrent = 3000000 + bandwidth = 500 +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_protocol_template_groups.md b/tencentcloud/vpc/data_source_tc_protocol_template_groups.md new file mode 100644 index 0000000000..81ca705a6d --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_protocol_template_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of protocol template groups. + +Example Usage + +```hcl +data "tencentcloud_protocol_template_groups" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_protocol_templates.md b/tencentcloud/vpc/data_source_tc_protocol_templates.md new file mode 100644 index 0000000000..d4827464e6 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_protocol_templates.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of protocol templates. + +Example Usage + +```hcl +data "tencentcloud_protocol_templates" "name" { + name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_route_table.md b/tencentcloud/vpc/data_source_tc_route_table.md new file mode 100644 index 0000000000..e63be24b20 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_route_table.md @@ -0,0 +1,23 @@ +Provides details about a specific Route Table. + +This resource can prove useful when a module accepts a Subnet id as an input variable and needs to, for example, add a route in the Route Table. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_vpc_route_tables. + +Example Usage + +```hcl +variable "route_table_id" {} + +data "tencentcloud_route_table" "selected" { + route_table_id = var.route_table_id +} + +resource "tencentcloud_route_entry" "rtb_entry_instance" { + vpc_id = "{data.tencentcloud_route_table.selected.vpc_id}" + route_table_id = var.route_table_id + cidr_block = "10.4.8.0/24" + next_type = "instance" + next_hub = "10.16.1.7" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_security_group.md b/tencentcloud/vpc/data_source_tc_security_group.md new file mode 100644 index 0000000000..b550fee15d --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_security_group.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of security group. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_security_groups. + +Example Usage + +```hcl +data "tencentcloud_security_group" "sglab" { + security_group_id = tencentcloud_security_group.sglab.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_security_groups.md b/tencentcloud/vpc/data_source_tc_security_groups.md new file mode 100644 index 0000000000..0ba2168814 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_security_groups.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of security groups. + +Example Usage + +```hcl +data "tencentcloud_security_groups" "sglab" { + security_group_id = tencentcloud_security_group.sglab.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_subnet.md b/tencentcloud/vpc/data_source_tc_subnet.md new file mode 100644 index 0000000000..0fbb93e8ec --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_subnet.md @@ -0,0 +1,31 @@ +Provides details about a specific VPC subnet. + +This resource can prove useful when a module accepts a subnet id as an input variable and needs to, for example, determine the id of the VPC that the subnet belongs to. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_vpc_subnets. + +Example Usage + +```hcl +variable "subnet_id" {} +variable "vpc_id" {} + +data "tencentcloud_subnet" "selected" { + vpc_id = var.vpc_id + subnet_id = var.subnet_id +} + +resource "tencentcloud_security_group" "default" { + name = "test subnet data" + description = "test subnet data description" +} + +resource "tencentcloud_security_group_rule" "subnet" { + security_group_id = tencentcloud_security_group.default.id + type = "ingress" + cidr_ip = data.tencentcloud_subnet.selected.cidr_block + ip_protocol = "tcp" + port_range = "80,8080" + policy = "accept" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc.md b/tencentcloud/vpc/data_source_tc_vpc.md new file mode 100644 index 0000000000..0781b7ec53 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc.md @@ -0,0 +1,22 @@ +Provides details about a specific VPC. + +This resource can prove useful when a module accepts a vpc id as an input variable and needs to, for example, determine the CIDR block of that VPC. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_vpc_instances. + +Example Usage + +```hcl +variable "vpc_id" {} + +data "tencentcloud_vpc" "selected" { + id = var.vpc_id +} + +resource "tencentcloud_subnet" "main" { + name = "my test subnet" + cidr_block = cidrsubnet(data.tencentcloud_vpc.selected.cidr_block, 4, 1) + availability_zone = "eu-frankfurt-1" + vpc_id = data.tencentcloud_vpc.selected.id +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_account_attributes.md b/tencentcloud/vpc/data_source_tc_vpc_account_attributes.md new file mode 100644 index 0000000000..81d6b75a4c --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_account_attributes.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of vpc account_attributes + +Example Usage + +```hcl +data "tencentcloud_vpc_account_attributes" "account_attributes" {} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_acls.md b/tencentcloud/vpc/data_source_tc_vpc_acls.md new file mode 100644 index 0000000000..42ddec15c8 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_acls.md @@ -0,0 +1,17 @@ +Use this data source to query VPC Network ACL information. + +Example Usage + +```hcl +data "tencentcloud_vpc_instances" "foo" { +} + +data "tencentcloud_vpc_acls" "foo" { + vpc_id = data.tencentcloud_vpc_instances.foo.instance_list.0.vpc_id +} + +data "tencentcloud_vpc_acls" "foo" { + name = "test_acl" +} + +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_bill_usage.md b/tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_bill_usage.md new file mode 100644 index 0000000000..ef45636d56 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_bill_usage.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc bandwidth_package_bill_usage + +Example Usage + +```hcl +data "tencentcloud_vpc_bandwidth_package_bill_usage" "bandwidth_package_bill_usage" { + bandwidth_package_id = "bwp-234rfgt5" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_quota.md b/tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_quota.md new file mode 100644 index 0000000000..28149c3119 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_quota.md @@ -0,0 +1,8 @@ +Use this data source to query detailed information of vpc bandwidth_package_quota + +Example Usage + +```hcl +data "tencentcloud_vpc_bandwidth_package_quota" "bandwidth_package_quota" { + } +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_classic_link_instances.md b/tencentcloud/vpc/data_source_tc_vpc_classic_link_instances.md new file mode 100644 index 0000000000..ca2f2e0854 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_classic_link_instances.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of vpc classic_link_instances + +Example Usage + +```hcl +data "tencentcloud_vpc_classic_link_instances" "classic_link_instances" { + filters { + name = "vpc-id" + values = ["vpc-lh4nqig9"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_cvm_instances.md b/tencentcloud/vpc/data_source_tc_vpc_cvm_instances.md new file mode 100644 index 0000000000..9f1ef4ef6d --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_cvm_instances.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of vpc cvm_instances + +Example Usage + +```hcl +data "tencentcloud_vpc_cvm_instances" "cvm_instances" { + filters { + name = "vpc-id" + values = ["vpc-lh4nqig9"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_gateway_flow_monitor_detail.md b/tencentcloud/vpc/data_source_tc_vpc_gateway_flow_monitor_detail.md new file mode 100644 index 0000000000..ffae082d57 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_gateway_flow_monitor_detail.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of vpc gateway_flow_monitor_detail + +Example Usage + +```hcl +data "tencentcloud_vpc_gateway_flow_monitor_detail" "gateway_flow_monitor_detail" { + time_point = "2023-06-02 12:15:20" + vpn_id = "vpngw-gt8bianl" + order_field = "OutTraffic" + order_direction = "DESC" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_gateway_flow_qos.md b/tencentcloud/vpc/data_source_tc_vpc_gateway_flow_qos.md new file mode 100644 index 0000000000..98bcd0e016 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_gateway_flow_qos.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc gateway_flow_qos + +Example Usage + +```hcl +data "tencentcloud_vpc_gateway_flow_qos" "gateway_flow_qos" { + gateway_id = "vpngw-gt8bianl" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_instances.md b/tencentcloud/vpc/data_source_tc_vpc_instances.md new file mode 100644 index 0000000000..8886866d16 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_instances.md @@ -0,0 +1,18 @@ +Use this data source to query vpc instances' information. + +Example Usage + +```hcl +resource "tencentcloud_vpc" "foo" { + name = "guagua_vpc_instance_test" + cidr_block = "10.0.0.0/16" +} + +data "tencentcloud_vpc_instances" "id_instances" { + vpc_id = tencentcloud_vpc.foo.id +} + +data "tencentcloud_vpc_instances" "name_instances" { + name = tencentcloud_vpc.foo.name +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_limits.md b/tencentcloud/vpc/data_source_tc_vpc_limits.md new file mode 100644 index 0000000000..8f74ec71ef --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_limits.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc limits + +Example Usage + +```hcl +data "tencentcloud_vpc_limits" "limits" { + limit_types = ["appid-max-vpcs", "vpc-max-subnets"] +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_net_detect_state_check.md b/tencentcloud/vpc/data_source_tc_vpc_net_detect_state_check.md new file mode 100644 index 0000000000..427ae4d2a4 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_net_detect_state_check.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of vpc net_detect_state_check + +Example Usage + +```hcl +data "tencentcloud_vpc_net_detect_state_check" "net_detect_state_check" { + net_detect_id = "netd-12345678" + detect_destination_ip = [ + "10.0.0.3", + "10.0.0.2" + ] + next_hop_type = "NORMAL_CVM" + next_hop_destination = "10.0.0.4" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_net_detect_states.md b/tencentcloud/vpc/data_source_tc_vpc_net_detect_states.md new file mode 100644 index 0000000000..d9fdf0cdfb --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_net_detect_states.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc net_detect_states + +Example Usage + +```hcl +data "tencentcloud_vpc_net_detect_states" "net_detect_states" { + net_detect_ids = ["netd-12345678"] +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_network_interface_limit.md b/tencentcloud/vpc/data_source_tc_vpc_network_interface_limit.md new file mode 100644 index 0000000000..ecc2cd16c0 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_network_interface_limit.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc network_interface_limit + +Example Usage + +```hcl +data "tencentcloud_vpc_network_interface_limit" "network_interface_limit" { + instance_id = "ins-cr2rfq78" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_private_ip_addresses.md b/tencentcloud/vpc/data_source_tc_vpc_private_ip_addresses.md new file mode 100644 index 0000000000..4ed34cc6a0 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_private_ip_addresses.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of vpc private_ip_addresses + +Example Usage + +```hcl +data "tencentcloud_vpc_private_ip_addresses" "private_ip_addresses" { + vpc_id = "vpc-l0dw94uh" + private_ip_addresses = ["10.0.0.1"] +} + +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_product_quota.md b/tencentcloud/vpc/data_source_tc_vpc_product_quota.md new file mode 100644 index 0000000000..79ae611bfb --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_product_quota.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc product_quota + +Example Usage + +```hcl +data "tencentcloud_vpc_product_quota" "product_quota" { + product = "vpc" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_resource_dashboard.md b/tencentcloud/vpc/data_source_tc_vpc_resource_dashboard.md new file mode 100644 index 0000000000..59552f4bef --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_resource_dashboard.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc resource_dashboard + +Example Usage + +```hcl +data "tencentcloud_vpc_resource_dashboard" "resource_dashboard" { + vpc_ids = ["vpc-4owdpnwr"] +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_route_conflicts.md b/tencentcloud/vpc/data_source_tc_vpc_route_conflicts.md new file mode 100644 index 0000000000..8839fdb560 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_route_conflicts.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of vpc route_conflicts + +Example Usage + +```hcl +data "tencentcloud_vpc_route_conflicts" "route_conflicts" { + route_table_id = "rtb-6xypllqe" + destination_cidr_blocks = ["172.18.111.0/24"] +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_route_tables.md b/tencentcloud/vpc/data_source_tc_vpc_route_tables.md new file mode 100644 index 0000000000..f3ea82da6b --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_route_tables.md @@ -0,0 +1,40 @@ +Use this data source to query vpc route tables information. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +resource "tencentcloud_vpc" "foo" { + name = "guagua-ci-temp-test" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_route_table" "route_table" { + vpc_id = tencentcloud_vpc.foo.id + name = "ci-temp-test-rt" + + tags = { + "test" = "test" + } +} + +data "tencentcloud_vpc_route_tables" "id_instances" { + route_table_id = tencentcloud_route_table.route_table.id +} + +data "tencentcloud_vpc_route_tables" "name_instances" { + name = tencentcloud_route_table.route_table.name +} + +data "tencentcloud_vpc_route_tables" "vpc_default_instance" { + vpc_id = tencentcloud_vpc.foo.id + association_main = true +} + +data "tencentcloud_vpc_route_tables" "tags_instances" { + tags = tencentcloud_route_table.route_table.tags +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_security_group_limits.md b/tencentcloud/vpc/data_source_tc_vpc_security_group_limits.md new file mode 100644 index 0000000000..1c371fabc8 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_security_group_limits.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of vpc security_group_limits + +Example Usage + +```hcl +data "tencentcloud_vpc_security_group_limits" "security_group_limits" {} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_security_group_references.md b/tencentcloud/vpc/data_source_tc_vpc_security_group_references.md new file mode 100644 index 0000000000..82a721d642 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_security_group_references.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc security_group_references + +Example Usage + +```hcl +data "tencentcloud_vpc_security_group_references" "security_group_references" { + security_group_ids = ["sg-edmur627"] +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_sg_snapshot_file_content.md b/tencentcloud/vpc/data_source_tc_vpc_sg_snapshot_file_content.md new file mode 100644 index 0000000000..3ea238d176 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_sg_snapshot_file_content.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of vpc sg_snapshot_file_content + +Example Usage + +```hcl +data "tencentcloud_vpc_sg_snapshot_file_content" "sg_snapshot_file_content" { + snapshot_policy_id = "sspolicy-ebjofe71" + snapshot_file_id = "ssfile-017gepjxpr" + security_group_id = "sg-ntrgm89v" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_snapshot_files.md b/tencentcloud/vpc/data_source_tc_vpc_snapshot_files.md new file mode 100644 index 0000000000..1f7cb0a2ed --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_snapshot_files.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of vpc snapshot_files + +Example Usage + +```hcl +data "tencentcloud_vpc_snapshot_files" "snapshot_files" { + business_type = "securitygroup" + instance_id = "sg-902tl7t7" + start_date = "2022-10-10 00:00:00" + end_date = "2023-10-30 19:00:00" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_subnet_resource_dashboard.md b/tencentcloud/vpc/data_source_tc_vpc_subnet_resource_dashboard.md new file mode 100644 index 0000000000..9b485c770d --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_subnet_resource_dashboard.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc subnet_resource_dashboard + +Example Usage + +```hcl +data "tencentcloud_vpc_subnet_resource_dashboard" "subnet_resource_dashboard" { + subnet_ids = ["subnet-i9tpf6hq"] +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_subnets.md b/tencentcloud/vpc/data_source_tc_vpc_subnets.md new file mode 100644 index 0000000000..26f43eea59 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_subnets.md @@ -0,0 +1,38 @@ +Use this data source to query vpc subnets information. + +Example Usage + +```hcl +variable "availability_zone" { + default = "ap-guangzhou-3" +} + +resource "tencentcloud_vpc" "foo" { + name = "guagua_vpc_instance_test" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = var.availability_zone + name = "guagua_vpc_subnet_test" + vpc_id = tencentcloud_vpc.foo.id + cidr_block = "10.0.20.0/28" + is_multicast = false + + tags = { + "test" = "test" + } +} + +data "tencentcloud_vpc_subnets" "id_instances" { + subnet_id = tencentcloud_subnet.subnet.id +} + +data "tencentcloud_vpc_subnets" "name_instances" { + name = tencentcloud_subnet.subnet.name +} + +data "tencentcloud_vpc_subnets" "tags_instances" { + tags = tencentcloud_subnet.subnet.tags +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_template_limits.md b/tencentcloud/vpc/data_source_tc_vpc_template_limits.md new file mode 100644 index 0000000000..c3d3c84217 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_template_limits.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of vpc template_limits + +Example Usage + +```hcl +data "tencentcloud_vpc_template_limits" "template_limits" {} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/data_source_tc_vpc_used_ip_address.md b/tencentcloud/vpc/data_source_tc_vpc_used_ip_address.md new file mode 100644 index 0000000000..9dbf8faad9 --- /dev/null +++ b/tencentcloud/vpc/data_source_tc_vpc_used_ip_address.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpc used_ip_address + +Example Usage + +```hcl +data "tencentcloud_vpc_used_ip_address" "used_ip_address" { + vpc_id = "vpc-4owdpnwr" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_address_template.md b/tencentcloud/vpc/resource_tc_address_template.md new file mode 100644 index 0000000000..a386036eb6 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_address_template.md @@ -0,0 +1,18 @@ +Provides a resource to manage address template. + +Example Usage + +```hcl +resource "tencentcloud_address_template" "foo" { + name = "cam-user-test" + addresses = ["10.0.0.1","10.0.1.0/24","10.0.0.1-10.0.0.100"] +} +``` + +Import + +Address template can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_address_template.foo ipm-makf7k9e" +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_address_template_group.md b/tencentcloud/vpc/resource_tc_address_template_group.md new file mode 100644 index 0000000000..eb704d5f63 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_address_template_group.md @@ -0,0 +1,18 @@ +Provides a resource to manage address template group. + +Example Usage + +```hcl +resource "tencentcloud_address_template_group" "foo" { + name = "group-test" + template_ids = ["ipl-axaf24151","ipl-axaf24152"] +} +``` + +Import + +Address template group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_address_template_group.foo ipmg-0np3u974 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_dnat.md b/tencentcloud/vpc/resource_tc_dnat.md new file mode 100644 index 0000000000..fae4759b49 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_dnat.md @@ -0,0 +1,89 @@ +Provides a resource to create a NAT forwarding. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +data "tencentcloud_images" "example" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "example-vpc" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eip" "eip_example" { + name = "tf_nat_gateway_eip" +} + +resource "tencentcloud_nat_gateway" "example" { + name = "tf_example_nat_gateway" + vpc_id = tencentcloud_vpc.vpc.id + bandwidth = 100 + max_concurrent = 1000000 + assigned_eip_set = [ + tencentcloud_eip.eip_example.public_ip, + ] + tags = { + tf_tag_key = "tf_tag_value" + } +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example_instance" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + image_id = data.tencentcloud_images.example.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + allocate_public_ip = true + internet_max_bandwidth_out = 10 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_dnat" "example" { + vpc_id = tencentcloud_vpc.vpc.id + nat_id = tencentcloud_nat_gateway.example.id + protocol = "TCP" + elastic_ip = tencentcloud_eip.eip_example.public_ip + elastic_port = 80 + private_ip = tencentcloud_instance.example.private_ip + private_port = 9090 + description = "desc." +} +``` + +Import + +NAT forwarding can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_dnat.foo tcp://vpc-asg3sfa3:nat-1asg3t63@127.15.2.3:8080 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_eni.md b/tencentcloud/vpc/resource_tc_eni.md new file mode 100644 index 0000000000..9039736c6c --- /dev/null +++ b/tencentcloud/vpc/resource_tc_eni.md @@ -0,0 +1,62 @@ +Provides a resource to create an ENI. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "vpc" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "example1" { + name = "tf-example-sg1" + description = "sg desc." + project_id = 0 + + tags = { + "example" = "test" + } +} + +resource "tencentcloud_security_group" "example2" { + name = "tf-example-sg2" + description = "sg desc." + project_id = 0 + + tags = { + "example" = "test" + } +} + +resource "tencentcloud_eni" "example" { + name = "tf-example-eni" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + description = "eni desc." + ipv4_count = 1 + security_groups = [ + tencentcloud_security_group.example1.id, + tencentcloud_security_group.example2.id + ] +} +``` + +Import + +ENI can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_eni.foo eni-qka182br +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_eni_attachment.md b/tencentcloud/vpc/resource_tc_eni_attachment.md new file mode 100644 index 0000000000..da5e5c3511 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_eni_attachment.md @@ -0,0 +1,69 @@ +Provides a resource to detailed information of attached backend server to an ENI. + +Example Usage + +```hcl +resource "tencentcloud_vpc" "foo" { + name = "ci-test-eni-vpc" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "foo" { + availability_zone = "ap-guangzhou-3" + name = "ci-test-eni-subnet" + vpc_id = tencentcloud_vpc.foo.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eni" "foo" { + name = "ci-test-eni" + vpc_id = tencentcloud_vpc.foo.id + subnet_id = tencentcloud_subnet.foo.id + description = "eni desc" + ipv4_count = 1 +} + +data "tencentcloud_images" "my_favorite_image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "centos" +} + +data "tencentcloud_instance_types" "my_favorite_instance_types" { + filter { + name = "instance-family" + values = ["S3"] + } + + cpu_core_count = 1 + memory_size = 1 +} + +data "tencentcloud_availability_zones" "my_favorite_zones" { +} + +resource "tencentcloud_instance" "foo" { + instance_name = "ci-test-eni-attach" + availability_zone = data.tencentcloud_availability_zones.my_favorite_zones.zones.0.name + image_id = data.tencentcloud_images.my_favorite_image.images.0.image_id + instance_type = data.tencentcloud_instance_types.my_favorite_instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + disable_security_service = true + disable_monitor_service = true + vpc_id = tencentcloud_vpc.foo.id + subnet_id = tencentcloud_subnet.foo.id +} + +resource "tencentcloud_eni_attachment" "foo" { + eni_id = tencentcloud_eni.foo.id + instance_id = tencentcloud_instance.foo.id +} +``` + +Import + +ENI attachment can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_eni_attachment.foo eni-gtlvkjvz+ins-0h3a5new +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_eni_sg_attachment.md b/tencentcloud/vpc/resource_tc_eni_sg_attachment.md new file mode 100644 index 0000000000..5b2735659b --- /dev/null +++ b/tencentcloud/vpc/resource_tc_eni_sg_attachment.md @@ -0,0 +1,68 @@ +Provides a resource to create a eni_sg_attachment + +-> **Note:** If this resource is used to bind security groups to eni, it cannot be linked to `tentcloud_eni` binding security group for simultaneous use. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "vpc" +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_security_group" "example1" { + name = "tf-example-sg1" + description = "sg desc." + project_id = 0 + + tags = { + "example" = "test" + } +} + +resource "tencentcloud_security_group" "example2" { + name = "tf-example-sg2" + description = "sg desc." + project_id = 0 + + tags = { + "example" = "test" + } +} + +resource "tencentcloud_eni" "example" { + name = "tf-example-eni" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + description = "eni desc." + ipv4_count = 1 +} + +resource "tencentcloud_eni_sg_attachment" "eni_sg_attachment" { + network_interface_ids = [tencentcloud_eni.example.id] + security_group_ids = [ + tencentcloud_security_group.example1.id, + tencentcloud_security_group.example2.id + ] +} +``` + +Import + +vpc eni_sg_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_eni_sg_attachment.eni_sg_attachment eni_sg_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_ha_vip.md b/tencentcloud/vpc/resource_tc_ha_vip.md new file mode 100644 index 0000000000..bea560f498 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_ha_vip.md @@ -0,0 +1,20 @@ +Provides a resource to create a HA VIP. + +Example Usage + +```hcl +resource "tencentcloud_ha_vip" "foo" { + name = "terraform_test" + vpc_id = "vpc-gzea3dd7" + subnet_id = "subnet-4d4m4cd4s" + vip = "10.0.4.16" +} +``` + +Import + +HA VIP can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_ha_vip.foo havip-kjqwe4ba +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_ha_vip_eip_attachment.md b/tencentcloud/vpc/resource_tc_ha_vip_eip_attachment.md new file mode 100644 index 0000000000..ec56343906 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_ha_vip_eip_attachment.md @@ -0,0 +1,18 @@ +Provides a resource to create a HA VIP EIP attachment. + +Example Usage + +```hcl +resource "tencentcloud_ha_vip_eip_attachment" "foo" { + havip_id = "havip-kjqwe4ba" + address_ip = "1.1.1.1" +} +``` + +Import + +HA VIP EIP attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_ha_vip_eip_attachment.foo havip-kjqwe4ba#1.1.1.1 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_ipv6_address_bandwidth.md b/tencentcloud/vpc/resource_tc_ipv6_address_bandwidth.md new file mode 100644 index 0000000000..2df91d2321 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_ipv6_address_bandwidth.md @@ -0,0 +1,12 @@ +Provides a resource to create a ipv6_address_bandwidth + +Example Usage + +```hcl +resource "tencentcloud_ipv6_address_bandwidth" "ipv6_address_bandwidth" { + ipv6_address = "2402:4e00:1019:9400:0:9905:a90b:2ef0" + internet_max_bandwidth_out = 6 + internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" +# bandwidth_package_id = "bwp-34rfgt56" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_nat_gateway.md b/tencentcloud/vpc/resource_tc_nat_gateway.md new file mode 100644 index 0000000000..79f4cdf842 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_nat_gateway.md @@ -0,0 +1,79 @@ +Provides a resource to create a NAT gateway. + +Example Usage + +Create a traditional NAT gateway. + +```hcl +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_nat_gateway_vpc" +} + +resource "tencentcloud_eip" "eip_example1" { + name = "tf_nat_gateway_eip1" +} + +resource "tencentcloud_eip" "eip_example2" { + name = "tf_nat_gateway_eip2" +} + +resource "tencentcloud_nat_gateway" "example" { + name = "tf_example_nat_gateway" + vpc_id = tencentcloud_vpc.vpc.id + bandwidth = 100 + max_concurrent = 1000000 + assigned_eip_set = [ + tencentcloud_eip.eip_example1.public_ip, + tencentcloud_eip.eip_example2.public_ip, + ] + tags = { + tf_tag_key = "tf_tag_value" + } +} +``` + +Create a standard NAT gateway. + +```hcl +resource "tencentcloud_vpc" "vpc" { + cidr_block = "10.0.0.0/16" + name = "tf_nat_gateway_vpc" +} + +resource "tencentcloud_eip" "eip_example1" { + name = "tf_nat_gateway_eip1" +} + +resource "tencentcloud_eip" "eip_example2" { + name = "tf_nat_gateway_eip2" +} + +resource "tencentcloud_nat_gateway" "example" { + name = "tf_example_nat_gateway" + vpc_id = tencentcloud_vpc.vpc.id + assigned_eip_set = [ + tencentcloud_eip.eip_example1.public_ip, + tencentcloud_eip.eip_example2.public_ip, + ] + nat_product_version = 2 + tags = { + tf_tag_key = "tf_tag_value" + } + lifecycle { + ignore_changes = [ + // standard nat will set default values for bandwidth and max_concurrent + bandwidth, + max_concurrent, + ] + } +} +``` + +Import + +NAT gateway can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_nat_gateway.foo nat-1asg3t63 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_nat_gateway_snat.md b/tencentcloud/vpc/resource_tc_nat_gateway_snat.md new file mode 100644 index 0000000000..52ee66a772 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_nat_gateway_snat.md @@ -0,0 +1,128 @@ +Provides a resource to create a NAT Gateway SNat rule. + +Example Usage + +```hcl +data "tencentcloud_availability_zones_by_product" "zones" { + product = "nat" +} + +data "tencentcloud_images" "image" { + os_name = "centos" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones_by_product.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + route_table_id = tencentcloud_route_table.route_table.id +} + +resource "tencentcloud_eip" "eip_example1" { + name = "eip_example1" +} + +resource "tencentcloud_eip" "eip_example2" { + name = "eip_example2" +} + +# Create NAT Gateway +resource "tencentcloud_nat_gateway" "my_nat" { + vpc_id = tencentcloud_vpc.vpc.id + name = "tf_example_nat_gateway" + max_concurrent = 3000000 + bandwidth = 500 + + assigned_eip_set = [ + tencentcloud_eip.eip_example1.public_ip, + tencentcloud_eip.eip_example2.public_ip, + ] +} + +# Create route_table and entry +resource "tencentcloud_route_table" "route_table" { + vpc_id = tencentcloud_vpc.vpc.id + name = "tf_example" +} + +resource "tencentcloud_route_table_entry" "route_entry" { + route_table_id = tencentcloud_route_table.route_table.id + destination_cidr_block = "10.0.0.0/8" + next_type = "NAT" + next_hub = tencentcloud_nat_gateway.my_nat.id +} + +# Subnet Nat gateway snat +resource "tencentcloud_nat_gateway_snat" "subnet_snat" { + nat_gateway_id = tencentcloud_nat_gateway.my_nat.id + resource_type = "SUBNET" + subnet_id = tencentcloud_subnet.subnet.id + subnet_cidr_block = tencentcloud_subnet.subnet.cidr_block + description = "terraform test" + public_ip_addr = [ + tencentcloud_eip.eip_example1.public_ip, + tencentcloud_eip.eip_example2.public_ip, + ] +} + +# Create instance +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones_by_product.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +# NetWorkInterface Nat gateway snat +resource "tencentcloud_nat_gateway_snat" "my_instance_snat" { + nat_gateway_id = tencentcloud_nat_gateway.my_nat.id + resource_type = "NETWORKINTERFACE" + instance_id = tencentcloud_instance.example.id + instance_private_ip_addr = tencentcloud_instance.example.private_ip + description = "terraform test" + public_ip_addr = [ + tencentcloud_eip.eip_example1.public_ip, + ] +} +``` + +Import + +VPN gateway route can be imported using the id, the id format must be '{nat_gateway_id}#{resource_id}', resource_id range `subnet_id`, `instance_id`, e.g. + +SUBNET SNat +``` +$ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#subnet-2ap74y35 +``` + +NETWORKINTERFACT SNat +``` +$ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#ins-da412f5a +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_nat_refresh_nat_dc_route.md b/tencentcloud/vpc/resource_tc_nat_refresh_nat_dc_route.md new file mode 100644 index 0000000000..9d3b1da14f --- /dev/null +++ b/tencentcloud/vpc/resource_tc_nat_refresh_nat_dc_route.md @@ -0,0 +1,51 @@ +Provides a resource to create a vpc refresh_nat_dc_route + +Example Usage + +If `dry_run` is True + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_eip" "eip_example" { + name = "eip_example" +} + +resource "tencentcloud_nat_gateway" "nat" { + vpc_id = tencentcloud_vpc.vpc.id + name = "tf_example_nat_gateway" + max_concurrent = 3000000 + bandwidth = 500 + + assigned_eip_set = [ + tencentcloud_eip.eip_example.public_ip, + ] +} + +resource "tencentcloud_nat_refresh_nat_dc_route" "refresh_nat_dc_route" { + nat_gateway_id = tencentcloud_nat_gateway.nat.id + vpc_id = tencentcloud_vpc.vpc.id + dry_run = true +} +``` + +Or `dry_run` is False + +```hcl +resource "tencentcloud_nat_refresh_nat_dc_route" "refresh_nat_dc_route" { + nat_gateway_id = tencentcloud_nat_gateway.nat.id + vpc_id = tencentcloud_vpc.vpc.id + dry_run = false +} +``` + +Import + +vpc refresh_nat_dc_route can be imported using the id, e.g. + +``` +terraform import tencentcloud_nat_refresh_nat_dc_route.refresh_nat_dc_route vpc_id#nat_gateway_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_protocol_template.md b/tencentcloud/vpc/resource_tc_protocol_template.md new file mode 100644 index 0000000000..620380ebdf --- /dev/null +++ b/tencentcloud/vpc/resource_tc_protocol_template.md @@ -0,0 +1,18 @@ +Provides a resource to manage protocol template. + +Example Usage + +```hcl +resource "tencentcloud_protocol_template" "foo" { + name = "protocol-template-test" + protocols = ["tcp:80","udp:all","icmp:10-30"] +} +``` + +Import + +Protocol template can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_protocol_template.foo ppm-nwrggd14 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_protocol_template_group.md b/tencentcloud/vpc/resource_tc_protocol_template_group.md new file mode 100644 index 0000000000..2c32a8f513 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_protocol_template_group.md @@ -0,0 +1,18 @@ +Provides a resource to manage protocol template group. + +Example Usage + +```hcl +resource "tencentcloud_protocol_template_group" "foo" { + name = "group-test" + template_ids = ["ipl-axaf24151","ipl-axaf24152"] +} +``` + +Import + +Protocol template group can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_protocol_template_group.foo ppmg-0np3u974 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_route_entry.md b/tencentcloud/vpc/resource_tc_route_entry.md new file mode 100644 index 0000000000..bd594637a4 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_route_entry.md @@ -0,0 +1,33 @@ +Provides a resource to create a routing entry in a VPC routing table. + +~> **NOTE:** It has been deprecated and replaced by tencentcloud_route_table_entry. + +Example Usage + +```hcl +resource "tencentcloud_vpc" "main" { + name = "Used to test the routing entry" + cidr_block = "10.4.0.0/16" +} + +resource "tencentcloud_route_table" "r" { + name = "Used to test the routing entry" + vpc_id = tencentcloud_vpc.main.id +} + +resource "tencentcloud_route_entry" "rtb_entry_instance" { + vpc_id = tencentcloud_route_table.main.vpc_id + route_table_id = tencentcloud_route_table.r.id + cidr_block = "10.4.8.0/24" + next_type = "instance" + next_hub = "10.16.1.7" +} + +resource "tencentcloud_route_entry" "rtb_entry_instance" { + vpc_id = tencentcloud_route_table.main.vpc_id + route_table_id = tencentcloud_route_table.r.id + cidr_block = "10.4.5.0/24" + next_type = "vpn_gateway" + next_hub = "vpngw-db52irtl" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_route_table.md b/tencentcloud/vpc/resource_tc_route_table.md new file mode 100644 index 0000000000..df46408ff1 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_route_table.md @@ -0,0 +1,23 @@ +Provides a resource to create a VPC routing table. + +Example Usage + +```hcl +resource "tencentcloud_vpc" "foo" { + name = "ci-temp-test" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_route_table" "foo" { + vpc_id = tencentcloud_vpc.foo.id + name = "ci-temp-test-rt" +} +``` + +Import + +Vpc routetable instance can be imported, e.g. + +``` +$ terraform import tencentcloud_route_table.test route_table_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_route_table_association.md b/tencentcloud/vpc/resource_tc_route_table_association.md new file mode 100644 index 0000000000..7b1d9bcda6 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_route_table_association.md @@ -0,0 +1,18 @@ +Provides a resource to create a vpc route_table + +Example Usage + +```hcl +resource "tencentcloud_route_table_association" "route_table_association" { + route_table_id = "rtb-5toos5sy" + subnet_id = "subnet-2y2omd4k" +} +``` + +Import + +vpc route_table can be imported using the id, e.g. + +``` +terraform import tencentcloud_route_table_association.route_table_association subnet_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_route_table_entry.md b/tencentcloud/vpc/resource_tc_route_table_entry.md new file mode 100644 index 0000000000..9abb8394cf --- /dev/null +++ b/tencentcloud/vpc/resource_tc_route_table_entry.md @@ -0,0 +1,43 @@ +Provides a resource to create an entry of a routing table. + +Example Usage + +```hcl +variable "availability_zone" { + default = "na-siliconvalley-1" +} + +resource "tencentcloud_vpc" "foo" { + name = "ci-temp-test" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "foo" { + vpc_id = tencentcloud_vpc.foo.id + name = "terraform test subnet" + cidr_block = "10.0.12.0/24" + availability_zone = var.availability_zone + route_table_id = tencentcloud_route_table.foo.id +} + +resource "tencentcloud_route_table" "foo" { + vpc_id = tencentcloud_vpc.foo.id + name = "ci-temp-test-rt" +} + +resource "tencentcloud_route_table_entry" "instance" { + route_table_id = tencentcloud_route_table.foo.id + destination_cidr_block = "10.4.4.0/24" + next_type = "EIP" + next_hub = "0" + description = "ci-test-route-table-entry" +} +``` + +Import + +Route table entry can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_route_table_entry.foo 83517.rtb-mlhpg09u +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_security_group.md b/tencentcloud/vpc/resource_tc_security_group.md new file mode 100644 index 0000000000..e2643cf6cd --- /dev/null +++ b/tencentcloud/vpc/resource_tc_security_group.md @@ -0,0 +1,34 @@ +Provides a resource to create security group. + +Example Usage + +Create a basic security group + +```hcl +resource "tencentcloud_security_group" "example" { + name = "tf-example-sg" + description = "sg test" +} +``` + +Create a complete security group + +```hcl +resource "tencentcloud_security_group" "example" { + name = "tf-example-sg" + description = "sg test" + project_id = 0 + + tags = { + "example" = "test" + } +} +``` + +Import + +Security group can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_security_group.sglab sg-ey3wmiz1 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_security_group_lite_rule.md b/tencentcloud/vpc/resource_tc_security_group_lite_rule.md new file mode 100644 index 0000000000..c4ad222c1e --- /dev/null +++ b/tencentcloud/vpc/resource_tc_security_group_lite_rule.md @@ -0,0 +1,40 @@ +Provide a resource to create security group some lite rules quickly. + +-> **NOTE:** It can't be used with tencentcloud_security_group_rule, and don't create multiple tencentcloud_security_group_rule resources, otherwise it may cause problems. + +Example Usage + +```hcl +resource "tencentcloud_security_group" "foo" { + name = "ci-temp-test-sg" +} + +resource "tencentcloud_security_group_lite_rule" "foo" { + security_group_id = tencentcloud_security_group.foo.id + + ingress = [ + "ACCEPT#192.168.1.0/24#80#TCP", + "DROP#8.8.8.8#80,90#UDP", + "ACCEPT#0.0.0.0/0#80-90#TCP", + "ACCEPT#sg-7ixn3foj#80-90#TCP", + "ACCEPT#ipm-epjq5kn0#80-90#TCP", + "ACCEPT#ipmg-3loavam6#80-90#TCP", + "ACCEPT#0.0.0.0/0##ppm-xxxxxxxx" + "ACCEPT#0.0.0.0/0##ppmg-xxxxxxxx" + ] + + egress = [ + "ACCEPT#192.168.0.0/16#ALL#TCP", + "ACCEPT#10.0.0.0/8#ALL#ICMP", + "DROP#0.0.0.0/0#ALL#ALL", + ] +} +``` + +Import + +Security group lite rule can be imported using the id, e.g. + +``` + $ terraform import tencentcloud_security_group_lite_rule.foo sg-ey3wmiz1 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_security_group_rule.md b/tencentcloud/vpc/resource_tc_security_group_rule.md new file mode 100644 index 0000000000..7cee15ae85 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_security_group_rule.md @@ -0,0 +1,51 @@ +Provides a resource to create security group rule. + +~> **NOTE:** This resource will be offline and no longer supported, beacause single security rule is hardly ordered. Please use 'tencentcloud_security_group_lite_rule' instead. + +Example Usage + +Source is CIDR ip + +```hcl +resource "tencentcloud_security_group" "sglab_1" { + name = "mysg_1" + description = "favourite sg_1" + project_id = 0 +} + +resource "tencentcloud_security_group_rule" "sglab_1" { + security_group_id = tencentcloud_security_group.sglab_1.id + type = "ingress" + cidr_ip = "10.0.0.0/16" + ip_protocol = "TCP" + port_range = "80" + policy = "ACCEPT" + description = "favourite sg rule_1" +} +``` + +Source is a security group id + +```hcl +resource "tencentcloud_security_group" "sglab_2" { + name = "mysg_2" + description = "favourite sg_2" + project_id = 0 +} + +resource "tencentcloud_security_group" "sglab_3" { + name = "mysg_3" + description = "favourite sg_3" + project_id = 0 +} + +resource "tencentcloud_security_group_rule" "sglab_2" { + security_group_id = tencentcloud_security_group.sglab_2.id + type = "ingress" + ip_protocol = "TCP" + port_range = "80" + policy = "ACCEPT" + source_sgid = tencentcloud_security_group.sglab_3.id + description = "favourite sg rule_2" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_security_group_rule_set.md b/tencentcloud/vpc/resource_tc_security_group_rule_set.md new file mode 100644 index 0000000000..8e40171944 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_security_group_rule_set.md @@ -0,0 +1,98 @@ +Provides a resource to create security group rule. This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions. + +~> **NOTE:** This resource must exclusive in one security group, do not declare additional rule resources of this security group elsewhere. + +Example Usage + +```hcl +resource "tencentcloud_security_group" "base" { + name = "test-set-sg" + description = "Testing Rule Set Security" +} + +resource "tencentcloud_security_group" "relative" { + name = "for-relative" + description = "Used for attach security policy" +} + +resource "tencentcloud_address_template" "foo" { + name = "test-set-aTemp" + addresses = ["10.0.0.1", "10.0.1.0/24", "10.0.0.1-10.0.0.100"] +} + +resource "tencentcloud_address_template_group" "foo" { + name = "test-set-atg" + template_ids = [tencentcloud_address_template.foo.id] +} + +resource "tencentcloud_security_group_rule_set" "base" { + security_group_id = tencentcloud_security_group.base.id + + ingress { + action = "ACCEPT" + cidr_block = "10.0.0.0/22" + protocol = "TCP" + port = "80-90" + description = "A:Allow Ips and 80-90" + } + + ingress { + action = "ACCEPT" + cidr_block = "10.0.2.1" + protocol = "UDP" + port = "8080" + description = "B:Allow UDP 8080" + } + + ingress { + action = "ACCEPT" + cidr_block = "10.0.2.1" + protocol = "UDP" + port = "8080" + description = "C:Allow UDP 8080" + } + + ingress { + action = "ACCEPT" + cidr_block = "172.18.1.2" + protocol = "ALL" + port = "ALL" + description = "D:Allow ALL" + } + + ingress { + action = "DROP" + protocol = "TCP" + port = "80" + source_security_id = tencentcloud_security_group.relative.id + description = "E:Block relative" + } + + egress { + action = "DROP" + cidr_block = "10.0.0.0/16" + protocol = "ICMP" + description = "A:Block ping3" + } + + egress { + action = "DROP" + address_template_id = tencentcloud_address_template.foo.id + description = "B:Allow template" + } + + egress { + action = "DROP" + address_template_group = tencentcloud_address_template_group.foo.id + description = "C:DROP template group" + } +} +``` + +Import + +Resource tencentcloud_security_group_rule_set can be imported by passing security grou id: + +``` +terraform import tencentcloud_security_group_rule_set.sglab_1 sg-xxxxxxxx +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_subnet.md b/tencentcloud/vpc/resource_tc_subnet.md new file mode 100644 index 0000000000..7be5ba9f12 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_subnet.md @@ -0,0 +1,28 @@ +Provide a resource to create a VPC subnet. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + is_multicast = false +} +``` + +Import + +Vpc subnet instance can be imported, e.g. + +``` +$ terraform import tencentcloud_subnet.test subnet_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc.md b/tencentcloud/vpc/resource_tc_vpc.md new file mode 100644 index 0000000000..16ecd5e89b --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc.md @@ -0,0 +1,41 @@ +Provide a resource to create a VPC. + +Example Usage + +Create a basic VPC + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "tf-example" + cidr_block = "10.0.0.0/16" + dns_servers = ["119.29.29.29", "8.8.8.8"] + is_multicast = false + + tags = { + "test" = "test" + } +} +``` + +Using Assistant CIDR + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "tf-example" + cidr_block = "10.0.0.0/16" + is_multicast = false + assistant_cidrs = ["172.16.0.0/24"] + + tags = { + "test" = "test" + } +} +``` + +Import + +Vpc instance can be imported, e.g. + +``` +$ terraform import tencentcloud_vpc.test vpc-id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_acl.md b/tencentcloud/vpc/resource_tc_vpc_acl.md new file mode 100644 index 0000000000..09b046bf7b --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_acl.md @@ -0,0 +1,31 @@ +Provide a resource to create a VPC ACL instance. + +Example Usage + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_vpc_acl" "example" { + vpc_id = tencentcloud_vpc.vpc.id + name = "tf-example" + ingress = [ + "ACCEPT#192.168.1.0/24#800#TCP", + "ACCEPT#192.168.1.0/24#800-900#TCP", + ] + egress = [ + "ACCEPT#192.168.1.0/24#800#TCP", + "ACCEPT#192.168.1.0/24#800-900#TCP", + ] +} +``` + +Import + +Vpc ACL can be imported, e.g. + +``` +$ terraform import tencentcloud_vpc_acl.default acl-id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_acl_attachment.md b/tencentcloud/vpc/resource_tc_vpc_acl_attachment.md new file mode 100644 index 0000000000..b3b617a096 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_acl_attachment.md @@ -0,0 +1,45 @@ +Provide a resource to attach an existing subnet to Network ACL. + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name +} + +resource "tencentcloud_vpc_acl" "example" { + vpc_id = tencentcloud_vpc.vpc.id + name = "tf-example" + ingress = [ + "ACCEPT#192.168.1.0/24#800#TCP", + "ACCEPT#192.168.1.0/24#800-900#TCP", + ] + egress = [ + "ACCEPT#192.168.1.0/24#800#TCP", + "ACCEPT#192.168.1.0/24#800-900#TCP", + ] +} + +resource "tencentcloud_vpc_acl_attachment" "attachment"{ + acl_id = tencentcloud_vpc_acl.example.id + subnet_id = tencentcloud_subnet.subnet.id +} +``` + +Import + +Acl attachment can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vpc_acl_attachment.attachment acl-eotx5qsg#subnet-91x0geu6 +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_bandwidth_package.md b/tencentcloud/vpc/resource_tc_vpc_bandwidth_package.md new file mode 100644 index 0000000000..82b47d8652 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_bandwidth_package.md @@ -0,0 +1,51 @@ +Provides a resource to create a vpc bandwidth_package + +Example Usage + +```hcl +resource "tencentcloud_vpc_bandwidth_package" "example" { + network_type = "BGP" + charge_type = "TOP5_POSTPAID_BY_MONTH" + bandwidth_package_name = "tf-example" + tags = { + "createdBy" = "terraform" + } +} +``` + +PrePaid Bandwidth Package + +```hcl +resource "tencentcloud_vpc_bandwidth_package" "bandwidth_package" { + network_type = "BGP" + charge_type = "FIXED_PREPAID_BY_MONTH" + bandwidth_package_name = "test-001" + time_span = 3 + internet_max_bandwidth = 100 + tags = { + "createdBy" = "terraform" + } +} +```` + +Bandwidth Package With Egress + +```hcl +resource "tencentcloud_vpc_bandwidth_package" "example" { + network_type = "SINGLEISP_CMCC" + charge_type = "ENHANCED95_POSTPAID_BY_MONTH" + bandwidth_package_name = "tf-example" + internet_max_bandwidth = 400 + egress = "center_egress2" + tags = { + "createdBy" = "terraform" + } +} +``` + +Import + +vpc bandwidth_package can be imported using the id, e.g. +``` +$ terraform import tencentcloud_vpc_bandwidth_package.bandwidth_package bandwidthPackage_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_bandwidth_package_attachment.md b/tencentcloud/vpc/resource_tc_vpc_bandwidth_package_attachment.md new file mode 100644 index 0000000000..02dc478efc --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_bandwidth_package_attachment.md @@ -0,0 +1,47 @@ +Provides a resource to create a vpc bandwidth_package_attachment + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name +} + +resource "tencentcloud_vpc_bandwidth_package" "example" { + network_type = "BGP" + charge_type = "TOP5_POSTPAID_BY_MONTH" + bandwidth_package_name = "tf-example" + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_clb_instance" "example" { + network_type = "INTERNAL" + clb_name = "tf-example" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + + tags = { + "createdBy" = "terraform" + } +} + +resource "tencentcloud_vpc_bandwidth_package_attachment" "attachment" { + resource_id = tencentcloud_clb_instance.example.id + bandwidth_package_id = tencentcloud_vpc_bandwidth_package.example.id + network_type = "BGP" + resource_type = "LoadBalance" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_dhcp_ip.md b/tencentcloud/vpc/resource_tc_vpc_dhcp_ip.md new file mode 100644 index 0000000000..cb2f43f7f0 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_dhcp_ip.md @@ -0,0 +1,34 @@ +Provides a resource to create a vpc dhcp_ip + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_vpc_dhcp_ip" "example" { + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + dhcp_ip_name = "tf-example" +} +``` + +Import + +vpc dhcp_ip can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_dhcp_ip.dhcp_ip dhcp_ip_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_ipv6_cidr_block.md b/tencentcloud/vpc/resource_tc_vpc_ipv6_cidr_block.md new file mode 100644 index 0000000000..aa1ba40394 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_ipv6_cidr_block.md @@ -0,0 +1,22 @@ +Provides a resource to create a vpc ipv6_cidr_block + +Example Usage + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_vpc_ipv6_cidr_block" "example" { + vpc_id = tencentcloud_vpc.vpc.id +} +``` + +Import + +vpc ipv6_cidr_block can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_ipv6_cidr_block.ipv6_cidr_block vpc_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_ipv6_eni_address.md b/tencentcloud/vpc/resource_tc_vpc_ipv6_eni_address.md new file mode 100644 index 0000000000..e5bc8335f4 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_ipv6_eni_address.md @@ -0,0 +1,41 @@ +Provides a resource to create a vpc ipv6_eni_address + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_eni" "eni" { + name = "eni-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + description = "eni desc." + ipv4_count = 1 +} + +resource "tencentcloud_vpc_ipv6_cidr_block" "example" { + vpc_id = tencentcloud_vpc.vpc.id +} + +resource "tencentcloud_vpc_ipv6_eni_address" "ipv6_eni_address" { + vpc_id = tencentcloud_vpc.vpc.id + network_interface_id = tencentcloud_eni.eni.id + ipv6_addresses { + address = tencentcloud_vpc_ipv6_cidr_block.example.ipv6_cidr_block + description = "desc." + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_ipv6_subnet_cidr_block.md b/tencentcloud/vpc/resource_tc_vpc_ipv6_subnet_cidr_block.md new file mode 100644 index 0000000000..9a0b514886 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_ipv6_subnet_cidr_block.md @@ -0,0 +1,40 @@ +Provides a resource to create a vpc ipv6_subnet_cidr_block + +Example Usage + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + name = "subnet-example" + vpc_id = tencentcloud_vpc.vpc.id + cidr_block = "10.0.0.0/16" + is_multicast = false +} + +resource "tencentcloud_vpc_ipv6_cidr_block" "example" { + vpc_id = tencentcloud_vpc.vpc.id +} + +resource "tencentcloud_vpc_ipv6_subnet_cidr_block" "example" { + vpc_id = tencentcloud_vpc.vpc.id + ipv6_subnet_cidr_blocks { + subnet_id = tencentcloud_subnet.subnet.id + ipv6_cidr_block = tencentcloud_vpc_ipv6_cidr_block.example.ipv6_cidr_block + } +} +``` + +Import + +vpc ipv6_subnet_cidr_block can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_ipv6_subnet_cidr_block.ipv6_subnet_cidr_block ipv6_subnet_cidr_block_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_local_gateway.md b/tencentcloud/vpc/resource_tc_vpc_local_gateway.md new file mode 100644 index 0000000000..0d399ababe --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_local_gateway.md @@ -0,0 +1,24 @@ +Provides a resource to create a vpc local_gateway + +Example Usage + +```hcl +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_vpc_local_gateway" "example" { + local_gateway_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + cdc_id = "cluster-j9gyu1iy" +} +``` + +Import + +vpc local_gateway can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_local_gateway.local_gateway local_gateway_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_net_detect.md b/tencentcloud/vpc/resource_tc_vpc_net_detect.md new file mode 100644 index 0000000000..46c48899f2 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_net_detect.md @@ -0,0 +1,216 @@ +Provides a resource to create a vpc net_detect + +Example Usage + +Create a basic Net Detect + +```hcl +data "tencentcloud_availability_zones" "zones" {} + +resource "tencentcloud_vpc" "vpc" { + name = "vpc-example" + cidr_block = "10.0.0.0/16" +} + +resource "tencentcloud_subnet" "subnet" { + vpc_id = tencentcloud_vpc.vpc.id + name = "subnet-example" + cidr_block = "10.0.0.0/16" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name +} + +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + detect_destination_ip = [ + "10.0.0.1", + "10.0.0.2", + ] +} +``` + +If `next_hop_type` is `VPN` + +```hcl +resource "tencentcloud_vpn_gateway" "vpn" { + name = "tf-example" + bandwidth = 100 + zone = data.tencentcloud_availability_zones.zones.zones.0.name + type = "SSL" + vpc_id = tencentcloud_vpc.vpc.id + + tags = { + test = "test" + } +} + +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + next_hop_type = "VPN" + next_hop_destination = tencentcloud_vpn_gateway.vpn.id + detect_destination_ip = [ + "192.16.10.10", + "172.16.10.22", + ] +} +``` + +If `next_hop_type` is `DIRECTCONNECT` + +```hcl +resource "tencentcloud_dc_gateway" "example" { + name = "ci-cdg-vpc-test" + network_instance_id = tencentcloud_vpc.vpc.id + network_type = "VPC" + gateway_type = "NAT" +} + +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + next_hop_type = "DIRECTCONNECT" + next_hop_destination = tencentcloud_dc_gateway.example.id + detect_destination_ip = [ + "192.16.10.10", + "172.16.10.22", + ] +} +``` + +If `next_hop_type` is `NAT` + +```hcl +resource "tencentcloud_eip" "eip_example1" { + name = "tf_nat_gateway_eip1" +} + +resource "tencentcloud_eip" "eip_example2" { + name = "tf_nat_gateway_eip2" +} + +resource "tencentcloud_nat_gateway" "example" { + name = "tf_example_nat_gateway" + vpc_id = tencentcloud_vpc.vpc.id + bandwidth = 100 + max_concurrent = 1000000 + assigned_eip_set = [ + tencentcloud_eip.eip_example1.public_ip, + tencentcloud_eip.eip_example2.public_ip, + ] + tags = { + tf_tag_key = "tf_tag_value" + } +} + +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + next_hop_type = "NAT" + next_hop_destination = tencentcloud_nat_gateway.example.id + detect_destination_ip = [ + "192.16.10.10", + "172.16.10.22", + ] +} +``` + +If `next_hop_type` is `NORMAL_CVM` + +```hcl +data "tencentcloud_images" "image" { + image_type = ["PUBLIC_IMAGE"] + os_name = "TencentOS Server 3.2 (Final)" +} + +data "tencentcloud_instance_types" "instance_types" { + filter { + name = "zone" + values = [data.tencentcloud_availability_zones.zones.zones.0.name] + } + + filter { + name = "instance-family" + values = ["S5"] + } + + cpu_core_count = 2 + exclude_sold_out = true +} + +resource "tencentcloud_instance" "example" { + instance_name = "tf_example" + availability_zone = data.tencentcloud_availability_zones.zones.zones.0.name + image_id = data.tencentcloud_images.image.images.0.image_id + instance_type = data.tencentcloud_instance_types.instance_types.instance_types.0.instance_type + system_disk_type = "CLOUD_PREMIUM" + system_disk_size = 50 + hostname = "user" + project_id = 0 + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id +} + +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + next_hop_type = "NORMAL_CVM" + next_hop_destination = tencentcloud_instance.example.private_ip + detect_destination_ip = [ + "192.16.10.10", + "172.16.10.22", + ] +} +``` + +If `next_hop_type` is `CCN` + +```hcl +resource "tencentcloud_ccn" "example" { + name = "tf-example" + description = "desc." + qos = "AU" + charge_type = "POSTPAID" + bandwidth_limit_type = "OUTER_REGION_LIMIT" +} + +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + next_hop_type = "CCN" + next_hop_destination = tencentcloud_ccn.example.id + detect_destination_ip = [ + "172.10.0.1", + "172.10.0.2", + ] +} +``` + +If `next_hop_type` is `NONEXTHOP` + +```hcl +resource "tencentcloud_vpc_net_detect" "example" { + net_detect_name = "tf-example" + vpc_id = tencentcloud_vpc.vpc.id + subnet_id = tencentcloud_subnet.subnet.id + next_hop_type = "NONEXTHOP" + detect_destination_ip = [ + "10.0.0.1", + "10.0.0.2", + ] +} +``` + +Import + +vpc net_detect can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_net_detect.net_detect net_detect_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_resume_snapshot_instance.md b/tencentcloud/vpc/resource_tc_vpc_resume_snapshot_instance.md new file mode 100644 index 0000000000..28c47a93bb --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_resume_snapshot_instance.md @@ -0,0 +1,57 @@ +Provides a resource to create a vpc resume_snapshot_instance + +Example Usage + +Basic example + +```hcl +resource "tencentcloud_vpc_resume_snapshot_instance" "resume_snapshot_instance" { + snapshot_policy_id = "sspolicy-1t6cobbv" + snapshot_file_id = "ssfile-emtabuwu2z" + instance_id = "ntrgm89v" +} +``` + +Complete example + +```hcl +data "tencentcloud_vpc_snapshot_files" "example" { + business_type = "securitygroup" + instance_id = "sg-902tl7t7" + start_date = "2022-10-10 00:00:00" + end_date = "2023-10-30 00:00:00" +} + +resource "tencentcloud_cos_bucket" "example" { + bucket = "tf-example-1308919341" + acl = "private" +} + +resource "tencentcloud_vpc_snapshot_policy" "example" { + snapshot_policy_name = "tf-example" + backup_type = "time" + cos_bucket = tencentcloud_cos_bucket.example.bucket + cos_region = "ap-guangzhou" + create_new_cos = false + keep_time = 2 + + backup_policies { + backup_day = "monday" + backup_time = "00:00:00" + } + backup_policies { + backup_day = "tuesday" + backup_time = "01:00:00" + } + backup_policies { + backup_day = "wednesday" + backup_time = "02:00:00" + } +} + +resource "tencentcloud_vpc_resume_snapshot_instance" "example" { + snapshot_policy_id = tencentcloud_vpc_snapshot_policy.example.id + snapshot_file_id = data.tencentcloud_vpc_snapshot_files.example.snapshot_file_set.0.snapshot_file_id + instance_id = "policy-1t6cob" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_snapshot_policy.md b/tencentcloud/vpc/resource_tc_vpc_snapshot_policy.md new file mode 100644 index 0000000000..aa3ee0be5f --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_snapshot_policy.md @@ -0,0 +1,40 @@ +Provides a resource to create a vpc snapshot_policy + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket" "example" { + bucket = "tf-example-1308919341" + acl = "private" +} + +resource "tencentcloud_vpc_snapshot_policy" "example" { + snapshot_policy_name = "tf-example" + backup_type = "time" + cos_bucket = tencentcloud_cos_bucket.example.bucket + cos_region = "ap-guangzhou" + create_new_cos = false + keep_time = 2 + + backup_policies { + backup_day = "monday" + backup_time = "00:00:00" + } + backup_policies { + backup_day = "tuesday" + backup_time = "01:00:00" + } + backup_policies { + backup_day = "wednesday" + backup_time = "02:00:00" + } +} +``` + +Import + +vpc snapshot_policy can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_snapshot_policy.snapshot_policy snapshot_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_snapshot_policy_attachment.md b/tencentcloud/vpc/resource_tc_vpc_snapshot_policy_attachment.md new file mode 100644 index 0000000000..930790f71d --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_snapshot_policy_attachment.md @@ -0,0 +1,56 @@ +Provides a resource to create a vpc snapshot_policy_attachment + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket" "example" { + bucket = "tf-example-1308919341" + acl = "private" +} + +resource "tencentcloud_vpc_snapshot_policy" "example" { + snapshot_policy_name = "tf-example" + backup_type = "time" + cos_bucket = tencentcloud_cos_bucket.example.bucket + cos_region = "ap-guangzhou" + create_new_cos = false + keep_time = 2 + + backup_policies { + backup_day = "monday" + backup_time = "00:00:00" + } + backup_policies { + backup_day = "tuesday" + backup_time = "01:00:00" + } + backup_policies { + backup_day = "wednesday" + backup_time = "02:00:00" + } +} + +resource "tencentcloud_security_group" "example" { + name = "tf-example" + description = "desc." +} + +resource "tencentcloud_vpc_snapshot_policy_attachment" "attachment" { + snapshot_policy_id = tencentcloud_vpc_snapshot_policy.example.id + + instances { + instance_type = "securitygroup" + instance_id = tencentcloud_security_group.example.id + instance_name = "tf-example" + instance_region = "ap-guangzhou" + } +} +``` + +Import + +vpc snapshot_policy_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_snapshot_policy_attachment.snapshot_policy_attachment snapshot_policy_attachment_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_snapshot_policy_config.md b/tencentcloud/vpc/resource_tc_vpc_snapshot_policy_config.md new file mode 100644 index 0000000000..8029421491 --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_snapshot_policy_config.md @@ -0,0 +1,45 @@ +Provides a resource to create a vpc snapshot_policy_config + +Example Usage + +```hcl +resource "tencentcloud_cos_bucket" "example" { + bucket = "tf-example-1308919341" + acl = "private" +} + +resource "tencentcloud_vpc_snapshot_policy" "example" { + snapshot_policy_name = "tf-example" + backup_type = "time" + cos_bucket = tencentcloud_cos_bucket.example.bucket + cos_region = "ap-guangzhou" + create_new_cos = false + keep_time = 2 + + backup_policies { + backup_day = "monday" + backup_time = "00:00:00" + } + backup_policies { + backup_day = "tuesday" + backup_time = "01:00:00" + } + backup_policies { + backup_day = "wednesday" + backup_time = "02:00:00" + } +} + +resource "tencentcloud_vpc_snapshot_policy_config" "config" { + snapshot_policy_id = tencentcloud_vpc_snapshot_policy.example.id + enable = false +} +``` + +Import + +vpc snapshot_policy_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_snapshot_policy_config.snapshot_policy_config snapshot_policy_id +``` \ No newline at end of file diff --git a/tencentcloud/vpc/resource_tc_vpc_traffic_package.md b/tencentcloud/vpc/resource_tc_vpc_traffic_package.md new file mode 100644 index 0000000000..484585c49b --- /dev/null +++ b/tencentcloud/vpc/resource_tc_vpc_traffic_package.md @@ -0,0 +1,17 @@ +Provides a resource to create a vpc traffic_package + +Example Usage + +```hcl +resource "tencentcloud_vpc_traffic_package" "example" { + traffic_amount = 10 +} +``` + +Import + +vpc traffic_package can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpc_traffic_package.traffic_package traffic_package_id +``` \ No newline at end of file diff --git a/tencentcloud/vpn/data_source_tc_vpn_connections.md b/tencentcloud/vpn/data_source_tc_vpn_connections.md new file mode 100644 index 0000000000..ed66520030 --- /dev/null +++ b/tencentcloud/vpn/data_source_tc_vpn_connections.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of VPN connections. + +Example Usage + +```hcl +data "tencentcloud_vpn_connections" "foo" { + name = "main" + id = "vpnx-xfqag" + vpn_gateway_id = "vpngw-8ccsnclt" + vpc_id = "cgw-xfqag" + customer_gateway_id = "" + tags = { + test = "tf" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/data_source_tc_vpn_customer_gateway_vendors.md b/tencentcloud/vpn/data_source_tc_vpn_customer_gateway_vendors.md new file mode 100644 index 0000000000..ed852c6efd --- /dev/null +++ b/tencentcloud/vpn/data_source_tc_vpn_customer_gateway_vendors.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of vpc vpn_customer_gateway_vendors + +Example Usage + +```hcl +data "tencentcloud_vpn_customer_gateway_vendors" "vpn_customer_gateway_vendors" {} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/data_source_tc_vpn_customer_gateways.md b/tencentcloud/vpn/data_source_tc_vpn_customer_gateways.md new file mode 100644 index 0000000000..824d63eb20 --- /dev/null +++ b/tencentcloud/vpn/data_source_tc_vpn_customer_gateways.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of VPN customer gateways. + +Example Usage + +```hcl +data "tencentcloud_customer_gateways" "foo" { + name = "main" + id = "cgw-xfqag" + public_ip_address = "1.1.1.1" + tags = { + test = "tf" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/data_source_tc_vpn_default_health_check_ip.md b/tencentcloud/vpn/data_source_tc_vpn_default_health_check_ip.md new file mode 100644 index 0000000000..97c21964bc --- /dev/null +++ b/tencentcloud/vpn/data_source_tc_vpn_default_health_check_ip.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of vpn default_health_check_ip + +Example Usage + +```hcl +data "tencentcloud_vpn_default_health_check_ip" "default_health_check_ip" { + vpn_gateway_id = "vpngw-gt8bianl" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/data_source_tc_vpn_gateway_routes.md b/tencentcloud/vpn/data_source_tc_vpn_gateway_routes.md new file mode 100644 index 0000000000..554a28be40 --- /dev/null +++ b/tencentcloud/vpn/data_source_tc_vpn_gateway_routes.md @@ -0,0 +1,15 @@ +Use this data source to query detailed information of VPN gateways. + +Example Usage + +```hcl +data "tencentcloud_vpn_gateways" "foo" { + vpn_gateway_id = "main" + destination_cidr_block = "vpngw-8ccsnclt" + instance_type = "1.1.1.1" + instance_id = "ap-guangzhou-3" + tags = { + test = "tf" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/data_source_tc_vpn_gateways.md b/tencentcloud/vpn/data_source_tc_vpn_gateways.md new file mode 100644 index 0000000000..f9dcd97b89 --- /dev/null +++ b/tencentcloud/vpn/data_source_tc_vpn_gateways.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of VPN gateways. + +Example Usage + +```hcl +data "tencentcloud_vpn_gateways" "foo" { + name = "main" + id = "vpngw-8ccsnclt" + public_ip_address = "1.1.1.1" + zone = "ap-guangzhou-3" + vpc_id = "vpc-dk8zmwuf" + tags = { + test = "tf" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_connection.md b/tencentcloud/vpn/resource_tc_vpn_connection.md new file mode 100644 index 0000000000..4d11b7806e --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_connection.md @@ -0,0 +1,43 @@ +Provides a resource to create a VPN connection. + +Example Usage + +```hcl +resource "tencentcloud_vpn_connection" "foo" { + name = "vpn_connection_test" + vpc_id = "vpc-dk8zmwuf" + vpn_gateway_id = "vpngw-8ccsnclt" + customer_gateway_id = "cgw-xfqag" + pre_share_key = "testt" + ike_proto_encry_algorithm = "3DES-CBC" + ike_proto_authen_algorithm = "SHA" + ike_local_identity = "ADDRESS" + ike_exchange_mode = "AGGRESSIVE" + ike_local_address = "1.1.1.1" + ike_remote_identity = "ADDRESS" + ike_remote_address = "2.2.2.2" + ike_dh_group_name = "GROUP2" + ike_sa_lifetime_seconds = 86401 + ipsec_encrypt_algorithm = "3DES-CBC" + ipsec_integrity_algorithm = "SHA1" + ipsec_sa_lifetime_seconds = 7200 + ipsec_pfs_dh_group = "NULL" + ipsec_sa_lifetime_traffic = 2570 + + security_group_policy { + local_cidr_block = "172.16.0.0/16" + remote_cidr_block = ["2.2.2.0/26", ] + } + tags = { + test = "testt" + } +} +``` + +Import + +VPN connection can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vpn_connection.foo vpnx-nadifg3s +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_connection_reset.md b/tencentcloud/vpn/resource_tc_vpn_connection_reset.md new file mode 100644 index 0000000000..245160c310 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_connection_reset.md @@ -0,0 +1,10 @@ +Provides a resource to create a vpc vpn_connection_reset + +Example Usage + +```hcl +resource "tencentcloud_vpn_connection_reset" "vpn_connection_reset" { + vpn_gateway_id = "vpngw-gt8bianl" + vpn_connection_id = "vpnx-kme2tx8m" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_customer_gateway.md b/tencentcloud/vpn/resource_tc_vpn_customer_gateway.md new file mode 100644 index 0000000000..4a25164a4a --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_customer_gateway.md @@ -0,0 +1,22 @@ +Provides a resource to create a VPN customer gateway. + +Example Usage + +```hcl +resource "tencentcloud_vpn_customer_gateway" "foo" { + name = "test_vpn_customer_gateway" + public_ip_address = "1.1.1.1" + + tags = { + tag = "test" + } +} +``` + +Import + +VPN customer gateway can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vpn_customer_gateway.foo cgw-xfqag +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_customer_gateway_configuration_download.md b/tencentcloud/vpn/resource_tc_vpn_customer_gateway_configuration_download.md new file mode 100644 index 0000000000..1c8a41e807 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_customer_gateway_configuration_download.md @@ -0,0 +1,16 @@ +Provides a resource to create a vpc vpn_customer_gateway_configuration_download + +Example Usage + +```hcl +resource "tencentcloud_vpn_customer_gateway_configuration_download" "vpn_customer_gateway_configuration_download" { + vpn_gateway_id = "vpngw-gt8bianl" + vpn_connection_id = "vpnx-kme2tx8m" + customer_gateway_vendor { + platform = "comware" + software_version = "V1.0" + vendor_name = "h3c" + } + interface_name = "test" +} +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_gateway.md b/tencentcloud/vpn/resource_tc_vpn_gateway.md new file mode 100644 index 0000000000..f794e1ddb6 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_gateway.md @@ -0,0 +1,86 @@ +Provides a resource to create a VPN gateway. + +-> **NOTE:** The prepaid VPN gateway do not support renew operation or delete operation with terraform. + +Example Usage + +VPC SSL VPN gateway +```hcl +resource "tencentcloud_vpn_gateway" "my_cgw" { + name = "test" + bandwidth = 5 + zone = "ap-guangzhou-3" + type = "SSL" + vpc_id = "vpc-86v957zb" + + tags = { + test = "test" + } +} +``` + +CCN IPEC VPN gateway +```hcl +resource "tencentcloud_vpn_gateway" "my_cgw" { + name = "test" + bandwidth = 5 + zone = "ap-guangzhou-3" + type = "CCN" + + tags = { + test = "test" + } +} +``` + +CCN SSL VPN gateway +```hcl +resource "tencentcloud_vpn_gateway" "my_cgw" { + name = "test" + bandwidth = 5 + zone = "ap-guangzhou-3" + type = "SSL_CCN" + + tags = { + test = "test" + } +} +``` + +POSTPAID_BY_HOUR VPN gateway +```hcl +resource "tencentcloud_vpn_gateway" "my_cgw" { + name = "test" + vpc_id = "vpc-dk8zmwuf" + bandwidth = 5 + zone = "ap-guangzhou-3" + + tags = { + test = "test" + } +} +``` + +PREPAID VPN gateway +```hcl +resource "tencentcloud_vpn_gateway" "my_cgw" { + name = "test" + vpc_id = "vpc-dk8zmwuf" + bandwidth = 5 + zone = "ap-guangzhou-3" + charge_type = "PREPAID" + prepaid_period = 1 + + tags = { + test = "test" + } +} +``` + +Import + +VPN gateway can be imported using the id, e.g. + +``` +$ terraform import tencentcloud_vpn_gateway.foo vpngw-8ccsnclt +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_gateway_ccn_routes.md b/tencentcloud/vpn/resource_tc_vpn_gateway_ccn_routes.md new file mode 100644 index 0000000000..243873dca4 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_gateway_ccn_routes.md @@ -0,0 +1,21 @@ +Provides a resource to create a vpn_gateway_ccn_routes + +Example Usage + +```hcl +resource "tencentcloud_vpn_gateway_ccn_routes" "vpn_gateway_ccn_routes" { + destination_cidr_block = "192.168.1.0/24" + route_id = "vpnr-akdy0757" + status = "DISABLE" + vpn_gateway_id = "vpngw-lie1a4u7" +} + +``` + +Import + +vpc vpn_gateway_ccn_routes can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpn_gateway_ccn_routes.vpn_gateway_ccn_routes vpn_gateway_id#ccn_routes_id +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_gateway_route.md b/tencentcloud/vpn/resource_tc_vpn_gateway_route.md new file mode 100644 index 0000000000..20d2d10809 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_gateway_route.md @@ -0,0 +1,22 @@ +Provides a resource to create a VPN gateway route. + +Example Usage + +```hcl +resource "tencentcloud_vpn_gateway_route" "route" { + vpn_gateway_id = "vpngw-ak9sjem2" + destination_cidr_block = "10.0.0.0/16" + instance_id = "vpnx-5b5dmao3" + instance_type = "VPNCONN" + priority = 100 + status = "DISABLE" +} +``` + +Import + +VPN gateway route can be imported using the id, the id format must be '{vpn_gateway_id}#{route_id}', e.g. + +``` +$ terraform import tencentcloud_vpn_gateway_route.route1 vpngw-ak9sjem2#vpngw-8ccsnclt +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_gateway_ssl_client_cert.md b/tencentcloud/vpn/resource_tc_vpn_gateway_ssl_client_cert.md new file mode 100644 index 0000000000..8fedbefd42 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_gateway_ssl_client_cert.md @@ -0,0 +1,18 @@ +Provides a resource to create a vpc vpn_gateway_ssl_client_cert + +Example Usage + +```hcl +resource "tencentcloud_vpn_gateway_ssl_client_cert" "vpn_gateway_ssl_client_cert" { + ssl_vpn_client_id = "vpnc-123456" + switch = "off" +} +``` + +Import + +vpc vpn_gateway_ssl_client_cert can be imported using the id, e.g. + +``` +terraform import tencentcloud_vpn_gateway_ssl_client_cert.vpn_gateway_ssl_client_cert ssl_client_id +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_ssl_client.md b/tencentcloud/vpn/resource_tc_vpn_ssl_client.md new file mode 100644 index 0000000000..3845550602 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_ssl_client.md @@ -0,0 +1,19 @@ +Provide a resource to create a VPN SSL Client. + +Example Usage + +```hcl +resource "tencentcloud_vpn_ssl_client" "client" { + ssl_vpn_server_id = "vpns-aog5xcjj" + ssl_vpn_client_name = "hello" +} + +``` + +Import + +VPN SSL Client can be imported, e.g. + +``` +$ terraform import tencentcloud_vpn_ssl_client.client vpn-client-id +``` \ No newline at end of file diff --git a/tencentcloud/vpn/resource_tc_vpn_ssl_server.md b/tencentcloud/vpn/resource_tc_vpn_ssl_server.md new file mode 100644 index 0000000000..813f8320d2 --- /dev/null +++ b/tencentcloud/vpn/resource_tc_vpn_ssl_server.md @@ -0,0 +1,27 @@ +Provide a resource to create a VPN SSL Server. + +Example Usage + +```hcl +resource "tencentcloud_vpn_ssl_server" "server" { + local_address = [ + "10.0.0.0/17", + ] + remote_address = "11.0.0.0/16" + ssl_vpn_server_name = "helloworld" + vpn_gateway_id = "vpngw-335lwf7d" + ssl_vpn_protocol = "UDP" + ssl_vpn_port = 1194 + integrity_algorithm = "MD5" + encrypt_algorithm = "AES-128-CBC" + compress = true +} +``` + +Import + +VPN SSL Server can be imported, e.g. + +``` +$ terraform import tencentcloud_vpn_ssl_server.server vpn-server-id +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_attack_log_histogram.md b/tencentcloud/waf/data_source_tc_waf_attack_log_histogram.md new file mode 100644 index 0000000000..08cba1fed2 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_attack_log_histogram.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of waf attack_log_histogram + +Example Usage + +Obtain the specified domain name log information + +```hcl +data "tencentcloud_waf_attack_log_histogram" "example" { + domain = "domain.com" + start_time = "2023-09-01 00:00:00" + end_time = "2023-09-29 00:00:00" + query_string = "method:GET" +} +``` + +Obtain all domain name log information + +```hcl +data "tencentcloud_waf_attack_log_histogram" "example" { + domain = "all" + start_time = "2023-09-01 00:00:00" + end_time = "2023-09-29 00:00:00" + query_string = "method:GET" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_attack_log_list.md b/tencentcloud/waf/data_source_tc_waf_attack_log_list.md new file mode 100644 index 0000000000..f679e2031b --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_attack_log_list.md @@ -0,0 +1,31 @@ +Use this data source to query detailed information of waf attack_log_list + +Example Usage + +Obtain the specified domain name attack log list + +```hcl +data "tencentcloud_waf_attack_log_list" "example" { + domain = "domain.com" + start_time = "2023-09-01 00:00:00" + end_time = "2023-09-07 00:00:00" + query_string = "method:GET" + sort = "desc" + query_count = 10 + page = 0 +} +``` + +Obtain all domain name attack log list + +```hcl +data "tencentcloud_waf_attack_log_list" "example" { + domain = "all" + start_time = "2023-09-01 00:00:00" + end_time = "2023-09-07 00:00:00" + query_string = "method:GET" + sort = "asc" + query_count = 20 + page = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_attack_overview.md b/tencentcloud/waf/data_source_tc_waf_attack_overview.md new file mode 100644 index 0000000000..905a159888 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_attack_overview.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of waf attack_overview + +Example Usage + +Basic Query + +```hcl +data "tencentcloud_waf_attack_overview" "example" { + from_time = "2023-09-01 00:00:00" + to_time = "2023-09-07 00:00:00" +} +``` + +Query by filter + +```hcl +data "tencentcloud_waf_attack_overview" "example" { + from_time = "2023-09-01 00:00:00" + to_time = "2023-09-07 00:00:00" + appid = 1304251372 + domain = "test.com" + edition = "clb-waf" + instance_id = "waf_2kxtlbky00b2v1fn" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_attack_total_count.md b/tencentcloud/waf/data_source_tc_waf_attack_total_count.md new file mode 100644 index 0000000000..8b6b0d3dcf --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_attack_total_count.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of waf attack_total_count + +Example Usage + +Obtain the specified domain name attack log + +```hcl +data "tencentcloud_waf_attack_total_count" "example" { + start_time = "2023-09-01 00:00:00" + end_time = "2023-09-07 00:00:00" + domain = "domain.com" + query_string = "method:GET" +} +``` + +Obtain all domain name attack log + +```hcl +data "tencentcloud_waf_attack_total_count" "example" { + start_time = "2023-09-01 00:00:00" + end_time = "2023-09-07 00:00:00" + domain = "all" + query_string = "method:GET" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_ciphers.md b/tencentcloud/waf/data_source_tc_waf_ciphers.md new file mode 100644 index 0000000000..775f46f039 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_ciphers.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of waf ciphers + +Example Usage + +```hcl +data "tencentcloud_waf_ciphers" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_domains.md b/tencentcloud/waf/data_source_tc_waf_domains.md new file mode 100644 index 0000000000..1c2cabaa92 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_domains.md @@ -0,0 +1,18 @@ +Use this data source to query detailed information of waf domains + +Example Usage + +Find all domains + +```hcl +data "tencentcloud_waf_domains" "example" {} +``` + +Find domains by filter + +```hcl +data "tencentcloud_waf_domains" "example" { + instance_id = "waf_2kxtlbky01b3wceb" + domain = "tf.example.com" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_find_domains.md b/tencentcloud/waf/data_source_tc_waf_find_domains.md new file mode 100644 index 0000000000..fbfe2f2881 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_find_domains.md @@ -0,0 +1,20 @@ +Use this data source to query detailed information of waf find_domains + +Example Usage + +Find all domains + +```hcl +data "tencentcloud_waf_find_domains" "example" {} +``` + +Find domains by filter + +```hcl +data "tencentcloud_waf_find_domains" "example" { + key = "keyWord" + is_waf_domain = "1" + by = "FindTime" + order = "asc" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_instance_qps_limit.md b/tencentcloud/waf/data_source_tc_waf_instance_qps_limit.md new file mode 100644 index 0000000000..83a9be9526 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_instance_qps_limit.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of waf instance_qps_limit + +Example Usage + +```hcl +data "tencentcloud_waf_instance_qps_limit" "example" { + instance_id = "waf_2kxtlbky00b3b4qz" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_peak_points.md b/tencentcloud/waf/data_source_tc_waf_peak_points.md new file mode 100644 index 0000000000..e086d3c853 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_peak_points.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of waf peak_points + +Example Usage + +Basic Query + +```hcl +data "tencentcloud_waf_peak_points" "example" { + from_time = "2023-09-01 00:00:00" + to_time = "2023-09-07 00:00:00" +} +``` + +Query by filter + +```hcl +data "tencentcloud_waf_peak_points" "example" { + from_time = "2023-09-01 00:00:00" + to_time = "2023-09-07 00:00:00" + domain = "domain.com" + edition = "clb-waf" + instance_id = "waf_2kxtlbky00b2v1fn" + metric_name = "access" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_ports.md b/tencentcloud/waf/data_source_tc_waf_ports.md new file mode 100644 index 0000000000..d53b18b7a0 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_ports.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of waf ports + +Example Usage + +```hcl +data "tencentcloud_waf_ports" "example" {} +``` + +Or + +```hcl +data "tencentcloud_waf_ports" "example" { + edition = "clb-waf" + instance_id = "waf_2kxtlbky00b2v1fn" +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_tls_versions.md b/tencentcloud/waf/data_source_tc_waf_tls_versions.md new file mode 100644 index 0000000000..d269d095a4 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_tls_versions.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of waf tls_versions + +Example Usage + +```hcl +data "tencentcloud_waf_tls_versions" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_user_clb_regions.md b/tencentcloud/waf/data_source_tc_waf_user_clb_regions.md new file mode 100644 index 0000000000..fd3ade93c8 --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_user_clb_regions.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of waf user_clb_regions + +Example Usage + +```hcl +data "tencentcloud_waf_user_clb_regions" "example" {} +``` \ No newline at end of file diff --git a/tencentcloud/waf/data_source_tc_waf_user_domains.md b/tencentcloud/waf/data_source_tc_waf_user_domains.md new file mode 100644 index 0000000000..e9d929b7cd --- /dev/null +++ b/tencentcloud/waf/data_source_tc_waf_user_domains.md @@ -0,0 +1,7 @@ +Use this data source to query detailed information of waf user_domains + +Example Usage + +```hcl +data "tencentcloud_waf_user_domains" "user_domains" {} +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_anti_fake.md b/tencentcloud/waf/resource_tc_waf_anti_fake.md new file mode 100644 index 0000000000..032840a6df --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_anti_fake.md @@ -0,0 +1,22 @@ +Provides a resource to create a waf anti_fake + +~> **NOTE:** Uri: Please configure static resources such as. html,. shtml,. txt,. js,. css,. jpg,. png, or access paths for static resources.. + +Example Usage + +```hcl +resource "tencentcloud_waf_anti_fake" "example" { + domain = "www.waf.com" + name = "tf_example" + uri = "/anti_fake_url.html" + status = 1 +} +``` + +Import + +waf anti_fake can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_anti_fake.example 3200035516#www.waf.com +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_anti_info_leak.md b/tencentcloud/waf/resource_tc_waf_anti_info_leak.md new file mode 100644 index 0000000000..3e8fc1993e --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_anti_info_leak.md @@ -0,0 +1,25 @@ +Provides a resource to create a waf anti_info_leak + +Example Usage + +```hcl +resource "tencentcloud_waf_anti_info_leak" "example" { + domain = "tf.example.com" + name = "tf_example" + action_type = 0 + strategies { + field = "information" + content = "phone" + } + uri = "/anti_info_leak_url" + status = 1 +} +``` + +Import + +waf anti_info_leak can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_anti_info_leak.example 3100077499#tf.example.com +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_auto_deny_rules.md b/tencentcloud/waf/resource_tc_waf_auto_deny_rules.md new file mode 100644 index 0000000000..56ad05f579 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_auto_deny_rules.md @@ -0,0 +1,20 @@ +Provides a resource to create a waf auto_deny_rules + +Example Usage + +```hcl +resource "tencentcloud_waf_auto_deny_rules" "example" { + domain = "demo.waf.com" + attack_threshold = 20 + time_threshold = 12 + deny_time_threshold = 5 +} +``` + +Import + +waf auto_deny_rules can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_auto_deny_rules.example demo.waf.com +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_cc.md b/tencentcloud/waf/resource_tc_waf_cc.md new file mode 100644 index 0000000000..11c9d10052 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_cc.md @@ -0,0 +1,21 @@ +Provides a resource to create a waf cc + +Example Usage + +```hcl +resource "tencentcloud_waf_cc" "example" { + domain = "www.demo.com" + name = "terraform" + status = 1 + advance = "0" + limit = "60" + interval = "60" + url = "/cc_demo" + match_func = 0 + action_type = "22" + priority = 50 + valid_time = 600 + edition = "sparta-waf" + type = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_cc_auto_status.md b/tencentcloud/waf/resource_tc_waf_cc_auto_status.md new file mode 100644 index 0000000000..96462cc002 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_cc_auto_status.md @@ -0,0 +1,18 @@ +Provides a resource to create a waf cc_auto_status + +Example Usage + +```hcl +resource "tencentcloud_waf_cc_auto_status" "example" { + domain = "www.demo.com" + edition = "sparta-waf" +} +``` + +Import + +waf cc_auto_status can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_cc_auto_status.example www.demo.com#sparta-waf +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_cc_session.md b/tencentcloud/waf/resource_tc_waf_cc_session.md new file mode 100644 index 0000000000..8071c8de7e --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_cc_session.md @@ -0,0 +1,25 @@ +Provides a resource to create a waf cc_session + +Example Usage + +```hcl +resource "tencentcloud_waf_cc_session" "example" { + domain = "www.demo.com" + source = "get" + category = "match" + key_or_start_mat = "key_a=123" + end_mat = "&" + start_offset = "-1" + end_offset = "-1" + edition = "sparta-waf" + session_name = "terraformDemo" +} +``` + +Import + +waf cc_session can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_cc_session.example www.demo.com#sparta-waf#2000000253 +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_clb_domain.md b/tencentcloud/waf/resource_tc_waf_clb_domain.md new file mode 100644 index 0000000000..6934a6698a --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_clb_domain.md @@ -0,0 +1,108 @@ +Provides a resource to create a waf clb_domain + +Example Usage + +Create a basic waf clb domain + +```hcl +resource "tencentcloud_waf_clb_domain" "example" { + instance_id = "waf_2kxtlbky00b2v1fn" + domain = "test.com" + + load_balancer_set { + load_balancer_id = "lb-5dnrkgry" + load_balancer_name = "keep-listener-clb" + listener_id = "lbl-nonkgvc2" + listener_name = "dsadasd" + vip = "106.55.220.8" + vport = "80" + region = "gz" + protocol = "HTTP" + zone = "ap-guangzhou-6" + numerical_vpc_id = "5232945" + load_balancer_type = "OPEN" + } + + region = "gz" + alb_type = "clb" +} +``` + +Create a complete waf clb domain + +```hcl +resource "tencentcloud_waf_clb_domain" "example" { + instance_id = "waf_2kxtlbky00b2v1fn" + domain = "test.com" + is_cdn = 3 + status = 1 + engine = 21 + + load_balancer_set { + load_balancer_id = "lb-5dnrkgry" + load_balancer_name = "keep-listener-clb" + listener_id = "lbl-nonkgvc2" + listener_name = "dsadasd" + vip = "106.55.220.8" + vport = "80" + region = "gz" + protocol = "HTTP" + zone = "ap-guangzhou-6" + numerical_vpc_id = "5232945" + load_balancer_type = "OPEN" + } + + region = "gz" + flow_mode = 1 + alb_type = "clb" + bot_status = 1 + api_safe_status = 1 + ip_headers = [ + "headers_1", + "headers_2", + "headers_3", + ] +} +``` + +Create a complete waf tsegw domain + +```hcl +resource "tencentcloud_waf_clb_domain" "example" { + instance_id = "waf_2kxtlbky00b2v1fn" + domain = "xxx.com" + is_cdn = 0 + status = 1 + engine = 12 + region = "gz" + flow_mode = 0 + alb_type = "tsegw" + bot_status = 0 + api_safe_status = 0 +} +``` + +Create a complete waf apisix domain + +```hcl +resource "tencentcloud_waf_clb_domain" "example" { + instance_id = "waf_2kxtlbky00b2v1fn" + domain = "xxx.com" + is_cdn = 0 + status = 1 + engine = 12 + region = "gz" + flow_mode = 0 + alb_type = "apisix" + bot_status = 0 + api_safe_status = 0 +} +``` + +Import + +waf clb_domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_clb_domain.example waf_2kxtlbky00b2v1fn#test.com#waf-0FSehoRU +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_clb_instance.md b/tencentcloud/waf/resource_tc_waf_clb_instance.md new file mode 100644 index 0000000000..0429596fe5 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_clb_instance.md @@ -0,0 +1,45 @@ +Provides a resource to create a waf clb instance + +~> **NOTE:** Region only supports `ap-guangzhou` and `ap-seoul`. + +Example Usage + +Create a basic waf premium clb instance + +```hcl +resource "tencentcloud_waf_clb_instance" "example" { + goods_category = "premium_clb" + instance_name = "tf-example-clb-waf" +} +``` + +Create a complete waf ultimate_clb instance + +```hcl +resource "tencentcloud_waf_clb_instance" "example" { + goods_category = "ultimate_clb" + instance_name = "tf-example-clb-waf" + time_span = 1 + time_unit = "m" + auto_renew_flag = 1 + elastic_mode = 1 + bot_management = 1 + api_security = 1 +} +``` + +Set waf ultimate_clb instance qps limit + +```hcl +resource "tencentcloud_waf_clb_instance" "example" { + goods_category = "ultimate_clb" + instance_name = "tf-example-clb-waf" + time_span = 1 + time_unit = "m" + auto_renew_flag = 1 + elastic_mode = 1 + qps_limit = 200000 + bot_management = 1 + api_security = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_custom_rule.md b/tencentcloud/waf/resource_tc_waf_custom_rule.md new file mode 100644 index 0000000000..0ace5b4547 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_custom_rule.md @@ -0,0 +1,31 @@ +Provides a resource to create a waf custom_rule + +Example Usage + +```hcl +resource "tencentcloud_waf_custom_rule" "example" { + name = "tf-example" + sort_id = "50" + redirect = "/" + expire_time = "0" + + strategies { + field = "IP" + compare_func = "ipmatch" + content = "2.2.2.2" + arg = "" + } + + status = "1" + domain = "test.com" + action_type = "1" +} +``` + +Import + +waf custom_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_custom_rule.example test.com#1100310609 +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_custom_white_rule.md b/tencentcloud/waf/resource_tc_waf_custom_white_rule.md new file mode 100644 index 0000000000..3db75ca258 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_custom_white_rule.md @@ -0,0 +1,30 @@ +Provides a resource to create a waf custom_white_rule + +Example Usage + +```hcl +resource "tencentcloud_waf_custom_white_rule" "example" { + name = "tf-example" + sort_id = "30" + expire_time = "0" + + strategies { + field = "IP" + compare_func = "ipmatch" + content = "1.1.1.1" + arg = "" + } + + status = "1" + domain = "test.com" + bypass = "geoip,cc,owasp" +} +``` + +Import + +waf custom_white_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_custom_white_rule.example test.com#1100310837 +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_ip_access_control.md b/tencentcloud/waf/resource_tc_waf_ip_access_control.md new file mode 100644 index 0000000000..7549c5f4c9 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_ip_access_control.md @@ -0,0 +1,39 @@ +Provides a resource to create a waf ip_access_control + +Example Usage + +```hcl +resource "tencentcloud_waf_ip_access_control" "example" { + instance_id = "waf_2kxtlbky00b3b4qz" + domain = "www.demo.com" + edition = "sparta-waf" + items { + ip = "1.1.1.1" + note = "desc info." + action = 40 + valid_ts = "2019571199" + } + + items { + ip = "2.2.2.2" + note = "desc info." + action = 42 + valid_ts = "2019571199" + } + + items { + ip = "3.3.3.3" + note = "desc info." + action = 40 + valid_ts = "1680570420" + } +} +``` + +Import + +waf ip_access_control can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_ip_access_control.example waf_2kxtlbky00b3b4qz#www.demo.com#sparta-waf +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_modify_access_period.md b/tencentcloud/waf/resource_tc_waf_modify_access_period.md new file mode 100644 index 0000000000..2ca97f37da --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_modify_access_period.md @@ -0,0 +1,10 @@ +Provides a resource to create a waf modify_access_period + +Example Usage + +```hcl +resource "tencentcloud_waf_modify_access_period" "example" { + topic_id = "1ae37c76-df99-4e2b-998c-20f39eba6226" + period = 30 +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_module_status.md b/tencentcloud/waf/resource_tc_waf_module_status.md new file mode 100644 index 0000000000..ec2813c4f7 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_module_status.md @@ -0,0 +1,23 @@ +Provides a resource to create a waf module_status + +Example Usage + +```hcl +resource "tencentcloud_waf_module_status" "example" { + domain = "demo.waf.com" + web_security = 1 + access_control = 0 + cc_protection = 1 + api_protection = 1 + anti_tamper = 1 + anti_leakage = 0 +} +``` + +Import + +waf module_status can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_module_status.example demo.waf.com +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_protection_mode.md b/tencentcloud/waf/resource_tc_waf_protection_mode.md new file mode 100644 index 0000000000..202c4eaf43 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_protection_mode.md @@ -0,0 +1,12 @@ +Provides a resource to create a waf protection_mode + +Example Usage + +```hcl +resource "tencentcloud_waf_protection_mode" "example" { + domain = "keep.qcloudwaf.com" + mode = 10 + edition = "sparta-waf" + type = 0 +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_saas_domain.md b/tencentcloud/waf/resource_tc_waf_saas_domain.md new file mode 100644 index 0000000000..04b4d6ee17 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_saas_domain.md @@ -0,0 +1,174 @@ +Provides a resource to create a waf saas_domain + +Example Usage + +If upstream_type is 0 + +Create a basic waf saas domain + +```hcl +resource "tencentcloud_waf_saas_domain" "example" { + instance_id = "waf_2kxtlbky01b3wceb" + domain = "tf.example.com" + src_list = [ + "1.1.1.1" + ] + + ports { + port = "80" + protocol = "http" + upstream_port = "80" + upstream_protocol = "http" + } +} +``` + +Create a load balancing strategy is weighted polling saas domain + +```hcl +resource "tencentcloud_waf_saas_domain" "example" { + instance_id = "waf_2kxtlbky01b3wceb" + domain = "tf.example.com" + src_list = [ + "1.1.1.1", + "2.2.2.2" + ] + load_balance = "2" + weights = [ + 30, + 50 + ] + + ports { + port = "80" + protocol = "http" + upstream_port = "80" + upstream_protocol = "http" + } +} +``` + +If upstream_type is 1 + +```hcl +resource "tencentcloud_waf_saas_domain" "example" { + instance_id = "waf_2kxtlbky01b3wceb" + domain = "tf.example.com" + upstream_type = 1 + upstream_domain = "test.com" + + ports { + port = "80" + protocol = "http" + upstream_port = "80" + upstream_protocol = "http" + } +} +``` + +Create a waf saas domain with set Http&Https + +```hcl +resource "tencentcloud_waf_saas_domain" "example" { + instance_id = "waf_2kxtlbky01b3wceb" + domain = "tf.example.com" + is_cdn = 3 + cert_type = 2 + ssl_id = "3a6B5y8v" + load_balance = "2" + https_rewrite = 1 + upstream_scheme = "https" + src_list = [ + "1.1.1.1", + "2.2.2.2" + ] + weights = [ + 50, + 60 + ] + + ports { + port = "80" + protocol = "http" + upstream_port = "80" + upstream_protocol = "http" + } + + ports { + port = "443" + protocol = "https" + upstream_port = "443" + upstream_protocol = "https" + } + + ip_headers = [ + "headers_1", + "headers_2", + "headers_3", + ] +} +``` + +Create a complete waf saas domain + +```hcl +resource "tencentcloud_waf_saas_domain" "example" { + instance_id = "waf_2kxtlbky01b3wceb" + domain = "tf.example.com" + is_cdn = 3 + cert_type = 2 + ssl_id = "3a6B5y8v" + load_balance = "2" + https_rewrite = 1 + is_http2 = 1 + upstream_scheme = "https" + src_list = [ + "1.1.1.1", + "2.2.2.2" + ] + weights = [ + 50, + 60 + ] + + ports { + port = "80" + protocol = "http" + upstream_port = "80" + upstream_protocol = "http" + } + + ports { + port = "443" + protocol = "https" + upstream_port = "443" + upstream_protocol = "https" + } + + ip_headers = [ + "headers_1", + "headers_2", + "headers_3", + ] + + is_keep_alive = "1" + active_check = 1 + tls_version = 3 + cipher_template = 1 + proxy_read_timeout = 500 + proxy_send_timeout = 500 + sni_type = 3 + sni_host = "3.3.3.3" + xff_reset = 1 + bot_status = 1 + api_safe_status = 1 +} +``` + +Import + +waf saas_domain can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_saas_domain.example waf_2kxtlbky01b3wceb#tf.example.com#9647c91da0aa5f5aaa49d0ca40e2af24 +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_saas_instance.md b/tencentcloud/waf/resource_tc_waf_saas_instance.md new file mode 100644 index 0000000000..8a48bfcf00 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_saas_instance.md @@ -0,0 +1,47 @@ +Provides a resource to create a waf saas instance + +~> **NOTE:** Region only supports `ap-guangzhou` and `ap-seoul`. + +Example Usage + +Create a basic waf premium saas instance + +```hcl +resource "tencentcloud_waf_saas_instance" "example" { + goods_category = "premium_saas" + instance_name = "tf-example-saas-waf" +} +``` + +Create a complete waf ultimate_saas instance + +```hcl +resource "tencentcloud_waf_saas_instance" "example" { + goods_category = "ultimate_saas" + instance_name = "tf-example-saas-waf" + time_span = 1 + time_unit = "m" + auto_renew_flag = 1 + elastic_mode = 1 + real_region = "gz" + bot_management = 1 + api_security = 1 +} +``` + +Set waf ultimate_saas instance qps limit + +```hcl +resource "tencentcloud_waf_saas_instance" "example" { + goods_category = "ultimate_saas" + instance_name = "tf-example-saas-waf" + time_span = 1 + time_unit = "m" + auto_renew_flag = 1 + elastic_mode = 1 + real_region = "gz" + qps_limit = 200000 + bot_management = 1 + api_security = 1 +} +``` \ No newline at end of file diff --git a/tencentcloud/waf/resource_tc_waf_web_shell.md b/tencentcloud/waf/resource_tc_waf_web_shell.md new file mode 100644 index 0000000000..454692c903 --- /dev/null +++ b/tencentcloud/waf/resource_tc_waf_web_shell.md @@ -0,0 +1,18 @@ +Provides a resource to create a waf web_shell + +Example Usage + +```hcl +resource "tencentcloud_waf_web_shell" "example" { + domain = "demo.waf.com" + status = 0 +} +``` + +Import + +waf web_shell can be imported using the id, e.g. + +``` +terraform import tencentcloud_waf_web_shell.example demo.waf.com +``` \ No newline at end of file diff --git a/tencentcloud/wedata/data_source_tc_wedata_data_source_list.md b/tencentcloud/wedata/data_source_tc_wedata_data_source_list.md new file mode 100644 index 0000000000..100dcb7b40 --- /dev/null +++ b/tencentcloud/wedata/data_source_tc_wedata_data_source_list.md @@ -0,0 +1,25 @@ +Use this data source to query detailed information of wedata data_source_list + +Example Usage + +Query All + +```hcl +data "tencentcloud_wedata_data_source_list" "example" {} +``` + +Query By filter + +```hcl +data "tencentcloud_wedata_data_source_list" "example" { + order_fields { + name = "create_time" + direction = "DESC" + } + + filters { + name = "Name" + values = ["tf_example"] + } +} +``` \ No newline at end of file diff --git a/tencentcloud/wedata/data_source_tc_wedata_data_source_without_info.md b/tencentcloud/wedata/data_source_tc_wedata_data_source_without_info.md new file mode 100644 index 0000000000..9d9607bedf --- /dev/null +++ b/tencentcloud/wedata/data_source_tc_wedata_data_source_without_info.md @@ -0,0 +1,17 @@ +Use this data source to query detailed information of wedata data_source_without_info + +Example Usage + +```hcl +data "tencentcloud_wedata_data_source_without_info" "example" { + filters { + name = "ownerProjectId" + values = ["1612982498218618880"] + } + + order_fields { + name = "create_time" + direction = "DESC" + } +} +``` \ No newline at end of file diff --git a/tencentcloud/wedata/data_source_tc_wedata_rule_templates.md b/tencentcloud/wedata/data_source_tc_wedata_rule_templates.md new file mode 100644 index 0000000000..6379300331 --- /dev/null +++ b/tencentcloud/wedata/data_source_tc_wedata_rule_templates.md @@ -0,0 +1,12 @@ +Use this data source to query detailed information of wedata rule templates + +Example Usage + +```hcl +data "tencentcloud_wedata_rule_templates" "rule_templates" { + type = 2 + source_object_type = 2 + project_id = "1840731346428280832" + source_engine_types = [2, 4, 16] +} +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_baseline.md b/tencentcloud/wedata/resource_tc_wedata_baseline.md new file mode 100644 index 0000000000..edbf559b92 --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_baseline.md @@ -0,0 +1,54 @@ +Provides a resource to create a wedata baseline + +Example Usage + +```hcl +resource "tencentcloud_wedata_baseline" "example" { + project_id = "1927766435649077248" + baseline_name = "tf_example" + baseline_type = "D" + create_uin = "100028439226" + create_name = "tf_user" + in_charge_uin = "tf_user" + in_charge_name = "100028439226" + promise_tasks { + project_id = "1927766435649077248" + task_name = "tf_demo_task" + task_id = "20231030145334153" + task_cycle = "D" + workflow_name = "dataflow_mpp" + workflow_id = "e4dafb2e-76eb-11ee-bfeb-b8cef68a6637" + task_in_charge_name = ";tf_user;" + } + promise_time = "00:00:00" + warning_margin = 30 + is_new_alarm = true + baseline_create_alarm_rule_request { + alarm_types = [ + "baseLineBroken", + "baseLineWarning", + "baseLineTaskFailure" + ] + alarm_level = 2 + alarm_ways = [ + "email", + "sms" + ] + alarm_recipient_type = 1 + alarm_recipients = [ + "tf_user" + ] + alarm_recipient_ids = [ + "100028439226" + ] + } +} +``` + +Import + +wedata baseline can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_baseline.example 1927766435649077248#2 +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_datasource.md b/tencentcloud/wedata/resource_tc_wedata_datasource.md new file mode 100644 index 0000000000..76f5ee37c7 --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_datasource.md @@ -0,0 +1,28 @@ +Provides a resource to create a wedata datasource + +Example Usage + +```hcl +resource "tencentcloud_wedata_datasource" "example" { + name = "tf_example" + category = "DB" + type = "MYSQL" + owner_project_id = "1612982498218618880" + owner_project_name = "project_demo" + owner_project_ident = "体验项目" + description = "description." + display = "tf_example_demo" + status = 1 + cos_bucket = "wedata-agent-sh-1257305158" + cos_region = "ap-shanghai" + params = jsonencode({ + "connectType" : "public", + "authorityType" : "true", + "deployType" : "CONNSTR_PUBLICDB", + "url" : "jdbc:mysql://1.1.1.1:8080/database", + "username" : "root", + "password" : "password", + "type" : "MYSQL" + }) +} +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_dq_rule.md b/tencentcloud/wedata/resource_tc_wedata_dq_rule.md new file mode 100644 index 0000000000..c8ec96595e --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_dq_rule.md @@ -0,0 +1,37 @@ +Provides a resource to create a wedata dq_rule + +Example Usage + +```hcl +resource "tencentcloud_wedata_dq_rule" "example" { + project_id = "1948767646355341312" + rule_group_id = 312 + rule_template_id = 1 + name = "tf_example" + table_id = "N85hbsh5QQ2VLHL2iOUVeQ" + type = 1 + source_object_data_type_name = "table" + source_object_value = "表" + condition_type = 1 + compare_rule { + items { + compare_type = 1 + operator = "==" + value_list { + value_type = 3 + value = "100" + } + } + } + alarm_level = 1 + description = "description." +} +``` + +Import + +wedata dq_rule can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_dq_rule.example 1948767646355341312#894 +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_function.md b/tencentcloud/wedata/resource_tc_wedata_function.md new file mode 100644 index 0000000000..cda7516b27 --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_function.md @@ -0,0 +1,27 @@ +Provides a resource to create a wedata function + +Example Usage + +```hcl +resource "tencentcloud_wedata_function" "example" { + type = "HIVE" + kind = "ANALYSIS" + name = "tf_example" + cluster_identifier = "emr-m6u3qgk0" + db_name = "tf_db_example" + project_id = "1612982498218618880" + class_name = "tf_class_example" + resource_list { + path = "/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar" + name = "untitled3-1.0-SNAPSHOT.jar" + id = "5b28bcdf-a0e6-4022-927d-927d399c4593" + type = "cos" + } + description = "description." + usage = "usage info." + param_desc = "param info." + return_desc = "return value info." + example = "example info." + comment = "V1" +} +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_integration_offline_task.md b/tencentcloud/wedata/resource_tc_wedata_integration_offline_task.md new file mode 100644 index 0000000000..c034eac104 --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_integration_offline_task.md @@ -0,0 +1,58 @@ +Provides a resource to create a wedata integration_offline_task + +Example Usage + +```hcl +resource "tencentcloud_wedata_integration_offline_task" "example" { + project_id = "1612982498218618880" + cycle_step = 1 + delay_time = 0 + end_time = "2099-12-31 00:00:00" + notes = "terraform example demo." + start_time = "2023-12-31 00:00:00" + task_name = "tf_example" + task_action = "2" + task_mode = "1" + + task_info { + executor_id = "20230313175748567418" + config { + name = "Args" + value = "args" + } + config { + name = "dirtyDataThreshold" + value = "0" + } + config { + name = "concurrency" + value = "1" + } + config { + name = "syncRateLimitUnit" + value = "0" + } + ext_config { + name = "TaskAlarmRegularList" + value = "73" + } + incharge = "demo" + offline_task_add_entity { + cycle_type = 3 + crontab_expression = "0 0 1 * * ?" + retry_wait = 5 + retriable = 1 + try_limit = 5 + self_depend = 1 + } + } +} +``` + +Import + +wedata integration_offline_task can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_integration_offline_task.example 1612982498218618880#20231102200955095 +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_integration_realtime_task.md b/tencentcloud/wedata/resource_tc_wedata_integration_realtime_task.md new file mode 100644 index 0000000000..00cf77a3de --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_integration_realtime_task.md @@ -0,0 +1,61 @@ +Provides a resource to create a wedata integration_realtime_task + +Example Usage + +```hcl +resource "tencentcloud_wedata_integration_realtime_task" "example" { + project_id = "1612982498218618880" + task_name = "tf_example" + task_mode = "1" + description = "description." + sync_type = 1 + task_info { + incharge = "100028439226" + executor_id = "20230313175748567418" + config { + name = "concurrency" + value = "1" + } + config { + name = "TaskManager" + value = "1" + } + config { + name = "JobManager" + value = "1" + } + config { + name = "TolerateDirtyData" + value = "0" + } + config { + name = "CheckpointingInterval" + value = "1" + } + config { + name = "CheckpointingIntervalUnit" + value = "min" + } + config { + name = "RestartStrategyFixedDelayAttempts" + value = "-1" + } + config { + name = "ResourceAllocationType" + value = "0" + } + config { + name = "TaskAlarmRegularList" + value = "35" + } + } +} +``` + +Import + +wedata integration_realtime_task can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_integration_realtime_task.example 1776563389209296896#h9d39630a-ae45-4460-90b2-0b093cbfef5d +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_integration_task_node.md b/tencentcloud/wedata/resource_tc_wedata_integration_task_node.md new file mode 100644 index 0000000000..0b75c8b4fe --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_integration_task_node.md @@ -0,0 +1,66 @@ +Provides a resource to create a wedata integration_task_node + +Example Usage + +```hcl +resource "tencentcloud_wedata_integration_task_node" "example" { + project_id = "1612982498218618880" + task_id = "20231022181114990" + name = "tf_example1" + node_type = "INPUT" + data_source_type = "MYSQL" + task_type = 202 + task_mode = 2 + node_info { + datasource_id = "5085" + config { + name = "Type" + value = "MYSQL" + } + config { + name = "splitPk" + value = "id" + } + config { + name = "PrimaryKey" + value = "id" + } + config { + name = "isNew" + value = "true" + } + config { + name = "PrimaryKey_INPUT_SYMBOL" + value = "input" + } + config { + name = "splitPk_INPUT_SYMBOL" + value = "input" + } + config { + name = "Database" + value = "demo_mysql" + } + config { + name = "TableNames" + value = "users" + } + config { + name = "SiblingNodes" + value = "[]" + } + schema { + id = "471331072" + name = "id" + type = "INT" + alias = "id" + } + schema { + id = "422052352" + name = "username" + type = "VARCHAR(50)" + alias = "username" + } + } +} +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_resource.md b/tencentcloud/wedata/resource_tc_wedata_resource.md new file mode 100644 index 0000000000..489fc1f994 --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_resource.md @@ -0,0 +1,22 @@ +Provides a resource to create a wedata resource + +Example Usage + +```hcl +resource "tencentcloud_wedata_resource" "example" { + file_path = "/datastudio/resource/demo" + project_id = "1612982498218618880" + file_name = "tf_example" + cos_bucket_name = "wedata-demo-1314991481" + cos_region = "ap-guangzhou" + files_size = "8165" +} +``` + +Import + +wedata resource can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_resource.example 1612982498218618880#/datastudio/resource/demo#75431931-7d27-4034-b3de-3dc3348a220e +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_rule_template.md b/tencentcloud/wedata/resource_tc_wedata_rule_template.md new file mode 100644 index 0000000000..b0b4939cd3 --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_rule_template.md @@ -0,0 +1,26 @@ +Provides a resource to create a wedata rule_template + +Example Usage + +```hcl +resource "tencentcloud_wedata_rule_template" "rule_template" { + project_id = "1840731346428280832" + type = 2 + name = "tf-test" + quality_dim = 3 + source_object_type = 2 + description = "for tf test" + source_engine_types = [2, 4, 16] + multi_source_flag = false + sql_expression = base64encode("select * from db") + where_flag = false +} +``` + +Import + +wedata rule_template can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_rule_template.rule_template rule_template_id +``` \ No newline at end of file diff --git a/tencentcloud/wedata/resource_tc_wedata_script.md b/tencentcloud/wedata/resource_tc_wedata_script.md new file mode 100644 index 0000000000..2818d8673b --- /dev/null +++ b/tencentcloud/wedata/resource_tc_wedata_script.md @@ -0,0 +1,21 @@ +Provides a resource to create a wedata script + +Example Usage + +```hcl +resource "tencentcloud_wedata_script" "example" { + file_path = "/datastudio/project/tf_example.sql" + project_id = "1470575647377821696" + bucket_name = "wedata-demo-1257305158" + region = "ap-guangzhou" + file_extension_type = "sql" +} +``` + +Import + +wedata script can be imported using the id, e.g. + +``` +terraform import tencentcloud_wedata_script.example 1470575647377821696#/datastudio/project/tf_example.sql#4147824b-7ba2-432b-8a8b-7e747594c926 +``` \ No newline at end of file diff --git a/website/docs/d/antiddos_basic_device_status.html.markdown b/website/docs/d/antiddos_basic_device_status.html.markdown index e0ccf87178..70af7ace98 100644 --- a/website/docs/d/antiddos_basic_device_status.html.markdown +++ b/website/docs/d/antiddos_basic_device_status.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Anti-DDoS" +subcategory: "Anti-DDoS(antiddos)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_antiddos_basic_device_status" sidebar_current: "docs-tencentcloud-datasource-antiddos_basic_device_status" diff --git a/website/docs/d/antiddos_bgp_biz_trend.html.markdown b/website/docs/d/antiddos_bgp_biz_trend.html.markdown index 1641707090..9047ecdc0d 100644 --- a/website/docs/d/antiddos_bgp_biz_trend.html.markdown +++ b/website/docs/d/antiddos_bgp_biz_trend.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Anti-DDoS" +subcategory: "Anti-DDoS(antiddos)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_antiddos_bgp_biz_trend" sidebar_current: "docs-tencentcloud-datasource-antiddos_bgp_biz_trend" diff --git a/website/docs/d/antiddos_list_listener.html.markdown b/website/docs/d/antiddos_list_listener.html.markdown index b19d78b034..d52a9cd98e 100644 --- a/website/docs/d/antiddos_list_listener.html.markdown +++ b/website/docs/d/antiddos_list_listener.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Anti-DDoS" +subcategory: "Anti-DDoS(antiddos)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_antiddos_list_listener" sidebar_current: "docs-tencentcloud-datasource-antiddos_list_listener" diff --git a/website/docs/d/antiddos_overview_attack_trend.html.markdown b/website/docs/d/antiddos_overview_attack_trend.html.markdown index e5c78bde65..108fbc64e0 100644 --- a/website/docs/d/antiddos_overview_attack_trend.html.markdown +++ b/website/docs/d/antiddos_overview_attack_trend.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Anti-DDoS" +subcategory: "Anti-DDoS(antiddos)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_antiddos_overview_attack_trend" sidebar_current: "docs-tencentcloud-datasource-antiddos_overview_attack_trend" diff --git a/website/docs/d/api_gateway_api_app_api.html.markdown b/website/docs/d/api_gateway_api_app_api.html.markdown index b5d0cce612..c4b175bb1e 100644 --- a/website/docs/d/api_gateway_api_app_api.html.markdown +++ b/website/docs/d/api_gateway_api_app_api.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_app_api" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_app_api" diff --git a/website/docs/d/api_gateway_api_app_service.html.markdown b/website/docs/d/api_gateway_api_app_service.html.markdown index 4e4a88d77f..f21f3d5e28 100644 --- a/website/docs/d/api_gateway_api_app_service.html.markdown +++ b/website/docs/d/api_gateway_api_app_service.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_app_service" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_app_service" diff --git a/website/docs/d/api_gateway_api_apps.html.markdown b/website/docs/d/api_gateway_api_apps.html.markdown index 70a5a95b8b..afa75d4b5c 100644 --- a/website/docs/d/api_gateway_api_apps.html.markdown +++ b/website/docs/d/api_gateway_api_apps.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_apps" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_apps" diff --git a/website/docs/d/api_gateway_api_docs.html.markdown b/website/docs/d/api_gateway_api_docs.html.markdown index f4a3715cf9..2a7558b8bf 100644 --- a/website/docs/d/api_gateway_api_docs.html.markdown +++ b/website/docs/d/api_gateway_api_docs.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_docs" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_docs" diff --git a/website/docs/d/api_gateway_api_keys.html.markdown b/website/docs/d/api_gateway_api_keys.html.markdown index 25e3017617..0265c32198 100644 --- a/website/docs/d/api_gateway_api_keys.html.markdown +++ b/website/docs/d/api_gateway_api_keys.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_keys" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_keys" diff --git a/website/docs/d/api_gateway_api_plugins.html.markdown b/website/docs/d/api_gateway_api_plugins.html.markdown index 92b6305783..8e40db14d0 100644 --- a/website/docs/d/api_gateway_api_plugins.html.markdown +++ b/website/docs/d/api_gateway_api_plugins.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_plugins" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_plugins" diff --git a/website/docs/d/api_gateway_api_usage_plans.html.markdown b/website/docs/d/api_gateway_api_usage_plans.html.markdown index a1f535d352..36910c85f5 100644 --- a/website/docs/d/api_gateway_api_usage_plans.html.markdown +++ b/website/docs/d/api_gateway_api_usage_plans.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_usage_plans" sidebar_current: "docs-tencentcloud-datasource-api_gateway_api_usage_plans" diff --git a/website/docs/d/api_gateway_apis.html.markdown b/website/docs/d/api_gateway_apis.html.markdown index f8efbd3251..08eca3b95b 100644 --- a/website/docs/d/api_gateway_apis.html.markdown +++ b/website/docs/d/api_gateway_apis.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_apis" sidebar_current: "docs-tencentcloud-datasource-api_gateway_apis" diff --git a/website/docs/d/api_gateway_bind_api_apps_status.html.markdown b/website/docs/d/api_gateway_bind_api_apps_status.html.markdown index 83349532a1..6421d61671 100644 --- a/website/docs/d/api_gateway_bind_api_apps_status.html.markdown +++ b/website/docs/d/api_gateway_bind_api_apps_status.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_bind_api_apps_status" sidebar_current: "docs-tencentcloud-datasource-api_gateway_bind_api_apps_status" diff --git a/website/docs/d/api_gateway_customer_domains.html.markdown b/website/docs/d/api_gateway_customer_domains.html.markdown index 146b818848..308e6bfe9b 100644 --- a/website/docs/d/api_gateway_customer_domains.html.markdown +++ b/website/docs/d/api_gateway_customer_domains.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_customer_domains" sidebar_current: "docs-tencentcloud-datasource-api_gateway_customer_domains" diff --git a/website/docs/d/api_gateway_ip_strategies.html.markdown b/website/docs/d/api_gateway_ip_strategies.html.markdown index eed74ae0ad..12ae89e2de 100644 --- a/website/docs/d/api_gateway_ip_strategies.html.markdown +++ b/website/docs/d/api_gateway_ip_strategies.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_ip_strategies" sidebar_current: "docs-tencentcloud-datasource-api_gateway_ip_strategies" diff --git a/website/docs/d/api_gateway_plugins.html.markdown b/website/docs/d/api_gateway_plugins.html.markdown index 7f17ea311e..830830763b 100644 --- a/website/docs/d/api_gateway_plugins.html.markdown +++ b/website/docs/d/api_gateway_plugins.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_plugins" sidebar_current: "docs-tencentcloud-datasource-api_gateway_plugins" diff --git a/website/docs/d/api_gateway_service_environment_list.html.markdown b/website/docs/d/api_gateway_service_environment_list.html.markdown index 0cb94591ee..9f633bfdf2 100644 --- a/website/docs/d/api_gateway_service_environment_list.html.markdown +++ b/website/docs/d/api_gateway_service_environment_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_service_environment_list" sidebar_current: "docs-tencentcloud-datasource-api_gateway_service_environment_list" diff --git a/website/docs/d/api_gateway_service_release_versions.html.markdown b/website/docs/d/api_gateway_service_release_versions.html.markdown index 13febb6182..08a518ed9c 100644 --- a/website/docs/d/api_gateway_service_release_versions.html.markdown +++ b/website/docs/d/api_gateway_service_release_versions.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_service_release_versions" sidebar_current: "docs-tencentcloud-datasource-api_gateway_service_release_versions" diff --git a/website/docs/d/api_gateway_services.html.markdown b/website/docs/d/api_gateway_services.html.markdown index 80917c4509..94358ef126 100644 --- a/website/docs/d/api_gateway_services.html.markdown +++ b/website/docs/d/api_gateway_services.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_services" sidebar_current: "docs-tencentcloud-datasource-api_gateway_services" diff --git a/website/docs/d/api_gateway_throttling_apis.html.markdown b/website/docs/d/api_gateway_throttling_apis.html.markdown index 8bccdb6644..436d8dc895 100644 --- a/website/docs/d/api_gateway_throttling_apis.html.markdown +++ b/website/docs/d/api_gateway_throttling_apis.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_throttling_apis" sidebar_current: "docs-tencentcloud-datasource-api_gateway_throttling_apis" diff --git a/website/docs/d/api_gateway_throttling_services.html.markdown b/website/docs/d/api_gateway_throttling_services.html.markdown index 605af1c740..c0d21303e5 100644 --- a/website/docs/d/api_gateway_throttling_services.html.markdown +++ b/website/docs/d/api_gateway_throttling_services.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_throttling_services" sidebar_current: "docs-tencentcloud-datasource-api_gateway_throttling_services" diff --git a/website/docs/d/api_gateway_upstreams.html.markdown b/website/docs/d/api_gateway_upstreams.html.markdown index b11f4bbee1..9eb7ed2dc5 100644 --- a/website/docs/d/api_gateway_upstreams.html.markdown +++ b/website/docs/d/api_gateway_upstreams.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_upstreams" sidebar_current: "docs-tencentcloud-datasource-api_gateway_upstreams" diff --git a/website/docs/d/api_gateway_usage_plan_environments.html.markdown b/website/docs/d/api_gateway_usage_plan_environments.html.markdown index 33322de7c4..dff1ddc6e4 100644 --- a/website/docs/d/api_gateway_usage_plan_environments.html.markdown +++ b/website/docs/d/api_gateway_usage_plan_environments.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_usage_plan_environments" sidebar_current: "docs-tencentcloud-datasource-api_gateway_usage_plan_environments" diff --git a/website/docs/d/api_gateway_usage_plans.html.markdown b/website/docs/d/api_gateway_usage_plans.html.markdown index 23f46c67e2..ea62346dab 100644 --- a/website/docs/d/api_gateway_usage_plans.html.markdown +++ b/website/docs/d/api_gateway_usage_plans.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_usage_plans" sidebar_current: "docs-tencentcloud-datasource-api_gateway_usage_plans" diff --git a/website/docs/d/container_cluster_instances.html.markdown b/website/docs/d/container_cluster_instances.html.markdown index ba93d9a06f..f5c08e5337 100644 --- a/website/docs/d/container_cluster_instances.html.markdown +++ b/website/docs/d/container_cluster_instances.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Container Cluster" +subcategory: "Container Cluster(tke)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_container_cluster_instances" sidebar_current: "docs-tencentcloud-datasource-container_cluster_instances" diff --git a/website/docs/d/container_clusters.html.markdown b/website/docs/d/container_clusters.html.markdown index 6652ad3097..d80caa8435 100644 --- a/website/docs/d/container_clusters.html.markdown +++ b/website/docs/d/container_clusters.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Container Cluster" +subcategory: "Container Cluster(tke)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_container_clusters" sidebar_current: "docs-tencentcloud-datasource-container_clusters" diff --git a/website/docs/d/ssl_certificates.html.markdown b/website/docs/d/ssl_certificates.html.markdown index b4dbec59bf..95c982f793 100644 --- a/website/docs/d/ssl_certificates.html.markdown +++ b/website/docs/d/ssl_certificates.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_certificates" sidebar_current: "docs-tencentcloud-datasource-ssl_certificates" diff --git a/website/docs/d/ssl_describe_certificate.html.markdown b/website/docs/d/ssl_describe_certificate.html.markdown index 9eb0215e39..8f00c10ecf 100644 --- a/website/docs/d/ssl_describe_certificate.html.markdown +++ b/website/docs/d/ssl_describe_certificate.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_certificate" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_certificate" diff --git a/website/docs/d/ssl_describe_companies.html.markdown b/website/docs/d/ssl_describe_companies.html.markdown index 244cfe9ec0..3dbfb07cd1 100644 --- a/website/docs/d/ssl_describe_companies.html.markdown +++ b/website/docs/d/ssl_describe_companies.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_companies" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_companies" diff --git a/website/docs/d/ssl_describe_host_api_gateway_instance_list.html.markdown b/website/docs/d/ssl_describe_host_api_gateway_instance_list.html.markdown index 4fdedc0a47..a4925a2e7b 100644 --- a/website/docs/d/ssl_describe_host_api_gateway_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_api_gateway_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_api_gateway_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_api_gateway_instance_list" diff --git a/website/docs/d/ssl_describe_host_cdn_instance_list.html.markdown b/website/docs/d/ssl_describe_host_cdn_instance_list.html.markdown index c34af687cc..e7c027fe30 100644 --- a/website/docs/d/ssl_describe_host_cdn_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_cdn_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_cdn_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_cdn_instance_list" diff --git a/website/docs/d/ssl_describe_host_clb_instance_list.html.markdown b/website/docs/d/ssl_describe_host_clb_instance_list.html.markdown index 183a0131da..a49c22da8d 100644 --- a/website/docs/d/ssl_describe_host_clb_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_clb_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_clb_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_clb_instance_list" diff --git a/website/docs/d/ssl_describe_host_cos_instance_list.html.markdown b/website/docs/d/ssl_describe_host_cos_instance_list.html.markdown index bebe91f3aa..f4e5eddc05 100644 --- a/website/docs/d/ssl_describe_host_cos_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_cos_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_cos_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_cos_instance_list" diff --git a/website/docs/d/ssl_describe_host_ddos_instance_list.html.markdown b/website/docs/d/ssl_describe_host_ddos_instance_list.html.markdown index 1a17609027..d6713df104 100644 --- a/website/docs/d/ssl_describe_host_ddos_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_ddos_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_ddos_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_ddos_instance_list" diff --git a/website/docs/d/ssl_describe_host_deploy_record.html.markdown b/website/docs/d/ssl_describe_host_deploy_record.html.markdown index afe8856baa..9bd1954af6 100644 --- a/website/docs/d/ssl_describe_host_deploy_record.html.markdown +++ b/website/docs/d/ssl_describe_host_deploy_record.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_deploy_record" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_deploy_record" diff --git a/website/docs/d/ssl_describe_host_deploy_record_detail.html.markdown b/website/docs/d/ssl_describe_host_deploy_record_detail.html.markdown index 61a49c97b8..116cc79667 100644 --- a/website/docs/d/ssl_describe_host_deploy_record_detail.html.markdown +++ b/website/docs/d/ssl_describe_host_deploy_record_detail.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_deploy_record_detail" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_deploy_record_detail" diff --git a/website/docs/d/ssl_describe_host_lighthouse_instance_list.html.markdown b/website/docs/d/ssl_describe_host_lighthouse_instance_list.html.markdown index 50773c6141..97fc1c28b6 100644 --- a/website/docs/d/ssl_describe_host_lighthouse_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_lighthouse_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_lighthouse_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_lighthouse_instance_list" diff --git a/website/docs/d/ssl_describe_host_live_instance_list.html.markdown b/website/docs/d/ssl_describe_host_live_instance_list.html.markdown index e1660853c6..6cc0fd4a1d 100644 --- a/website/docs/d/ssl_describe_host_live_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_live_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_live_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_live_instance_list" diff --git a/website/docs/d/ssl_describe_host_teo_instance_list.html.markdown b/website/docs/d/ssl_describe_host_teo_instance_list.html.markdown index 739cde1950..94b64220da 100644 --- a/website/docs/d/ssl_describe_host_teo_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_teo_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_teo_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_teo_instance_list" diff --git a/website/docs/d/ssl_describe_host_tke_instance_list.html.markdown b/website/docs/d/ssl_describe_host_tke_instance_list.html.markdown index 08856096df..e0cf75d035 100644 --- a/website/docs/d/ssl_describe_host_tke_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_tke_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_tke_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_tke_instance_list" diff --git a/website/docs/d/ssl_describe_host_update_record.html.markdown b/website/docs/d/ssl_describe_host_update_record.html.markdown index 162493b194..200be04b34 100644 --- a/website/docs/d/ssl_describe_host_update_record.html.markdown +++ b/website/docs/d/ssl_describe_host_update_record.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_update_record" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_update_record" diff --git a/website/docs/d/ssl_describe_host_update_record_detail.html.markdown b/website/docs/d/ssl_describe_host_update_record_detail.html.markdown index b210d41ad3..92e2d28515 100644 --- a/website/docs/d/ssl_describe_host_update_record_detail.html.markdown +++ b/website/docs/d/ssl_describe_host_update_record_detail.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_update_record_detail" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_update_record_detail" diff --git a/website/docs/d/ssl_describe_host_vod_instance_list.html.markdown b/website/docs/d/ssl_describe_host_vod_instance_list.html.markdown index 7fe30bf616..c67399a8d7 100644 --- a/website/docs/d/ssl_describe_host_vod_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_vod_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_vod_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_vod_instance_list" diff --git a/website/docs/d/ssl_describe_host_waf_instance_list.html.markdown b/website/docs/d/ssl_describe_host_waf_instance_list.html.markdown index d125c5a251..566c59810f 100644 --- a/website/docs/d/ssl_describe_host_waf_instance_list.html.markdown +++ b/website/docs/d/ssl_describe_host_waf_instance_list.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_host_waf_instance_list" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_host_waf_instance_list" diff --git a/website/docs/d/ssl_describe_manager_detail.html.markdown b/website/docs/d/ssl_describe_manager_detail.html.markdown index 9c17e78fa0..45dc2cb61d 100644 --- a/website/docs/d/ssl_describe_manager_detail.html.markdown +++ b/website/docs/d/ssl_describe_manager_detail.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_manager_detail" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_manager_detail" diff --git a/website/docs/d/ssl_describe_managers.html.markdown b/website/docs/d/ssl_describe_managers.html.markdown index 0c028058f2..f6d75134c2 100644 --- a/website/docs/d/ssl_describe_managers.html.markdown +++ b/website/docs/d/ssl_describe_managers.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_describe_managers" sidebar_current: "docs-tencentcloud-datasource-ssl_describe_managers" diff --git a/website/docs/d/tcmq_queue.html.markdown b/website/docs/d/tcmq_queue.html.markdown index 2f00725744..4cc4af6985 100644 --- a/website/docs/d/tcmq_queue.html.markdown +++ b/website/docs/d/tcmq_queue.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "TDMQ for CMQ" +subcategory: "TDMQ for CMQ(tcmq)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_tcmq_queue" sidebar_current: "docs-tencentcloud-datasource-tcmq_queue" diff --git a/website/docs/d/tcmq_subscribe.html.markdown b/website/docs/d/tcmq_subscribe.html.markdown index 7c085c0eb1..f11450a1fd 100644 --- a/website/docs/d/tcmq_subscribe.html.markdown +++ b/website/docs/d/tcmq_subscribe.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "TDMQ for CMQ" +subcategory: "TDMQ for CMQ(tcmq)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_tcmq_subscribe" sidebar_current: "docs-tencentcloud-datasource-tcmq_subscribe" diff --git a/website/docs/d/tcmq_topic.html.markdown b/website/docs/d/tcmq_topic.html.markdown index d9f96523f0..aa5dfed900 100644 --- a/website/docs/d/tcmq_topic.html.markdown +++ b/website/docs/d/tcmq_topic.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "TDMQ for CMQ" +subcategory: "TDMQ for CMQ(tcmq)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_tcmq_topic" sidebar_current: "docs-tencentcloud-datasource-tcmq_topic" diff --git a/website/docs/r/api_gateway_api.html.markdown b/website/docs/r/api_gateway_api.html.markdown index a4dc272ad2..4e896a0b6f 100644 --- a/website/docs/r/api_gateway_api.html.markdown +++ b/website/docs/r/api_gateway_api.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api" sidebar_current: "docs-tencentcloud-resource-api_gateway_api" diff --git a/website/docs/r/api_gateway_api_app.html.markdown b/website/docs/r/api_gateway_api_app.html.markdown index b28484e110..305ab0c98d 100644 --- a/website/docs/r/api_gateway_api_app.html.markdown +++ b/website/docs/r/api_gateway_api_app.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_app" sidebar_current: "docs-tencentcloud-resource-api_gateway_api_app" diff --git a/website/docs/r/api_gateway_api_app_attachment.html.markdown b/website/docs/r/api_gateway_api_app_attachment.html.markdown index 7f6c3fd56c..d3a8b035db 100644 --- a/website/docs/r/api_gateway_api_app_attachment.html.markdown +++ b/website/docs/r/api_gateway_api_app_attachment.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_app_attachment" sidebar_current: "docs-tencentcloud-resource-api_gateway_api_app_attachment" diff --git a/website/docs/r/api_gateway_api_doc.html.markdown b/website/docs/r/api_gateway_api_doc.html.markdown index 10f47ed320..625ecdb6c1 100644 --- a/website/docs/r/api_gateway_api_doc.html.markdown +++ b/website/docs/r/api_gateway_api_doc.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_doc" sidebar_current: "docs-tencentcloud-resource-api_gateway_api_doc" diff --git a/website/docs/r/api_gateway_api_key.html.markdown b/website/docs/r/api_gateway_api_key.html.markdown index 261f464e0d..fe501c1e6f 100644 --- a/website/docs/r/api_gateway_api_key.html.markdown +++ b/website/docs/r/api_gateway_api_key.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_key" sidebar_current: "docs-tencentcloud-resource-api_gateway_api_key" diff --git a/website/docs/r/api_gateway_api_key_attachment.html.markdown b/website/docs/r/api_gateway_api_key_attachment.html.markdown index d16ed37747..da525a72a3 100644 --- a/website/docs/r/api_gateway_api_key_attachment.html.markdown +++ b/website/docs/r/api_gateway_api_key_attachment.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_api_key_attachment" sidebar_current: "docs-tencentcloud-resource-api_gateway_api_key_attachment" diff --git a/website/docs/r/api_gateway_custom_domain.html.markdown b/website/docs/r/api_gateway_custom_domain.html.markdown index 569e617187..4560fe9691 100644 --- a/website/docs/r/api_gateway_custom_domain.html.markdown +++ b/website/docs/r/api_gateway_custom_domain.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_custom_domain" sidebar_current: "docs-tencentcloud-resource-api_gateway_custom_domain" diff --git a/website/docs/r/api_gateway_import_open_api.html.markdown b/website/docs/r/api_gateway_import_open_api.html.markdown index 4eb451daf8..c12541f434 100644 --- a/website/docs/r/api_gateway_import_open_api.html.markdown +++ b/website/docs/r/api_gateway_import_open_api.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_import_open_api" sidebar_current: "docs-tencentcloud-resource-api_gateway_import_open_api" diff --git a/website/docs/r/api_gateway_ip_strategy.html.markdown b/website/docs/r/api_gateway_ip_strategy.html.markdown index 2b44d6969d..8adf72b6fe 100644 --- a/website/docs/r/api_gateway_ip_strategy.html.markdown +++ b/website/docs/r/api_gateway_ip_strategy.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_ip_strategy" sidebar_current: "docs-tencentcloud-resource-api_gateway_ip_strategy" diff --git a/website/docs/r/api_gateway_plugin.html.markdown b/website/docs/r/api_gateway_plugin.html.markdown index 279f94eabe..bebe35a3d8 100644 --- a/website/docs/r/api_gateway_plugin.html.markdown +++ b/website/docs/r/api_gateway_plugin.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_plugin" sidebar_current: "docs-tencentcloud-resource-api_gateway_plugin" diff --git a/website/docs/r/api_gateway_plugin_attachment.html.markdown b/website/docs/r/api_gateway_plugin_attachment.html.markdown index 183b83b97f..2cc9fa2631 100644 --- a/website/docs/r/api_gateway_plugin_attachment.html.markdown +++ b/website/docs/r/api_gateway_plugin_attachment.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_plugin_attachment" sidebar_current: "docs-tencentcloud-resource-api_gateway_plugin_attachment" diff --git a/website/docs/r/api_gateway_service.html.markdown b/website/docs/r/api_gateway_service.html.markdown index ea435ba2e6..c7bd2f0d5f 100644 --- a/website/docs/r/api_gateway_service.html.markdown +++ b/website/docs/r/api_gateway_service.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_service" sidebar_current: "docs-tencentcloud-resource-api_gateway_service" diff --git a/website/docs/r/api_gateway_service_release.html.markdown b/website/docs/r/api_gateway_service_release.html.markdown index 5317527ce7..eb6a953ef9 100644 --- a/website/docs/r/api_gateway_service_release.html.markdown +++ b/website/docs/r/api_gateway_service_release.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_service_release" sidebar_current: "docs-tencentcloud-resource-api_gateway_service_release" diff --git a/website/docs/r/api_gateway_strategy_attachment.html.markdown b/website/docs/r/api_gateway_strategy_attachment.html.markdown index 5def52b55a..cefb80ab11 100644 --- a/website/docs/r/api_gateway_strategy_attachment.html.markdown +++ b/website/docs/r/api_gateway_strategy_attachment.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_strategy_attachment" sidebar_current: "docs-tencentcloud-resource-api_gateway_strategy_attachment" diff --git a/website/docs/r/api_gateway_update_api_app_key.html.markdown b/website/docs/r/api_gateway_update_api_app_key.html.markdown index a55190607a..d1b1fb3c6f 100644 --- a/website/docs/r/api_gateway_update_api_app_key.html.markdown +++ b/website/docs/r/api_gateway_update_api_app_key.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_update_api_app_key" sidebar_current: "docs-tencentcloud-resource-api_gateway_update_api_app_key" diff --git a/website/docs/r/api_gateway_upstream.html.markdown b/website/docs/r/api_gateway_upstream.html.markdown index cf9ba4907a..ba9e81c190 100644 --- a/website/docs/r/api_gateway_upstream.html.markdown +++ b/website/docs/r/api_gateway_upstream.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_upstream" sidebar_current: "docs-tencentcloud-resource-api_gateway_upstream" diff --git a/website/docs/r/api_gateway_usage_plan.html.markdown b/website/docs/r/api_gateway_usage_plan.html.markdown index 0977a82c1e..059566e4fb 100644 --- a/website/docs/r/api_gateway_usage_plan.html.markdown +++ b/website/docs/r/api_gateway_usage_plan.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_usage_plan" sidebar_current: "docs-tencentcloud-resource-api_gateway_usage_plan" diff --git a/website/docs/r/api_gateway_usage_plan_attachment.html.markdown b/website/docs/r/api_gateway_usage_plan_attachment.html.markdown index fe95b3d984..bff698e63b 100644 --- a/website/docs/r/api_gateway_usage_plan_attachment.html.markdown +++ b/website/docs/r/api_gateway_usage_plan_attachment.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "API GateWay" +subcategory: "API GateWay(apigateway)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_api_gateway_usage_plan_attachment" sidebar_current: "docs-tencentcloud-resource-api_gateway_usage_plan_attachment" diff --git a/website/docs/r/container_cluster.html.markdown b/website/docs/r/container_cluster.html.markdown index 9aa52c4e29..a9a77a9429 100644 --- a/website/docs/r/container_cluster.html.markdown +++ b/website/docs/r/container_cluster.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Container Cluster" +subcategory: "Container Cluster(tke)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_container_cluster" sidebar_current: "docs-tencentcloud-resource-container_cluster" diff --git a/website/docs/r/container_cluster_instance.html.markdown b/website/docs/r/container_cluster_instance.html.markdown index f28b733013..bea2d00755 100644 --- a/website/docs/r/container_cluster_instance.html.markdown +++ b/website/docs/r/container_cluster_instance.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "Container Cluster" +subcategory: "Container Cluster(tke)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_container_cluster_instance" sidebar_current: "docs-tencentcloud-resource-container_cluster_instance" diff --git a/website/docs/r/ssl_certificate.html.markdown b/website/docs/r/ssl_certificate.html.markdown index 450dfb2d89..a7f3138c14 100644 --- a/website/docs/r/ssl_certificate.html.markdown +++ b/website/docs/r/ssl_certificate.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_certificate" sidebar_current: "docs-tencentcloud-resource-ssl_certificate" diff --git a/website/docs/r/ssl_check_certificate_chain_operation.html.markdown b/website/docs/r/ssl_check_certificate_chain_operation.html.markdown index e755ceed75..f16566a129 100644 --- a/website/docs/r/ssl_check_certificate_chain_operation.html.markdown +++ b/website/docs/r/ssl_check_certificate_chain_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_check_certificate_chain_operation" sidebar_current: "docs-tencentcloud-resource-ssl_check_certificate_chain_operation" diff --git a/website/docs/r/ssl_complete_certificate_operation.html.markdown b/website/docs/r/ssl_complete_certificate_operation.html.markdown index 4fc7c44a4c..c57dd9773f 100644 --- a/website/docs/r/ssl_complete_certificate_operation.html.markdown +++ b/website/docs/r/ssl_complete_certificate_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_complete_certificate_operation" sidebar_current: "docs-tencentcloud-resource-ssl_complete_certificate_operation" diff --git a/website/docs/r/ssl_deploy_certificate_instance_operation.html.markdown b/website/docs/r/ssl_deploy_certificate_instance_operation.html.markdown index 06a6d16d0c..09db987c48 100644 --- a/website/docs/r/ssl_deploy_certificate_instance_operation.html.markdown +++ b/website/docs/r/ssl_deploy_certificate_instance_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_deploy_certificate_instance_operation" sidebar_current: "docs-tencentcloud-resource-ssl_deploy_certificate_instance_operation" diff --git a/website/docs/r/ssl_deploy_certificate_record_retry_operation.html.markdown b/website/docs/r/ssl_deploy_certificate_record_retry_operation.html.markdown index a2fc2c8a0f..3703fa5645 100644 --- a/website/docs/r/ssl_deploy_certificate_record_retry_operation.html.markdown +++ b/website/docs/r/ssl_deploy_certificate_record_retry_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_deploy_certificate_record_retry_operation" sidebar_current: "docs-tencentcloud-resource-ssl_deploy_certificate_record_retry_operation" diff --git a/website/docs/r/ssl_deploy_certificate_record_rollback_operation.html.markdown b/website/docs/r/ssl_deploy_certificate_record_rollback_operation.html.markdown index 8f549e2295..af089e22f3 100644 --- a/website/docs/r/ssl_deploy_certificate_record_rollback_operation.html.markdown +++ b/website/docs/r/ssl_deploy_certificate_record_rollback_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_deploy_certificate_record_rollback_operation" sidebar_current: "docs-tencentcloud-resource-ssl_deploy_certificate_record_rollback_operation" diff --git a/website/docs/r/ssl_download_certificate_operation.html.markdown b/website/docs/r/ssl_download_certificate_operation.html.markdown index 45a2b97108..7f3cd90ee0 100644 --- a/website/docs/r/ssl_download_certificate_operation.html.markdown +++ b/website/docs/r/ssl_download_certificate_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_download_certificate_operation" sidebar_current: "docs-tencentcloud-resource-ssl_download_certificate_operation" diff --git a/website/docs/r/ssl_free_certificate.html.markdown b/website/docs/r/ssl_free_certificate.html.markdown index 91261d7982..1536ffe776 100644 --- a/website/docs/r/ssl_free_certificate.html.markdown +++ b/website/docs/r/ssl_free_certificate.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_free_certificate" sidebar_current: "docs-tencentcloud-resource-ssl_free_certificate" diff --git a/website/docs/r/ssl_pay_certificate.html.markdown b/website/docs/r/ssl_pay_certificate.html.markdown index 26c6adcd31..fa64b0f1c3 100644 --- a/website/docs/r/ssl_pay_certificate.html.markdown +++ b/website/docs/r/ssl_pay_certificate.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_pay_certificate" sidebar_current: "docs-tencentcloud-resource-ssl_pay_certificate" diff --git a/website/docs/r/ssl_replace_certificate_operation.html.markdown b/website/docs/r/ssl_replace_certificate_operation.html.markdown index aa7e54010c..d421f05196 100644 --- a/website/docs/r/ssl_replace_certificate_operation.html.markdown +++ b/website/docs/r/ssl_replace_certificate_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_replace_certificate_operation" sidebar_current: "docs-tencentcloud-resource-ssl_replace_certificate_operation" diff --git a/website/docs/r/ssl_revoke_certificate_operation.html.markdown b/website/docs/r/ssl_revoke_certificate_operation.html.markdown index 7cd9dfb246..6880a686a9 100644 --- a/website/docs/r/ssl_revoke_certificate_operation.html.markdown +++ b/website/docs/r/ssl_revoke_certificate_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_revoke_certificate_operation" sidebar_current: "docs-tencentcloud-resource-ssl_revoke_certificate_operation" diff --git a/website/docs/r/ssl_update_certificate_instance_operation.html.markdown b/website/docs/r/ssl_update_certificate_instance_operation.html.markdown index fe8639cc5c..bbb1827f03 100644 --- a/website/docs/r/ssl_update_certificate_instance_operation.html.markdown +++ b/website/docs/r/ssl_update_certificate_instance_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_update_certificate_instance_operation" sidebar_current: "docs-tencentcloud-resource-ssl_update_certificate_instance_operation" diff --git a/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown b/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown index 6b766b1d20..973be80b78 100644 --- a/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown +++ b/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_update_certificate_record_retry_operation" sidebar_current: "docs-tencentcloud-resource-ssl_update_certificate_record_retry_operation" diff --git a/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown b/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown index 9f1eed568b..24b7a1a15c 100644 --- a/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown +++ b/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_update_certificate_record_rollback_operation" sidebar_current: "docs-tencentcloud-resource-ssl_update_certificate_record_rollback_operation" diff --git a/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown b/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown index 4d7cd29b8c..c122522dc4 100644 --- a/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown +++ b/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "SSL Certificates" +subcategory: "SSL Certificates(ssl)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_ssl_upload_revoke_letter_operation" sidebar_current: "docs-tencentcloud-resource-ssl_upload_revoke_letter_operation" diff --git a/website/docs/r/tcmq_queue.html.markdown b/website/docs/r/tcmq_queue.html.markdown index e043a7cb3d..c9e07a1d88 100644 --- a/website/docs/r/tcmq_queue.html.markdown +++ b/website/docs/r/tcmq_queue.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "TDMQ for CMQ" +subcategory: "TDMQ for CMQ(tcmq)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_tcmq_queue" sidebar_current: "docs-tencentcloud-resource-tcmq_queue" diff --git a/website/docs/r/tcmq_subscribe.html.markdown b/website/docs/r/tcmq_subscribe.html.markdown index 2bc48e9bc8..69a8f8a3fa 100644 --- a/website/docs/r/tcmq_subscribe.html.markdown +++ b/website/docs/r/tcmq_subscribe.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "TDMQ for CMQ" +subcategory: "TDMQ for CMQ(tcmq)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_tcmq_subscribe" sidebar_current: "docs-tencentcloud-resource-tcmq_subscribe" diff --git a/website/docs/r/tcmq_topic.html.markdown b/website/docs/r/tcmq_topic.html.markdown index 579415706b..215ba1da19 100644 --- a/website/docs/r/tcmq_topic.html.markdown +++ b/website/docs/r/tcmq_topic.html.markdown @@ -1,5 +1,5 @@ --- -subcategory: "TDMQ for CMQ" +subcategory: "TDMQ for CMQ(tcmq)" layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_tcmq_topic" sidebar_current: "docs-tencentcloud-resource-tcmq_topic" diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index c3d0c812b7..cf897eb927 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -25,7 +25,7 @@
  • - API GateWay + API GateWay(apigateway)
  • -
  • - Anti-DDoS - -
  • Anti-DDoS(Dayu)
  • +
  • + Anti-DDoS(antiddos) + +
  • Application Performance Management(APM)
  • - Container Cluster + Container Cluster(tke)
  • - SSL Certificates + SSL Certificates(ssl)
  • - TDMQ for CMQ + TDMQ for CMQ(tcmq)