From 81bf5ddbcfc3712e73cb5b977aa3d47810477971 Mon Sep 17 00:00:00 2001 From: Yanghao LUO Date: Thu, 30 Nov 2023 19:20:56 +0800 Subject: [PATCH 1/3] chore: adjust documentation generation --- gendoc/main.go | 41 +- ..._source_tc_antiddos_basic_device_status.md | 12 + .../data_source_tc_antiddos_bgp_biz_trend.md | 14 + .../data_source_tc_antiddos_list_listener.md | 8 + ...ource_tc_antiddos_overview_attack_trend.md | 13 + .../data_source_tc_api_gateway_api_app_api.md | 11 + ...a_source_tc_api_gateway_api_app_service.md | 52 + .../data_source_tc_api_gateway_api_apps.md | 10 + .../data_source_tc_api_gateway_api_docs.md | 6 + .../data_source_tc_api_gateway_api_keys.md | 18 + .../data_source_tc_api_gateway_api_plugins.md | 11 + ...a_source_tc_api_gateway_api_usage_plans.md | 66 + .../data_source_tc_api_gateway_apis.md | 42 + ...rce_tc_api_gateway_bind_api_apps_status.md | 14 + ..._source_tc_api_gateway_customer_domains.md | 19 + ...ata_source_tc_api_gateway_ip_strategies.md | 29 + .../data_source_tc_api_gateway_plugins.md | 76 + ...tc_api_gateway_service_environment_list.md | 9 + ...tc_api_gateway_service_release_versions.md | 9 + .../data_source_tc_api_gateway_services.md | 21 + ...a_source_tc_api_gateway_throttling_apis.md | 60 + ...urce_tc_api_gateway_throttling_services.md | 20 + .../data_source_tc_api_gateway_upstreams.md | 22 + ..._tc_api_gateway_usage_plan_environments.md | 32 + .../data_source_tc_api_gateway_usage_plans.md | 20 + .../apigateway/resource_tc_api_gateway_api.md | 51 + .../resource_tc_api_gateway_api_app.md | 33 + ...ource_tc_api_gateway_api_app_attachment.md | 70 + .../resource_tc_api_gateway_api_doc.md | 12 + .../resource_tc_api_gateway_api_key.md | 31 + ...ource_tc_api_gateway_api_key_attachment.md | 30 + .../resource_tc_api_gateway_custom_domain.md | 15 + ...resource_tc_api_gateway_import_open_api.md | 25 + .../resource_tc_api_gateway_ip_strategy.md | 28 + .../resource_tc_api_gateway_plugin.md | 23 + ...source_tc_api_gateway_plugin_attachment.md | 81 + .../resource_tc_api_gateway_service.md | 61 + ...resource_tc_api_gateway_service_release.md | 61 + ...urce_tc_api_gateway_strategy_attachment.md | 75 + ...ource_tc_api_gateway_update_api_app_key.md | 10 + .../resource_tc_api_gateway_upstream.md | 132 ++ .../resource_tc_api_gateway_usage_plan.md | 20 + ...ce_tc_api_gateway_usage_plan_attachment.md | 93 + tencentcloud/apm/resource_tc_apm_instance.md | 23 + tencentcloud/as/data_source_tc_as_advices.md | 9 + .../as/data_source_tc_as_instances.md | 25 + .../as/data_source_tc_as_last_activity.md | 9 + tencentcloud/as/data_source_tc_as_limits.md | 7 + .../as/data_source_tc_as_scaling_configs.md | 10 + .../as/data_source_tc_as_scaling_groups.md | 11 + .../as/data_source_tc_as_scaling_policies.md | 10 + tencentcloud/as/resource_tc_as_attachment.md | 77 + .../as/resource_tc_as_complete_lifecycle.md | 87 + .../resource_tc_as_execute_scaling_policy.md | 73 + .../as/resource_tc_as_lifecycle_hook.md | 85 + .../as/resource_tc_as_notification.md | 57 + .../as/resource_tc_as_protect_instances.md | 95 + .../as/resource_tc_as_remove_instances.md | 84 + .../as/resource_tc_as_scale_in_instances.md | 58 + .../as/resource_tc_as_scale_out_instances.md | 58 + .../as/resource_tc_as_scaling_config.md | 69 + .../as/resource_tc_as_scaling_group.md | 113 + .../as/resource_tc_as_scaling_group_status.md | 68 + .../as/resource_tc_as_scaling_policy.md | 58 + tencentcloud/as/resource_tc_as_schedule.md | 55 + .../as/resource_tc_as_start_instances.md | 84 + .../as/resource_tc_as_stop_instances.md | 84 + .../audit/data_source_tc_audit_cos_regions.md | 7 + .../audit/data_source_tc_audit_key_alias.md | 8 + tencentcloud/audit/data_source_tc_audits.md | 9 + tencentcloud/audit/resource_tc_audit.md | 24 + tencentcloud/audit/resource_tc_audit_track.md | 30 + tencentcloud/bh/resource_tc_dasb_acl.md | 43 + ...ce_tc_dasb_bind_device_account_password.md | 10 + ...tc_dasb_bind_device_account_private_key.md | 11 + .../resource_tc_dasb_bind_device_resource.md | 10 + .../bh/resource_tc_dasb_cmd_template.md | 18 + tencentcloud/bh/resource_tc_dasb_device.md | 21 + .../bh/resource_tc_dasb_device_account.md | 18 + .../bh/resource_tc_dasb_device_group.md | 18 + .../resource_tc_dasb_device_group_members.md | 18 + .../bh/resource_tc_dasb_reset_user.md | 9 + tencentcloud/bh/resource_tc_dasb_resource.md | 27 + tencentcloud/bh/resource_tc_dasb_user.md | 24 + .../bh/resource_tc_dasb_user_group.md | 26 + .../bh/resource_tc_dasb_user_group_members.md | 18 + tencentcloud/bi/data_source_tc_bi_project.md | 12 + .../bi/data_source_tc_bi_user_project.md | 10 + tencentcloud/bi/resource_tc_bi_datasource.md | 25 + .../bi/resource_tc_bi_datasource_cloud.md | 24 + .../bi/resource_tc_bi_embed_interval_apply.md | 12 + .../bi/resource_tc_bi_embed_token_apply.md | 14 + tencentcloud/bi/resource_tc_bi_project.md | 20 + .../bi/resource_tc_bi_project_user_role.md | 25 + tencentcloud/bi/resource_tc_bi_user_role.md | 24 + .../cam/data_source_tc_cam_account_summary.md | 8 + .../data_source_tc_cam_group_memberships.md | 9 + ..._source_tc_cam_group_policy_attachments.md | 16 + .../data_source_tc_cam_group_user_account.md | 9 + tencentcloud/cam/data_source_tc_cam_groups.md | 15 + ..._source_tc_cam_list_entities_for_policy.md | 10 + .../cam/data_source_tc_cam_oidc_config.md | 18 + .../cam/data_source_tc_cam_policies.md | 16 + ...e_tc_cam_policy_granting_service_access.md | 10 + ...a_source_tc_cam_role_policy_attachments.md | 16 + tencentcloud/cam/data_source_tc_cam_roles.md | 15 + .../cam/data_source_tc_cam_saml_providers.md | 9 + ...ata_source_tc_cam_secret_last_used_time.md | 9 + ...a_source_tc_cam_user_policy_attachments.md | 16 + tencentcloud/cam/data_source_tc_cam_users.md | 20 + tencentcloud/cam/data_source_tc_user_info.md | 7 + .../cam/resource_tc_cam_access_key.md | 30 + tencentcloud/cam/resource_tc_cam_group.md | 18 + .../cam/resource_tc_cam_group_membership.md | 40 + ...resource_tc_cam_group_policy_attachment.md | 34 + tencentcloud/cam/resource_tc_cam_mfa_flag.md | 30 + tencentcloud/cam/resource_tc_cam_oidc_sso.md | 24 + tencentcloud/cam/resource_tc_cam_policy.md | 34 + .../cam/resource_tc_cam_policy_by_name.md | 34 + .../cam/resource_tc_cam_policy_version.md | 59 + tencentcloud/cam/resource_tc_cam_role.md | 90 + .../cam/resource_tc_cam_role_by_name.md | 62 + ...cam_role_permission_boundary_attachment.md | 18 + .../resource_tc_cam_role_policy_attachment.md | 34 + ...e_tc_cam_role_policy_attachment_by_name.md | 34 + tencentcloud/cam/resource_tc_cam_role_sso.md | 21 + .../cam/resource_tc_cam_saml_provider.md | 19 + .../resource_tc_cam_service_linked_role.md | 15 + ...source_tc_cam_set_policy_version_config.md | 18 + .../resource_tc_cam_tag_role_attachment.md | 21 + tencentcloud/cam/resource_tc_cam_user.md | 29 + ...cam_user_permission_boundary_attachment.md | 18 + .../resource_tc_cam_user_policy_attachment.md | 46 + .../cam/resource_tc_cam_user_saml_config.md | 20 + .../cat/data_source_tc_cat_metric_data.md | 13 + tencentcloud/cat/data_source_tc_cat_node.md | 11 + .../cat/data_source_tc_cat_probe_data.md | 17 + tencentcloud/cat/resource_tc_cat_task_set.md | 52 + .../data_source_tc_cbs_snapshot_policies.md | 10 + .../cbs/data_source_tc_cbs_snapshots.md | 10 + .../cbs/data_source_tc_cbs_storages.md | 24 + .../cbs/data_source_tc_cbs_storages_set.md | 9 + .../cbs/resource_tc_cbs_disk_backup.md | 22 + ...e_tc_cbs_disk_backup_rollback_operation.md | 10 + tencentcloud/cbs/resource_tc_cbs_snapshot.md | 18 + .../cbs/resource_tc_cbs_snapshot_policy.md | 20 + ...ource_tc_cbs_snapshot_policy_attachment.md | 10 + ...source_tc_cbs_snapshot_share_permission.md | 18 + tencentcloud/cbs/resource_tc_cbs_storage.md | 26 + .../cbs/resource_tc_cbs_storage_attachment.md | 18 + .../cbs/resource_tc_cbs_storage_set.md | 15 + .../resource_tc_cbs_storage_set_attachment.md | 10 + .../data_source_tc_ccn_bandwidth_limits.md | 25 + ...a_source_tc_ccn_cross_border_compliance.md | 14 + ...source_tc_ccn_cross_border_flow_monitor.md | 15 + ...cn_cross_border_region_bandwidth_limits.md | 19 + .../ccn/data_source_tc_ccn_instances.md | 19 + .../data_source_tc_ccn_tenant_instances.md | 11 + tencentcloud/ccn/resource_tc_ccn.md | 47 + .../ccn/resource_tc_ccn_attachment.md | 45 + .../ccn/resource_tc_ccn_bandwidth_limit.md | 49 + ...resource_tc_ccn_instances_accept_attach.md | 14 + ...resource_tc_ccn_instances_reject_attach.md | 14 + .../resource_tc_ccn_instances_reset_attach.md | 15 + tencentcloud/ccn/resource_tc_ccn_routes.md | 19 + .../cdb/data_source_tc_mysql_backup_list.md | 11 + .../data_source_tc_mysql_backup_overview.md | 9 + .../data_source_tc_mysql_backup_summaries.md | 11 + .../cdb/data_source_tc_mysql_bin_log.md | 9 + ..._source_tc_mysql_binlog_backup_overview.md | 9 + .../cdb/data_source_tc_mysql_clone_list.md | 9 + ...ta_source_tc_mysql_data_backup_overview.md | 9 + .../cdb/data_source_tc_mysql_databases.md | 10 + .../cdb/data_source_tc_mysql_db_features.md | 9 + .../data_source_tc_mysql_default_params.md | 9 + .../cdb/data_source_tc_mysql_error_log.md | 13 + .../cdb/data_source_tc_mysql_inst_tables.md | 11 + .../cdb/data_source_tc_mysql_instance.md | 9 + .../data_source_tc_mysql_instance_charset.md | 9 + .../cdb/data_source_tc_mysql_instance_info.md | 9 + ...a_source_tc_mysql_instance_param_record.md | 9 + ...ta_source_tc_mysql_instance_reboot_time.md | 9 + .../data_source_tc_mysql_parameter_list.md | 11 + ..._source_tc_mysql_project_security_group.md | 9 + .../cdb/data_source_tc_mysql_ro_min_scale.md | 10 + ...ata_source_tc_mysql_rollback_range_time.md | 9 + .../cdb/data_source_tc_mysql_slow_log.md | 9 + .../cdb/data_source_tc_mysql_slow_log_data.md | 17 + ...ta_source_tc_mysql_supported_privileges.md | 9 + .../cdb/data_source_tc_mysql_switch_record.md | 9 + .../cdb/data_source_tc_mysql_user_task.md | 14 + .../cdb/data_source_tc_mysql_zone_config.md | 10 + tencentcloud/cdb/resource_tc_mysql_account.md | 69 + .../resource_tc_mysql_account_privilege.md | 70 + .../cdb/resource_tc_mysql_audit_log_file.md | 78 + ...ce_tc_mysql_backup_download_restriction.md | 24 + ...ource_tc_mysql_backup_encryption_status.md | 77 + .../cdb/resource_tc_mysql_backup_policy.md | 65 + .../cdb/resource_tc_mysql_database.md | 19 + .../cdb/resource_tc_mysql_deploy_group.md | 20 + .../resource_tc_mysql_dr_instance_to_mater.md | 65 + .../cdb/resource_tc_mysql_instance.md | 130 + ..._tc_mysql_instance_encryption_operation.md | 59 + .../cdb/resource_tc_mysql_isolate_instance.md | 58 + .../resource_tc_mysql_local_binlog_config.md | 67 + .../cdb/resource_tc_mysql_param_template.md | 81 + .../resource_tc_mysql_password_complexity.md | 73 + .../cdb/resource_tc_mysql_privilege.md | 94 + tencentcloud/cdb/resource_tc_mysql_proxy.md | 72 + .../resource_tc_mysql_readonly_instance.md | 77 + ...urce_tc_mysql_reload_balance_proxy_node.md | 77 + .../resource_tc_mysql_remote_backup_config.md | 69 + ...ce_tc_mysql_renew_db_instance_operation.md | 64 + .../resource_tc_mysql_reset_root_account.md | 58 + ...tc_mysql_restart_db_instances_operation.md | 65 + .../cdb/resource_tc_mysql_ro_group.md | 23 + ...source_tc_mysql_ro_group_load_operation.md | 78 + .../cdb/resource_tc_mysql_ro_instance_ip.md | 28 + .../resource_tc_mysql_ro_start_replication.md | 76 + .../resource_tc_mysql_ro_stop_replication.md | 76 + .../cdb/resource_tc_mysql_rollback.md | 75 + .../cdb/resource_tc_mysql_rollback_stop.md | 11 + ...rce_tc_mysql_security_groups_attachment.md | 66 + .../resource_tc_mysql_switch_for_upgrade.md | 57 + ..._tc_mysql_switch_master_slave_operation.md | 61 + .../cdb/resource_tc_mysql_time_window.md | 77 + .../resource_tc_mysql_verify_root_account.md | 59 + .../cdh/data_source_tc_cdh_instances.md | 13 + tencentcloud/cdh/resource_tc_cdh_instance.md | 26 + .../cdn/data_source_tc_cdn_domain_verifier.md | 18 + .../cdn/data_source_tc_cdn_domains.md | 13 + tencentcloud/cdn/resource_tc_cdn_domain.md | 140 ++ tencentcloud/cdn/resource_tc_cdn_url_purge.md | 22 + tencentcloud/cdn/resource_tc_cdn_url_push.md | 20 + ..._source_tc_clickhouse_backup_job_detail.md | 10 + .../data_source_tc_clickhouse_backup_jobs.md | 9 + ...data_source_tc_clickhouse_backup_tables.md | 9 + .../cdwch/resource_tc_clickhouse_account.md | 20 + ...source_tc_clickhouse_account_permission.md | 32 + .../cdwch/resource_tc_clickhouse_backup.md | 18 + .../resource_tc_clickhouse_backup_strategy.md | 39 + ...source_tc_clickhouse_delete_backup_data.md | 10 + .../cdwch/resource_tc_clickhouse_instance.md | 59 + ...source_tc_clickhouse_recover_backup_job.md | 10 + .../cdwpg/resource_tc_cdwpg_instance.md | 53 + .../cfs/data_source_tc_cfs_access_groups.md | 10 + .../cfs/data_source_tc_cfs_access_rules.md | 10 + .../cfs/data_source_tc_cfs_available_zone.md | 7 + .../data_source_tc_cfs_file_system_clients.md | 9 + .../cfs/data_source_tc_cfs_file_systems.md | 11 + .../cfs/data_source_tc_cfs_mount_targets.md | 9 + .../cfs/resource_tc_cfs_access_group.md | 18 + .../cfs/resource_tc_cfs_access_rule.md | 13 + .../resource_tc_cfs_auto_snapshot_policy.md | 44 + ..._tc_cfs_auto_snapshot_policy_attachment.md | 18 + .../cfs/resource_tc_cfs_file_system.md | 70 + .../resource_tc_cfs_sign_up_cfs_service.md | 7 + tencentcloud/cfs/resource_tc_cfs_snapshot.md | 21 + .../data_source_tc_cfw_edge_fw_switches.md | 7 + .../cfw/data_source_tc_cfw_nat_fw_switches.md | 20 + .../cfw/data_source_tc_cfw_vpc_fw_switches.md | 9 + .../cfw/resource_tc_cfw_address_template.md | 32 + .../cfw/resource_tc_cfw_block_ignore.md | 47 + .../resource_tc_cfw_edge_firewall_switch.md | 28 + .../cfw/resource_tc_cfw_edge_policy.md | 45 + .../resource_tc_cfw_nat_firewall_switch.md | 39 + .../cfw/resource_tc_cfw_nat_instance.md | 52 + .../cfw/resource_tc_cfw_nat_policy.md | 26 + .../cfw/resource_tc_cfw_sync_asset.md | 7 + .../cfw/resource_tc_cfw_sync_route.md | 10 + .../resource_tc_cfw_vpc_firewall_switch.md | 38 + .../cfw/resource_tc_cfw_vpc_instance.md | 65 + .../cfw/resource_tc_cfw_vpc_policy.md | 26 + .../data_source_tc_chdfs_access_groups.md | 9 + .../data_source_tc_chdfs_file_systems.md | 7 + .../data_source_tc_chdfs_mount_points.md | 9 + .../chdfs/resource_tc_chdfs_access_group.md | 20 + .../chdfs/resource_tc_chdfs_access_rule.md | 23 + .../chdfs/resource_tc_chdfs_file_system.md | 29 + .../resource_tc_chdfs_life_cycle_rule.md | 28 + .../chdfs/resource_tc_chdfs_mount_point.md | 19 + ...esource_tc_chdfs_mount_point_attachment.md | 21 + .../ci/resource_tc_ci_bucket_attachment.md | 17 + .../ci/resource_tc_ci_bucket_pic_style.md | 19 + tencentcloud/ci/resource_tc_ci_guetzli.md | 20 + tencentcloud/ci/resource_tc_ci_hot_link.md | 19 + ...resource_tc_ci_media_animation_template.md | 29 + .../resource_tc_ci_media_concat_template.md | 60 + ...source_tc_ci_media_pic_process_template.md | 23 + ...source_tc_ci_media_smart_cover_template.md | 25 + .../resource_tc_ci_media_snapshot_template.md | 29 + ...tc_ci_media_speech_recognition_template.md | 30 + ...e_tc_ci_media_super_resolution_template.md | 21 + ...urce_tc_ci_media_transcode_pro_template.md | 57 + ...resource_tc_ci_media_transcode_template.md | 79 + .../ci/resource_tc_ci_media_tts_template.md | 23 + ...urce_tc_ci_media_video_montage_template.md | 54 + ...urce_tc_ci_media_video_process_template.md | 31 + ...rce_tc_ci_media_voice_separate_template.md | 25 + ...resource_tc_ci_media_watermark_template.md | 42 + ...esource_tc_ci_original_image_protection.md | 20 + .../ciam/resource_tc_ciam_user_group.md | 25 + .../ciam/resource_tc_ciam_user_store.md | 19 + .../ckafka/data_source_tc_ckafka_acls.md | 12 + .../data_source_tc_ckafka_connect_resource.md | 8 + ..._source_tc_ckafka_datahub_group_offsets.md | 8 + .../data_source_tc_ckafka_datahub_task.md | 8 + .../data_source_tc_ckafka_datahub_topic.md | 8 + .../ckafka/data_source_tc_ckafka_group.md | 10 + .../data_source_tc_ckafka_group_info.md | 10 + .../data_source_tc_ckafka_group_offsets.md | 10 + .../ckafka/data_source_tc_ckafka_instances.md | 9 + .../ckafka/data_source_tc_ckafka_region.md | 8 + .../data_source_tc_ckafka_task_status.md | 9 + ...ata_source_tc_ckafka_topic_flow_ranking.md | 12 + ...urce_tc_ckafka_topic_produce_connection.md | 10 + ..._source_tc_ckafka_topic_subscribe_group.md | 10 + ...ata_source_tc_ckafka_topic_sync_replica.md | 10 + .../ckafka/data_source_tc_ckafka_topics.md | 21 + .../ckafka/data_source_tc_ckafka_users.md | 10 + .../ckafka/data_source_tc_ckafka_zone.md | 8 + tencentcloud/ckafka/resource_tc_ckafka_acl.md | 25 + .../ckafka/resource_tc_ckafka_acl_rule.md | 29 + .../resource_tc_ckafka_connect_resource.md | 30 + .../resource_tc_ckafka_consumer_group.md | 19 + ..._tc_ckafka_consumer_group_modify_offset.md | 13 + .../ckafka/resource_tc_ckafka_datahub_task.md | 39 + .../resource_tc_ckafka_datahub_topic.md | 25 + .../ckafka/resource_tc_ckafka_instance.md | 128 + .../resource_tc_ckafka_renew_instance.md | 10 + .../ckafka/resource_tc_ckafka_route.md | 14 + .../ckafka/resource_tc_ckafka_topic.md | 29 + .../ckafka/resource_tc_ckafka_user.md | 21 + .../clb/data_source_tc_clb_attachments.md | 11 + .../data_source_tc_clb_cluster_resources.md | 12 + .../clb/data_source_tc_clb_cross_targets.md | 12 + .../data_source_tc_clb_exclusive_clusters.md | 12 + .../clb/data_source_tc_clb_idle_instances.md | 9 + .../data_source_tc_clb_instance_by_cert_id.md | 9 + .../clb/data_source_tc_clb_instance_detail.md | 9 + .../data_source_tc_clb_instance_traffic.md | 9 + .../clb/data_source_tc_clb_instances.md | 13 + .../clb/data_source_tc_clb_listener_rules.md | 14 + .../clb/data_source_tc_clb_listeners.md | 12 + ...data_source_tc_clb_listeners_by_targets.md | 12 + .../clb/data_source_tc_clb_redirections.md | 14 + .../clb/data_source_tc_clb_resources.md | 12 + .../data_source_tc_clb_target_group_list.md | 12 + .../clb/data_source_tc_clb_target_groups.md | 42 + .../clb/data_source_tc_clb_target_health.md | 9 + .../clb/resource_tc_alb_server_attachment.md | 28 + .../clb/resource_tc_clb_attachment.md | 25 + .../clb/resource_tc_clb_customized_config.md | 21 + ...urce_tc_clb_function_targets_attachment.md | 31 + tencentcloud/clb/resource_tc_clb_instance.md | 224 ++ ...ce_tc_clb_instance_mix_ip_target_config.md | 18 + .../resource_tc_clb_instance_sla_config.md | 18 + tencentcloud/clb/resource_tc_clb_listener.md | 165 ++ .../clb/resource_tc_clb_listener_rule.md | 34 + tencentcloud/clb/resource_tc_clb_log_set.md | 17 + tencentcloud/clb/resource_tc_clb_log_topic.md | 17 + .../clb/resource_tc_clb_redirection.md | 34 + .../resource_tc_clb_replace_cert_for_lbs.md | 56 + ...source_tc_clb_security_group_attachment.md | 18 + tencentcloud/clb/resource_tc_clb_snat_ip.md | 33 + .../clb/resource_tc_clb_target_group.md | 18 + ...resource_tc_clb_target_group_attachment.md | 46 + ...tc_clb_target_group_instance_attachment.md | 84 + tencentcloud/clb/resource_tc_lb.md | 14 + ...ata_source_tc_cls_machine_group_configs.md | 25 + .../cls/data_source_tc_cls_machines.md | 25 + .../cls/data_source_tc_cls_shipper_tasks.md | 11 + tencentcloud/cls/resource_tc_cls_alarm.md | 53 + .../cls/resource_tc_cls_alarm_notice.md | 35 + .../cls/resource_tc_cls_ckafka_consumer.md | 41 + tencentcloud/cls/resource_tc_cls_config.md | 42 + .../cls/resource_tc_cls_config_attachment.md | 19 + .../cls/resource_tc_cls_config_extra.md | 73 + .../cls/resource_tc_cls_cos_recharge.md | 39 + .../cls/resource_tc_cls_cos_shipper.md | 40 + .../cls/resource_tc_cls_data_transform.md | 63 + tencentcloud/cls/resource_tc_cls_export.md | 24 + tencentcloud/cls/resource_tc_cls_index.md | 64 + .../cls/resource_tc_cls_kafka_recharge.md | 48 + tencentcloud/cls/resource_tc_cls_logset.md | 19 + .../cls/resource_tc_cls_machine_group.md | 31 + .../cls/resource_tc_cls_scheduled_sql.md | 53 + tencentcloud/cls/resource_tc_cls_topic.md | 26 + .../data_source_tc_availability_regions.md | 9 + .../data_source_tc_availability_zones.md | 11 + ...source_tc_availability_zones_by_product.md | 9 + tencentcloud/cos/data_source_tc_cos_batchs.md | 10 + .../data_source_tc_cos_bucket_inventorys.md | 9 + ..._source_tc_cos_bucket_multipart_uploads.md | 9 + .../cos/data_source_tc_cos_bucket_object.md | 11 + .../cos/data_source_tc_cos_buckets.md | 10 + tencentcloud/cos/resource_tc_cos_batch.md | 48 + tencentcloud/cos/resource_tc_cos_bucket.md | 226 ++ ...os_bucket_domain_certificate_attachment.md | 21 + ...enerate_inventory_immediately_operation.md | 10 + .../cos/resource_tc_cos_bucket_inventory.md | 38 + .../cos/resource_tc_cos_bucket_object.md | 28 + .../cos/resource_tc_cos_bucket_policy.md | 40 + .../cos/resource_tc_cos_bucket_referer.md | 21 + .../cos/resource_tc_cos_bucket_version.md | 18 + ...object_abort_multipart_upload_operation.md | 11 + .../resource_tc_cos_object_copy_operation.md | 11 + ...source_tc_cos_object_download_operation.md | 11 + ...esource_tc_cos_object_restore_operation.md | 12 + .../crs/data_source_tc_redis_backup.md | 13 + ...ta_source_tc_redis_backup_download_info.md | 18 + ...data_source_tc_redis_instance_node_info.md | 9 + .../data_source_tc_redis_instance_shards.md | 10 + ...data_source_tc_redis_instance_task_list.md | 17 + ...data_source_tc_redis_instance_zone_info.md | 9 + .../crs/data_source_tc_redis_instances.md | 13 + .../crs/data_source_tc_redis_param_records.md | 11 + .../crs/data_source_tc_redis_zone_config.md | 10 + tencentcloud/crs/resource_tc_redis_account.md | 95 + .../crs/resource_tc_redis_backup_config.md | 50 + ...ce_tc_redis_backup_download_restriction.md | 26 + .../crs/resource_tc_redis_backup_operation.md | 15 + ...ource_tc_redis_clear_instance_operation.md | 45 + .../resource_tc_redis_connection_config.md | 51 + .../crs/resource_tc_redis_instance.md | 232 ++ .../resource_tc_redis_maintenance_window.md | 48 + .../crs/resource_tc_redis_param_template.md | 42 + .../crs/resource_tc_redis_read_only.md | 70 + ...ource_tc_redis_renew_instance_operation.md | 62 + .../crs/resource_tc_redis_replica_readonly.md | 61 + .../resource_tc_redis_replicate_attachment.md | 84 + ...urce_tc_redis_security_group_attachment.md | 84 + tencentcloud/crs/resource_tc_redis_ssl.md | 69 + ...rce_tc_redis_startup_instance_operation.md | 11 + .../crs/resource_tc_redis_switch_master.md | 70 + ...c_redis_upgrade_cache_version_operation.md | 12 + ...e_tc_redis_upgrade_multi_zone_operation.md | 10 + ...c_redis_upgrade_proxy_version_operation.md | 12 + .../css/data_source_tc_css_backup_stream.md | 9 + .../css/data_source_tc_css_domains.md | 11 + .../css/data_source_tc_css_monitor_report.md | 9 + .../css/data_source_tc_css_pad_templates.md | 8 + ...a_source_tc_css_pull_stream_task_status.md | 9 + .../data_source_tc_css_stream_monitor_list.md | 8 + ..._source_tc_css_time_shift_record_detail.md | 15 + ...ta_source_tc_css_time_shift_stream_list.md | 13 + .../css/data_source_tc_css_watermarks.md | 8 + ...ata_source_tc_css_xp2p_detail_info_list.md | 10 + ...css_authenticate_domain_owner_operation.md | 18 + .../css/resource_tc_css_backup_stream.md | 22 + ...esource_tc_css_callback_rule_attachment.md | 19 + .../css/resource_tc_css_callback_template.md | 25 + tencentcloud/css/resource_tc_css_domain.md | 22 + .../css/resource_tc_css_domain_referer.md | 21 + ...esource_tc_css_enable_optimal_switching.md | 21 + ...e_tc_css_live_transcode_rule_attachment.md | 41 + ...resource_tc_css_live_transcode_template.md | 37 + .../resource_tc_css_pad_rule_attachment.md | 20 + .../css/resource_tc_css_pad_template.md | 22 + .../resource_tc_css_play_auth_key_config.md | 21 + ...urce_tc_css_play_domain_cert_attachment.md | 25 + .../css/resource_tc_css_pull_stream_task.md | 24 + ...esource_tc_css_pull_stream_task_restart.md | 10 + .../resource_tc_css_push_auth_key_config.md | 21 + .../resource_tc_css_record_rule_attachment.md | 20 + ...esource_tc_css_snapshot_rule_attachment.md | 20 + .../css/resource_tc_css_snapshot_template.md | 25 + .../resource_tc_css_start_stream_monitor.md | 18 + .../css/resource_tc_css_stream_monitor.md | 47 + ...source_tc_css_timeshift_rule_attachment.md | 20 + .../css/resource_tc_css_timeshift_template.md | 23 + tencentcloud/css/resource_tc_css_watermark.md | 21 + ...source_tc_css_watermark_rule_attachment.md | 43 + .../data_source_tc_cvm_chc_denied_actions.md | 9 + .../cvm/data_source_tc_cvm_chc_hosts.md | 13 + ...rce_tc_cvm_disaster_recover_group_quota.md | 8 + .../cvm/data_source_tc_cvm_image_quota.md | 8 + ...ta_source_tc_cvm_image_share_permission.md | 9 + .../cvm/data_source_tc_cvm_import_image_os.md | 8 + .../data_source_tc_cvm_instance_vnc_url.md | 9 + ...ta_source_tc_cvm_instances_modification.md | 9 + tencentcloud/cvm/data_source_tc_eip.md | 16 + .../cvm/data_source_tc_eip_address_quota.md | 7 + ...data_source_tc_eip_network_account_type.md | 7 + tencentcloud/cvm/data_source_tc_eips.md | 9 + tencentcloud/cvm/data_source_tc_image.md | 18 + tencentcloud/cvm/data_source_tc_images.md | 10 + .../cvm/data_source_tc_instance_types.md | 25 + tencentcloud/cvm/data_source_tc_instances.md | 9 + .../cvm/data_source_tc_instances_set.md | 9 + tencentcloud/cvm/data_source_tc_key_pairs.md | 13 + .../cvm/data_source_tc_placement_groups.md | 10 + ...ata_source_tc_reserved_instance_configs.md | 9 + .../cvm/data_source_tc_reserved_instances.md | 10 + .../cvm/resource_tc_cvm_chc_config.md | 32 + .../cvm/resource_tc_cvm_export_images.md | 11 + .../cvm/resource_tc_cvm_hpc_cluster.md | 19 + .../resource_tc_cvm_image_share_permission.md | 18 + .../cvm/resource_tc_cvm_launch_template.md | 19 + ..._tc_cvm_launch_template_default_version.md | 18 + ...resource_tc_cvm_launch_template_version.md | 26 + .../cvm/resource_tc_cvm_reboot_instance.md | 10 + .../cvm/resource_tc_cvm_renew_instance.md | 14 + ...source_tc_cvm_security_group_attachment.md | 18 + .../cvm/resource_tc_cvm_sync_image.md | 10 + tencentcloud/cvm/resource_tc_eip.md | 48 + .../cvm/resource_tc_eip_address_transform.md | 17 + .../cvm/resource_tc_eip_association.md | 114 + .../resource_tc_eip_normal_address_return.md | 9 + .../resource_tc_eip_public_address_adjust.md | 10 + tencentcloud/cvm/resource_tc_image.md | 20 + tencentcloud/cvm/resource_tc_instance.md | 101 + tencentcloud/cvm/resource_tc_instance_set.md | 63 + tencentcloud/cvm/resource_tc_key_pair.md | 22 + .../cvm/resource_tc_placement_group.md | 18 + .../cvm/resource_tc_reserved_instance.md | 20 + .../cwp/data_source_tc_cwp_machines_simple.md | 58 + ...resource_tc_cwp_license_bind_attachment.md | 43 + .../cwp/resource_tc_cwp_license_order.md | 24 + ...tc_cynosdb_account_all_grant_privileges.md | 13 + .../data_source_tc_cynosdb_accounts.md | 10 + .../data_source_tc_cynosdb_audit_logs.md | 20 + ...a_source_tc_cynosdb_binlog_download_url.md | 10 + .../cynosdb/data_source_tc_cynosdb_cluster.md | 12 + ...rce_tc_cynosdb_cluster_detail_databases.md | 10 + ...urce_tc_cynosdb_cluster_instance_groups.md | 9 + ...ta_source_tc_cynosdb_cluster_param_logs.md | 12 + .../data_source_tc_cynosdb_cluster_params.md | 10 + .../data_source_tc_cynosdb_clusters.md | 12 + ...tc_cynosdb_describe_instance_error_logs.md | 15 + ..._cynosdb_describe_instance_slow_queries.md | 11 + ...source_tc_cynosdb_instance_slow_queries.md | 52 + .../data_source_tc_cynosdb_instances.md | 12 + .../data_source_tc_cynosdb_param_templates.md | 8 + ...urce_tc_cynosdb_project_security_groups.md | 10 + .../data_source_tc_cynosdb_proxy_node.md | 16 + .../data_source_tc_cynosdb_proxy_version.md | 10 + ...source_tc_cynosdb_resource_package_list.md | 15 + ..._tc_cynosdb_resource_package_sale_specs.md | 11 + ...a_source_tc_cynosdb_rollback_time_range.md | 9 + .../cynosdb/data_source_tc_cynosdb_zone.md | 10 + .../data_source_tc_cynosdb_zone_config.md | 8 + .../cynosdb/resource_tc_cynosdb_account.md | 22 + .../resource_tc_cynosdb_account_privileges.md | 46 + .../resource_tc_cynosdb_audit_log_file.md | 11 + .../resource_tc_cynosdb_binlog_save_days.md | 18 + .../cynosdb/resource_tc_cynosdb_cluster.md | 58 + .../resource_tc_cynosdb_cluster_databases.md | 26 + ..._tc_cynosdb_cluster_password_complexity.md | 28 + ...db_cluster_resource_packages_attachment.md | 18 + .../resource_tc_cynosdb_cluster_slave_zone.md | 113 + ...e_tc_cynosdb_export_instance_error_logs.md | 16 + ...tc_cynosdb_export_instance_slow_queries.md | 15 + .../resource_tc_cynosdb_instance_param.md | 16 + .../resource_tc_cynosdb_isolate_instance.md | 14 + .../resource_tc_cynosdb_param_template.md | 17 + .../cynosdb/resource_tc_cynosdb_proxy.md | 22 + .../resource_tc_cynosdb_proxy_end_point.md | 135 ++ ...sdb_read_only_instance_exclusive_access.md | 35 + .../resource_tc_cynosdb_readonly_instance.md | 33 + .../resource_tc_cynosdb_reload_proxy_node.md | 18 + .../resource_tc_cynosdb_restart_instance.md | 9 + .../resource_tc_cynosdb_roll_back_cluster.md | 26 + .../resource_tc_cynosdb_security_group.md | 19 + ...source_tc_cynosdb_upgrade_proxy_version.md | 10 + .../cynosdb/resource_tc_cynosdb_wan.md | 18 + .../data_source_tc_dayu_cc_http_policies.md | 16 + .../data_source_tc_dayu_cc_https_policies.md | 16 + .../dayu/data_source_tc_dayu_ddos_policies.md | 10 + ..._source_tc_dayu_ddos_policy_attachments.md | 17 + .../data_source_tc_dayu_ddos_policy_cases.md | 10 + .../dayu/data_source_tc_dayu_l4_rules.md | 16 + .../dayu/data_source_tc_dayu_l7_rules.md | 16 + .../dayu/resource_tc_dayu_cc_http_policy.md | 64 + .../dayu/resource_tc_dayu_cc_https_policy.md | 24 + .../dayu/resource_tc_dayu_ddos_policy.md | 66 + ...resource_tc_dayu_ddos_policy_attachment.md | 11 + .../dayu/resource_tc_dayu_ddos_policy_case.md | 32 + tencentcloud/dayu/resource_tc_dayu_l4_rule.md | 33 + tencentcloud/dayu/resource_tc_dayu_l7_rule.md | 26 + ...ta_source_tc_antiddos_overview_cc_trend.md | 13 + ...ce_tc_antiddos_overview_ddos_event_list.md | 11 + ..._source_tc_antiddos_overview_ddos_trend.md | 13 + .../data_source_tc_antiddos_overview_index.md | 10 + ...ta_source_tc_antiddos_pending_risk_info.md | 8 + .../dayuv2/data_source_tc_dayu_eip.md | 9 + .../dayuv2/data_source_tc_dayu_l4_rules_v2.md | 9 + .../dayuv2/data_source_tc_dayu_l7_rules_v2.md | 11 + .../resource_tc_antiddos_cc_black_white_ip.md | 26 + ...esource_tc_antiddos_cc_precision_policy.md | 34 + ...esource_tc_antiddos_ddos_black_white_ip.md | 20 + ...ce_tc_antiddos_ddos_geo_ip_block_config.md | 22 + ...rce_tc_antiddos_ddos_speed_limit_config.md | 30 + ...rce_tc_antiddos_default_alarm_threshold.md | 21 + ...e_tc_antiddos_ip_alarm_threshold_config.md | 20 + ...source_tc_antiddos_packet_filter_config.md | 33 + .../resource_tc_antiddos_port_acl_config.md | 27 + ...tc_antiddos_scheduling_domain_user_name.md | 18 + .../dayuv2/resource_tc_dayu_cc_policy_v2.md | 52 + .../resource_tc_dayu_ddos_ip_attachment_v2.md | 15 + .../dayuv2/resource_tc_dayu_ddos_policy_v2.md | 79 + tencentcloud/dayuv2/resource_tc_dayu_eip.md | 13 + .../dayuv2/resource_tc_dayu_l4_rule.md | 33 + .../dayuv2/resource_tc_dayu_l7_rule_v2.md | 29 + .../data_source_tc_dbbrain_db_space_status.md | 11 + ...ata_source_tc_dbbrain_diag_db_instances.md | 11 + .../data_source_tc_dbbrain_diag_event.md | 18 + .../data_source_tc_dbbrain_diag_events.md | 12 + .../data_source_tc_dbbrain_diag_history.md | 12 + .../data_source_tc_dbbrain_health_scores.md | 11 + ...ta_source_tc_dbbrain_mysql_process_list.md | 10 + ...source_tc_dbbrain_no_primary_key_tables.md | 11 + ...ta_source_tc_dbbrain_redis_top_big_keys.md | 13 + ...ce_tc_dbbrain_redis_top_key_prefix_list.md | 11 + ...bbrain_security_audit_log_download_urls.md | 19 + ...dbbrain_security_audit_log_export_tasks.md | 19 + ...e_tc_dbbrain_slow_log_time_series_stats.md | 12 + ...ata_source_tc_dbbrain_slow_log_top_sqls.md | 14 + ...rce_tc_dbbrain_slow_log_user_host_stats.md | 12 + ...rce_tc_dbbrain_slow_log_user_sql_advice.md | 11 + .../data_source_tc_dbbrain_slow_logs.md | 13 + .../data_source_tc_dbbrain_sql_filters.md | 22 + .../data_source_tc_dbbrain_sql_templates.md | 12 + ...tc_dbbrain_top_space_schema_time_series.md | 13 + ...ata_source_tc_dbbrain_top_space_schemas.md | 11 + ..._tc_dbbrain_top_space_table_time_series.md | 13 + ...data_source_tc_dbbrain_top_space_tables.md | 21 + ...resource_tc_dbbrain_db_diag_report_task.md | 13 + ...brain_modify_diag_db_instance_operation.md | 25 + ..._dbbrain_security_audit_log_export_task.md | 14 + .../dbbrain/resource_tc_dbbrain_sql_filter.md | 33 + .../resource_tc_dbbrain_tdsql_audit_log.md | 17 + .../dc/data_source_tc_dc_access_points.md | 9 + .../dc/data_source_tc_dc_instances.md | 13 + ...ata_source_tc_dc_internet_address_quota.md | 7 + ...ource_tc_dc_internet_address_statistics.md | 7 + ..._dc_public_direct_connect_tunnel_routes.md | 9 + .../dc/data_source_tc_dcx_instances.md | 13 + tencentcloud/dc/resource_tc_dc_instance.md | 24 + .../dc/resource_tc_dc_internet_address.md | 19 + .../resource_tc_dc_internet_address_config.md | 24 + .../dc/resource_tc_dc_share_dcx_config.md | 18 + tencentcloud/dc/resource_tc_dcx.md | 45 + .../dc/resource_tc_dcx_extra_config.md | 46 + .../dcdb/data_source_tc_dcdb_accounts.md | 9 + .../data_source_tc_dcdb_database_objects.md | 10 + .../data_source_tc_dcdb_database_tables.md | 17 + .../dcdb/data_source_tc_dcdb_databases.md | 9 + .../data_source_tc_dcdb_file_download_url.md | 11 + .../data_source_tc_dcdb_instance_node_info.md | 9 + .../dcdb/data_source_tc_dcdb_instances.md | 29 + .../dcdb/data_source_tc_dcdb_log_files.md | 11 + .../dcdb/data_source_tc_dcdb_orders.md | 9 + .../dcdb/data_source_tc_dcdb_parameters.md | 9 + .../dcdb/data_source_tc_dcdb_price.md | 17 + ..._source_tc_dcdb_project_security_groups.md | 10 + .../dcdb/data_source_tc_dcdb_projects.md | 7 + .../dcdb/data_source_tc_dcdb_renewal_price.md | 11 + .../dcdb/data_source_tc_dcdb_sale_info.md | 8 + .../data_source_tc_dcdb_security_groups.md | 9 + .../dcdb/data_source_tc_dcdb_shard_spec.md | 7 + .../dcdb/data_source_tc_dcdb_shards.md | 10 + .../dcdb/data_source_tc_dcdb_slow_logs.md | 16 + .../dcdb/data_source_tc_dcdb_upgrade_price.md | 42 + tencentcloud/dcdb/resource_tc_dcdb_account.md | 22 + .../resource_tc_dcdb_account_privileges.md | 32 + ...c_dcdb_activate_hour_instance_operation.md | 9 + ...source_tc_dcdb_cancel_dcn_job_operation.md | 50 + .../dcdb/resource_tc_dcdb_db_parameters.md | 21 + .../resource_tc_dcdb_db_sync_mode_config.md | 18 + ...ource_tc_dcdb_encrypt_attributes_config.md | 85 + ...resource_tc_dcdb_flush_binlog_operation.md | 9 + .../dcdb/resource_tc_dcdb_hourdb_instance.md | 29 + .../dcdb/resource_tc_dcdb_instance_config.md | 18 + ...tc_dcdb_isolate_hour_instance_operation.md | 9 + ...ource_tc_dcdb_security_group_attachment.md | 17 + ...tc_dcdb_switch_db_instance_ha_operation.md | 10 + .../data_source_tc_dc_gateway_ccn_routes.md | 33 + .../data_source_tc_dc_gateway_instances.md | 27 + tencentcloud/dcg/resource_tc_dc_gateway.md | 25 + .../dcg/resource_tc_dc_gateway_attachment.md | 19 + .../dcg/resource_tc_dc_gateway_ccn_route.md | 28 + ...check_data_engine_config_pairs_validity.md | 9 + ...check_data_engine_image_can_be_rollback.md | 9 + ..._check_data_engine_image_can_be_upgrade.md | 9 + ...data_source_tc_dlc_describe_data_engine.md | 9 + ...dlc_describe_data_engine_image_versions.md | 9 + ...escribe_data_engine_python_spark_images.md | 9 + ...ource_tc_dlc_describe_engine_usage_info.md | 9 + ..._tc_dlc_describe_updatable_data_engines.md | 9 + .../data_source_tc_dlc_describe_user_info.md | 12 + .../data_source_tc_dlc_describe_user_roles.md | 9 + .../data_source_tc_dlc_describe_user_type.md | 9 + ..._source_tc_dlc_describe_work_group_info.md | 12 + ..._dlc_add_users_to_work_group_attachment.md | 21 + ...dlc_bind_work_groups_to_user_attachment.md | 20 + .../dlc/resource_tc_dlc_data_engine.md | 33 + ...odify_data_engine_description_operation.md | 18 + ...source_tc_dlc_modify_user_typ_operation.md | 18 + ...urce_tc_dlc_renew_data_engine_operation.md | 21 + ...ce_tc_dlc_restart_data_engine_operation.md | 10 + ...lc_rollback_data_engine_image_operation.md | 22 + .../resource_tc_dlc_store_location_config.md | 18 + ...ource_tc_dlc_suspend_resume_data_engine.md | 18 + ..._dlc_switch_data_engine_image_operation.md | 10 + ...dlc_update_data_engine_config_operation.md | 10 + ...urce_tc_dlc_update_row_filter_operation.md | 22 + ...dlc_upgrade_data_engine_image_operation.md | 9 + tencentcloud/dlc/resource_tc_dlc_user.md | 20 + ...resource_tc_dlc_user_data_engine_config.md | 27 + .../dlc/resource_tc_dlc_work_group.md | 18 + .../data_source_tc_dnspod_domain_analytics.md | 15 + .../data_source_tc_dnspod_domain_list.md | 27 + .../data_source_tc_dnspod_domain_log_list.md | 10 + .../data_source_tc_dnspod_record_analytics.md | 14 + .../data_source_tc_dnspod_record_line_list.md | 11 + .../data_source_tc_dnspod_record_list.md | 30 + .../data_source_tc_dnspod_record_type.md | 9 + .../dnspod/data_source_tc_dnspod_records.md | 31 + .../dnspod/resource_tc_dnspod_custom_line.md | 21 + .../dnspod/resource_tc_dnspod_domain_alias.md | 18 + .../resource_tc_dnspod_domain_instance.md | 18 + .../dnspod/resource_tc_dnspod_domain_lock.md | 10 + ...e_tc_dnspod_download_snapshot_operation.md | 8 + ...tc_dnspod_modify_domain_owner_operation.md | 11 + ...tc_dnspod_modify_record_group_operation.md | 12 + .../dnspod/resource_tc_dnspod_record.md | 23 + .../dnspod/resource_tc_dnspod_record_group.md | 18 + .../resource_tc_dnspod_snapshot_config.md | 18 + tencentcloud/domain/data_source_tc_domains.md | 8 + .../dts/data_source_tc_dts_compare_tasks.md | 9 + ...data_source_tc_dts_migrate_db_instances.md | 18 + .../dts/data_source_tc_dts_migrate_jobs.md | 41 + .../dts/data_source_tc_dts_sync_jobs.md | 25 + .../dts/resource_tc_dts_compare_task.md | 29 + ...urce_tc_dts_compare_task_stop_operation.md | 10 + .../dts/resource_tc_dts_migrate_job.md | 121 + .../dts/resource_tc_dts_migrate_job_config.md | 112 + ...rce_tc_dts_migrate_job_resume_operation.md | 10 + ...urce_tc_dts_migrate_job_start_operation.md | 9 + .../dts/resource_tc_dts_migrate_service.md | 25 + ...esource_tc_dts_sync_check_job_operation.md | 9 + .../dts/resource_tc_dts_sync_config.md | 198 ++ tencentcloud/dts/resource_tc_dts_sync_job.md | 20 + ...urce_tc_dts_sync_job_continue_operation.md | 9 + ...ource_tc_dts_sync_job_isolate_operation.md | 9 + ...esource_tc_dts_sync_job_pause_operation.md | 9 + ...ource_tc_dts_sync_job_recover_operation.md | 9 + ...source_tc_dts_sync_job_resize_operation.md | 10 + ...source_tc_dts_sync_job_resume_operation.md | 9 + ...esource_tc_dts_sync_job_start_operation.md | 9 + ...resource_tc_dts_sync_job_stop_operation.md | 9 + tencentcloud/eb/data_source_tc_eb_bus.md | 25 + .../eb/data_source_tc_eb_event_rules.md | 36 + ...a_source_tc_eb_plateform_event_template.md | 9 + .../data_source_tc_eb_platform_event_names.md | 9 + ...ta_source_tc_eb_platform_event_patterns.md | 9 + .../eb/data_source_tc_eb_platform_products.md | 8 + tencentcloud/eb/resource_tc_eb_event_bus.md | 23 + .../eb/resource_tc_eb_event_connector.md | 118 + tencentcloud/eb/resource_tc_eb_event_rule.md | 41 + .../eb/resource_tc_eb_event_target.md | 105 + .../eb/resource_tc_eb_event_transform.md | 95 + tencentcloud/eb/resource_tc_eb_put_events.md | 35 + tencentcloud/emr/data_source_tc_emr.md | 12 + .../emr/data_source_tc_emr_cvm_quota.md | 10 + tencentcloud/emr/data_source_tc_emr_nodes.md | 12 + tencentcloud/emr/resource_tc_emr_cluster.md | 89 + .../emr/resource_tc_emr_user_manager.md | 25 + .../data_source_tc_elasticsearch_diagnose.md | 11 + ...a_source_tc_elasticsearch_instance_logs.md | 9 + ...ce_tc_elasticsearch_instance_operations.md | 11 + ...e_tc_elasticsearch_instance_plugin_list.md | 9 + .../data_source_tc_elasticsearch_instances.md | 9 + ...tc_elasticsearch_logstash_instance_logs.md | 12 + ...sticsearch_logstash_instance_operations.md | 11 + .../es/data_source_tc_elasticsearch_views.md | 9 + .../es/resource_tc_elasticsearch_diagnose.md | 18 + ...urce_tc_elasticsearch_diagnose_instance.md | 11 + .../es/resource_tc_elasticsearch_index.md | 20 + .../es/resource_tc_elasticsearch_instance.md | 149 ++ .../es/resource_tc_elasticsearch_logstash.md | 36 + ...urce_tc_elasticsearch_logstash_pipeline.md | 39 + ...lasticsearch_restart_instance_operation.md | 9 + ..._elasticsearch_restart_kibana_operation.md | 9 + ...rch_restart_logstash_instance_operation.md | 10 + ...c_elasticsearch_restart_nodes_operation.md | 10 + ...esource_tc_elasticsearch_security_group.md | 21 + ...earch_start_logstash_pipeline_operation.md | 10 + ...search_stop_logstash_pipeline_operation.md | 10 + ..._elasticsearch_update_plugins_operation.md | 12 + tencentcloud/fl/resource_tc_vpc_flow_log.md | 111 + .../fl/resource_tc_vpc_flow_log_config.md | 123 + .../data_source_tc_gaap_access_regions.md | 8 + ...e_tc_gaap_access_regions_by_dest_region.md | 9 + .../gaap/data_source_tc_gaap_black_header.md | 8 + .../gaap/data_source_tc_gaap_certificates.md | 15 + .../data_source_tc_gaap_check_proxy_create.md | 16 + ...ata_source_tc_gaap_country_area_mapping.md | 8 + .../gaap/data_source_tc_gaap_custom_header.md | 9 + .../gaap/data_source_tc_gaap_dest_regions.md | 8 + ..._source_tc_gaap_domain_error_page_infos.md | 9 + .../data_source_tc_gaap_domain_error_pages.md | 43 + ...urce_tc_gaap_group_and_statistics_proxy.md | 9 + .../gaap/data_source_tc_gaap_http_domains.md | 30 + .../gaap/data_source_tc_gaap_http_rules.md | 44 + .../data_source_tc_gaap_layer4_listeners.md | 41 + .../data_source_tc_gaap_layer7_listeners.md | 26 + ...ta_source_tc_gaap_listener_real_servers.md | 9 + ...data_source_tc_gaap_listener_statistics.md | 13 + .../gaap/data_source_tc_gaap_proxies.md | 17 + .../data_source_tc_gaap_proxies_status.md | 9 + ..._tc_gaap_proxy_and_statistics_listeners.md | 9 + .../gaap/data_source_tc_gaap_proxy_detail.md | 9 + ...a_source_tc_gaap_proxy_group_statistics.md | 13 + .../gaap/data_source_tc_gaap_proxy_groups.md | 13 + .../data_source_tc_gaap_proxy_statistics.md | 13 + ...data_source_tc_gaap_real_servers_status.md | 9 + .../gaap/data_source_tc_gaap_realservers.md | 14 + .../data_source_tc_gaap_region_and_price.md | 8 + .../data_source_tc_gaap_resources_by_tag.md | 10 + .../data_source_tc_gaap_rule_real_servers.md | 9 + .../data_source_tc_gaap_security_policies.md | 22 + .../data_source_tc_gaap_security_rules.md | 32 + .../gaap/resource_tc_gaap_certificate.md | 19 + .../resource_tc_gaap_domain_error_page.md | 32 + .../gaap/resource_tc_gaap_global_domain.md | 22 + .../resource_tc_gaap_global_domain_dns.md | 19 + .../gaap/resource_tc_gaap_http_domain.md | 35 + .../gaap/resource_tc_gaap_http_rule.md | 66 + .../gaap/resource_tc_gaap_layer4_listener.md | 52 + .../gaap/resource_tc_gaap_layer7_listener.md | 28 + tencentcloud/gaap/resource_tc_gaap_proxy.md | 25 + .../gaap/resource_tc_gaap_realserver.md | 22 + .../gaap/resource_tc_gaap_security_policy.md | 26 + .../gaap/resource_tc_gaap_security_rule.md | 33 + .../kms/data_source_tc_kms_describe_keys.md | 12 + ...source_tc_kms_get_parameters_for_import.md | 11 + tencentcloud/kms/data_source_tc_kms_keys.md | 12 + .../kms/data_source_tc_kms_list_algorithms.md | 7 + .../kms/data_source_tc_kms_list_keys.md | 9 + .../kms/data_source_tc_kms_public_key.md | 17 + ...ata_source_tc_kms_white_box_decrypt_key.md | 9 + ...ce_tc_kms_white_box_device_fingerprints.md | 9 + ...ata_source_tc_kms_white_box_key_details.md | 9 + ...source_tc_kms_cloud_resource_attachment.md | 19 + .../kms/resource_tc_kms_external_key.md | 56 + tencentcloud/kms/resource_tc_kms_key.md | 52 + ...overwrite_white_box_device_fingerprints.md | 9 + .../kms/resource_tc_kms_white_box_key.md | 23 + .../data_source_tc_lighthouse_all_scene.md | 10 + .../data_source_tc_lighthouse_bundle.md | 8 + .../data_source_tc_lighthouse_disk_config.md | 12 + .../data_source_tc_lighthouse_disks.md | 9 + ...e_tc_lighthouse_firewall_rules_template.md | 8 + ...source_tc_lighthouse_instance_blueprint.md | 9 + ..._source_tc_lighthouse_instance_disk_num.md | 9 + ..._tc_lighthouse_instance_traffic_package.md | 8 + ...a_source_tc_lighthouse_instance_vnc_url.md | 9 + ...ce_tc_lighthouse_modify_instance_bundle.md | 14 + .../data_source_tc_lighthouse_region.md | 8 + ..._tc_lighthouse_reset_instance_blueprint.md | 11 + .../data_source_tc_lighthouse_scene.md | 10 + .../data_source_tc_lighthouse_zone.md | 10 + ...esource_tc_lighthouse_apply_disk_backup.md | 10 + ...e_tc_lighthouse_apply_instance_snapshot.md | 10 + .../resource_tc_lighthouse_blueprint.md | 19 + .../lighthouse/resource_tc_lighthouse_disk.md | 18 + .../resource_tc_lighthouse_disk_attachment.md | 18 + .../resource_tc_lighthouse_disk_backup.md | 18 + .../resource_tc_lighthouse_firewall_rule.md | 33 + ...esource_tc_lighthouse_firewall_template.md | 31 + .../resource_tc_lighthouse_instance.md | 76 + .../resource_tc_lighthouse_key_pair.md | 17 + ...ource_tc_lighthouse_key_pair_attachment.md | 18 + .../resource_tc_lighthouse_reboot_instance.md | 9 + .../resource_tc_lighthouse_renew_disk.md | 15 + .../resource_tc_lighthouse_renew_instance.md | 16 + .../resource_tc_lighthouse_snapshot.md | 10 + .../resource_tc_lighthouse_start_instance.md | 9 + .../resource_tc_lighthouse_stop_instance.md | 9 + .../data_source_tc_mariadb_accounts.md | 9 + ...data_source_tc_mariadb_database_objects.md | 10 + .../data_source_tc_mariadb_database_table.md | 11 + .../data_source_tc_mariadb_databases.md | 9 + .../data_source_tc_mariadb_db_instances.md | 12 + .../data_source_tc_mariadb_dcn_detail.md | 9 + ...ata_source_tc_mariadb_file_download_url.md | 10 + .../mariadb/data_source_tc_mariadb_flow.md | 9 + .../data_source_tc_mariadb_instance_specs.md | 8 + .../data_source_tc_mariadb_log_files.md | 10 + .../mariadb/data_source_tc_mariadb_orders.md | 9 + .../mariadb/data_source_tc_mariadb_price.md | 15 + ...urce_tc_mariadb_project_security_groups.md | 10 + .../data_source_tc_mariadb_renewal_price.md | 10 + .../data_source_tc_mariadb_sale_info.md | 8 + .../data_source_tc_mariadb_security_groups.md | 10 + .../data_source_tc_mariadb_slow_logs.md | 13 + .../data_source_tc_mariadb_upgrade_price.md | 12 + .../mariadb/resource_tc_mariadb_account.md | 21 + .../resource_tc_mariadb_account_privileges.md | 22 + .../resource_tc_mariadb_backup_time.md | 19 + .../resource_tc_mariadb_cancel_dcn_job.md | 9 + ...tc_mariadb_dedicatedcluster_db_instance.md | 23 + .../resource_tc_mariadb_flush_binlog.md | 9 + .../resource_tc_mariadb_hour_db_instance.md | 30 + .../mariadb/resource_tc_mariadb_instance.md | 50 + .../resource_tc_mariadb_instance_config.md | 22 + ...ce_tc_mariadb_log_file_retention_period.md | 17 + ...rce_tc_mariadb_operate_hour_db_instance.md | 10 + .../mariadb/resource_tc_mariadb_parameters.md | 277 +++ .../resource_tc_mariadb_renew_instance.md | 10 + .../resource_tc_mariadb_restart_instance.md | 9 + .../resource_tc_mariadb_security_groups.md | 20 + .../mariadb/resource_tc_mariadb_switch_ha.md | 10 + .../mdl/resource_tc_mdl_stream_live_input.md | 21 + ...data_source_tc_mongodb_instance_backups.md | 10 + ..._source_tc_mongodb_instance_connections.md | 9 + ...a_source_tc_mongodb_instance_current_op.md | 11 + .../data_source_tc_mongodb_instance_params.md | 9 + ...ata_source_tc_mongodb_instance_slow_log.md | 13 + .../data_source_tc_mongodb_instances.md | 10 + .../data_source_tc_mongodb_zone_config.md | 9 + .../mongodb/resource_tc_mongodb_instance.md | 26 + .../resource_tc_mongodb_instance_account.md | 17 + .../resource_tc_mongodb_instance_backup.md | 11 + .../resource_tc_mongodb_sharding_instance.md | 31 + .../resource_tc_mongodb_standby_instance.md | 52 + ..._source_tc_monitor_alarm_all_namespaces.md | 12 + ...ta_source_tc_monitor_alarm_basic_alarms.md | 17 + ...ta_source_tc_monitor_alarm_basic_metric.md | 11 + ...ce_tc_monitor_alarm_conditions_template.md | 14 + .../data_source_tc_monitor_alarm_history.md | 21 + .../data_source_tc_monitor_alarm_metric.md | 11 + ...ta_source_tc_monitor_alarm_monitor_type.md | 8 + ...ource_tc_monitor_alarm_notice_callbacks.md | 8 + .../data_source_tc_monitor_alarm_notices.md | 15 + .../data_source_tc_monitor_alarm_policy.md | 16 + .../data_source_tc_monitor_binding_objects.md | 13 + .../monitor/data_source_tc_monitor_data.md | 39 + ...ata_source_tc_monitor_policy_conditions.md | 10 + .../data_source_tc_monitor_policy_groups.md | 13 + .../data_source_tc_monitor_product_event.md | 11 + ...ata_source_tc_monitor_product_namespace.md | 9 + .../resource_tc_monitor_alarm_notice.md | 65 + .../resource_tc_monitor_alarm_policy.md | 250 ++ ...rce_tc_monitor_alarm_policy_set_default.md | 10 + .../resource_tc_monitor_binding_object.md | 33 + .../resource_tc_monitor_binding_receiver.md | 36 + ...source_tc_monitor_policy_binding_object.md | 61 + .../mps/data_source_tc_mps_media_meta_data.md | 23 + ..._parse_live_stream_process_notification.md | 9 + .../data_source_tc_mps_parse_notification.md | 9 + .../mps/data_source_tc_mps_schedules.md | 21 + tencentcloud/mps/data_source_tc_mps_tasks.md | 10 + ...mps_adaptive_dynamic_streaming_template.md | 69 + .../resource_tc_mps_ai_analysis_template.md | 34 + ...resource_tc_mps_ai_recognition_template.md | 46 + ...ource_tc_mps_animated_graphics_template.md | 23 + ...resource_tc_mps_content_review_template.md | 103 + .../resource_tc_mps_edit_media_operation.md | 39 + .../resource_tc_mps_enable_schedule_config.md | 164 ++ .../resource_tc_mps_enable_workflow_config.md | 120 + tencentcloud/mps/resource_tc_mps_event.md | 18 + ...ource_tc_mps_execute_function_operation.md | 10 + tencentcloud/mps/resource_tc_mps_flow.md | 116 + .../resource_tc_mps_image_sprite_template.md | 26 + tencentcloud/mps/resource_tc_mps_input.md | 33 + .../resource_tc_mps_manage_task_operation.md | 10 + tencentcloud/mps/resource_tc_mps_output.md | 33 + .../mps/resource_tc_mps_person_sample.md | 24 + ...ce_tc_mps_process_live_stream_operation.md | 42 + ...resource_tc_mps_process_media_operation.md | 53 + ...esource_tc_mps_sample_snapshot_template.md | 24 + tencentcloud/mps/resource_tc_mps_schedule.md | 150 ++ ..._tc_mps_snapshot_by_timeoffset_template.md | 22 + .../resource_tc_mps_start_flow_operation.md | 21 + .../mps/resource_tc_mps_transcode_template.md | 39 + .../mps/resource_tc_mps_watermark_template.md | 28 + ...ce_tc_mps_withdraws_watermark_operation.md | 31 + .../mps/resource_tc_mps_word_sample.md | 19 + tencentcloud/mps/resource_tc_mps_workflow.md | 103 + .../data_source_tc_oceanus_check_savepoint.md | 13 + .../data_source_tc_oceanus_clusters.md | 23 + ...ta_source_tc_oceanus_job_submission_log.md | 13 + ..._source_tc_oceanus_resource_related_job.md | 12 + .../data_source_tc_oceanus_savepoint_list.md | 10 + .../data_source_tc_oceanus_system_resource.md | 15 + .../data_source_tc_oceanus_tree_jobs.md | 9 + .../data_source_tc_oceanus_tree_resources.md | 9 + .../data_source_tc_oceanus_work_spaces.md | 13 + .../oceanus/resource_tc_oceanus_job.md | 17 + .../oceanus/resource_tc_oceanus_job_config.md | 66 + .../oceanus/resource_tc_oceanus_job_copy.md | 15 + .../oceanus/resource_tc_oceanus_resource.md | 23 + .../resource_tc_oceanus_resource_config.md | 38 + .../oceanus/resource_tc_oceanus_run_job.md | 16 + .../oceanus/resource_tc_oceanus_stop_job.md | 13 + ...source_tc_oceanus_trigger_job_savepoint.md | 11 + .../oceanus/resource_tc_oceanus_work_space.md | 18 + ...esource_tc_vpc_enable_end_point_connect.md | 11 + tencentcloud/pls/resource_tc_vpc_end_point.md | 21 + .../pls/resource_tc_vpc_end_point_service.md | 21 + ...rce_tc_vpc_end_point_service_white_list.md | 19 + ...urce_tc_postgresql_backup_download_urls.md | 31 + .../data_source_tc_postgresql_base_backups.md | 23 + ...ource_tc_postgresql_db_instance_classes.md | 11 + ...urce_tc_postgresql_db_instance_versions.md | 7 + ...source_tc_postgresql_default_parameters.md | 10 + .../data_source_tc_postgresql_instances.md | 17 + .../data_source_tc_postgresql_log_backups.md | 16 + ...ource_tc_postgresql_parameter_templates.md | 18 + ...ta_source_tc_postgresql_readonly_groups.md | 27 + ...data_source_tc_postgresql_recovery_time.md | 9 + .../data_source_tc_postgresql_regions.md | 7 + .../data_source_tc_postgresql_specinfos.md | 9 + .../data_source_tc_postgresql_xlogs.md | 11 + .../data_source_tc_postgresql_zones.md | 7 + ...esql_backup_download_restriction_config.md | 41 + ...source_tc_postgresql_backup_plan_config.md | 21 + .../resource_tc_postgresql_base_backup.md | 12 + ..._postgresql_delete_log_backup_operation.md | 10 + ...gresql_disisolate_db_instance_operation.md | 11 + .../resource_tc_postgresql_instance.md | 173 ++ ...ostgresql_isolate_db_instance_operation.md | 9 + ...tgresql_modify_account_remark_operation.md | 11 + ...sql_modify_switch_time_period_operation.md | 10 + ...source_tc_postgresql_parameter_template.md | 33 + ...ource_tc_postgresql_readonly_attachment.md | 10 + .../resource_tc_postgresql_readonly_group.md | 19 + ...esource_tc_postgresql_readonly_instance.md | 44 + ...esql_rebalance_readonly_group_operation.md | 22 + ..._postgresql_renew_db_instance_operation.md | 11 + ...ostgresql_restart_db_instance_operation.md | 9 + ...rce_tc_postgresql_security_group_config.md | 32 + .../data_source_tc_private_dns_records.md | 13 + .../resource_tc_private_dns_record.md | 23 + .../resource_tc_private_dns_zone.md | 65 + ...urce_tc_private_dns_zone_vpc_attachment.md | 57 + .../project/data_source_tc_projects.md | 9 + tencentcloud/project/resource_tc_project.md | 20 + tencentcloud/provider.md | 2088 +++++++++++++++++ .../data_source_tc_pts_scenario_with_jobs.md | 15 + .../pts/resource_tc_pts_alert_channel.md | 59 + tencentcloud/pts/resource_tc_pts_cron_job.md | 25 + .../pts/resource_tc_pts_cron_job_abort.md | 10 + .../pts/resource_tc_pts_cron_job_restart.md | 10 + tencentcloud/pts/resource_tc_pts_file.md | 32 + tencentcloud/pts/resource_tc_pts_job.md | 20 + tencentcloud/pts/resource_tc_pts_job_abort.md | 11 + tencentcloud/pts/resource_tc_pts_project.md | 21 + tencentcloud/pts/resource_tc_pts_scenario.md | 97 + .../pts/resource_tc_pts_tmp_key_generate.md | 10 + .../rum/data_source_tc_rum_custom_url.md | 12 + .../rum/data_source_tc_rum_event_url.md | 12 + .../rum/data_source_tc_rum_fetch_url.md | 12 + .../rum/data_source_tc_rum_fetch_url_info.md | 12 + .../rum/data_source_tc_rum_group_log.md | 14 + .../rum/data_source_tc_rum_log_export_list.md | 9 + .../data_source_tc_rum_log_url_statistics.md | 12 + .../data_source_tc_rum_offline_log_config.md | 9 + .../data_source_tc_rum_performance_page.md | 13 + .../rum/data_source_tc_rum_project.md | 9 + .../rum/data_source_tc_rum_pv_url_info.md | 12 + .../data_source_tc_rum_pv_url_statistics.md | 12 + .../rum/data_source_tc_rum_report_count.md | 12 + tencentcloud/rum/data_source_tc_rum_scores.md | 12 + .../data_source_tc_rum_set_url_statistics.md | 12 + tencentcloud/rum/data_source_tc_rum_sign.md | 10 + .../rum/data_source_tc_rum_static_project.md | 12 + .../rum/data_source_tc_rum_static_resource.md | 12 + .../rum/data_source_tc_rum_static_url.md | 12 + .../rum/data_source_tc_rum_taw_instance.md | 13 + .../rum/data_source_tc_rum_web_vitals_page.md | 12 + .../rum/data_source_tc_rum_whitelist.md | 9 + .../resource_tc_rum_instance_status_config.md | 18 + ...ce_tc_rum_offline_log_config_attachment.md | 17 + tencentcloud/rum/resource_tc_rum_project.md | 23 + .../resource_tc_rum_project_status_config.md | 18 + .../rum/resource_tc_rum_taw_instance.md | 23 + tencentcloud/rum/resource_tc_rum_whitelist.md | 19 + .../scf/data_source_tc_scf_account_info.md | 7 + ...ta_source_tc_scf_async_event_management.md | 13 + .../data_source_tc_scf_async_event_status.md | 9 + .../data_source_tc_scf_function_address.md | 11 + .../data_source_tc_scf_function_aliases.md | 10 + .../data_source_tc_scf_function_versions.md | 10 + .../scf/data_source_tc_scf_functions.md | 19 + .../scf/data_source_tc_scf_layer_versions.md | 9 + tencentcloud/scf/data_source_tc_scf_layers.md | 7 + tencentcloud/scf/data_source_tc_scf_logs.md | 19 + .../scf/data_source_tc_scf_namespaces.md | 13 + .../scf/data_source_tc_scf_request_status.md | 11 + .../scf/data_source_tc_scf_triggers.md | 12 + tencentcloud/scf/resource_tc_scf_function.md | 43 + .../scf/resource_tc_scf_function_alias.md | 47 + ...rce_tc_scf_function_event_invoke_config.md | 24 + .../scf/resource_tc_scf_function_version.md | 20 + .../scf/resource_tc_scf_invoke_function.md | 11 + tencentcloud/scf/resource_tc_scf_layer.md | 24 + tencentcloud/scf/resource_tc_scf_namespace.md | 17 + ...e_tc_scf_provisioned_concurrency_config.md | 22 + ...urce_tc_scf_reserved_concurrency_config.md | 19 + .../resource_tc_scf_sync_invoke_function.md | 11 + .../resource_tc_scf_terminate_async_event.md | 12 + .../scf/resource_tc_scf_trigger_config.md | 27 + .../data_source_tc_ses_black_email_address.md | 12 + .../data_source_tc_ses_email_identities.md | 8 + .../ses/data_source_tc_ses_receivers.md | 10 + .../data_source_tc_ses_send_email_status.md | 11 + .../ses/data_source_tc_ses_send_tasks.md | 11 + .../data_source_tc_ses_statistics_report.md | 12 + .../ses/resource_tc_ses_batch_send_email.md | 28 + .../ses/resource_tc_ses_black_list_delete.md | 11 + tencentcloud/ses/resource_tc_ses_domain.md | 16 + .../ses/resource_tc_ses_email_address.md | 17 + tencentcloud/ses/resource_tc_ses_receiver.md | 42 + .../ses/resource_tc_ses_send_email.md | 20 + tencentcloud/ses/resource_tc_ses_template.md | 53 + .../ses/resource_tc_ses_verify_domain.md | 11 + tencentcloud/sms/resource_tc_sms_sign.md | 16 + tencentcloud/sms/resource_tc_sms_template.md | 16 + ...rce_tc_sqlserver_account_db_attachments.md | 70 + .../data_source_tc_sqlserver_accounts.md | 20 + ...a_source_tc_sqlserver_backup_by_flow_id.md | 66 + ...ata_source_tc_sqlserver_backup_commands.md | 11 + ..._source_tc_sqlserver_backup_upload_size.md | 10 + ...ata_source_tc_sqlserver_basic_instances.md | 28 + ...a_source_tc_sqlserver_cross_region_zone.md | 9 + .../data_source_tc_sqlserver_db_charsets.md | 9 + .../sqlserver/data_source_tc_sqlserver_dbs.md | 59 + .../data_source_tc_sqlserver_ins_attribute.md | 9 + ...rce_tc_sqlserver_instance_param_records.md | 9 + .../data_source_tc_sqlserver_instances.md | 28 + ...ce_tc_sqlserver_project_security_groups.md | 9 + ..._source_tc_sqlserver_publish_subscribes.md | 104 + .../data_source_tc_sqlserver_query_xevent.md | 12 + ...ata_source_tc_sqlserver_readonly_groups.md | 9 + .../data_source_tc_sqlserver_regions.md | 7 + .../data_source_tc_sqlserver_rollback_time.md | 10 + .../data_source_tc_sqlserver_slowlogs.md | 11 + ..._source_tc_sqlserver_upload_backup_info.md | 10 + ...ce_tc_sqlserver_upload_incremental_info.md | 11 + .../data_source_tc_sqlserver_zone_config.md | 7 + .../resource_tc_sqlserver_account.md | 63 + ...urce_tc_sqlserver_account_db_attachment.md | 77 + .../resource_tc_sqlserver_basic_instance.md | 55 + ...tc_sqlserver_business_intelligence_file.md | 59 + ...qlserver_business_intelligence_instance.md | 52 + ...esource_tc_sqlserver_complete_expansion.md | 78 + ...rce_tc_sqlserver_config_backup_strategy.md | 106 + ...source_tc_sqlserver_config_database_cdc.md | 81 + ...esource_tc_sqlserver_config_database_ct.md | 70 + ...source_tc_sqlserver_config_database_mdf.md | 68 + ...urce_tc_sqlserver_config_instance_param.md | 64 + ...e_tc_sqlserver_config_instance_ro_group.md | 82 + ..._sqlserver_config_terminate_db_instance.md | 60 + .../resource_tc_sqlserver_database_tde.md | 81 + .../sqlserver/resource_tc_sqlserver_db.md | 63 + ...urce_tc_sqlserver_full_backup_migration.md | 84 + .../resource_tc_sqlserver_general_backup.md | 69 + .../resource_tc_sqlserver_general_clone.md | 69 + ...rce_tc_sqlserver_general_cloud_instance.md | 59 + ..._tc_sqlserver_general_cloud_ro_instance.md | 126 + ...urce_tc_sqlserver_general_communication.md | 60 + ...rce_tc_sqlserver_incre_backup_migration.md | 20 + .../resource_tc_sqlserver_instance.md | 41 + .../resource_tc_sqlserver_instance_tde.md | 61 + .../resource_tc_sqlserver_migration.md | 139 ++ ...resource_tc_sqlserver_publish_subscribe.md | 108 + ...resource_tc_sqlserver_readonly_instance.md | 72 + ...resource_tc_sqlserver_renew_db_instance.md | 61 + ...tc_sqlserver_renew_postpaid_db_instance.md | 64 + ...source_tc_sqlserver_restart_db_instance.md | 60 + .../resource_tc_sqlserver_restore_instance.md | 22 + ...resource_tc_sqlserver_rollback_instance.md | 22 + ...c_sqlserver_start_backup_full_migration.md | 10 + ...rver_start_backup_incremental_migration.md | 11 + .../resource_tc_sqlserver_start_xevent.md | 56 + .../ssl/data_source_tc_ssl_certificates.md | 9 + ...data_source_tc_ssl_describe_certificate.md | 9 + .../data_source_tc_ssl_describe_companies.md | 9 + ...describe_host_api_gateway_instance_list.md | 10 + ..._tc_ssl_describe_host_cdn_instance_list.md | 10 + ..._tc_ssl_describe_host_clb_instance_list.md | 9 + ..._tc_ssl_describe_host_cos_instance_list.md | 10 + ...tc_ssl_describe_host_ddos_instance_list.md | 10 + ...urce_tc_ssl_describe_host_deploy_record.md | 10 + ..._ssl_describe_host_deploy_record_detail.md | 9 + ..._describe_host_lighthouse_instance_list.md | 10 + ...tc_ssl_describe_host_live_instance_list.md | 10 + ..._tc_ssl_describe_host_teo_instance_list.md | 10 + ..._tc_ssl_describe_host_tke_instance_list.md | 9 + ...urce_tc_ssl_describe_host_update_record.md | 9 + ..._ssl_describe_host_update_record_detail.md | 9 + ..._tc_ssl_describe_host_vod_instance_list.md | 10 + ..._tc_ssl_describe_host_waf_instance_list.md | 10 + ...a_source_tc_ssl_describe_manager_detail.md | 9 + .../data_source_tc_ssl_describe_managers.md | 9 + .../ssl/resource_tc_ssl_certificate.md | 54 + ...c_ssl_check_certificate_chain_operation.md | 17 + ...e_tc_ssl_complete_certificate_operation.md | 17 + ...l_deploy_certificate_instance_operation.md | 19 + ...ploy_certificate_record_retry_operation.md | 17 + ...y_certificate_record_rollback_operation.md | 17 + ...e_tc_ssl_download_certificate_operation.md | 18 + .../ssl/resource_tc_ssl_free_certificate.md | 29 + .../ssl/resource_tc_ssl_pay_certificate.md | 54 + ...ce_tc_ssl_replace_certificate_operation.md | 19 + ...rce_tc_ssl_revoke_certificate_operation.md | 17 + ...l_update_certificate_instance_operation.md | 19 + ...date_certificate_record_retry_operation.md | 17 + ...e_certificate_record_rollback_operation.md | 17 + ...e_tc_ssl_upload_revoke_letter_operation.md | 18 + .../ssm/data_source_tc_ssm_products.md | 7 + .../ssm/data_source_tc_ssm_rotation_detail.md | 9 + .../data_source_tc_ssm_rotation_history.md | 9 + .../ssm/data_source_tc_ssm_secret_versions.md | 25 + .../ssm/data_source_tc_ssm_secrets.md | 32 + .../ssm/data_source_tc_ssm_service_status.md | 7 + .../data_source_tc_ssm_ssh_key_pair_value.md | 28 + .../ssm/resource_tc_ssm_product_secret.md | 86 + .../resource_tc_ssm_rotate_product_secret.md | 9 + tencentcloud/ssm/resource_tc_ssm_secret.md | 78 + .../ssm/resource_tc_ssm_secret_version.md | 43 + .../resource_tc_ssm_ssh_key_pair_secret.md | 38 + .../sts/data_source_tc_sts_caller_identity.md | 8 + tencentcloud/tag/resource_tc_tag.md | 20 + .../tag/resource_tc_tag_attachment.md | 21 + tencentcloud/tat/data_source_tc_tat_agent.md | 13 + .../tat/data_source_tc_tat_command.md | 12 + .../tat/data_source_tc_tat_invocation_task.md | 14 + .../tat/data_source_tc_tat_invoker.md | 11 + .../tat/data_source_tc_tat_invoker_records.md | 9 + tencentcloud/tat/resource_tc_tat_command.md | 26 + ...ce_tc_tat_invocation_command_attachment.md | 22 + ...rce_tc_tat_invocation_invoke_attachment.md | 24 + tencentcloud/tat/resource_tc_tat_invoker.md | 26 + .../tat/resource_tc_tat_invoker_config.md | 18 + .../data_source_tc_tcaplus_clusters.md | 16 + .../tcaplusdb/data_source_tc_tcaplus_idls.md | 9 + .../data_source_tc_tcaplus_tablegroups.md | 22 + .../data_source_tc_tcaplus_tables.md | 31 + .../tcaplusdb/resource_tc_tcaplus_cluster.md | 40 + .../tcaplusdb/resource_tc_tcaplus_idl.md | 72 + .../tcaplusdb/resource_tc_tcaplus_table.md | 85 + .../resource_tc_tcaplus_tablegroup.md | 35 + tencentcloud/tcm/data_source_tc_tcm_mesh.md | 12 + .../tcm/resource_tc_tcm_access_log_config.md | 43 + .../tcm/resource_tc_tcm_cluster_attachment.md | 24 + tencentcloud/tcm/resource_tc_tcm_mesh.md | 77 + .../resource_tc_tcm_prometheus_attachment.md | 33 + .../tcm/resource_tc_tcm_tracing_config.md | 42 + ...rce_tc_monitor_grafana_plugin_overviews.md | 8 + .../resource_tc_monitor_grafana_dns_config.md | 18 + .../resource_tc_monitor_grafana_env_config.md | 21 + .../resource_tc_monitor_grafana_instance.md | 41 + ...resource_tc_monitor_grafana_integration.md | 41 + ...tc_monitor_grafana_notification_channel.md | 71 + .../resource_tc_monitor_grafana_plugin.md | 46 + ...resource_tc_monitor_grafana_sso_account.md | 50 + ...ource_tc_monitor_grafana_sso_cam_config.md | 18 + .../resource_tc_monitor_grafana_sso_config.md | 18 + ...urce_tc_monitor_grafana_version_upgrade.md | 18 + ...rce_tc_monitor_grafana_whitelist_config.md | 18 + .../resource_tc_monitor_tmp_grafana_config.md | 55 + .../tcmq/data_source_tc_tcmq_queue.md | 9 + .../tcmq/data_source_tc_tcmq_subscribe.md | 10 + .../tcmq/data_source_tc_tcmq_topic.md | 9 + tencentcloud/tcmq/resource_tc_tcmq_queue.md | 17 + .../tcmq/resource_tc_tcmq_subscribe.md | 20 + tencentcloud/tcmq/resource_tc_tcmq_topic.md | 17 + ...ta_source_tc_organization_org_auth_node.md | 8 + ...tc_organization_org_financial_by_member.md | 11 + ..._tc_organization_org_financial_by_month.md | 11 + ...c_organization_org_financial_by_product.md | 12 + .../tco/resource_tc_organization_instance.md | 16 + .../resource_tc_organization_org_identity.md | 23 + .../resource_tc_organization_org_member.md | 25 + ...ion_org_member_auth_identity_attachment.md | 18 + ...source_tc_organization_org_member_email.md | 20 + ...ganization_org_member_policy_attachment.md | 19 + .../tco/resource_tc_organization_org_node.md | 18 + ...anization_policy_sub_account_attachment.md | 17 + ...rganization_quit_organization_operation.md | 17 + .../tcr/data_source_tc_tcr_image_manifests.md | 12 + tencentcloud/tcr/data_source_tc_tcr_images.md | 14 + .../tcr/data_source_tc_tcr_instances.md | 9 + .../tcr/data_source_tc_tcr_namespaces.md | 10 + ...c_tcr_replication_instance_create_tasks.md | 16 + ...tc_tcr_replication_instance_sync_status.md | 12 + .../tcr/data_source_tc_tcr_repositories.md | 9 + ...ce_tc_tcr_tag_retention_execution_tasks.md | 11 + ..._source_tc_tcr_tag_retention_executions.md | 10 + tencentcloud/tcr/data_source_tc_tcr_tokens.md | 9 + .../tcr/data_source_tc_tcr_vpc_attachments.md | 9 + ...data_source_tc_tcr_webhook_trigger_logs.md | 14 + ...tc_tcr_create_image_signature_operation.md | 48 + .../tcr/resource_tc_tcr_customized_domain.md | 32 + .../resource_tc_tcr_delete_image_operation.md | 34 + .../tcr/resource_tc_tcr_immutable_tag_rule.md | 101 + tencentcloud/tcr/resource_tc_tcr_instance.md | 78 + ...rce_tc_tcr_manage_replication_operation.md | 113 + tencentcloud/tcr/resource_tc_tcr_namespace.md | 35 + .../tcr/resource_tc_tcr_repository.md | 41 + .../tcr/resource_tc_tcr_service_account.md | 70 + ...e_tc_tcr_tag_retention_execution_config.md | 43 + .../tcr/resource_tc_tcr_tag_retention_rule.md | 39 + tencentcloud/tcr/resource_tc_tcr_token.md | 29 + .../tcr/resource_tc_tcr_vpc_attachment.md | 45 + .../tcr/resource_tc_tcr_webhook_trigger.md | 69 + .../tdcpg/data_source_tc_tdcpg_clusters.md | 15 + .../tdcpg/data_source_tc_tdcpg_instances.md | 15 + .../tdcpg/resource_tc_tdcpg_cluster.md | 29 + .../tdcpg/resource_tc_tdcpg_instance.md | 29 + .../tem/resource_tc_tem_app_config.md | 24 + .../tem/resource_tc_tem_application.md | 18 + .../resource_tc_tem_application_service.md | 27 + .../tem/resource_tc_tem_environment.md | 22 + tencentcloud/tem/resource_tc_tem_gateway.md | 48 + .../tem/resource_tc_tem_log_config.md | 23 + .../tem/resource_tc_tem_scale_rule.md | 53 + tencentcloud/tem/resource_tc_tem_workload.md | 53 + ...data_source_tc_teo_rule_engine_settings.md | 8 + ...data_source_tc_teo_zone_available_plans.md | 8 + .../resource_tc_teo_acceleration_domain.md | 23 + .../resource_tc_teo_application_proxy_rule.md | 29 + .../teo/resource_tc_teo_certificate_config.md | 33 + .../teo/resource_tc_teo_origin_group.md | 47 + .../teo/resource_tc_teo_ownership_verify.md | 9 + .../teo/resource_tc_teo_rule_engine.md | 130 + tencentcloud/teo/resource_tc_teo_zone.md | 24 + .../teo/resource_tc_teo_zone_setting.md | 119 + ...a_source_tc_container_cluster_instances.md | 13 + .../tke/data_source_tc_container_clusters.md | 12 + ...c_kubernetes_available_cluster_versions.md | 23 + .../tke/data_source_tc_kubernetes_charts.md | 7 + ...bernetes_cluster_authentication_options.md | 9 + ...urce_tc_kubernetes_cluster_common_names.md | 10 + ..._source_tc_kubernetes_cluster_instances.md | 15 + ...ata_source_tc_kubernetes_cluster_levels.md | 11 + .../tke/data_source_tc_kubernetes_clusters.md | 13 + .../tke/resource_tc_container_cluster.md | 35 + .../resource_tc_container_cluster_instance.md | 27 + ...resource_tc_kubernetes_addon_attachment.md | 126 + .../resource_tc_kubernetes_auth_attachment.md | 164 ++ ...e_tc_kubernetes_backup_storage_location.md | 22 + .../tke/resource_tc_kubernetes_cluster.md | 780 ++++++ ...source_tc_kubernetes_cluster_attachment.md | 96 + ...resource_tc_kubernetes_cluster_endpoint.md | 29 + ...rce_tc_kubernetes_encryption_protection.md | 49 + .../tke/resource_tc_kubernetes_node_pool.md | 144 ++ .../resource_tc_kubernetes_scale_worker.md | 102 + ...urce_tc_kubernetes_serverless_node_pool.md | 109 + .../tmp/data_source_tc_monitor_tmp_regions.md | 9 + .../tmp/resource_tc_monitor_tmp_alert_rule.md | 68 + .../tmp/resource_tc_monitor_tmp_cvm_agent.md | 44 + ...rce_tc_monitor_tmp_exporter_integration.md | 50 + .../tmp/resource_tc_monitor_tmp_instance.md | 39 + ...c_monitor_tmp_manage_grafana_attachment.md | 58 + .../resource_tc_monitor_tmp_recording_rule.md | 52 + .../tmp/resource_tc_monitor_tmp_scrape_job.md | 55 + ...esource_tc_monitor_tmp_tke_alert_policy.md | 188 ++ ...esource_tc_monitor_tmp_tke_basic_config.md | 172 ++ ...source_tc_monitor_tmp_tke_cluster_agent.md | 161 ++ .../tmp/resource_tc_monitor_tmp_tke_config.md | 183 ++ ..._tc_monitor_tmp_tke_global_notification.md | 188 ++ ...rce_tc_monitor_tmp_tke_record_rule_yaml.md | 182 ++ .../resource_tc_monitor_tmp_tke_template.md | 84 + ..._tc_monitor_tmp_tke_template_attachment.md | 255 ++ ...a_source_tc_tdmq_environment_attributes.md | 25 + ...data_source_tc_tdmq_pro_instance_detail.md | 9 + .../data_source_tc_tdmq_pro_instances.md | 12 + .../data_source_tc_tdmq_publisher_summary.md | 11 + .../tpulsar/data_source_tc_tdmq_publishers.md | 19 + .../tpulsar/resource_tc_tdmq_instance.md | 21 + .../tpulsar/resource_tc_tdmq_namespace.md | 32 + ...ource_tc_tdmq_namespace_role_attachment.md | 37 + tencentcloud/tpulsar/resource_tc_tdmq_role.md | 27 + .../tpulsar/resource_tc_tdmq_topic.md | 41 + .../trabbit/resource_tc_tdmq_rabbitmq_user.md | 15 + .../resource_tc_tdmq_rabbitmq_vip_instance.md | 33 + .../resource_tc_tdmq_rabbitmq_virtual_host.md | 12 + .../data_source_tc_tdmq_rocketmq_cluster.md | 14 + .../data_source_tc_tdmq_rocketmq_group.md | 31 + .../data_source_tc_tdmq_rocketmq_messages.md | 13 + .../data_source_tc_tdmq_rocketmq_namespace.md | 21 + .../data_source_tc_tdmq_rocketmq_role.md | 21 + .../data_source_tc_tdmq_rocketmq_topic.md | 30 + .../resource_tc_tdmq_rocketmq_cluster.md | 16 + ...ource_tc_tdmq_rocketmq_environment_role.md | 35 + .../resource_tc_tdmq_rocketmq_group.md | 31 + .../resource_tc_tdmq_rocketmq_namespace.md | 22 + .../trocket/resource_tc_tdmq_rocketmq_role.md | 22 + .../resource_tc_tdmq_rocketmq_topic.md | 30 + .../resource_tc_tdmq_rocketmq_vip_instance.md | 41 + .../resource_tc_tdmq_send_rocketmq_message.md | 14 + ...urce_tc_trocket_rocketmq_consumer_group.md | 35 + .../resource_tc_trocket_rocketmq_instance.md | 47 + .../resource_tc_trocket_rocketmq_role.md | 42 + .../resource_tc_trocket_rocketmq_topic.md | 34 + .../tse/data_source_tc_tse_access_address.md | 13 + ...data_source_tc_tse_gateway_canary_rules.md | 10 + ...data_source_tc_tse_gateway_certificates.md | 14 + .../tse/data_source_tc_tse_gateway_nodes.md | 10 + .../tse/data_source_tc_tse_gateway_routes.md | 11 + .../data_source_tc_tse_gateway_services.md | 13 + .../tse/data_source_tc_tse_gateways.md | 12 + tencentcloud/tse/data_source_tc_tse_groups.md | 13 + .../tse/data_source_tc_tse_nacos_replicas.md | 9 + ...a_source_tc_tse_nacos_server_interfaces.md | 9 + .../data_source_tc_tse_zookeeper_replicas.md | 9 + ...urce_tc_tse_zookeeper_server_interfaces.md | 9 + .../tse/resource_tc_tse_cngw_canary_rule.md | 69 + .../tse/resource_tc_tse_cngw_certificate.md | 22 + .../tse/resource_tc_tse_cngw_gateway.md | 48 + .../tse/resource_tc_tse_cngw_group.md | 60 + .../tse/resource_tc_tse_cngw_route.md | 91 + .../resource_tc_tse_cngw_route_rate_limit.md | 120 + .../tse/resource_tc_tse_cngw_service.md | 74 + ...resource_tc_tse_cngw_service_rate_limit.md | 96 + tencentcloud/tse/resource_tc_tse_instance.md | 105 + .../tse/resource_tc_tse_waf_domains.md | 18 + .../tse/resource_tc_tse_waf_protection.md | 12 + .../tsf/data_source_tc_tsf_api_detail.md | 13 + .../tsf/data_source_tc_tsf_api_group.md | 15 + .../tsf/data_source_tc_tsf_application.md | 12 + ...ata_source_tc_tsf_application_attribute.md | 9 + .../data_source_tc_tsf_application_config.md | 13 + ...a_source_tc_tsf_application_file_config.md | 13 + ...source_tc_tsf_application_public_config.md | 12 + ...data_source_tc_tsf_business_log_configs.md | 11 + .../tsf/data_source_tc_tsf_cluster.md | 12 + .../tsf/data_source_tc_tsf_config_summary.md | 14 + .../tsf/data_source_tc_tsf_container_group.md | 14 + ...urce_tc_tsf_delivery_config_by_group_id.md | 9 + .../data_source_tc_tsf_delivery_configs.md | 9 + ...ta_source_tc_tsf_gateway_all_group_apis.md | 10 + ...data_source_tc_tsf_group_config_release.md | 9 + .../tsf/data_source_tc_tsf_group_gateways.md | 10 + .../tsf/data_source_tc_tsf_group_instances.md | 12 + tencentcloud/tsf/data_source_tc_tsf_groups.md | 17 + .../tsf/data_source_tc_tsf_microservice.md | 12 + ..._source_tc_tsf_microservice_api_version.md | 11 + .../tsf/data_source_tc_tsf_ms_api_list.md | 10 + .../tsf/data_source_tc_tsf_pod_instances.md | 10 + ...ata_source_tc_tsf_public_config_summary.md | 14 + .../tsf/data_source_tc_tsf_repository.md | 10 + .../tsf/data_source_tc_tsf_unit_rules.md | 10 + ...ta_source_tc_tsf_usable_unit_namespaces.md | 9 + tencentcloud/tsf/resource_tc_tsf_api_group.md | 26 + .../resource_tc_tsf_api_rate_limit_rule.md | 19 + .../tsf/resource_tc_tsf_application.md | 24 + .../tsf/resource_tc_tsf_application_config.md | 16 + ...resource_tc_tsf_application_file_config.md | 18 + ..._tc_tsf_application_file_config_release.md | 19 + ...source_tc_tsf_application_public_config.md | 15 + ...c_tsf_application_public_config_release.md | 19 + ...ource_tc_tsf_application_release_config.md | 19 + .../tsf/resource_tc_tsf_bind_api_group.md | 18 + tencentcloud/tsf/resource_tc_tsf_cluster.md | 20 + .../tsf/resource_tc_tsf_config_template.md | 18 + .../resource_tc_tsf_deploy_container_group.md | 66 + .../tsf/resource_tc_tsf_deploy_vm_group.md | 31 + .../tsf/resource_tc_tsf_enable_unit_rule.md | 18 + tencentcloud/tsf/resource_tc_tsf_group.md | 25 + .../resource_tc_tsf_instances_attachment.md | 23 + tencentcloud/tsf/resource_tc_tsf_lane.md | 14 + tencentcloud/tsf/resource_tc_tsf_lane_rule.md | 18 + .../tsf/resource_tc_tsf_microservice.md | 22 + tencentcloud/tsf/resource_tc_tsf_namespace.md | 16 + ...resource_tc_tsf_operate_container_group.md | 10 + .../tsf/resource_tc_tsf_operate_group.md | 10 + .../tsf/resource_tc_tsf_path_rewrite.md | 21 + .../tsf/resource_tc_tsf_release_api_group.md | 9 + tencentcloud/tsf/resource_tc_tsf_task.md | 34 + .../tsf/resource_tc_tsf_unit_namespace.md | 19 + tencentcloud/tsf/resource_tc_tsf_unit_rule.md | 33 + ...od_adaptive_dynamic_streaming_templates.md | 51 + ...ta_source_tc_vod_image_sprite_templates.md | 23 + .../data_source_tc_vod_procedure_templates.md | 29 + ...c_vod_snapshot_by_time_offset_templates.md | 20 + ...data_source_tc_vod_super_player_configs.md | 30 + ...vod_adaptive_dynamic_streaming_template.md | 54 + .../resource_tc_vod_image_sprite_template.md | 26 + .../vod/resource_tc_vod_procedure_template.md | 96 + ...tc_vod_snapshot_by_time_offset_template.md | 23 + .../vod/resource_tc_vod_sub_application.md | 19 + .../resource_tc_vod_super_player_config.md | 87 + .../data_source_tc_address_template_groups.md | 9 + .../vpc/data_source_tc_address_templates.md | 9 + tencentcloud/vpc/data_source_tc_dnats.md | 20 + tencentcloud/vpc/data_source_tc_enis.md | 9 + .../data_source_tc_ha_vip_eip_attachments.md | 10 + tencentcloud/vpc/data_source_tc_ha_vips.md | 13 + .../vpc/data_source_tc_nat_dc_route.md | 10 + .../vpc/data_source_tc_nat_gateway_snats.md | 13 + .../vpc/data_source_tc_nat_gateways.md | 11 + tencentcloud/vpc/data_source_tc_nats.md | 25 + ...data_source_tc_protocol_template_groups.md | 9 + .../vpc/data_source_tc_protocol_templates.md | 9 + .../vpc/data_source_tc_route_table.md | 23 + .../vpc/data_source_tc_security_group.md | 11 + .../vpc/data_source_tc_security_groups.md | 9 + tencentcloud/vpc/data_source_tc_subnet.md | 31 + tencentcloud/vpc/data_source_tc_vpc.md | 22 + .../data_source_tc_vpc_account_attributes.md | 7 + tencentcloud/vpc/data_source_tc_vpc_acls.md | 17 + ...rce_tc_vpc_bandwidth_package_bill_usage.md | 9 + ...a_source_tc_vpc_bandwidth_package_quota.md | 8 + ...ta_source_tc_vpc_classic_link_instances.md | 12 + .../vpc/data_source_tc_vpc_cvm_instances.md | 12 + ...urce_tc_vpc_gateway_flow_monitor_detail.md | 12 + .../data_source_tc_vpc_gateway_flow_qos.md | 9 + .../vpc/data_source_tc_vpc_instances.md | 18 + tencentcloud/vpc/data_source_tc_vpc_limits.md | 9 + ...ta_source_tc_vpc_net_detect_state_check.md | 15 + .../data_source_tc_vpc_net_detect_states.md | 9 + ...a_source_tc_vpc_network_interface_limit.md | 9 + ...data_source_tc_vpc_private_ip_addresses.md | 11 + .../vpc/data_source_tc_vpc_product_quota.md | 9 + .../data_source_tc_vpc_resource_dashboard.md | 9 + .../vpc/data_source_tc_vpc_route_conflicts.md | 10 + .../vpc/data_source_tc_vpc_route_tables.md | 40 + ...ata_source_tc_vpc_security_group_limits.md | 7 + ...source_tc_vpc_security_group_references.md | 9 + ..._source_tc_vpc_sg_snapshot_file_content.md | 11 + .../vpc/data_source_tc_vpc_snapshot_files.md | 12 + ...source_tc_vpc_subnet_resource_dashboard.md | 9 + .../vpc/data_source_tc_vpc_subnets.md | 38 + .../vpc/data_source_tc_vpc_template_limits.md | 7 + .../vpc/data_source_tc_vpc_used_ip_address.md | 9 + .../vpc/resource_tc_address_template.md | 18 + .../vpc/resource_tc_address_template_group.md | 18 + tencentcloud/vpc/resource_tc_dnat.md | 89 + tencentcloud/vpc/resource_tc_eni.md | 62 + .../vpc/resource_tc_eni_attachment.md | 69 + .../vpc/resource_tc_eni_sg_attachment.md | 68 + tencentcloud/vpc/resource_tc_ha_vip.md | 20 + .../vpc/resource_tc_ha_vip_eip_attachment.md | 18 + .../vpc/resource_tc_ipv6_address_bandwidth.md | 12 + tencentcloud/vpc/resource_tc_nat_gateway.md | 79 + .../vpc/resource_tc_nat_gateway_snat.md | 128 + .../resource_tc_nat_refresh_nat_dc_route.md | 51 + .../vpc/resource_tc_protocol_template.md | 18 + .../resource_tc_protocol_template_group.md | 18 + tencentcloud/vpc/resource_tc_route_entry.md | 33 + tencentcloud/vpc/resource_tc_route_table.md | 23 + .../resource_tc_route_table_association.md | 18 + .../vpc/resource_tc_route_table_entry.md | 43 + .../vpc/resource_tc_security_group.md | 34 + .../resource_tc_security_group_lite_rule.md | 40 + .../vpc/resource_tc_security_group_rule.md | 51 + .../resource_tc_security_group_rule_set.md | 98 + tencentcloud/vpc/resource_tc_subnet.md | 28 + tencentcloud/vpc/resource_tc_vpc.md | 41 + tencentcloud/vpc/resource_tc_vpc_acl.md | 31 + .../vpc/resource_tc_vpc_acl_attachment.md | 45 + .../vpc/resource_tc_vpc_bandwidth_package.md | 51 + ...rce_tc_vpc_bandwidth_package_attachment.md | 47 + tencentcloud/vpc/resource_tc_vpc_dhcp_ip.md | 34 + .../vpc/resource_tc_vpc_ipv6_cidr_block.md | 22 + .../vpc/resource_tc_vpc_ipv6_eni_address.md | 41 + .../resource_tc_vpc_ipv6_subnet_cidr_block.md | 40 + .../vpc/resource_tc_vpc_local_gateway.md | 24 + .../vpc/resource_tc_vpc_net_detect.md | 216 ++ ...esource_tc_vpc_resume_snapshot_instance.md | 57 + .../vpc/resource_tc_vpc_snapshot_policy.md | 40 + ...ource_tc_vpc_snapshot_policy_attachment.md | 56 + .../resource_tc_vpc_snapshot_policy_config.md | 45 + .../vpc/resource_tc_vpc_traffic_package.md | 17 + .../vpn/data_source_tc_vpn_connections.md | 16 + ..._source_tc_vpn_customer_gateway_vendors.md | 7 + .../data_source_tc_vpn_customer_gateways.md | 14 + ...a_source_tc_vpn_default_health_check_ip.md | 9 + .../vpn/data_source_tc_vpn_gateway_routes.md | 15 + .../vpn/data_source_tc_vpn_gateways.md | 16 + .../vpn/resource_tc_vpn_connection.md | 43 + .../vpn/resource_tc_vpn_connection_reset.md | 10 + .../vpn/resource_tc_vpn_customer_gateway.md | 22 + ...customer_gateway_configuration_download.md | 16 + tencentcloud/vpn/resource_tc_vpn_gateway.md | 86 + .../vpn/resource_tc_vpn_gateway_ccn_routes.md | 21 + .../vpn/resource_tc_vpn_gateway_route.md | 22 + ...resource_tc_vpn_gateway_ssl_client_cert.md | 18 + .../vpn/resource_tc_vpn_ssl_client.md | 19 + .../vpn/resource_tc_vpn_ssl_server.md | 27 + ...data_source_tc_waf_attack_log_histogram.md | 25 + .../waf/data_source_tc_waf_attack_log_list.md | 31 + .../waf/data_source_tc_waf_attack_overview.md | 25 + .../data_source_tc_waf_attack_total_count.md | 25 + .../waf/data_source_tc_waf_ciphers.md | 7 + .../waf/data_source_tc_waf_domains.md | 18 + .../waf/data_source_tc_waf_find_domains.md | 20 + .../data_source_tc_waf_instance_qps_limit.md | 9 + .../waf/data_source_tc_waf_peak_points.md | 25 + tencentcloud/waf/data_source_tc_waf_ports.md | 16 + .../waf/data_source_tc_waf_tls_versions.md | 7 + .../data_source_tc_waf_user_clb_regions.md | 7 + .../waf/data_source_tc_waf_user_domains.md | 7 + tencentcloud/waf/resource_tc_waf_anti_fake.md | 22 + .../waf/resource_tc_waf_anti_info_leak.md | 25 + .../waf/resource_tc_waf_auto_deny_rules.md | 20 + tencentcloud/waf/resource_tc_waf_cc.md | 21 + .../waf/resource_tc_waf_cc_auto_status.md | 18 + .../waf/resource_tc_waf_cc_session.md | 25 + .../waf/resource_tc_waf_clb_domain.md | 108 + .../waf/resource_tc_waf_clb_instance.md | 45 + .../waf/resource_tc_waf_custom_rule.md | 31 + .../waf/resource_tc_waf_custom_white_rule.md | 30 + .../waf/resource_tc_waf_ip_access_control.md | 39 + .../resource_tc_waf_modify_access_period.md | 10 + .../waf/resource_tc_waf_module_status.md | 23 + .../waf/resource_tc_waf_protection_mode.md | 12 + .../waf/resource_tc_waf_saas_domain.md | 174 ++ .../waf/resource_tc_waf_saas_instance.md | 47 + tencentcloud/waf/resource_tc_waf_web_shell.md | 18 + .../data_source_tc_wedata_data_source_list.md | 25 + ...urce_tc_wedata_data_source_without_info.md | 17 + .../data_source_tc_wedata_rule_templates.md | 12 + .../wedata/resource_tc_wedata_baseline.md | 54 + .../wedata/resource_tc_wedata_datasource.md | 28 + .../wedata/resource_tc_wedata_dq_rule.md | 37 + .../wedata/resource_tc_wedata_function.md | 27 + ...urce_tc_wedata_integration_offline_task.md | 58 + ...rce_tc_wedata_integration_realtime_task.md | 61 + ...esource_tc_wedata_integration_task_node.md | 66 + .../wedata/resource_tc_wedata_resource.md | 22 + .../resource_tc_wedata_rule_template.md | 26 + .../wedata/resource_tc_wedata_script.md | 21 + ...antiddos_basic_device_status.html.markdown | 2 +- .../d/antiddos_bgp_biz_trend.html.markdown | 2 +- .../d/antiddos_list_listener.html.markdown | 2 +- ...tiddos_overview_attack_trend.html.markdown | 2 +- .../d/api_gateway_api_app_api.html.markdown | 2 +- .../api_gateway_api_app_service.html.markdown | 2 +- .../docs/d/api_gateway_api_apps.html.markdown | 2 +- .../docs/d/api_gateway_api_docs.html.markdown | 2 +- .../docs/d/api_gateway_api_keys.html.markdown | 2 +- .../d/api_gateway_api_plugins.html.markdown | 2 +- .../api_gateway_api_usage_plans.html.markdown | 2 +- website/docs/d/api_gateway_apis.html.markdown | 2 +- ...gateway_bind_api_apps_status.html.markdown | 2 +- ...api_gateway_customer_domains.html.markdown | 2 +- .../d/api_gateway_ip_strategies.html.markdown | 2 +- .../docs/d/api_gateway_plugins.html.markdown | 2 +- ...way_service_environment_list.html.markdown | 2 +- ...way_service_release_versions.html.markdown | 2 +- .../docs/d/api_gateway_services.html.markdown | 2 +- .../api_gateway_throttling_apis.html.markdown | 2 +- ..._gateway_throttling_services.html.markdown | 2 +- .../d/api_gateway_upstreams.html.markdown | 2 +- ...eway_usage_plan_environments.html.markdown | 2 +- .../d/api_gateway_usage_plans.html.markdown | 2 +- .../container_cluster_instances.html.markdown | 2 +- .../docs/d/container_clusters.html.markdown | 2 +- website/docs/d/ssl_certificates.html.markdown | 2 +- .../d/ssl_describe_certificate.html.markdown | 2 +- .../d/ssl_describe_companies.html.markdown | 2 +- ...st_api_gateway_instance_list.html.markdown | 2 +- ...cribe_host_cdn_instance_list.html.markdown | 2 +- ...cribe_host_clb_instance_list.html.markdown | 2 +- ...cribe_host_cos_instance_list.html.markdown | 2 +- ...ribe_host_ddos_instance_list.html.markdown | 2 +- ..._describe_host_deploy_record.html.markdown | 2 +- ...be_host_deploy_record_detail.html.markdown | 2 +- ...ost_lighthouse_instance_list.html.markdown | 2 +- ...ribe_host_live_instance_list.html.markdown | 2 +- ...cribe_host_teo_instance_list.html.markdown | 2 +- ...cribe_host_tke_instance_list.html.markdown | 2 +- ..._describe_host_update_record.html.markdown | 2 +- ...be_host_update_record_detail.html.markdown | 2 +- ...cribe_host_vod_instance_list.html.markdown | 2 +- ...cribe_host_waf_instance_list.html.markdown | 2 +- .../ssl_describe_manager_detail.html.markdown | 2 +- .../d/ssl_describe_managers.html.markdown | 2 +- website/docs/d/tcmq_queue.html.markdown | 2 +- website/docs/d/tcmq_subscribe.html.markdown | 2 +- website/docs/d/tcmq_topic.html.markdown | 2 +- website/docs/r/api_gateway_api.html.markdown | 2 +- .../docs/r/api_gateway_api_app.html.markdown | 2 +- ...i_gateway_api_app_attachment.html.markdown | 2 +- .../docs/r/api_gateway_api_doc.html.markdown | 2 +- .../docs/r/api_gateway_api_key.html.markdown | 2 +- ...i_gateway_api_key_attachment.html.markdown | 2 +- .../r/api_gateway_custom_domain.html.markdown | 2 +- .../api_gateway_import_open_api.html.markdown | 2 +- .../r/api_gateway_ip_strategy.html.markdown | 2 +- .../docs/r/api_gateway_plugin.html.markdown | 2 +- ...pi_gateway_plugin_attachment.html.markdown | 2 +- .../docs/r/api_gateway_service.html.markdown | 2 +- .../api_gateway_service_release.html.markdown | 2 +- ..._gateway_strategy_attachment.html.markdown | 2 +- ...i_gateway_update_api_app_key.html.markdown | 2 +- .../docs/r/api_gateway_upstream.html.markdown | 2 +- .../r/api_gateway_usage_plan.html.markdown | 2 +- ...ateway_usage_plan_attachment.html.markdown | 2 +- .../docs/r/container_cluster.html.markdown | 2 +- .../container_cluster_instance.html.markdown | 2 +- website/docs/r/ssl_certificate.html.markdown | 2 +- ..._certificate_chain_operation.html.markdown | 2 +- ...mplete_certificate_operation.html.markdown | 2 +- ...rtificate_instance_operation.html.markdown | 2 +- ...icate_record_retry_operation.html.markdown | 2 +- ...te_record_rollback_operation.html.markdown | 2 +- ...wnload_certificate_operation.html.markdown | 2 +- .../docs/r/ssl_free_certificate.html.markdown | 2 +- .../docs/r/ssl_pay_certificate.html.markdown | 2 +- ...eplace_certificate_operation.html.markdown | 2 +- ...revoke_certificate_operation.html.markdown | 2 +- ...rtificate_instance_operation.html.markdown | 2 +- ...icate_record_retry_operation.html.markdown | 2 +- ...te_record_rollback_operation.html.markdown | 2 +- ...load_revoke_letter_operation.html.markdown | 2 +- website/docs/r/tcmq_queue.html.markdown | 2 +- website/docs/r/tcmq_subscribe.html.markdown | 2 +- website/docs/r/tcmq_topic.html.markdown | 2 +- website/tencentcloud.erb | 62 +- 1718 files changed, 48651 insertions(+), 139 deletions(-) create mode 100644 tencentcloud/antiddos/data_source_tc_antiddos_basic_device_status.md create mode 100644 tencentcloud/antiddos/data_source_tc_antiddos_bgp_biz_trend.md create mode 100644 tencentcloud/antiddos/data_source_tc_antiddos_list_listener.md create mode 100644 tencentcloud/antiddos/data_source_tc_antiddos_overview_attack_trend.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_app_api.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_app_service.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_apps.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_docs.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_keys.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_plugins.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_api_usage_plans.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_apis.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_bind_api_apps_status.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_customer_domains.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_ip_strategies.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_plugins.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_service_environment_list.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_service_release_versions.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_services.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_throttling_apis.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_throttling_services.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_upstreams.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_usage_plan_environments.md create mode 100644 tencentcloud/apigateway/data_source_tc_api_gateway_usage_plans.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_api.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_api_app.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_api_app_attachment.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_api_doc.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_api_key.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_api_key_attachment.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_custom_domain.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_import_open_api.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_ip_strategy.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_plugin.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_plugin_attachment.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_service.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_service_release.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_strategy_attachment.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_update_api_app_key.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_upstream.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_usage_plan.md create mode 100644 tencentcloud/apigateway/resource_tc_api_gateway_usage_plan_attachment.md create mode 100644 tencentcloud/apm/resource_tc_apm_instance.md create mode 100644 tencentcloud/as/data_source_tc_as_advices.md create mode 100644 tencentcloud/as/data_source_tc_as_instances.md create mode 100644 tencentcloud/as/data_source_tc_as_last_activity.md create mode 100644 tencentcloud/as/data_source_tc_as_limits.md create mode 100644 tencentcloud/as/data_source_tc_as_scaling_configs.md create mode 100644 tencentcloud/as/data_source_tc_as_scaling_groups.md create mode 100644 tencentcloud/as/data_source_tc_as_scaling_policies.md create mode 100644 tencentcloud/as/resource_tc_as_attachment.md create mode 100644 tencentcloud/as/resource_tc_as_complete_lifecycle.md create mode 100644 tencentcloud/as/resource_tc_as_execute_scaling_policy.md create mode 100644 tencentcloud/as/resource_tc_as_lifecycle_hook.md create mode 100644 tencentcloud/as/resource_tc_as_notification.md create mode 100644 tencentcloud/as/resource_tc_as_protect_instances.md create mode 100644 tencentcloud/as/resource_tc_as_remove_instances.md create mode 100644 tencentcloud/as/resource_tc_as_scale_in_instances.md create mode 100644 tencentcloud/as/resource_tc_as_scale_out_instances.md create mode 100644 tencentcloud/as/resource_tc_as_scaling_config.md create mode 100644 tencentcloud/as/resource_tc_as_scaling_group.md create mode 100644 tencentcloud/as/resource_tc_as_scaling_group_status.md create mode 100644 tencentcloud/as/resource_tc_as_scaling_policy.md create mode 100644 tencentcloud/as/resource_tc_as_schedule.md create mode 100644 tencentcloud/as/resource_tc_as_start_instances.md create mode 100644 tencentcloud/as/resource_tc_as_stop_instances.md create mode 100644 tencentcloud/audit/data_source_tc_audit_cos_regions.md create mode 100644 tencentcloud/audit/data_source_tc_audit_key_alias.md create mode 100644 tencentcloud/audit/data_source_tc_audits.md create mode 100644 tencentcloud/audit/resource_tc_audit.md create mode 100644 tencentcloud/audit/resource_tc_audit_track.md create mode 100644 tencentcloud/bh/resource_tc_dasb_acl.md create mode 100644 tencentcloud/bh/resource_tc_dasb_bind_device_account_password.md create mode 100644 tencentcloud/bh/resource_tc_dasb_bind_device_account_private_key.md create mode 100644 tencentcloud/bh/resource_tc_dasb_bind_device_resource.md create mode 100644 tencentcloud/bh/resource_tc_dasb_cmd_template.md create mode 100644 tencentcloud/bh/resource_tc_dasb_device.md create mode 100644 tencentcloud/bh/resource_tc_dasb_device_account.md create mode 100644 tencentcloud/bh/resource_tc_dasb_device_group.md create mode 100644 tencentcloud/bh/resource_tc_dasb_device_group_members.md create mode 100644 tencentcloud/bh/resource_tc_dasb_reset_user.md create mode 100644 tencentcloud/bh/resource_tc_dasb_resource.md create mode 100644 tencentcloud/bh/resource_tc_dasb_user.md create mode 100644 tencentcloud/bh/resource_tc_dasb_user_group.md create mode 100644 tencentcloud/bh/resource_tc_dasb_user_group_members.md create mode 100644 tencentcloud/bi/data_source_tc_bi_project.md create mode 100644 tencentcloud/bi/data_source_tc_bi_user_project.md create mode 100644 tencentcloud/bi/resource_tc_bi_datasource.md create mode 100644 tencentcloud/bi/resource_tc_bi_datasource_cloud.md create mode 100644 tencentcloud/bi/resource_tc_bi_embed_interval_apply.md create mode 100644 tencentcloud/bi/resource_tc_bi_embed_token_apply.md create mode 100644 tencentcloud/bi/resource_tc_bi_project.md create mode 100644 tencentcloud/bi/resource_tc_bi_project_user_role.md create mode 100644 tencentcloud/bi/resource_tc_bi_user_role.md create mode 100644 tencentcloud/cam/data_source_tc_cam_account_summary.md create mode 100644 tencentcloud/cam/data_source_tc_cam_group_memberships.md create mode 100644 tencentcloud/cam/data_source_tc_cam_group_policy_attachments.md create mode 100644 tencentcloud/cam/data_source_tc_cam_group_user_account.md create mode 100644 tencentcloud/cam/data_source_tc_cam_groups.md create mode 100644 tencentcloud/cam/data_source_tc_cam_list_entities_for_policy.md create mode 100644 tencentcloud/cam/data_source_tc_cam_oidc_config.md create mode 100644 tencentcloud/cam/data_source_tc_cam_policies.md create mode 100644 tencentcloud/cam/data_source_tc_cam_policy_granting_service_access.md create mode 100644 tencentcloud/cam/data_source_tc_cam_role_policy_attachments.md create mode 100644 tencentcloud/cam/data_source_tc_cam_roles.md create mode 100644 tencentcloud/cam/data_source_tc_cam_saml_providers.md create mode 100644 tencentcloud/cam/data_source_tc_cam_secret_last_used_time.md create mode 100644 tencentcloud/cam/data_source_tc_cam_user_policy_attachments.md create mode 100644 tencentcloud/cam/data_source_tc_cam_users.md create mode 100644 tencentcloud/cam/data_source_tc_user_info.md create mode 100644 tencentcloud/cam/resource_tc_cam_access_key.md create mode 100644 tencentcloud/cam/resource_tc_cam_group.md create mode 100644 tencentcloud/cam/resource_tc_cam_group_membership.md create mode 100644 tencentcloud/cam/resource_tc_cam_group_policy_attachment.md create mode 100644 tencentcloud/cam/resource_tc_cam_mfa_flag.md create mode 100644 tencentcloud/cam/resource_tc_cam_oidc_sso.md create mode 100644 tencentcloud/cam/resource_tc_cam_policy.md create mode 100644 tencentcloud/cam/resource_tc_cam_policy_by_name.md create mode 100644 tencentcloud/cam/resource_tc_cam_policy_version.md create mode 100644 tencentcloud/cam/resource_tc_cam_role.md create mode 100644 tencentcloud/cam/resource_tc_cam_role_by_name.md create mode 100644 tencentcloud/cam/resource_tc_cam_role_permission_boundary_attachment.md create mode 100644 tencentcloud/cam/resource_tc_cam_role_policy_attachment.md create mode 100644 tencentcloud/cam/resource_tc_cam_role_policy_attachment_by_name.md create mode 100644 tencentcloud/cam/resource_tc_cam_role_sso.md create mode 100644 tencentcloud/cam/resource_tc_cam_saml_provider.md create mode 100644 tencentcloud/cam/resource_tc_cam_service_linked_role.md create mode 100644 tencentcloud/cam/resource_tc_cam_set_policy_version_config.md create mode 100644 tencentcloud/cam/resource_tc_cam_tag_role_attachment.md create mode 100644 tencentcloud/cam/resource_tc_cam_user.md create mode 100644 tencentcloud/cam/resource_tc_cam_user_permission_boundary_attachment.md create mode 100644 tencentcloud/cam/resource_tc_cam_user_policy_attachment.md create mode 100644 tencentcloud/cam/resource_tc_cam_user_saml_config.md create mode 100644 tencentcloud/cat/data_source_tc_cat_metric_data.md create mode 100644 tencentcloud/cat/data_source_tc_cat_node.md create mode 100644 tencentcloud/cat/data_source_tc_cat_probe_data.md create mode 100644 tencentcloud/cat/resource_tc_cat_task_set.md create mode 100644 tencentcloud/cbs/data_source_tc_cbs_snapshot_policies.md create mode 100644 tencentcloud/cbs/data_source_tc_cbs_snapshots.md create mode 100644 tencentcloud/cbs/data_source_tc_cbs_storages.md create mode 100644 tencentcloud/cbs/data_source_tc_cbs_storages_set.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_disk_backup.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_disk_backup_rollback_operation.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_snapshot.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_snapshot_policy.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_snapshot_policy_attachment.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_snapshot_share_permission.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_storage.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_storage_attachment.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_storage_set.md create mode 100644 tencentcloud/cbs/resource_tc_cbs_storage_set_attachment.md create mode 100644 tencentcloud/ccn/data_source_tc_ccn_bandwidth_limits.md create mode 100644 tencentcloud/ccn/data_source_tc_ccn_cross_border_compliance.md create mode 100644 tencentcloud/ccn/data_source_tc_ccn_cross_border_flow_monitor.md create mode 100644 tencentcloud/ccn/data_source_tc_ccn_cross_border_region_bandwidth_limits.md create mode 100644 tencentcloud/ccn/data_source_tc_ccn_instances.md create mode 100644 tencentcloud/ccn/data_source_tc_ccn_tenant_instances.md create mode 100644 tencentcloud/ccn/resource_tc_ccn.md create mode 100644 tencentcloud/ccn/resource_tc_ccn_attachment.md create mode 100644 tencentcloud/ccn/resource_tc_ccn_bandwidth_limit.md create mode 100644 tencentcloud/ccn/resource_tc_ccn_instances_accept_attach.md create mode 100644 tencentcloud/ccn/resource_tc_ccn_instances_reject_attach.md create mode 100644 tencentcloud/ccn/resource_tc_ccn_instances_reset_attach.md create mode 100644 tencentcloud/ccn/resource_tc_ccn_routes.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_backup_list.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_backup_overview.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_backup_summaries.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_bin_log.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_binlog_backup_overview.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_clone_list.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_data_backup_overview.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_databases.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_db_features.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_default_params.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_error_log.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_inst_tables.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_instance.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_instance_charset.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_instance_info.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_instance_param_record.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_instance_reboot_time.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_parameter_list.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_project_security_group.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_ro_min_scale.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_rollback_range_time.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_slow_log.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_slow_log_data.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_supported_privileges.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_switch_record.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_user_task.md create mode 100644 tencentcloud/cdb/data_source_tc_mysql_zone_config.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_account.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_account_privilege.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_audit_log_file.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_backup_download_restriction.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_backup_encryption_status.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_backup_policy.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_database.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_deploy_group.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_dr_instance_to_mater.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_instance.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_instance_encryption_operation.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_isolate_instance.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_local_binlog_config.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_param_template.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_password_complexity.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_privilege.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_proxy.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_readonly_instance.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_reload_balance_proxy_node.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_remote_backup_config.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_renew_db_instance_operation.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_reset_root_account.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_restart_db_instances_operation.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_ro_group.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_ro_group_load_operation.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_ro_instance_ip.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_ro_start_replication.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_ro_stop_replication.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_rollback.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_rollback_stop.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_security_groups_attachment.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_switch_for_upgrade.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_switch_master_slave_operation.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_time_window.md create mode 100644 tencentcloud/cdb/resource_tc_mysql_verify_root_account.md create mode 100644 tencentcloud/cdh/data_source_tc_cdh_instances.md create mode 100644 tencentcloud/cdh/resource_tc_cdh_instance.md create mode 100644 tencentcloud/cdn/data_source_tc_cdn_domain_verifier.md create mode 100644 tencentcloud/cdn/data_source_tc_cdn_domains.md create mode 100644 tencentcloud/cdn/resource_tc_cdn_domain.md create mode 100644 tencentcloud/cdn/resource_tc_cdn_url_purge.md create mode 100644 tencentcloud/cdn/resource_tc_cdn_url_push.md create mode 100644 tencentcloud/cdwch/data_source_tc_clickhouse_backup_job_detail.md create mode 100644 tencentcloud/cdwch/data_source_tc_clickhouse_backup_jobs.md create mode 100644 tencentcloud/cdwch/data_source_tc_clickhouse_backup_tables.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_account.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_account_permission.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_backup.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_backup_strategy.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_delete_backup_data.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_instance.md create mode 100644 tencentcloud/cdwch/resource_tc_clickhouse_recover_backup_job.md create mode 100644 tencentcloud/cdwpg/resource_tc_cdwpg_instance.md create mode 100644 tencentcloud/cfs/data_source_tc_cfs_access_groups.md create mode 100644 tencentcloud/cfs/data_source_tc_cfs_access_rules.md create mode 100644 tencentcloud/cfs/data_source_tc_cfs_available_zone.md create mode 100644 tencentcloud/cfs/data_source_tc_cfs_file_system_clients.md create mode 100644 tencentcloud/cfs/data_source_tc_cfs_file_systems.md create mode 100644 tencentcloud/cfs/data_source_tc_cfs_mount_targets.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_access_group.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_access_rule.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_auto_snapshot_policy_attachment.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_file_system.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_sign_up_cfs_service.md create mode 100644 tencentcloud/cfs/resource_tc_cfs_snapshot.md create mode 100644 tencentcloud/cfw/data_source_tc_cfw_edge_fw_switches.md create mode 100644 tencentcloud/cfw/data_source_tc_cfw_nat_fw_switches.md create mode 100644 tencentcloud/cfw/data_source_tc_cfw_vpc_fw_switches.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_address_template.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_block_ignore.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_edge_firewall_switch.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_edge_policy.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_nat_firewall_switch.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_nat_instance.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_nat_policy.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_sync_asset.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_sync_route.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_vpc_firewall_switch.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_vpc_instance.md create mode 100644 tencentcloud/cfw/resource_tc_cfw_vpc_policy.md create mode 100644 tencentcloud/chdfs/data_source_tc_chdfs_access_groups.md create mode 100644 tencentcloud/chdfs/data_source_tc_chdfs_file_systems.md create mode 100644 tencentcloud/chdfs/data_source_tc_chdfs_mount_points.md create mode 100644 tencentcloud/chdfs/resource_tc_chdfs_access_group.md create mode 100644 tencentcloud/chdfs/resource_tc_chdfs_access_rule.md create mode 100644 tencentcloud/chdfs/resource_tc_chdfs_file_system.md create mode 100644 tencentcloud/chdfs/resource_tc_chdfs_life_cycle_rule.md create mode 100644 tencentcloud/chdfs/resource_tc_chdfs_mount_point.md create mode 100644 tencentcloud/chdfs/resource_tc_chdfs_mount_point_attachment.md create mode 100644 tencentcloud/ci/resource_tc_ci_bucket_attachment.md create mode 100644 tencentcloud/ci/resource_tc_ci_bucket_pic_style.md create mode 100644 tencentcloud/ci/resource_tc_ci_guetzli.md create mode 100644 tencentcloud/ci/resource_tc_ci_hot_link.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_animation_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_concat_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_pic_process_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_smart_cover_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_snapshot_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_speech_recognition_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_super_resolution_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_transcode_pro_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_transcode_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_tts_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_video_montage_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_video_process_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_voice_separate_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_media_watermark_template.md create mode 100644 tencentcloud/ci/resource_tc_ci_original_image_protection.md create mode 100644 tencentcloud/ciam/resource_tc_ciam_user_group.md create mode 100644 tencentcloud/ciam/resource_tc_ciam_user_store.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_acls.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_connect_resource.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_datahub_group_offsets.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_datahub_task.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_datahub_topic.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_group.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_group_info.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_group_offsets.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_instances.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_region.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_task_status.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_topic_flow_ranking.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_topic_produce_connection.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_topic_subscribe_group.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_topic_sync_replica.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_topics.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_users.md create mode 100644 tencentcloud/ckafka/data_source_tc_ckafka_zone.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_acl.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_acl_rule.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_connect_resource.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_consumer_group.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_consumer_group_modify_offset.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_datahub_task.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_datahub_topic.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_instance.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_renew_instance.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_route.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_topic.md create mode 100644 tencentcloud/ckafka/resource_tc_ckafka_user.md create mode 100644 tencentcloud/clb/data_source_tc_clb_attachments.md create mode 100644 tencentcloud/clb/data_source_tc_clb_cluster_resources.md create mode 100644 tencentcloud/clb/data_source_tc_clb_cross_targets.md create mode 100644 tencentcloud/clb/data_source_tc_clb_exclusive_clusters.md create mode 100644 tencentcloud/clb/data_source_tc_clb_idle_instances.md create mode 100644 tencentcloud/clb/data_source_tc_clb_instance_by_cert_id.md create mode 100644 tencentcloud/clb/data_source_tc_clb_instance_detail.md create mode 100644 tencentcloud/clb/data_source_tc_clb_instance_traffic.md create mode 100644 tencentcloud/clb/data_source_tc_clb_instances.md create mode 100644 tencentcloud/clb/data_source_tc_clb_listener_rules.md create mode 100644 tencentcloud/clb/data_source_tc_clb_listeners.md create mode 100644 tencentcloud/clb/data_source_tc_clb_listeners_by_targets.md create mode 100644 tencentcloud/clb/data_source_tc_clb_redirections.md create mode 100644 tencentcloud/clb/data_source_tc_clb_resources.md create mode 100644 tencentcloud/clb/data_source_tc_clb_target_group_list.md create mode 100644 tencentcloud/clb/data_source_tc_clb_target_groups.md create mode 100644 tencentcloud/clb/data_source_tc_clb_target_health.md create mode 100644 tencentcloud/clb/resource_tc_alb_server_attachment.md create mode 100644 tencentcloud/clb/resource_tc_clb_attachment.md create mode 100644 tencentcloud/clb/resource_tc_clb_customized_config.md create mode 100644 tencentcloud/clb/resource_tc_clb_function_targets_attachment.md create mode 100644 tencentcloud/clb/resource_tc_clb_instance.md create mode 100644 tencentcloud/clb/resource_tc_clb_instance_mix_ip_target_config.md create mode 100644 tencentcloud/clb/resource_tc_clb_instance_sla_config.md create mode 100644 tencentcloud/clb/resource_tc_clb_listener.md create mode 100644 tencentcloud/clb/resource_tc_clb_listener_rule.md create mode 100644 tencentcloud/clb/resource_tc_clb_log_set.md create mode 100644 tencentcloud/clb/resource_tc_clb_log_topic.md create mode 100644 tencentcloud/clb/resource_tc_clb_redirection.md create mode 100644 tencentcloud/clb/resource_tc_clb_replace_cert_for_lbs.md create mode 100644 tencentcloud/clb/resource_tc_clb_security_group_attachment.md create mode 100644 tencentcloud/clb/resource_tc_clb_snat_ip.md create mode 100644 tencentcloud/clb/resource_tc_clb_target_group.md create mode 100644 tencentcloud/clb/resource_tc_clb_target_group_attachment.md create mode 100644 tencentcloud/clb/resource_tc_clb_target_group_instance_attachment.md create mode 100644 tencentcloud/clb/resource_tc_lb.md create mode 100644 tencentcloud/cls/data_source_tc_cls_machine_group_configs.md create mode 100644 tencentcloud/cls/data_source_tc_cls_machines.md create mode 100644 tencentcloud/cls/data_source_tc_cls_shipper_tasks.md create mode 100644 tencentcloud/cls/resource_tc_cls_alarm.md create mode 100644 tencentcloud/cls/resource_tc_cls_alarm_notice.md create mode 100644 tencentcloud/cls/resource_tc_cls_ckafka_consumer.md create mode 100644 tencentcloud/cls/resource_tc_cls_config.md create mode 100644 tencentcloud/cls/resource_tc_cls_config_attachment.md create mode 100644 tencentcloud/cls/resource_tc_cls_config_extra.md create mode 100644 tencentcloud/cls/resource_tc_cls_cos_recharge.md create mode 100644 tencentcloud/cls/resource_tc_cls_cos_shipper.md create mode 100644 tencentcloud/cls/resource_tc_cls_data_transform.md create mode 100644 tencentcloud/cls/resource_tc_cls_export.md create mode 100644 tencentcloud/cls/resource_tc_cls_index.md create mode 100644 tencentcloud/cls/resource_tc_cls_kafka_recharge.md create mode 100644 tencentcloud/cls/resource_tc_cls_logset.md create mode 100644 tencentcloud/cls/resource_tc_cls_machine_group.md create mode 100644 tencentcloud/cls/resource_tc_cls_scheduled_sql.md create mode 100644 tencentcloud/cls/resource_tc_cls_topic.md create mode 100644 tencentcloud/common/data_source_tc_availability_regions.md create mode 100644 tencentcloud/common/data_source_tc_availability_zones.md create mode 100644 tencentcloud/common/data_source_tc_availability_zones_by_product.md create mode 100644 tencentcloud/cos/data_source_tc_cos_batchs.md create mode 100644 tencentcloud/cos/data_source_tc_cos_bucket_inventorys.md create mode 100644 tencentcloud/cos/data_source_tc_cos_bucket_multipart_uploads.md create mode 100644 tencentcloud/cos/data_source_tc_cos_bucket_object.md create mode 100644 tencentcloud/cos/data_source_tc_cos_buckets.md create mode 100644 tencentcloud/cos/resource_tc_cos_batch.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_domain_certificate_attachment.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_generate_inventory_immediately_operation.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_inventory.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_object.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_policy.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_referer.md create mode 100644 tencentcloud/cos/resource_tc_cos_bucket_version.md create mode 100644 tencentcloud/cos/resource_tc_cos_object_abort_multipart_upload_operation.md create mode 100644 tencentcloud/cos/resource_tc_cos_object_copy_operation.md create mode 100644 tencentcloud/cos/resource_tc_cos_object_download_operation.md create mode 100644 tencentcloud/cos/resource_tc_cos_object_restore_operation.md create mode 100644 tencentcloud/crs/data_source_tc_redis_backup.md create mode 100644 tencentcloud/crs/data_source_tc_redis_backup_download_info.md create mode 100644 tencentcloud/crs/data_source_tc_redis_instance_node_info.md create mode 100644 tencentcloud/crs/data_source_tc_redis_instance_shards.md create mode 100644 tencentcloud/crs/data_source_tc_redis_instance_task_list.md create mode 100644 tencentcloud/crs/data_source_tc_redis_instance_zone_info.md create mode 100644 tencentcloud/crs/data_source_tc_redis_instances.md create mode 100644 tencentcloud/crs/data_source_tc_redis_param_records.md create mode 100644 tencentcloud/crs/data_source_tc_redis_zone_config.md create mode 100644 tencentcloud/crs/resource_tc_redis_account.md create mode 100644 tencentcloud/crs/resource_tc_redis_backup_config.md create mode 100644 tencentcloud/crs/resource_tc_redis_backup_download_restriction.md create mode 100644 tencentcloud/crs/resource_tc_redis_backup_operation.md create mode 100644 tencentcloud/crs/resource_tc_redis_clear_instance_operation.md create mode 100644 tencentcloud/crs/resource_tc_redis_connection_config.md create mode 100644 tencentcloud/crs/resource_tc_redis_instance.md create mode 100644 tencentcloud/crs/resource_tc_redis_maintenance_window.md create mode 100644 tencentcloud/crs/resource_tc_redis_param_template.md create mode 100644 tencentcloud/crs/resource_tc_redis_read_only.md create mode 100644 tencentcloud/crs/resource_tc_redis_renew_instance_operation.md create mode 100644 tencentcloud/crs/resource_tc_redis_replica_readonly.md create mode 100644 tencentcloud/crs/resource_tc_redis_replicate_attachment.md create mode 100644 tencentcloud/crs/resource_tc_redis_security_group_attachment.md create mode 100644 tencentcloud/crs/resource_tc_redis_ssl.md create mode 100644 tencentcloud/crs/resource_tc_redis_startup_instance_operation.md create mode 100644 tencentcloud/crs/resource_tc_redis_switch_master.md create mode 100644 tencentcloud/crs/resource_tc_redis_upgrade_cache_version_operation.md create mode 100644 tencentcloud/crs/resource_tc_redis_upgrade_multi_zone_operation.md create mode 100644 tencentcloud/crs/resource_tc_redis_upgrade_proxy_version_operation.md create mode 100644 tencentcloud/css/data_source_tc_css_backup_stream.md create mode 100644 tencentcloud/css/data_source_tc_css_domains.md create mode 100644 tencentcloud/css/data_source_tc_css_monitor_report.md create mode 100644 tencentcloud/css/data_source_tc_css_pad_templates.md create mode 100644 tencentcloud/css/data_source_tc_css_pull_stream_task_status.md create mode 100644 tencentcloud/css/data_source_tc_css_stream_monitor_list.md create mode 100644 tencentcloud/css/data_source_tc_css_time_shift_record_detail.md create mode 100644 tencentcloud/css/data_source_tc_css_time_shift_stream_list.md create mode 100644 tencentcloud/css/data_source_tc_css_watermarks.md create mode 100644 tencentcloud/css/data_source_tc_css_xp2p_detail_info_list.md create mode 100644 tencentcloud/css/resource_tc_css_authenticate_domain_owner_operation.md create mode 100644 tencentcloud/css/resource_tc_css_backup_stream.md create mode 100644 tencentcloud/css/resource_tc_css_callback_rule_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_callback_template.md create mode 100644 tencentcloud/css/resource_tc_css_domain.md create mode 100644 tencentcloud/css/resource_tc_css_domain_referer.md create mode 100644 tencentcloud/css/resource_tc_css_enable_optimal_switching.md create mode 100644 tencentcloud/css/resource_tc_css_live_transcode_rule_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_live_transcode_template.md create mode 100644 tencentcloud/css/resource_tc_css_pad_rule_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_pad_template.md create mode 100644 tencentcloud/css/resource_tc_css_play_auth_key_config.md create mode 100644 tencentcloud/css/resource_tc_css_play_domain_cert_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_pull_stream_task.md create mode 100644 tencentcloud/css/resource_tc_css_pull_stream_task_restart.md create mode 100644 tencentcloud/css/resource_tc_css_push_auth_key_config.md create mode 100644 tencentcloud/css/resource_tc_css_record_rule_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_snapshot_rule_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_snapshot_template.md create mode 100644 tencentcloud/css/resource_tc_css_start_stream_monitor.md create mode 100644 tencentcloud/css/resource_tc_css_stream_monitor.md create mode 100644 tencentcloud/css/resource_tc_css_timeshift_rule_attachment.md create mode 100644 tencentcloud/css/resource_tc_css_timeshift_template.md create mode 100644 tencentcloud/css/resource_tc_css_watermark.md create mode 100644 tencentcloud/css/resource_tc_css_watermark_rule_attachment.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_chc_denied_actions.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_chc_hosts.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_disaster_recover_group_quota.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_image_quota.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_image_share_permission.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_import_image_os.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_instance_vnc_url.md create mode 100644 tencentcloud/cvm/data_source_tc_cvm_instances_modification.md create mode 100644 tencentcloud/cvm/data_source_tc_eip.md create mode 100644 tencentcloud/cvm/data_source_tc_eip_address_quota.md create mode 100644 tencentcloud/cvm/data_source_tc_eip_network_account_type.md create mode 100644 tencentcloud/cvm/data_source_tc_eips.md create mode 100644 tencentcloud/cvm/data_source_tc_image.md create mode 100644 tencentcloud/cvm/data_source_tc_images.md create mode 100644 tencentcloud/cvm/data_source_tc_instance_types.md create mode 100644 tencentcloud/cvm/data_source_tc_instances.md create mode 100644 tencentcloud/cvm/data_source_tc_instances_set.md create mode 100644 tencentcloud/cvm/data_source_tc_key_pairs.md create mode 100644 tencentcloud/cvm/data_source_tc_placement_groups.md create mode 100644 tencentcloud/cvm/data_source_tc_reserved_instance_configs.md create mode 100644 tencentcloud/cvm/data_source_tc_reserved_instances.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_chc_config.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_export_images.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_hpc_cluster.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_image_share_permission.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_launch_template.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_launch_template_default_version.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_launch_template_version.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_reboot_instance.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_renew_instance.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_security_group_attachment.md create mode 100644 tencentcloud/cvm/resource_tc_cvm_sync_image.md create mode 100644 tencentcloud/cvm/resource_tc_eip.md create mode 100644 tencentcloud/cvm/resource_tc_eip_address_transform.md create mode 100644 tencentcloud/cvm/resource_tc_eip_association.md create mode 100644 tencentcloud/cvm/resource_tc_eip_normal_address_return.md create mode 100644 tencentcloud/cvm/resource_tc_eip_public_address_adjust.md create mode 100644 tencentcloud/cvm/resource_tc_image.md create mode 100644 tencentcloud/cvm/resource_tc_instance.md create mode 100644 tencentcloud/cvm/resource_tc_instance_set.md create mode 100644 tencentcloud/cvm/resource_tc_key_pair.md create mode 100644 tencentcloud/cvm/resource_tc_placement_group.md create mode 100644 tencentcloud/cvm/resource_tc_reserved_instance.md create mode 100644 tencentcloud/cwp/data_source_tc_cwp_machines_simple.md create mode 100644 tencentcloud/cwp/resource_tc_cwp_license_bind_attachment.md create mode 100644 tencentcloud/cwp/resource_tc_cwp_license_order.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_account_all_grant_privileges.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_accounts.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_audit_logs.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_binlog_download_url.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_cluster.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_detail_databases.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_instance_groups.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_param_logs.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_cluster_params.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_clusters.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_error_logs.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_describe_instance_slow_queries.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_instance_slow_queries.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_instances.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_param_templates.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_project_security_groups.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_node.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_proxy_version.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_list.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_resource_package_sale_specs.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_rollback_time_range.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_zone.md create mode 100644 tencentcloud/cynosdb/data_source_tc_cynosdb_zone_config.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_account.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_account_privileges.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_audit_log_file.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_binlog_save_days.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_cluster.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_cluster_databases.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_cluster_password_complexity.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_cluster_resource_packages_attachment.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_cluster_slave_zone.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_error_logs.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_export_instance_slow_queries.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_instance_param.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_isolate_instance.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_param_template.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_proxy.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_proxy_end_point.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_read_only_instance_exclusive_access.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_readonly_instance.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_reload_proxy_node.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_restart_instance.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_roll_back_cluster.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_security_group.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_upgrade_proxy_version.md create mode 100644 tencentcloud/cynosdb/resource_tc_cynosdb_wan.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_cc_http_policies.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_cc_https_policies.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_ddos_policies.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_ddos_policy_attachments.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_ddos_policy_cases.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_l4_rules.md create mode 100644 tencentcloud/dayu/data_source_tc_dayu_l7_rules.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_cc_http_policy.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_cc_https_policy.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_ddos_policy.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_ddos_policy_attachment.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_ddos_policy_case.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_l4_rule.md create mode 100644 tencentcloud/dayu/resource_tc_dayu_l7_rule.md create mode 100644 tencentcloud/dayuv2/data_source_tc_antiddos_overview_cc_trend.md create mode 100644 tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_event_list.md create mode 100644 tencentcloud/dayuv2/data_source_tc_antiddos_overview_ddos_trend.md create mode 100644 tencentcloud/dayuv2/data_source_tc_antiddos_overview_index.md create mode 100644 tencentcloud/dayuv2/data_source_tc_antiddos_pending_risk_info.md create mode 100644 tencentcloud/dayuv2/data_source_tc_dayu_eip.md create mode 100644 tencentcloud/dayuv2/data_source_tc_dayu_l4_rules_v2.md create mode 100644 tencentcloud/dayuv2/data_source_tc_dayu_l7_rules_v2.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_cc_black_white_ip.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_cc_precision_policy.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_ddos_black_white_ip.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_ddos_geo_ip_block_config.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_ddos_speed_limit_config.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_default_alarm_threshold.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_ip_alarm_threshold_config.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_packet_filter_config.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_port_acl_config.md create mode 100644 tencentcloud/dayuv2/resource_tc_antiddos_scheduling_domain_user_name.md create mode 100644 tencentcloud/dayuv2/resource_tc_dayu_cc_policy_v2.md create mode 100644 tencentcloud/dayuv2/resource_tc_dayu_ddos_ip_attachment_v2.md create mode 100644 tencentcloud/dayuv2/resource_tc_dayu_ddos_policy_v2.md create mode 100644 tencentcloud/dayuv2/resource_tc_dayu_eip.md create mode 100644 tencentcloud/dayuv2/resource_tc_dayu_l4_rule.md create mode 100644 tencentcloud/dayuv2/resource_tc_dayu_l7_rule_v2.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_db_space_status.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_diag_db_instances.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_diag_event.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_diag_events.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_diag_history.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_health_scores.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_mysql_process_list.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_no_primary_key_tables.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_big_keys.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_redis_top_key_prefix_list.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_download_urls.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_security_audit_log_export_tasks.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_time_series_stats.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_top_sqls.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_host_stats.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_slow_log_user_sql_advice.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_slow_logs.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_sql_filters.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_sql_templates.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schema_time_series.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_schemas.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_table_time_series.md create mode 100644 tencentcloud/dbbrain/data_source_tc_dbbrain_top_space_tables.md create mode 100644 tencentcloud/dbbrain/resource_tc_dbbrain_db_diag_report_task.md create mode 100644 tencentcloud/dbbrain/resource_tc_dbbrain_modify_diag_db_instance_operation.md create mode 100644 tencentcloud/dbbrain/resource_tc_dbbrain_security_audit_log_export_task.md create mode 100644 tencentcloud/dbbrain/resource_tc_dbbrain_sql_filter.md create mode 100644 tencentcloud/dbbrain/resource_tc_dbbrain_tdsql_audit_log.md create mode 100644 tencentcloud/dc/data_source_tc_dc_access_points.md create mode 100644 tencentcloud/dc/data_source_tc_dc_instances.md create mode 100644 tencentcloud/dc/data_source_tc_dc_internet_address_quota.md create mode 100644 tencentcloud/dc/data_source_tc_dc_internet_address_statistics.md create mode 100644 tencentcloud/dc/data_source_tc_dc_public_direct_connect_tunnel_routes.md create mode 100644 tencentcloud/dc/data_source_tc_dcx_instances.md create mode 100644 tencentcloud/dc/resource_tc_dc_instance.md create mode 100644 tencentcloud/dc/resource_tc_dc_internet_address.md create mode 100644 tencentcloud/dc/resource_tc_dc_internet_address_config.md create mode 100644 tencentcloud/dc/resource_tc_dc_share_dcx_config.md create mode 100644 tencentcloud/dc/resource_tc_dcx.md create mode 100644 tencentcloud/dc/resource_tc_dcx_extra_config.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_accounts.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_database_objects.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_database_tables.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_databases.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_file_download_url.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_instance_node_info.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_instances.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_log_files.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_orders.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_parameters.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_price.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_project_security_groups.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_projects.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_renewal_price.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_sale_info.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_security_groups.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_shard_spec.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_shards.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_slow_logs.md create mode 100644 tencentcloud/dcdb/data_source_tc_dcdb_upgrade_price.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_account.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_account_privileges.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_activate_hour_instance_operation.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_cancel_dcn_job_operation.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_db_parameters.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_db_sync_mode_config.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_encrypt_attributes_config.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_flush_binlog_operation.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_hourdb_instance.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_instance_config.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_isolate_hour_instance_operation.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_security_group_attachment.md create mode 100644 tencentcloud/dcdb/resource_tc_dcdb_switch_db_instance_ha_operation.md create mode 100644 tencentcloud/dcg/data_source_tc_dc_gateway_ccn_routes.md create mode 100644 tencentcloud/dcg/data_source_tc_dc_gateway_instances.md create mode 100644 tencentcloud/dcg/resource_tc_dc_gateway.md create mode 100644 tencentcloud/dcg/resource_tc_dc_gateway_attachment.md create mode 100644 tencentcloud/dcg/resource_tc_dc_gateway_ccn_route.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_check_data_engine_config_pairs_validity.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_rollback.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_check_data_engine_image_can_be_upgrade.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_data_engine.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_image_versions.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_data_engine_python_spark_images.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_engine_usage_info.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_updatable_data_engines.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_user_info.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_user_roles.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_user_type.md create mode 100644 tencentcloud/dlc/data_source_tc_dlc_describe_work_group_info.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_add_users_to_work_group_attachment.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_bind_work_groups_to_user_attachment.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_data_engine.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_modify_data_engine_description_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_modify_user_typ_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_renew_data_engine_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_restart_data_engine_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_rollback_data_engine_image_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_store_location_config.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_suspend_resume_data_engine.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_switch_data_engine_image_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_update_data_engine_config_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_update_row_filter_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_upgrade_data_engine_image_operation.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_user.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_user_data_engine_config.md create mode 100644 tencentcloud/dlc/resource_tc_dlc_work_group.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_domain_analytics.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_domain_list.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_domain_log_list.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_record_analytics.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_record_line_list.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_record_list.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_record_type.md create mode 100644 tencentcloud/dnspod/data_source_tc_dnspod_records.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_custom_line.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_domain_alias.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_domain_instance.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_domain_lock.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_download_snapshot_operation.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_modify_domain_owner_operation.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_modify_record_group_operation.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_record.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_record_group.md create mode 100644 tencentcloud/dnspod/resource_tc_dnspod_snapshot_config.md create mode 100644 tencentcloud/domain/data_source_tc_domains.md create mode 100644 tencentcloud/dts/data_source_tc_dts_compare_tasks.md create mode 100644 tencentcloud/dts/data_source_tc_dts_migrate_db_instances.md create mode 100644 tencentcloud/dts/data_source_tc_dts_migrate_jobs.md create mode 100644 tencentcloud/dts/data_source_tc_dts_sync_jobs.md create mode 100644 tencentcloud/dts/resource_tc_dts_compare_task.md create mode 100644 tencentcloud/dts/resource_tc_dts_compare_task_stop_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_migrate_job.md create mode 100644 tencentcloud/dts/resource_tc_dts_migrate_job_config.md create mode 100644 tencentcloud/dts/resource_tc_dts_migrate_job_resume_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_migrate_job_start_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_migrate_service.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_check_job_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_config.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_continue_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_isolate_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_pause_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_recover_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_resize_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_resume_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_start_operation.md create mode 100644 tencentcloud/dts/resource_tc_dts_sync_job_stop_operation.md create mode 100644 tencentcloud/eb/data_source_tc_eb_bus.md create mode 100644 tencentcloud/eb/data_source_tc_eb_event_rules.md create mode 100644 tencentcloud/eb/data_source_tc_eb_plateform_event_template.md create mode 100644 tencentcloud/eb/data_source_tc_eb_platform_event_names.md create mode 100644 tencentcloud/eb/data_source_tc_eb_platform_event_patterns.md create mode 100644 tencentcloud/eb/data_source_tc_eb_platform_products.md create mode 100644 tencentcloud/eb/resource_tc_eb_event_bus.md create mode 100644 tencentcloud/eb/resource_tc_eb_event_connector.md create mode 100644 tencentcloud/eb/resource_tc_eb_event_rule.md create mode 100644 tencentcloud/eb/resource_tc_eb_event_target.md create mode 100644 tencentcloud/eb/resource_tc_eb_event_transform.md create mode 100644 tencentcloud/eb/resource_tc_eb_put_events.md create mode 100644 tencentcloud/emr/data_source_tc_emr.md create mode 100644 tencentcloud/emr/data_source_tc_emr_cvm_quota.md create mode 100644 tencentcloud/emr/data_source_tc_emr_nodes.md create mode 100644 tencentcloud/emr/resource_tc_emr_cluster.md create mode 100644 tencentcloud/emr/resource_tc_emr_user_manager.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_diagnose.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_instance_logs.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_instance_operations.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_instance_plugin_list.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_instances.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_logs.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_logstash_instance_operations.md create mode 100644 tencentcloud/es/data_source_tc_elasticsearch_views.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_diagnose.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_diagnose_instance.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_index.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_instance.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_logstash.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_logstash_pipeline.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_restart_instance_operation.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_restart_kibana_operation.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_restart_logstash_instance_operation.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_restart_nodes_operation.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_security_group.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_start_logstash_pipeline_operation.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_stop_logstash_pipeline_operation.md create mode 100644 tencentcloud/es/resource_tc_elasticsearch_update_plugins_operation.md create mode 100644 tencentcloud/fl/resource_tc_vpc_flow_log.md create mode 100644 tencentcloud/fl/resource_tc_vpc_flow_log_config.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_access_regions.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_access_regions_by_dest_region.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_black_header.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_certificates.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_check_proxy_create.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_country_area_mapping.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_custom_header.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_dest_regions.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_domain_error_page_infos.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_domain_error_pages.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_group_and_statistics_proxy.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_http_domains.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_http_rules.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_layer4_listeners.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_layer7_listeners.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_listener_real_servers.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_listener_statistics.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxies.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxies_status.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxy_and_statistics_listeners.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxy_detail.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxy_group_statistics.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxy_groups.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_proxy_statistics.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_real_servers_status.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_realservers.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_region_and_price.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_resources_by_tag.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_rule_real_servers.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_security_policies.md create mode 100644 tencentcloud/gaap/data_source_tc_gaap_security_rules.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_certificate.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_domain_error_page.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_global_domain.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_global_domain_dns.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_http_domain.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_http_rule.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_layer4_listener.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_layer7_listener.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_proxy.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_realserver.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_security_policy.md create mode 100644 tencentcloud/gaap/resource_tc_gaap_security_rule.md create mode 100644 tencentcloud/kms/data_source_tc_kms_describe_keys.md create mode 100644 tencentcloud/kms/data_source_tc_kms_get_parameters_for_import.md create mode 100644 tencentcloud/kms/data_source_tc_kms_keys.md create mode 100644 tencentcloud/kms/data_source_tc_kms_list_algorithms.md create mode 100644 tencentcloud/kms/data_source_tc_kms_list_keys.md create mode 100644 tencentcloud/kms/data_source_tc_kms_public_key.md create mode 100644 tencentcloud/kms/data_source_tc_kms_white_box_decrypt_key.md create mode 100644 tencentcloud/kms/data_source_tc_kms_white_box_device_fingerprints.md create mode 100644 tencentcloud/kms/data_source_tc_kms_white_box_key_details.md create mode 100644 tencentcloud/kms/resource_tc_kms_cloud_resource_attachment.md create mode 100644 tencentcloud/kms/resource_tc_kms_external_key.md create mode 100644 tencentcloud/kms/resource_tc_kms_key.md create mode 100644 tencentcloud/kms/resource_tc_kms_overwrite_white_box_device_fingerprints.md create mode 100644 tencentcloud/kms/resource_tc_kms_white_box_key.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_all_scene.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_bundle.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_disk_config.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_disks.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_firewall_rules_template.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_instance_blueprint.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_instance_disk_num.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_instance_traffic_package.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_instance_vnc_url.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_modify_instance_bundle.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_region.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_reset_instance_blueprint.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_scene.md create mode 100644 tencentcloud/lighthouse/data_source_tc_lighthouse_zone.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_apply_disk_backup.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_apply_instance_snapshot.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_blueprint.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_disk.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_disk_attachment.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_disk_backup.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_firewall_rule.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_firewall_template.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_instance.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_key_pair.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_key_pair_attachment.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_reboot_instance.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_renew_disk.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_renew_instance.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_snapshot.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_start_instance.md create mode 100644 tencentcloud/lighthouse/resource_tc_lighthouse_stop_instance.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_accounts.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_database_objects.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_database_table.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_databases.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_db_instances.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_dcn_detail.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_file_download_url.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_flow.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_instance_specs.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_log_files.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_orders.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_price.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_project_security_groups.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_renewal_price.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_sale_info.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_security_groups.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_slow_logs.md create mode 100644 tencentcloud/mariadb/data_source_tc_mariadb_upgrade_price.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_account.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_account_privileges.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_backup_time.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_cancel_dcn_job.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_dedicatedcluster_db_instance.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_flush_binlog.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_hour_db_instance.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_instance.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_instance_config.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_log_file_retention_period.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_operate_hour_db_instance.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_parameters.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_renew_instance.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_restart_instance.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_security_groups.md create mode 100644 tencentcloud/mariadb/resource_tc_mariadb_switch_ha.md create mode 100644 tencentcloud/mdl/resource_tc_mdl_stream_live_input.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_instance_backups.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_instance_connections.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_instance_current_op.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_instance_params.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_instance_slow_log.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_instances.md create mode 100644 tencentcloud/mongodb/data_source_tc_mongodb_zone_config.md create mode 100644 tencentcloud/mongodb/resource_tc_mongodb_instance.md create mode 100644 tencentcloud/mongodb/resource_tc_mongodb_instance_account.md create mode 100644 tencentcloud/mongodb/resource_tc_mongodb_instance_backup.md create mode 100644 tencentcloud/mongodb/resource_tc_mongodb_sharding_instance.md create mode 100644 tencentcloud/mongodb/resource_tc_mongodb_standby_instance.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_all_namespaces.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_basic_alarms.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_basic_metric.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_conditions_template.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_history.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_metric.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_monitor_type.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_notice_callbacks.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_notices.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_alarm_policy.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_binding_objects.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_data.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_policy_conditions.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_policy_groups.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_product_event.md create mode 100644 tencentcloud/monitor/data_source_tc_monitor_product_namespace.md create mode 100644 tencentcloud/monitor/resource_tc_monitor_alarm_notice.md create mode 100644 tencentcloud/monitor/resource_tc_monitor_alarm_policy.md create mode 100644 tencentcloud/monitor/resource_tc_monitor_alarm_policy_set_default.md create mode 100644 tencentcloud/monitor/resource_tc_monitor_binding_object.md create mode 100644 tencentcloud/monitor/resource_tc_monitor_binding_receiver.md create mode 100644 tencentcloud/monitor/resource_tc_monitor_policy_binding_object.md create mode 100644 tencentcloud/mps/data_source_tc_mps_media_meta_data.md create mode 100644 tencentcloud/mps/data_source_tc_mps_parse_live_stream_process_notification.md create mode 100644 tencentcloud/mps/data_source_tc_mps_parse_notification.md create mode 100644 tencentcloud/mps/data_source_tc_mps_schedules.md create mode 100644 tencentcloud/mps/data_source_tc_mps_tasks.md create mode 100644 tencentcloud/mps/resource_tc_mps_adaptive_dynamic_streaming_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_ai_analysis_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_ai_recognition_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_animated_graphics_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_content_review_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_edit_media_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_enable_schedule_config.md create mode 100644 tencentcloud/mps/resource_tc_mps_enable_workflow_config.md create mode 100644 tencentcloud/mps/resource_tc_mps_event.md create mode 100644 tencentcloud/mps/resource_tc_mps_execute_function_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_flow.md create mode 100644 tencentcloud/mps/resource_tc_mps_image_sprite_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_input.md create mode 100644 tencentcloud/mps/resource_tc_mps_manage_task_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_output.md create mode 100644 tencentcloud/mps/resource_tc_mps_person_sample.md create mode 100644 tencentcloud/mps/resource_tc_mps_process_live_stream_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_process_media_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_sample_snapshot_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_schedule.md create mode 100644 tencentcloud/mps/resource_tc_mps_snapshot_by_timeoffset_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_start_flow_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_transcode_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_watermark_template.md create mode 100644 tencentcloud/mps/resource_tc_mps_withdraws_watermark_operation.md create mode 100644 tencentcloud/mps/resource_tc_mps_word_sample.md create mode 100644 tencentcloud/mps/resource_tc_mps_workflow.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_check_savepoint.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_clusters.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_job_submission_log.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_resource_related_job.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_savepoint_list.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_system_resource.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_tree_jobs.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_tree_resources.md create mode 100644 tencentcloud/oceanus/data_source_tc_oceanus_work_spaces.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_job.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_job_config.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_job_copy.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_resource.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_resource_config.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_run_job.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_stop_job.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_trigger_job_savepoint.md create mode 100644 tencentcloud/oceanus/resource_tc_oceanus_work_space.md create mode 100644 tencentcloud/pls/resource_tc_vpc_enable_end_point_connect.md create mode 100644 tencentcloud/pls/resource_tc_vpc_end_point.md create mode 100644 tencentcloud/pls/resource_tc_vpc_end_point_service.md create mode 100644 tencentcloud/pls/resource_tc_vpc_end_point_service_white_list.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_backup_download_urls.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_base_backups.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_db_instance_classes.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_db_instance_versions.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_default_parameters.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_instances.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_log_backups.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_parameter_templates.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_readonly_groups.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_recovery_time.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_regions.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_specinfos.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_xlogs.md create mode 100644 tencentcloud/postgresql/data_source_tc_postgresql_zones.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_backup_download_restriction_config.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_backup_plan_config.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_base_backup.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_delete_log_backup_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_disisolate_db_instance_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_instance.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_isolate_db_instance_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_modify_account_remark_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_modify_switch_time_period_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_parameter_template.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_readonly_attachment.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_readonly_group.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_readonly_instance.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_rebalance_readonly_group_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_renew_db_instance_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_restart_db_instance_operation.md create mode 100644 tencentcloud/postgresql/resource_tc_postgresql_security_group_config.md create mode 100644 tencentcloud/privatedns/data_source_tc_private_dns_records.md create mode 100644 tencentcloud/privatedns/resource_tc_private_dns_record.md create mode 100644 tencentcloud/privatedns/resource_tc_private_dns_zone.md create mode 100644 tencentcloud/privatedns/resource_tc_private_dns_zone_vpc_attachment.md create mode 100644 tencentcloud/project/data_source_tc_projects.md create mode 100644 tencentcloud/project/resource_tc_project.md create mode 100644 tencentcloud/provider.md create mode 100644 tencentcloud/pts/data_source_tc_pts_scenario_with_jobs.md create mode 100644 tencentcloud/pts/resource_tc_pts_alert_channel.md create mode 100644 tencentcloud/pts/resource_tc_pts_cron_job.md create mode 100644 tencentcloud/pts/resource_tc_pts_cron_job_abort.md create mode 100644 tencentcloud/pts/resource_tc_pts_cron_job_restart.md create mode 100644 tencentcloud/pts/resource_tc_pts_file.md create mode 100644 tencentcloud/pts/resource_tc_pts_job.md create mode 100644 tencentcloud/pts/resource_tc_pts_job_abort.md create mode 100644 tencentcloud/pts/resource_tc_pts_project.md create mode 100644 tencentcloud/pts/resource_tc_pts_scenario.md create mode 100644 tencentcloud/pts/resource_tc_pts_tmp_key_generate.md create mode 100644 tencentcloud/rum/data_source_tc_rum_custom_url.md create mode 100644 tencentcloud/rum/data_source_tc_rum_event_url.md create mode 100644 tencentcloud/rum/data_source_tc_rum_fetch_url.md create mode 100644 tencentcloud/rum/data_source_tc_rum_fetch_url_info.md create mode 100644 tencentcloud/rum/data_source_tc_rum_group_log.md create mode 100644 tencentcloud/rum/data_source_tc_rum_log_export_list.md create mode 100644 tencentcloud/rum/data_source_tc_rum_log_url_statistics.md create mode 100644 tencentcloud/rum/data_source_tc_rum_offline_log_config.md create mode 100644 tencentcloud/rum/data_source_tc_rum_performance_page.md create mode 100644 tencentcloud/rum/data_source_tc_rum_project.md create mode 100644 tencentcloud/rum/data_source_tc_rum_pv_url_info.md create mode 100644 tencentcloud/rum/data_source_tc_rum_pv_url_statistics.md create mode 100644 tencentcloud/rum/data_source_tc_rum_report_count.md create mode 100644 tencentcloud/rum/data_source_tc_rum_scores.md create mode 100644 tencentcloud/rum/data_source_tc_rum_set_url_statistics.md create mode 100644 tencentcloud/rum/data_source_tc_rum_sign.md create mode 100644 tencentcloud/rum/data_source_tc_rum_static_project.md create mode 100644 tencentcloud/rum/data_source_tc_rum_static_resource.md create mode 100644 tencentcloud/rum/data_source_tc_rum_static_url.md create mode 100644 tencentcloud/rum/data_source_tc_rum_taw_instance.md create mode 100644 tencentcloud/rum/data_source_tc_rum_web_vitals_page.md create mode 100644 tencentcloud/rum/data_source_tc_rum_whitelist.md create mode 100644 tencentcloud/rum/resource_tc_rum_instance_status_config.md create mode 100644 tencentcloud/rum/resource_tc_rum_offline_log_config_attachment.md create mode 100644 tencentcloud/rum/resource_tc_rum_project.md create mode 100644 tencentcloud/rum/resource_tc_rum_project_status_config.md create mode 100644 tencentcloud/rum/resource_tc_rum_taw_instance.md create mode 100644 tencentcloud/rum/resource_tc_rum_whitelist.md create mode 100644 tencentcloud/scf/data_source_tc_scf_account_info.md create mode 100644 tencentcloud/scf/data_source_tc_scf_async_event_management.md create mode 100644 tencentcloud/scf/data_source_tc_scf_async_event_status.md create mode 100644 tencentcloud/scf/data_source_tc_scf_function_address.md create mode 100644 tencentcloud/scf/data_source_tc_scf_function_aliases.md create mode 100644 tencentcloud/scf/data_source_tc_scf_function_versions.md create mode 100644 tencentcloud/scf/data_source_tc_scf_functions.md create mode 100644 tencentcloud/scf/data_source_tc_scf_layer_versions.md create mode 100644 tencentcloud/scf/data_source_tc_scf_layers.md create mode 100644 tencentcloud/scf/data_source_tc_scf_logs.md create mode 100644 tencentcloud/scf/data_source_tc_scf_namespaces.md create mode 100644 tencentcloud/scf/data_source_tc_scf_request_status.md create mode 100644 tencentcloud/scf/data_source_tc_scf_triggers.md create mode 100644 tencentcloud/scf/resource_tc_scf_function.md create mode 100644 tencentcloud/scf/resource_tc_scf_function_alias.md create mode 100644 tencentcloud/scf/resource_tc_scf_function_event_invoke_config.md create mode 100644 tencentcloud/scf/resource_tc_scf_function_version.md create mode 100644 tencentcloud/scf/resource_tc_scf_invoke_function.md create mode 100644 tencentcloud/scf/resource_tc_scf_layer.md create mode 100644 tencentcloud/scf/resource_tc_scf_namespace.md create mode 100644 tencentcloud/scf/resource_tc_scf_provisioned_concurrency_config.md create mode 100644 tencentcloud/scf/resource_tc_scf_reserved_concurrency_config.md create mode 100644 tencentcloud/scf/resource_tc_scf_sync_invoke_function.md create mode 100644 tencentcloud/scf/resource_tc_scf_terminate_async_event.md create mode 100644 tencentcloud/scf/resource_tc_scf_trigger_config.md create mode 100644 tencentcloud/ses/data_source_tc_ses_black_email_address.md create mode 100644 tencentcloud/ses/data_source_tc_ses_email_identities.md create mode 100644 tencentcloud/ses/data_source_tc_ses_receivers.md create mode 100644 tencentcloud/ses/data_source_tc_ses_send_email_status.md create mode 100644 tencentcloud/ses/data_source_tc_ses_send_tasks.md create mode 100644 tencentcloud/ses/data_source_tc_ses_statistics_report.md create mode 100644 tencentcloud/ses/resource_tc_ses_batch_send_email.md create mode 100644 tencentcloud/ses/resource_tc_ses_black_list_delete.md create mode 100644 tencentcloud/ses/resource_tc_ses_domain.md create mode 100644 tencentcloud/ses/resource_tc_ses_email_address.md create mode 100644 tencentcloud/ses/resource_tc_ses_receiver.md create mode 100644 tencentcloud/ses/resource_tc_ses_send_email.md create mode 100644 tencentcloud/ses/resource_tc_ses_template.md create mode 100644 tencentcloud/ses/resource_tc_ses_verify_domain.md create mode 100644 tencentcloud/sms/resource_tc_sms_sign.md create mode 100644 tencentcloud/sms/resource_tc_sms_template.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_account_db_attachments.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_accounts.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_backup_by_flow_id.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_backup_commands.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_backup_upload_size.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_basic_instances.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_cross_region_zone.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_db_charsets.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_dbs.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_ins_attribute.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_instance_param_records.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_instances.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_project_security_groups.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_publish_subscribes.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_query_xevent.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_readonly_groups.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_regions.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_rollback_time.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_slowlogs.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_upload_backup_info.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_upload_incremental_info.md create mode 100644 tencentcloud/sqlserver/data_source_tc_sqlserver_zone_config.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_account.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_account_db_attachment.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_basic_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_file.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_business_intelligence_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_complete_expansion.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_backup_strategy.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_database_cdc.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_database_ct.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_database_mdf.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_param.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_instance_ro_group.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_config_terminate_db_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_database_tde.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_db.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_full_backup_migration.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_general_backup.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_general_clone.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_general_cloud_ro_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_general_communication.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_incre_backup_migration.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_instance_tde.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_migration.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_publish_subscribe.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_readonly_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_renew_db_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_renew_postpaid_db_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_restart_db_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_restore_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_rollback_instance.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_full_migration.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_start_backup_incremental_migration.md create mode 100644 tencentcloud/sqlserver/resource_tc_sqlserver_start_xevent.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_certificates.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_certificate.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_companies.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_api_gateway_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_cdn_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_clb_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_cos_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_ddos_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_deploy_record_detail.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_lighthouse_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_live_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_teo_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_tke_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_update_record_detail.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_vod_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_host_waf_instance_list.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_manager_detail.md create mode 100644 tencentcloud/ssl/data_source_tc_ssl_describe_managers.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_certificate.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_check_certificate_chain_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_complete_certificate_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_deploy_certificate_instance_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_retry_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_deploy_certificate_record_rollback_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_download_certificate_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_free_certificate.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_pay_certificate.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_replace_certificate_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_revoke_certificate_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_update_certificate_instance_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_update_certificate_record_retry_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_update_certificate_record_rollback_operation.md create mode 100644 tencentcloud/ssl/resource_tc_ssl_upload_revoke_letter_operation.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_products.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_rotation_detail.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_rotation_history.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_secret_versions.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_secrets.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_service_status.md create mode 100644 tencentcloud/ssm/data_source_tc_ssm_ssh_key_pair_value.md create mode 100644 tencentcloud/ssm/resource_tc_ssm_product_secret.md create mode 100644 tencentcloud/ssm/resource_tc_ssm_rotate_product_secret.md create mode 100644 tencentcloud/ssm/resource_tc_ssm_secret.md create mode 100644 tencentcloud/ssm/resource_tc_ssm_secret_version.md create mode 100644 tencentcloud/ssm/resource_tc_ssm_ssh_key_pair_secret.md create mode 100644 tencentcloud/sts/data_source_tc_sts_caller_identity.md create mode 100644 tencentcloud/tag/resource_tc_tag.md create mode 100644 tencentcloud/tag/resource_tc_tag_attachment.md create mode 100644 tencentcloud/tat/data_source_tc_tat_agent.md create mode 100644 tencentcloud/tat/data_source_tc_tat_command.md create mode 100644 tencentcloud/tat/data_source_tc_tat_invocation_task.md create mode 100644 tencentcloud/tat/data_source_tc_tat_invoker.md create mode 100644 tencentcloud/tat/data_source_tc_tat_invoker_records.md create mode 100644 tencentcloud/tat/resource_tc_tat_command.md create mode 100644 tencentcloud/tat/resource_tc_tat_invocation_command_attachment.md create mode 100644 tencentcloud/tat/resource_tc_tat_invocation_invoke_attachment.md create mode 100644 tencentcloud/tat/resource_tc_tat_invoker.md create mode 100644 tencentcloud/tat/resource_tc_tat_invoker_config.md create mode 100644 tencentcloud/tcaplusdb/data_source_tc_tcaplus_clusters.md create mode 100644 tencentcloud/tcaplusdb/data_source_tc_tcaplus_idls.md create mode 100644 tencentcloud/tcaplusdb/data_source_tc_tcaplus_tablegroups.md create mode 100644 tencentcloud/tcaplusdb/data_source_tc_tcaplus_tables.md create mode 100644 tencentcloud/tcaplusdb/resource_tc_tcaplus_cluster.md create mode 100644 tencentcloud/tcaplusdb/resource_tc_tcaplus_idl.md create mode 100644 tencentcloud/tcaplusdb/resource_tc_tcaplus_table.md create mode 100644 tencentcloud/tcaplusdb/resource_tc_tcaplus_tablegroup.md create mode 100644 tencentcloud/tcm/data_source_tc_tcm_mesh.md create mode 100644 tencentcloud/tcm/resource_tc_tcm_access_log_config.md create mode 100644 tencentcloud/tcm/resource_tc_tcm_cluster_attachment.md create mode 100644 tencentcloud/tcm/resource_tc_tcm_mesh.md create mode 100644 tencentcloud/tcm/resource_tc_tcm_prometheus_attachment.md create mode 100644 tencentcloud/tcm/resource_tc_tcm_tracing_config.md create mode 100644 tencentcloud/tcmg/data_source_tc_monitor_grafana_plugin_overviews.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_dns_config.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_env_config.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_instance.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_integration.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_notification_channel.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_plugin.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_sso_account.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_sso_cam_config.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_sso_config.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_version_upgrade.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_grafana_whitelist_config.md create mode 100644 tencentcloud/tcmg/resource_tc_monitor_tmp_grafana_config.md create mode 100644 tencentcloud/tcmq/data_source_tc_tcmq_queue.md create mode 100644 tencentcloud/tcmq/data_source_tc_tcmq_subscribe.md create mode 100644 tencentcloud/tcmq/data_source_tc_tcmq_topic.md create mode 100644 tencentcloud/tcmq/resource_tc_tcmq_queue.md create mode 100644 tencentcloud/tcmq/resource_tc_tcmq_subscribe.md create mode 100644 tencentcloud/tcmq/resource_tc_tcmq_topic.md create mode 100644 tencentcloud/tco/data_source_tc_organization_org_auth_node.md create mode 100644 tencentcloud/tco/data_source_tc_organization_org_financial_by_member.md create mode 100644 tencentcloud/tco/data_source_tc_organization_org_financial_by_month.md create mode 100644 tencentcloud/tco/data_source_tc_organization_org_financial_by_product.md create mode 100644 tencentcloud/tco/resource_tc_organization_instance.md create mode 100644 tencentcloud/tco/resource_tc_organization_org_identity.md create mode 100644 tencentcloud/tco/resource_tc_organization_org_member.md create mode 100644 tencentcloud/tco/resource_tc_organization_org_member_auth_identity_attachment.md create mode 100644 tencentcloud/tco/resource_tc_organization_org_member_email.md create mode 100644 tencentcloud/tco/resource_tc_organization_org_member_policy_attachment.md create mode 100644 tencentcloud/tco/resource_tc_organization_org_node.md create mode 100644 tencentcloud/tco/resource_tc_organization_policy_sub_account_attachment.md create mode 100644 tencentcloud/tco/resource_tc_organization_quit_organization_operation.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_image_manifests.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_images.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_instances.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_namespaces.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_replication_instance_create_tasks.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_replication_instance_sync_status.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_repositories.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_tag_retention_execution_tasks.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_tag_retention_executions.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_tokens.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_vpc_attachments.md create mode 100644 tencentcloud/tcr/data_source_tc_tcr_webhook_trigger_logs.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_create_image_signature_operation.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_customized_domain.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_delete_image_operation.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_immutable_tag_rule.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_instance.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_manage_replication_operation.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_namespace.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_repository.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_service_account.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_tag_retention_execution_config.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_tag_retention_rule.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_token.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_vpc_attachment.md create mode 100644 tencentcloud/tcr/resource_tc_tcr_webhook_trigger.md create mode 100644 tencentcloud/tdcpg/data_source_tc_tdcpg_clusters.md create mode 100644 tencentcloud/tdcpg/data_source_tc_tdcpg_instances.md create mode 100644 tencentcloud/tdcpg/resource_tc_tdcpg_cluster.md create mode 100644 tencentcloud/tdcpg/resource_tc_tdcpg_instance.md create mode 100644 tencentcloud/tem/resource_tc_tem_app_config.md create mode 100644 tencentcloud/tem/resource_tc_tem_application.md create mode 100644 tencentcloud/tem/resource_tc_tem_application_service.md create mode 100644 tencentcloud/tem/resource_tc_tem_environment.md create mode 100644 tencentcloud/tem/resource_tc_tem_gateway.md create mode 100644 tencentcloud/tem/resource_tc_tem_log_config.md create mode 100644 tencentcloud/tem/resource_tc_tem_scale_rule.md create mode 100644 tencentcloud/tem/resource_tc_tem_workload.md create mode 100644 tencentcloud/teo/data_source_tc_teo_rule_engine_settings.md create mode 100644 tencentcloud/teo/data_source_tc_teo_zone_available_plans.md create mode 100644 tencentcloud/teo/resource_tc_teo_acceleration_domain.md create mode 100644 tencentcloud/teo/resource_tc_teo_application_proxy_rule.md create mode 100644 tencentcloud/teo/resource_tc_teo_certificate_config.md create mode 100644 tencentcloud/teo/resource_tc_teo_origin_group.md create mode 100644 tencentcloud/teo/resource_tc_teo_ownership_verify.md create mode 100644 tencentcloud/teo/resource_tc_teo_rule_engine.md create mode 100644 tencentcloud/teo/resource_tc_teo_zone.md create mode 100644 tencentcloud/teo/resource_tc_teo_zone_setting.md create mode 100644 tencentcloud/tke/data_source_tc_container_cluster_instances.md create mode 100644 tencentcloud/tke/data_source_tc_container_clusters.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_available_cluster_versions.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_charts.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_cluster_authentication_options.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_cluster_common_names.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_cluster_instances.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_cluster_levels.md create mode 100644 tencentcloud/tke/data_source_tc_kubernetes_clusters.md create mode 100644 tencentcloud/tke/resource_tc_container_cluster.md create mode 100644 tencentcloud/tke/resource_tc_container_cluster_instance.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_addon_attachment.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_auth_attachment.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_backup_storage_location.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_cluster.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_cluster_attachment.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_cluster_endpoint.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_encryption_protection.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_node_pool.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_scale_worker.md create mode 100644 tencentcloud/tke/resource_tc_kubernetes_serverless_node_pool.md create mode 100644 tencentcloud/tmp/data_source_tc_monitor_tmp_regions.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_alert_rule.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_cvm_agent.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_exporter_integration.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_instance.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_manage_grafana_attachment.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_recording_rule.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_scrape_job.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_alert_policy.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_basic_config.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_cluster_agent.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_config.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_global_notification.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_record_rule_yaml.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_template.md create mode 100644 tencentcloud/tmp/resource_tc_monitor_tmp_tke_template_attachment.md create mode 100644 tencentcloud/tpulsar/data_source_tc_tdmq_environment_attributes.md create mode 100644 tencentcloud/tpulsar/data_source_tc_tdmq_pro_instance_detail.md create mode 100644 tencentcloud/tpulsar/data_source_tc_tdmq_pro_instances.md create mode 100644 tencentcloud/tpulsar/data_source_tc_tdmq_publisher_summary.md create mode 100644 tencentcloud/tpulsar/data_source_tc_tdmq_publishers.md create mode 100644 tencentcloud/tpulsar/resource_tc_tdmq_instance.md create mode 100644 tencentcloud/tpulsar/resource_tc_tdmq_namespace.md create mode 100644 tencentcloud/tpulsar/resource_tc_tdmq_namespace_role_attachment.md create mode 100644 tencentcloud/tpulsar/resource_tc_tdmq_role.md create mode 100644 tencentcloud/tpulsar/resource_tc_tdmq_topic.md create mode 100644 tencentcloud/trabbit/resource_tc_tdmq_rabbitmq_user.md create mode 100644 tencentcloud/trabbit/resource_tc_tdmq_rabbitmq_vip_instance.md create mode 100644 tencentcloud/trabbit/resource_tc_tdmq_rabbitmq_virtual_host.md create mode 100644 tencentcloud/trocket/data_source_tc_tdmq_rocketmq_cluster.md create mode 100644 tencentcloud/trocket/data_source_tc_tdmq_rocketmq_group.md create mode 100644 tencentcloud/trocket/data_source_tc_tdmq_rocketmq_messages.md create mode 100644 tencentcloud/trocket/data_source_tc_tdmq_rocketmq_namespace.md create mode 100644 tencentcloud/trocket/data_source_tc_tdmq_rocketmq_role.md create mode 100644 tencentcloud/trocket/data_source_tc_tdmq_rocketmq_topic.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_cluster.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_environment_role.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_group.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_namespace.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_role.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_topic.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_rocketmq_vip_instance.md create mode 100644 tencentcloud/trocket/resource_tc_tdmq_send_rocketmq_message.md create mode 100644 tencentcloud/trocket/resource_tc_trocket_rocketmq_consumer_group.md create mode 100644 tencentcloud/trocket/resource_tc_trocket_rocketmq_instance.md create mode 100644 tencentcloud/trocket/resource_tc_trocket_rocketmq_role.md create mode 100644 tencentcloud/trocket/resource_tc_trocket_rocketmq_topic.md create mode 100644 tencentcloud/tse/data_source_tc_tse_access_address.md create mode 100644 tencentcloud/tse/data_source_tc_tse_gateway_canary_rules.md create mode 100644 tencentcloud/tse/data_source_tc_tse_gateway_certificates.md create mode 100644 tencentcloud/tse/data_source_tc_tse_gateway_nodes.md create mode 100644 tencentcloud/tse/data_source_tc_tse_gateway_routes.md create mode 100644 tencentcloud/tse/data_source_tc_tse_gateway_services.md create mode 100644 tencentcloud/tse/data_source_tc_tse_gateways.md create mode 100644 tencentcloud/tse/data_source_tc_tse_groups.md create mode 100644 tencentcloud/tse/data_source_tc_tse_nacos_replicas.md create mode 100644 tencentcloud/tse/data_source_tc_tse_nacos_server_interfaces.md create mode 100644 tencentcloud/tse/data_source_tc_tse_zookeeper_replicas.md create mode 100644 tencentcloud/tse/data_source_tc_tse_zookeeper_server_interfaces.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_canary_rule.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_certificate.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_gateway.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_group.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_route.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_route_rate_limit.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_service.md create mode 100644 tencentcloud/tse/resource_tc_tse_cngw_service_rate_limit.md create mode 100644 tencentcloud/tse/resource_tc_tse_instance.md create mode 100644 tencentcloud/tse/resource_tc_tse_waf_domains.md create mode 100644 tencentcloud/tse/resource_tc_tse_waf_protection.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_api_detail.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_api_group.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_application.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_application_attribute.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_application_config.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_application_file_config.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_application_public_config.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_business_log_configs.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_cluster.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_config_summary.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_container_group.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_delivery_config_by_group_id.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_delivery_configs.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_gateway_all_group_apis.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_group_config_release.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_group_gateways.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_group_instances.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_groups.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_microservice.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_microservice_api_version.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_ms_api_list.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_pod_instances.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_public_config_summary.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_repository.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_unit_rules.md create mode 100644 tencentcloud/tsf/data_source_tc_tsf_usable_unit_namespaces.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_api_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_api_rate_limit_rule.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application_config.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application_file_config.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application_file_config_release.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application_public_config.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application_public_config_release.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_application_release_config.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_bind_api_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_cluster.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_config_template.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_deploy_container_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_deploy_vm_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_enable_unit_rule.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_instances_attachment.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_lane.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_lane_rule.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_microservice.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_namespace.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_operate_container_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_operate_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_path_rewrite.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_release_api_group.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_task.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_unit_namespace.md create mode 100644 tencentcloud/tsf/resource_tc_tsf_unit_rule.md create mode 100644 tencentcloud/vod/data_source_tc_vod_adaptive_dynamic_streaming_templates.md create mode 100644 tencentcloud/vod/data_source_tc_vod_image_sprite_templates.md create mode 100644 tencentcloud/vod/data_source_tc_vod_procedure_templates.md create mode 100644 tencentcloud/vod/data_source_tc_vod_snapshot_by_time_offset_templates.md create mode 100644 tencentcloud/vod/data_source_tc_vod_super_player_configs.md create mode 100644 tencentcloud/vod/resource_tc_vod_adaptive_dynamic_streaming_template.md create mode 100644 tencentcloud/vod/resource_tc_vod_image_sprite_template.md create mode 100644 tencentcloud/vod/resource_tc_vod_procedure_template.md create mode 100644 tencentcloud/vod/resource_tc_vod_snapshot_by_time_offset_template.md create mode 100644 tencentcloud/vod/resource_tc_vod_sub_application.md create mode 100644 tencentcloud/vod/resource_tc_vod_super_player_config.md create mode 100644 tencentcloud/vpc/data_source_tc_address_template_groups.md create mode 100644 tencentcloud/vpc/data_source_tc_address_templates.md create mode 100644 tencentcloud/vpc/data_source_tc_dnats.md create mode 100644 tencentcloud/vpc/data_source_tc_enis.md create mode 100644 tencentcloud/vpc/data_source_tc_ha_vip_eip_attachments.md create mode 100644 tencentcloud/vpc/data_source_tc_ha_vips.md create mode 100644 tencentcloud/vpc/data_source_tc_nat_dc_route.md create mode 100644 tencentcloud/vpc/data_source_tc_nat_gateway_snats.md create mode 100644 tencentcloud/vpc/data_source_tc_nat_gateways.md create mode 100644 tencentcloud/vpc/data_source_tc_nats.md create mode 100644 tencentcloud/vpc/data_source_tc_protocol_template_groups.md create mode 100644 tencentcloud/vpc/data_source_tc_protocol_templates.md create mode 100644 tencentcloud/vpc/data_source_tc_route_table.md create mode 100644 tencentcloud/vpc/data_source_tc_security_group.md create mode 100644 tencentcloud/vpc/data_source_tc_security_groups.md create mode 100644 tencentcloud/vpc/data_source_tc_subnet.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_account_attributes.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_acls.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_bill_usage.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_bandwidth_package_quota.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_classic_link_instances.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_cvm_instances.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_gateway_flow_monitor_detail.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_gateway_flow_qos.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_instances.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_limits.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_net_detect_state_check.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_net_detect_states.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_network_interface_limit.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_private_ip_addresses.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_product_quota.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_resource_dashboard.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_route_conflicts.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_route_tables.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_security_group_limits.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_security_group_references.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_sg_snapshot_file_content.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_snapshot_files.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_subnet_resource_dashboard.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_subnets.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_template_limits.md create mode 100644 tencentcloud/vpc/data_source_tc_vpc_used_ip_address.md create mode 100644 tencentcloud/vpc/resource_tc_address_template.md create mode 100644 tencentcloud/vpc/resource_tc_address_template_group.md create mode 100644 tencentcloud/vpc/resource_tc_dnat.md create mode 100644 tencentcloud/vpc/resource_tc_eni.md create mode 100644 tencentcloud/vpc/resource_tc_eni_attachment.md create mode 100644 tencentcloud/vpc/resource_tc_eni_sg_attachment.md create mode 100644 tencentcloud/vpc/resource_tc_ha_vip.md create mode 100644 tencentcloud/vpc/resource_tc_ha_vip_eip_attachment.md create mode 100644 tencentcloud/vpc/resource_tc_ipv6_address_bandwidth.md create mode 100644 tencentcloud/vpc/resource_tc_nat_gateway.md create mode 100644 tencentcloud/vpc/resource_tc_nat_gateway_snat.md create mode 100644 tencentcloud/vpc/resource_tc_nat_refresh_nat_dc_route.md create mode 100644 tencentcloud/vpc/resource_tc_protocol_template.md create mode 100644 tencentcloud/vpc/resource_tc_protocol_template_group.md create mode 100644 tencentcloud/vpc/resource_tc_route_entry.md create mode 100644 tencentcloud/vpc/resource_tc_route_table.md create mode 100644 tencentcloud/vpc/resource_tc_route_table_association.md create mode 100644 tencentcloud/vpc/resource_tc_route_table_entry.md create mode 100644 tencentcloud/vpc/resource_tc_security_group.md create mode 100644 tencentcloud/vpc/resource_tc_security_group_lite_rule.md create mode 100644 tencentcloud/vpc/resource_tc_security_group_rule.md create mode 100644 tencentcloud/vpc/resource_tc_security_group_rule_set.md create mode 100644 tencentcloud/vpc/resource_tc_subnet.md create mode 100644 tencentcloud/vpc/resource_tc_vpc.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_acl.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_acl_attachment.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_bandwidth_package.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_bandwidth_package_attachment.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_dhcp_ip.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_ipv6_cidr_block.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_ipv6_eni_address.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_ipv6_subnet_cidr_block.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_local_gateway.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_net_detect.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_resume_snapshot_instance.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_snapshot_policy.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_snapshot_policy_attachment.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_snapshot_policy_config.md create mode 100644 tencentcloud/vpc/resource_tc_vpc_traffic_package.md create mode 100644 tencentcloud/vpn/data_source_tc_vpn_connections.md create mode 100644 tencentcloud/vpn/data_source_tc_vpn_customer_gateway_vendors.md create mode 100644 tencentcloud/vpn/data_source_tc_vpn_customer_gateways.md create mode 100644 tencentcloud/vpn/data_source_tc_vpn_default_health_check_ip.md create mode 100644 tencentcloud/vpn/data_source_tc_vpn_gateway_routes.md create mode 100644 tencentcloud/vpn/data_source_tc_vpn_gateways.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_connection.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_connection_reset.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_customer_gateway.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_customer_gateway_configuration_download.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_gateway.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_gateway_ccn_routes.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_gateway_route.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_gateway_ssl_client_cert.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_ssl_client.md create mode 100644 tencentcloud/vpn/resource_tc_vpn_ssl_server.md create mode 100644 tencentcloud/waf/data_source_tc_waf_attack_log_histogram.md create mode 100644 tencentcloud/waf/data_source_tc_waf_attack_log_list.md create mode 100644 tencentcloud/waf/data_source_tc_waf_attack_overview.md create mode 100644 tencentcloud/waf/data_source_tc_waf_attack_total_count.md create mode 100644 tencentcloud/waf/data_source_tc_waf_ciphers.md create mode 100644 tencentcloud/waf/data_source_tc_waf_domains.md create mode 100644 tencentcloud/waf/data_source_tc_waf_find_domains.md create mode 100644 tencentcloud/waf/data_source_tc_waf_instance_qps_limit.md create mode 100644 tencentcloud/waf/data_source_tc_waf_peak_points.md create mode 100644 tencentcloud/waf/data_source_tc_waf_ports.md create mode 100644 tencentcloud/waf/data_source_tc_waf_tls_versions.md create mode 100644 tencentcloud/waf/data_source_tc_waf_user_clb_regions.md create mode 100644 tencentcloud/waf/data_source_tc_waf_user_domains.md create mode 100644 tencentcloud/waf/resource_tc_waf_anti_fake.md create mode 100644 tencentcloud/waf/resource_tc_waf_anti_info_leak.md create mode 100644 tencentcloud/waf/resource_tc_waf_auto_deny_rules.md create mode 100644 tencentcloud/waf/resource_tc_waf_cc.md create mode 100644 tencentcloud/waf/resource_tc_waf_cc_auto_status.md create mode 100644 tencentcloud/waf/resource_tc_waf_cc_session.md create mode 100644 tencentcloud/waf/resource_tc_waf_clb_domain.md create mode 100644 tencentcloud/waf/resource_tc_waf_clb_instance.md create mode 100644 tencentcloud/waf/resource_tc_waf_custom_rule.md create mode 100644 tencentcloud/waf/resource_tc_waf_custom_white_rule.md create mode 100644 tencentcloud/waf/resource_tc_waf_ip_access_control.md create mode 100644 tencentcloud/waf/resource_tc_waf_modify_access_period.md create mode 100644 tencentcloud/waf/resource_tc_waf_module_status.md create mode 100644 tencentcloud/waf/resource_tc_waf_protection_mode.md create mode 100644 tencentcloud/waf/resource_tc_waf_saas_domain.md create mode 100644 tencentcloud/waf/resource_tc_waf_saas_instance.md create mode 100644 tencentcloud/waf/resource_tc_waf_web_shell.md create mode 100644 tencentcloud/wedata/data_source_tc_wedata_data_source_list.md create mode 100644 tencentcloud/wedata/data_source_tc_wedata_data_source_without_info.md create mode 100644 tencentcloud/wedata/data_source_tc_wedata_rule_templates.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_baseline.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_datasource.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_dq_rule.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_function.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_integration_offline_task.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_integration_realtime_task.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_integration_task_node.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_resource.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_rule_template.md create mode 100644 tencentcloud/wedata/resource_tc_wedata_script.md 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/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..1d01f8aea2 --- /dev/null +++ b/tencentcloud/dayuv2/resource_tc_dayu_ddos_policy_v2.md @@ -0,0 +1,79 @@ +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 + } +} + +``` \ 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_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_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_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.md b/tencentcloud/provider.md new file mode 100644 index 0000000000..a6313eb493 --- /dev/null +++ b/tencentcloud/provider.md @@ -0,0 +1,2088 @@ +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_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_instances + + 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_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_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_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/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..3495e8c60f --- /dev/null +++ b/tencentcloud/scf/resource_tc_scf_function.md @@ -0,0 +1,43 @@ +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 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 +``` \ 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_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_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)