Documentation ¶
Overview ¶
Use this data source to query detailed information of address template groups.
Example Usage ¶
```hcl
data "tencentcloud_address_template_groups" "name" { name = "test" }
```
Use this data source to query detailed information of address templates.
Example Usage ¶
```hcl
data "tencentcloud_address_templates" "name" { name = "test" }
```
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 }
```
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 }
```
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 }
```
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 }
```
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 }
```
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 = "hello_update" 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 = "<note>success</note>" response_fail_example = "<note>fail</note>" 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"] }
```
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 }
```
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" }
```
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 }
```
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" }
```
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" }
```
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" }
```
Use this data source to query the cos region list supported by the audit.
Example Usage ```hcl data "tencentcloud_audit_cos_regions" "foo" { } ```
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" }
```
Use this data source to query detailed information of audits.
Example Usage ¶
```hcl
data "tencentcloud_audits" "audits" { name = "test" }
```
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" }
```
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.
Example Usage ¶
```hcl
data "tencentcloud_availability_zones" "my_favourite_zone" { name = "ap-guangzhou-3" }
```
Use this data source to get the available zones in current region. Must set product param to fetch the product infomations(e.g. => cvm, vpc) By default only `AVAILABLE` zones will be returned, but `UNAVAILABLE` zones can also be fetched when `include_unavailable` is specified.
Example Usage ¶
```hcl
data "tencentcloud_availability_zones_by_product" "all" { product="cvm" }
```
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 }
```
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 }
```
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" }
```
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" }
```
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 }
```
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" }
```
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" }
```
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 }
```
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" }
```
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 }
```
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"] }
```
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" }
```
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" }
```
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"] }
```
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" }
```
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 }
```
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 }
```
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 }
```
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 }
```
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" }
```
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" }
```
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" }
```
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" }
```
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" }
```
Use this data source to query detailed instance information of Ckafka ¶
Example Usage ¶
```hcl
data "tencentcloud_ckafka_instances" "foo" { instance_ids=["ckafka-vv7wpvae"] }
```
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 }
```
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" }
```
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" }
```
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" }
```
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" }
```
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 }
```
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" }
```
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 }
```
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" }
```
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" { } ```
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" }
```
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" }
```
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" }
```
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" }
```
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" { } ```
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 }
```
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 }
```
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 }
```
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 }
```
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 }
```
Use this data source to query dayu eip rules ¶
Example Usage ¶
```hcl
data "tencentcloud_dayu_eip" "test" { resource_id="bgpip-000004xg" }
```
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 }
```
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" }
```
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 }
```
Use this data source to query new dayu layer 7 rules ¶
Example Usage ¶
```hcl
data "tencentcloud_dayu_l7_rules_v2" "test" { business = "bgpip" offset = 0 limit = 10 }
```
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 }
```
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 }
```
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" }
```
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 }
```
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" }
```
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 }
```
Use this data source to query detailed information of dcdb parameters ¶
Example Usage ¶
```hcl
data "tencentcloud_dcdb_parameters" "parameters" { instance_id = "your_instance_id" }
```
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" }
```
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"] }
```
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" }
```
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" }
```
Provide a datasource to query Domains.
Example Usage ¶
```hcl data "tencentcloud_domains" "foo" { } ```
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"] } }
```
Use this data source to query eip instances.
Example Usage ¶
```hcl
data "tencentcloud_eips" "foo" { eip_id = "eip-ry9h95hg" }
```
Provide a datasource to query EKS cluster credential info (offlined).
~> **NOTE:** This resource was offline no longer supported.
Example Usage ¶
```hcl
data "tencentcloud_eks_cluster_credential" "foo" { cluster_id = "cls-xxxxxxxx" }
example outputs ¶
output "addresses" { value = data.tencentcloud_eks_cluster_credential.cred.addresses }
output "ca_cert" { value = data.tencentcloud_eks_cluster_credential.cred.credential.ca_cert }
output "token" { value = data.tencentcloud_eks_cluster_credential.cred.credential.token }
output "public_lb_param" { value = data.tencentcloud_eks_cluster_credential.cred.public_lb.0.extra_param }
output "internal_lb_subnet" { value = data.tencentcloud_eks_cluster_credential.cred.internal_lb.0.subnet_id }
```
Use this data source to query elastic kubernetes cluster resource (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
```
data "tencentcloud_eks_clusters" "foo" { cluster_id = "cls-xxxxxxxx" }
```
Use this data source to query elasticsearch instances.
Example Usage ¶
```hcl
data "tencentcloud_elasticsearch_instances" "foo" { instance_id = "es-17634f05" }
```
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"] }
```
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" }
```
Use this data source to query query ENIs.
Example Usage ¶
```hcl
data "tencentcloud_enis" "name" { name = "test eni" }
```
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 }
```
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 }
```
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 }
```
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 }
```
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 }
```
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 }
```
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] }
```
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 }
```
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 }
```
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 }
```
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" }
```
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" }
```
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"] } }
```
Use this data source to query images.
Example Usage ¶
```hcl
data "tencentcloud_images" "foo" { image_type = ["PUBLIC_IMAGE"] os_name = "centos 7.5" }
```
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"] } }
```
Use this data source to query cvm instances.
Example Usage ¶
```hcl
data "tencentcloud_instances" "foo" { instance_id = "ins-da412f5a" }
```
Use this data source to query cvm instances in parallel.
Example Usage ¶
```hcl
data "tencentcloud_instances_set" "foo" { vpc_id = "vpc-4owdpnwr" }
```
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$" }
```
Use this data source to query detailed information of KMS key ¶
Example Usage ¶
```hcl
data "tencentcloud_kms_keys" "foo" { search_key_alias = "test" key_state = 0 origin = "TENCENT_KMS" key_usage = "ALL" }
```
Use this data source to query detailed information of kubernetes cluster addons.
Example Usage ¶
```hcl data "tencentcloud_kubernetes_charts" "name" {} ```
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"] }
```
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 }
```
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" }
```
Use this data source to query detailed information of mariadb accounts ¶
Example Usage ¶
```hcl
data "tencentcloud_mariadb_accounts" "accounts" { instance_id = "tdsql-4pzs5b67" }
```
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" }
```
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" }
```
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" }
```
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" }
```
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 = [] }
```
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 }
```
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" }
```
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" }
```
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" }
```
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"] }
```
Use this data source to query product namespace in monitor)
Example Usage ¶
```hcl
data "tencentcloud_monitor_product_namespace" "instances" { name = "Redis" }
```
Use this data source to query the list of backup databases.
Example Usage ¶
```hcl
data "tencentcloud_mysql_backup_list" "default" { mysql_id = "my-test-database" max_number = 10 result_output_file = "mytestpath" }
```
Provide a datasource to query default mysql parameters.
Example Usage ¶
```hcl
resource "tencentcloud_mysql_default_params" "mysql_57" { db_version = "5.7" }
```
Use this data source to get information about a MySQL instance.
Example Usage ¶
```hcl
data "tencentcloud_mysql_instance" "database" { mysql_id = "my-test-database" result_output_file = "mytestpath" }
```
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 = "my-test-database" engine_version = "5.5" result_output_file = "mytestpath" }
```
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" }
```
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" }
```
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" }
```
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 }
```
Use this data source to query placement groups.
Example Usage ¶
```hcl
data "tencentcloud_placement_groups" "foo" { placement_group_id = "ps-21q9ibvr" name = "test" }
```
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" }
```
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" }
```
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" }
```
Use this data source to query detailed information of protocol template groups.
Example Usage ¶
```hcl
data "tencentcloud_protocol_template_groups" "name" { name = "test" }
```
Use this data source to query detailed information of protocol templates.
Example Usage ¶
```hcl
data "tencentcloud_protocol_templates" "name" { name = "test" }
```
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" }
```
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" }
```
Use this data source to query reserved instances configuration.
Example Usage ¶
```hcl
data "tencentcloud_reserved_instance_configs" "config" { availability_zone = "na-siliconvalley-1" }
```
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" }
```
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" }
```
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 }
```
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 }
```
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 }
```
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 }
```
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 }
```
Use this data source to query the list of SQL Server account DB privileges.
Example Usage ¶
```hcl
data "tencentcloud_sqlserver_account_db_attachments" "test"{ instance_id = tencentcloud_sqlserver_instance.test.id account_name = tencentcloud_sqlserver_account_db_attachment.test.account_name }
```
Use this data source to query the list of SQL Server accounts.
Example Usage ¶
```hcl
data "tencentcloud_sqlserver_accounts" "name" { instance_id = "mssql-3cdq7kx5" name = "myaccount" }
data "tencentcloud_sqlserver_accounts" "foo" { instance_id = "mssql-3cdq7kx5" }
```
Use this data source to query the list of SQL Server backups.
Example Usage ¶
```hcl
data "tencentcloud_sqlserver_backups" "foo" { instance_id = "mssql-3cdq7kx5" start_time = "2020-06-17 00:00:00" end_time = "2020-06-22 00:00:00" }
```
Use this data source to query SQL Server basic instances ¶
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_basic_instance" "test" { name = "tf_sqlserver_basic_instance" availability_zone = var.availability_zone charge_type = "POSTPAID_BY_HOUR" vpc_id = "vpc-26w7r56z" subnet_id = "subnet-lvlr6eeu" machine_type = "CLOUD_PREMIUM" project_id = 0 memory = 2 storage = 10 cpu = 1 security_groups = ["sg-nltpbqg1"] tags = { "test" = "test" } }
```
Use this data source to query DB resources for the specific SQL Server instance.
Example Usage ¶
```hcl
data "tencentcloud_sqlserver_dbs" "example" { instance_id = "mssql-3cdq7kx5" }
```
Use this data source to query SQL Server instances ¶
Example Usage ¶
```hcl
data "tencentcloud_sqlserver_instances" "vpc"{ vpc_id = "vpc-409mvdvv" subnet_id = "subnet-nf9n81ps" }
data "tencentcloud_sqlserver_instances" "project"{ project_id = 0 }
data "tencentcloud_sqlserver_instances" "id"{ id = "postgres-h9t4fde1" }
```
Use this data source to query Publish Subscribe resources for the specific SQL Server instance.
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_publish_subscribe" "example" { publish_instance_id = tencentcloud_sqlserver_instance.publish_instance.id subscribe_instance_id = tencentcloud_sqlserver_instance.subscribe_instance.id publish_subscribe_name = "example" delete_subscribe_db = false database_tuples { publish_database = tencentcloud_sqlserver_db.test_publish_subscribe.name } }
```
Use this data source to query the list of SQL Server readonly groups.
Example Usage ¶
```hcl
data "tencentcloud_sqlserver_readonly_groups" "master" { master_instance_id = "mssql-3cdq7kx5" }
```
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" "mysqlserver" { } ```
Use this data source to query SSL certificate.
Example Usage ¶
```hcl
data "tencentcloud_ssl_certificates" "foo" { name = "certificate" }
```
Use this data source to query detailed information of SSM secret version Example Usage ```hcl
data "tencentcloud_ssm_secret_versions" "foo" { secret_name = "test" version_id = "v1" }
```
Use this data source to query detailed information of SSM secret Example Usage ```hcl
data "tencentcloud_ssm_secrets" "foo" { secret_name = "test" order_type = 1 state = 1 }
```
Use this data source to query detailed information of sts callerIdentity ¶
Example Usage ¶
```hcl data "tencentcloud_sts_caller_identity" "callerIdentity" { } ```
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" }
```
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" }
```
Use this data source to query IDL information of the TcaplusDB table.
Example Usage ¶
```hcl
data "tencentcloud_tcaplus_idls" "id_test" { cluster_id = "19162256624" }
```
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" }
```
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" }
```
Use this data source to query detailed information of TCR instances.
Example Usage ¶
```hcl
data "tencentcloud_tcr_instances" "name" { name = "test" }
```
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" }
```
Use this data source to query detailed information of TCR repositories.
Example Usage ¶
```hcl
data "tencentcloud_tcr_repositories" "name" { name = "test" }
```
Use this data source to query detailed information of TCR tokens.
Example Usage ¶
```hcl
data "tencentcloud_tcr_tokens" "name" { instance_id = "cls-satg5125" }
```
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" }
```
Use this data source to query detailed information of teo botManagedRules ¶
Example Usage ¶
```hcl
data "tencentcloud_teo_bot_managed_rules" "botManagedRules" { zone_id = "" entity = "" }
```
Use this data source to query detailed information of teo botPortraitRules ¶
Example Usage ¶
```hcl
data "tencentcloud_teo_bot_portrait_rules" "botPortraitRules" { zone_id = "" entity = "" }
```
Use this data source to query detailed information of teo ruleEngineSettings ¶
Example Usage ¶
```hcl data "tencentcloud_teo_rule_engine_settings" "ruleEngineSettings" { } ```
Use this data source to query detailed information of teo securityPolicyRegions ¶
Example Usage ¶
```hcl data "tencentcloud_teo_security_policy_regions" "securityPolicyRegions" { } ```
Use this data source to query detailed information of teo wafRuleGroups ¶
Example Usage ¶
```hcl
data "tencentcloud_teo_waf_rule_groups" "wafRuleGroups" { zone_id = "" entity = "" }
```
Use this data source to query detailed information of teo zoneAvailablePlans ¶
Example Usage ¶
```hcl data "tencentcloud_teo_zone_available_plans" "zoneAvailablePlans" { } ```
Use this data source to query detailed information of teo zoneDDoSPolicy ¶
Example Usage ¶
```hcl
data "tencentcloud_teo_zone_ddos_policy" "zoneDDoSPolicy" { zone_id = "" }
```
Use this data source to query user appid, uin and ownerUin.
Example Usage ¶
```hcl data "tencentcloud_user_info" "foo" {} ```
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 }
```
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 }
```
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 }
```
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 }
```
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" }
```
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 }
```
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" }
```
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 }
```
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 }
```
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 }
```
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" } }
```
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" } }
```
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" } }
```
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" } }
```
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
Anti-DDoS(DayuV2)
Data Source tencentcloud_dayu_eip tencentcloud_dayu_l4_rules_v2 tencentcloud_dayu_l7_rules_v2 Resource tencentcloud_dayu_eip tencentcloud_dayu_l4_rule tencentcloud_dayu_l7_rule_v2 tencentcloud_dayu_ddos_policy_v2 tencentcloud_dayu_cc_policy_v2
Anti-DDoS(Dayu)
Data Source tencentcloud_dayu_cc_http_policies tencentcloud_dayu_cc_https_policies tencentcloud_dayu_ddos_policies tencentcloud_dayu_ddos_policy_attachments tencentcloud_dayu_ddos_policy_cases tencentcloud_dayu_l4_rules tencentcloud_dayu_l7_rules Resource tencentcloud_dayu_cc_http_policy tencentcloud_dayu_cc_https_policy tencentcloud_dayu_ddos_policy tencentcloud_dayu_ddos_policy_attachment tencentcloud_dayu_ddos_policy_case tencentcloud_dayu_l4_rule tencentcloud_dayu_l7_rule
API GateWay
Data Source tencentcloud_api_gateway_apis tencentcloud_api_gateway_services tencentcloud_api_gateway_throttling_services tencentcloud_api_gateway_throttling_apis tencentcloud_api_gateway_usage_plans tencentcloud_api_gateway_ip_strategies tencentcloud_api_gateway_customer_domains tencentcloud_api_gateway_usage_plan_environments tencentcloud_api_gateway_api_keys 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
Audit
Data Source tencentcloud_audit_cos_regions tencentcloud_audit_key_alias tencentcloud_audits Resource tencentcloud_audit
Auto Scaling(AS)
Data Source tencentcloud_as_scaling_configs tencentcloud_as_scaling_groups tencentcloud_as_scaling_policies Resource tencentcloud_as_scaling_config tencentcloud_as_scaling_group tencentcloud_as_attachment tencentcloud_as_scaling_policy tencentcloud_as_schedule tencentcloud_as_lifecycle_hook tencentcloud_as_notification
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
Ckafka
Data Source tencentcloud_ckafka_users tencentcloud_ckafka_acls tencentcloud_ckafka_topics tencentcloud_ckafka_instances Resource tencentcloud_ckafka_instance tencentcloud_ckafka_user tencentcloud_ckafka_acl tencentcloud_ckafka_topic
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 Resource tencentcloud_cam_role tencentcloud_cam_role_policy_attachment tencentcloud_cam_policy 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
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
Cloud Connect Network(CCN)
Data Source tencentcloud_ccn_bandwidth_limits tencentcloud_ccn_instances Resource tencentcloud_ccn tencentcloud_ccn_attachment tencentcloud_ccn_bandwidth_limit
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 Resource tencentcloud_cfs_file_system tencentcloud_cfs_access_group tencentcloud_cfs_access_rule
Container Cluster
Data Source tencentcloud_container_cluster_instances tencentcloud_container_clusters Resource tencentcloud_container_cluster tencentcloud_container_cluster_instance
Cloud Load Balancer(CLB)
Data Source tencentcloud_clb_attachments tencentcloud_clb_instances tencentcloud_clb_listener_rules tencentcloud_clb_listeners tencentcloud_clb_redirections tencentcloud_clb_target_groups 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
Cloud Object Storage(COS)
Data Source tencentcloud_cos_bucket_object tencentcloud_cos_buckets Resource tencentcloud_cos_bucket tencentcloud_cos_bucket_object tencentcloud_cos_bucket_policy tencentcloud_cos_bucket_domain_certificate_attachment
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_placement_groups tencentcloud_reserved_instance_configs tencentcloud_reserved_instances Resource tencentcloud_instance tencentcloud_instance_set tencentcloud_eip tencentcloud_eip_association tencentcloud_key_pair tencentcloud_placement_group tencentcloud_reserved_instance tencentcloud_image
CynosDB
Data Source tencentcloud_cynosdb_clusters tencentcloud_cynosdb_instances tencentcloud_cynosdb_zone_config Resource tencentcloud_cynosdb_cluster tencentcloud_cynosdb_readonly_instance
Direct Connect(DC)
Data Source tencentcloud_dc_instances tencentcloud_dcx_instances Resource tencentcloud_dcx
Direct Connect Gateway(DCG)
Data Source tencentcloud_dc_gateway_ccn_routes tencentcloud_dc_gateway_instances Resource tencentcloud_dc_gateway tencentcloud_dc_gateway_ccn_route
Domain
Data Source tencentcloud_domains
Elasticsearch
Data Source tencentcloud_elasticsearch_instances Resource tencentcloud_elasticsearch_instance
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 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
KMS
Data Source tencentcloud_kms_keys Resource tencentcloud_kms_key tencentcloud_kms_external_key
Tencent Kubernetes Engine(TKE)
Data Source tencentcloud_kubernetes_clusters tencentcloud_kubernetes_cluster_levels tencentcloud_kubernetes_charts tencentcloud_kubernetes_cluster_common_names Resource tencentcloud_kubernetes_cluster tencentcloud_kubernetes_scale_worker tencentcloud_kubernetes_cluster_attachment tencentcloud_kubernetes_node_pool tencentcloud_kubernetes_auth_attachment tencentcloud_kubernetes_addon_attachment tencentcloud_kubernetes_cluster_endpoint
TDMQ
Resource tencentcloud_tdmq_instance tencentcloud_tdmq_namespace tencentcloud_tdmq_topic tencentcloud_tdmq_role tencentcloud_tdmq_namespace_role_attachment
MongoDB
Data Source tencentcloud_mongodb_instances tencentcloud_mongodb_zone_config Resource tencentcloud_mongodb_instance tencentcloud_mongodb_sharding_instance tencentcloud_mongodb_standby_instance
MySQL
Data Source tencentcloud_mysql_backup_list tencentcloud_mysql_instance tencentcloud_mysql_parameter_list tencentcloud_mysql_default_params tencentcloud_mysql_zone_config Resource tencentcloud_mysql_instance tencentcloud_mysql_readonly_instance tencentcloud_mysql_account tencentcloud_mysql_privilege tencentcloud_mysql_account_privilege tencentcloud_mysql_backup_policy
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 Resource tencentcloud_monitor_policy_group tencentcloud_monitor_binding_object tencentcloud_monitor_policy_binding_object tencentcloud_monitor_binding_receiver tencentcloud_monitor_alarm_policy tencentcloud_monitor_tmp_instance tencentcloud_monitor_tmp_cvm_agent tencentcloud_monitor_tmp_scrape_job tencentcloud_monitor_tmp_exporter_integration tencentcloud_monitor_tmp_alert_rule tencentcloud_monitor_tmp_recording_rule tencentcloud_monitor_tmp_tke_template tencentcloud_monitor_tmp_tke_template_attachment tencentcloud_monitor_tmp_tke_alert_policy tencentcloud_monitor_tmp_tke_config tencentcloud_monitor_alarm_notice tencentcloud_monitor_tmp_tke_record_rule_yaml tencentcloud_monitor_tmp_tke_global_notification tencentcloud_monitor_tmp_tke_cluster_agent tencentcloud_monitor_grafana_instance tencentcloud_monitor_grafana_integration tencentcloud_monitor_grafana_notification_channel tencentcloud_monitor_grafana_plugin tencentcloud_monitor_grafana_sso_account
PostgreSQL
Data Source tencentcloud_postgresql_instances tencentcloud_postgresql_specinfos tencentcloud_postgresql_xlogs Resource tencentcloud_postgresql_instance tencentcloud_postgresql_readonly_instance tencentcloud_postgresql_readonly_group tencentcloud_postgresql_readonly_attachment
Redis
Data Source tencentcloud_redis_zone_config tencentcloud_redis_instances Resource tencentcloud_redis_instance tencentcloud_redis_backup_config
Serverless Cloud Function(SCF)
Data Source tencentcloud_scf_functions tencentcloud_scf_logs tencentcloud_scf_namespaces Resource tencentcloud_scf_function tencentcloud_scf_namespace tencentcloud_scf_layer
SQLServer
Data Source tencentcloud_sqlserver_zone_config tencentcloud_sqlserver_instances tencentcloud_sqlserver_dbs tencentcloud_sqlserver_accounts tencentcloud_sqlserver_account_db_attachments tencentcloud_sqlserver_backups tencentcloud_sqlserver_readonly_groups tencentcloud_sqlserver_publish_subscribes tencentcloud_sqlserver_basic_instances 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
SSL Certificates
Data Source tencentcloud_ssl_certificates Resource tencentcloud_ssl_certificate tencentcloud_ssl_pay_certificate tencentcloud_ssl_free_certificate
SSM
Data Source tencentcloud_ssm_secrets tencentcloud_ssm_secret_versions Resource tencentcloud_ssm_secret tencentcloud_ssm_secret_version
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 Resource tencentcloud_tcr_instance tencentcloud_tcr_namespace tencentcloud_tcr_repository tencentcloud_tcr_token tencentcloud_tcr_vpc_attachment
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
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_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 Resource tencentcloud_eni tencentcloud_eni_attachment tencentcloud_vpc tencentcloud_vpc_acl tencentcloud_vpc_acl_attachment tencentcloud_subnet tencentcloud_security_group tencentcloud_security_group_rule tencentcloud_security_group_lite_rule tencentcloud_address_template tencentcloud_address_template_group tencentcloud_protocol_template tencentcloud_protocol_template_group tencentcloud_route_table tencentcloud_route_entry tencentcloud_route_table_entry tencentcloud_dnat tencentcloud_nat_gateway tencentcloud_nat_gateway_snat tencentcloud_ha_vip tencentcloud_ha_vip_eip_attachment tencentcloud_vpc_bandwidth_package tencentcloud_vpc_bandwidth_package_attachment
VPN
Data Source tencentcloud_vpn_connections tencentcloud_vpn_customer_gateways tencentcloud_vpn_gateways tencentcloud_vpn_gateway_routes Resource tencentcloud_vpn_customer_gateway tencentcloud_vpn_gateway tencentcloud_vpn_gateway_route tencentcloud_vpn_connection tencentcloud_vpn_ssl_server tencentcloud_vpn_ssl_client
EMR
Data Source tencentcloud_emr tencentcloud_emr_nodes Resource tencentcloud_emr_cluster
DNSPOD
Resource tencentcloud_dnspod_domain_instance tencentcloud_dnspod_record
PrivateDNS
Resource tencentcloud_private_dns_zone tencentcloud_private_dns_record
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
Lighthouse
Resource tencentcloud_lighthouse_instance
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 EdgeOne(TEO)
Data Source tencentcloud_teo_zone_available_plans tencentcloud_teo_bot_managed_rules tencentcloud_teo_bot_portrait_rules tencentcloud_teo_rule_engine_settings tencentcloud_teo_security_policy_regions tencentcloud_teo_waf_rule_groups tencentcloud_teo_zone_ddos_policy Resource tencentcloud_teo_zone tencentcloud_teo_zone_setting tencentcloud_teo_dns_record tencentcloud_teo_dns_sec tencentcloud_teo_load_balancing tencentcloud_teo_origin_group tencentcloud_teo_rule_engine tencentcloud_teo_rule_engine_priority tencentcloud_teo_application_proxy tencentcloud_teo_application_proxy_rule tencentcloud_teo_ddos_policy tencentcloud_teo_security_policy tencentcloud_teo_custom_error_page
TencentCloud ServiceMesh(TCM)
Resource tencentcloud_tcm_mesh tencentcloud_tcm_cluster_attachment
Simple Email Service(SES)
Resource tencentcloud_ses_domain tencentcloud_ses_template tencentcloud_ses_email_address
Security Token Service(STS)
Data Source tencentcloud_sts_caller_identity
dcdb
Data Source tencentcloud_dcdb_instances tencentcloud_dcdb_accounts tencentcloud_dcdb_databases tencentcloud_dcdb_parameters tencentcloud_dcdb_shards tencentcloud_dcdb_security_groups Resource tencentcloud_dcdb_account tencentcloud_dcdb_hourdb_instance tencentcloud_dcdb_security_group_attachment
Short Message Service(SMS)
Resource tencentcloud_sms_sign tencentcloud_sms_template
Cloud Automated Testing(CAT)
Data Source tencentcloud_cat_probe_data tencentcloud_cat_node Resource tencentcloud_cat_task_set
TencentDB for MariaDB(MariaDB)
Data Source tencentcloud_mariadb_db_instances tencentcloud_mariadb_accounts tencentcloud_mariadb_security_groups Resource tencentcloud_mariadb_dedicatedcluster_db_instance tencentcloud_mariadb_hour_db_instance tencentcloud_mariadb_account tencentcloud_mariadb_parameters tencentcloud_mariadb_log_file_retention_period tencentcloud_mariadb_security_groups
Performance Testing Service(PTS)
Resource tencentcloud_pts_project tencentcloud_pts_alert_channel tencentcloud_pts_scenario tencentcloud_pts_file tencentcloud_pts_job tencentcloud_pts_cron_job
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" ```
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 ```
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 }, ] }
```
Use this resource to create API of API gateway.
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" 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 = 100 msg = "system error" desc = "system error code" converted_code = -100 need_convert = true } }
```
Use this resource to create API gateway access key.
Example Usage ¶
```hcl
resource "tencentcloud_api_gateway_api_key" "test" { secret_name = "my_api_key" status = "on" }
```
Import ¶
API gateway access key can be imported using the id, e.g.
``` $ terraform import tencentcloud_api_gateway_api_key.test AKIDMZwceezso9ps5p8jkro8a9fwe1e7nzF2k50B ```
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 ```
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"] }
```
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 ```
Use this resource to create API gateway service.
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 = 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 ```
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 = "hello_update" 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 = "<note>success</note>" response_fail_example = "<note>fail</note>" 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 ```
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 = "hello_update" 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 = "<note>success</note>" response_fail_example = "<note>fail</note>" 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 ```
Use this resource to create API gateway usage 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 }
```
Import ¶
API gateway usage plan can be imported using the id, e.g.
``` $ terraform import tencentcloud_api_gateway_usage_plan.plan usagePlan-gyeafpab ```
Use this resource to attach API gateway usage plan to service.
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_api" "api" { service_id = tencentcloud_api_gateway_service.service.id api_name = "hello_update" 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 = "<note>success</note>" response_fail_example = "<note>fail</note>" response_error_codes { code = 10 msg = "system error" desc = "system error code" converted_code = -10 need_convert = true } }
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 = "release" bind_type = "API" api_id = tencentcloud_api_gateway_api.api.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 ```
Provides a resource to attach or detach CVM instances to a specified scaling group.
Example Usage ¶
```hcl
resource "tencentcloud_as_attachment" "attachment" { scaling_group_id = "sg-afasfa" instance_ids = ["ins-01", "ins-02"] }
```
Provides a resource for an AS (Auto scaling) lifecycle hook.
Example Usage ¶
```hcl
resource "tencentcloud_as_lifecycle_hook" "lifecycle_hook" { scaling_group_id = "sg-12af45" 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" }
```
Provides a resource for an AS (Auto scaling) notification.
Example Usage ¶
```hcl
resource "tencentcloud_as_notification" "as_notification" { scaling_group_id = "sg-12af45" notification_types = ["SCALE_OUT_FAILED", "SCALE_IN_SUCCESSFUL", "SCALE_IN_FAILED", "REPLACE_UNHEALTHY_INSTANCE_FAILED"] notification_user_group_ids = ["76955"] }
```
Provides a resource to create a configuration for an AS (Auto scaling) instance.
Example Usage ¶
```hcl
resource "tencentcloud_as_scaling_config" "launch_configuration" { configuration_name = "launch-configuration" image_id = "img-9qabwvbn" 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 = "test123#" enhanced_security_service = false enhanced_monitor_service = false user_data = "dGVzdA==" instance_tags = { tag = "as" } }
```
Using SPOT charge type ```
resource "tencentcloud_as_scaling_config" "launch_configuration" { configuration_name = "launch-configuration" image_id = "img-9qabwvbn" 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.scaling_config asc-n32ymck2 ```
Provides a resource to create a group of AS (Auto scaling) instances.
Example Usage ¶
```hcl
resource "tencentcloud_as_scaling_group" "scaling_group" { scaling_group_name = "tf-as-scaling-group" configuration_id = "asc-oqio4yyj" max_size = 1 min_size = 0 vpc_id = "vpc-3efmz0z" subnet_ids = ["subnet-mc3egos"] project_id = 0 default_cooldown = 400 desired_capacity = 1 termination_policies = ["NEWEST_INSTANCE"] retry_policy = "INCREMENTAL_INTERVALS" forward_balancer_ids { load_balancer_id = "lb-hk693b1l" listener_id = "lbl-81wr497k" rule_id = "loc-kiodx943" target_attribute { port = 80 weight = 90 } } }
```
Import ¶
AutoScaling Groups can be imported using the id, e.g.
``` $ terraform import tencentcloud_as_scaling_group.scaling_group asg-n32ymck2 ```
Provides a resource for an AS (Auto scaling) policy.
Example Usage ¶
```hcl
resource "tencentcloud_as_scaling_policy" "scaling_policy" { scaling_group_id = "asg-n32ymck2" 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 }
```
Provides a resource for an AS (Auto scaling) schedule.
Example Usage ¶
```hcl
resource "tencentcloud_as_schedule" "schedule" { scaling_group_id = "sg-12af45" 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 * * *" }
```
Provides a resource to create an audit.
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 ```
Provides a resource to create a CAM group.
Example Usage ¶
```hcl
resource "tencentcloud_cam_group" "foo" { name = "cam-group-test" remark = "test" }
```
Import ¶
CAM group can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_group.foo 90496 ```
Provides a resource to create a CAM group membership.
Example Usage ¶
```hcl
resource "tencentcloud_cam_group_membership" "foo" { group_id = tencentcloud_cam_group.foo.id user_names = [tencentcloud_cam_user.foo.name, tencentcloud_cam_user.bar.name] }
```
Import ¶
CAM group membership can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_group_membership.foo 12515263 ```
Provides a resource to create a CAM group policy attachment.
Example Usage ¶
```hcl
resource "tencentcloud_cam_group_policy_attachment" "foo" { group_id = tencentcloud_cam_group.foo.id policy_id = tencentcloud_cam_policy.foo.id }
```
Import ¶
CAM group policy attachment can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_group_policy_attachment.foo 12515263#26800353 ```
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 ```
Provides a resource to create a CAM policy.
Example Usage ¶
```hcl
resource "tencentcloud_cam_policy" "foo" { name = "cam-policy-test" document = <<EOF
{ "version": "2.0", "statement": [ { "action": [ "name/sts:AssumeRole" ], "effect": "allow", "resource": [ "*" ] } ] }
EOF
description = "test" }
```
Import ¶
CAM policy can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_policy.foo 26655801 ```
Provides a resource to create a CAM role.
Example Usage ¶
Create normally ¶
```hcl
resource "tencentcloud_cam_role" "foo" { name = "cam-role-test" document = <<EOF
{ "version": "2.0", "statement": [ { "action": ["name/sts:AssumeRole"], "effect": "allow", "principal": { "qcs": ["qcs::cam::uin/<your-account-id>:uin/<your-account-id>"] } } ] }
EOF
description = "test" console_login = true tags = { test = "tf-cam-role", } }
```
Create with SAML provider ¶
```hcl
resource "tencentcloud_cam_role" "boo" { name = "cam-role-test" document = <<EOF
{ "version": "2.0", "statement": [ { "action": ["name/sts:AssumeRole", "name/sts:AssumeRoleWithWebIdentity"], "effect": "allow", "principal": { "federated": ["qcs::cam::uin/<your-account-id>:saml-provider/<your-name>"] } } ] }
EOF
description = "test" console_login = true }
```
Import ¶
CAM role can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_role.foo 4611686018427733635 ```
Provides a resource to create a CAM role policy attachment.
Example Usage ¶
```hcl
resource "tencentcloud_cam_role_policy_attachment" "foo" { role_id = tencentcloud_cam_role.foo.id policy_id = tencentcloud_cam_policy.foo.id }
```
Import ¶
CAM role policy attachment can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_role_policy_attachment.foo 4611686018427922725#26800353 ```
Provides a resource to create a CAM-ROLE-SSO (Only support OIDC).
Example Usage ¶
```hcl
resource "tencentcloud_cam_role_sso" "foo" { name="test" 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" ```
Provides a resource to create a CAM SAML provider.
Example Usage ¶
```hcl
resource "tencentcloud_cam_saml_provider" "saml_provider_basic" { name = "cam-saml-provider-test" meta_data = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI+PG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIj48bWQ6S2V5RGVzY3JpcHRvciB1c2U9InNpZ25pbmciPjxkczpLZXlJbmZvIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj48ZHM6WDUwOURhdGE+PGRzOlg1MDlDZXJ0aWZpY2F0ZT5NSUlEb0RDQ0FvaWdBd0lCQWdJR0FXM0lTcExvTUEwR0NTcUdTSWIzRFFFQkN3VUFNSUdRTVFzd0NRWURWUVFHRXdKVlV6RVRNQkVHDQpBMVVFQ0F3S1EyRnNhV1p2Y201cFlURVdNQlFHQTFVRUJ3d05VMkZ1SUVaeVlXNWphWE5qYnpFTk1Bc0dBMVVFQ2d3RVQydDBZVEVVDQpNQklHQTFVRUN3d0xVMU5QVUhKdmRtbGtaWEl4RVRBUEJnTlZCQU1NQ0dsa2VIVmxkblJoTVJ3d0dnWUpLb1pJaHZjTkFRa0JGZzFwDQpibVp2UUc5cmRHRXVZMjl0TUI0WERURTVNVEF4TkRBek1qSXhNMW9YRFRJNU1UQXhOREF6TWpNeE0xb3dnWkF4Q3pBSkJnTlZCQVlUDQpBbFZUTVJNd0VRWURWUVFJREFwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFRSERBMVRZVzRnUm5KaGJtTnBjMk52TVEwd0N3WURWUVFLDQpEQVJQYTNSaE1SUXdFZ1lEVlFRTERBdFRVMDlRY205MmFXUmxjakVSTUE4R0ExVUVBd3dJYVdSNGRXVjJkR0V4SERBYUJna3Foa2lHDQo5dzBCQ1FFV0RXbHVabTlBYjJ0MFlTNWpiMjB3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQ2g4b3dqDQpZK2dQSUM3blQvNTduLzdmeXJzcDlHMXdxa2UxdXhjMHVrTndnQXozOVNpelY3QVhLMWRReTFLaThXWjJJMzFEczJkT0FNQ1FKR2pWDQpUWWNNbnA3KzhqUzNLdmxNUkRJamk5cmxuUi9vcnBvMll1RHVWby9jVzdidlRIS2h2REo1QWZRaWxzYlNPTXdUOWM2TVlYZGhBNVBwDQpzelFsK1UrdHJmcXUrdUorSER4SVQxdlhWaVI5YlY2SUFRSzZpbWZoc2wxWmVSUytjbVFVNEpjQWlYT0xtTnFVVWM2UkpxUzhrMW1mDQpBLzhmb2VyMGc3SG4xZDVXclpCc2gyUlR2Vzh1ZVdadHQ3dmh4QTlGdE5kSVlEcXJ0eElmMlZXcXhrSHM3WFZDSm5wTnJITVovT1BRDQpGY21YSGVxNlJJMlB3Q1RlOW8zZHZpM0hqeXBaOEl4dkFnTUJBQUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUFHaHk1bG9nbGtTDQoyVHg2YS90MnF5VEx0YVV5cEwrNGhySGJoMVAweVVMc0NrSnFsM2wrWG9VZDZCY2FJaFNSVGFPQk95ODViL0UzelJ4K3JzQXJwTjVVDQp5ZThuUEM4a05PYW5vTk9wWnZvYmhpTzFlMFIvYmxEcnRBL0o5UlBwMWtmdlhmS2NSTTU3TlRCWXppTURlbnFQUTRFOWN1U2lGdFFxDQpJYmpIbThaM1B1YXgwRitldkZ3U1pJMDNCWXNISGw1d1EraEJBS3hTdTJINEZRdU93Zmpnb2EveEN6Z1NKYjJ2UXdEc1MxMk9mSkNiDQpSRm1ZL1VYZXQramFhdEVORktLZStZSUJpU0J2WG1adTN0MHN5NDZTNzlPVzBacXJ0NUh2bElsT2lpTFpaN1FZamxjM1kxeG1LZ1luDQpXM2M2WGZkdmhGWHo0ZDdkbWYvTUdpNGY0enM9PC9kczpYNTA5Q2VydGlmaWNhdGU+PC9kczpYNTA5RGF0YT48L2RzOktleUluZm8+PC9tZDpLZXlEZXNjcmlwdG9yPjxtZDpOYW1lSURGb3JtYXQ+dXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6MS4xOm5hbWVpZC1mb3JtYXQ6dW5zcGVjaWZpZWQ8L21kOk5hbWVJREZvcm1hdD48bWQ6TmFtZUlERm9ybWF0PnVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMTpuYW1laWQtZm9ybWF0OmVtYWlsQWRkcmVzczwvbWQ6TmFtZUlERm9ybWF0PjxtZDpTaW5nbGVTaWduT25TZXJ2aWNlIEJpbmRpbmc9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpiaW5kaW5nczpIVFRQLVBPU1QiIExvY2F0aW9uPSJodHRwczovL2lkeHVldnRhLm9rdGEuY29tL2FwcC9pZHh1ZW9yZzYzNzM1OF90ZXN0XzEvZXhrMWtxeG1jalFtR0FETXkzNTcvc3NvL3NhbWwiLz48bWQ6U2luZ2xlU2lnbk9uU2VydmljZSBCaW5kaW5nPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YmluZGluZ3M6SFRUUC1SZWRpcmVjdCIgTG9jYXRpb249Imh0dHBzOi8vaWR4dWV2dGEub2t0YS5jb20vYXBwL2lkeHVlb3JnNjM3MzU4X3Rlc3RfMS9leGsxa3F4bWNqUW1HQURNeTM1Ny9zc28vc2FtbCIvPjwvbWQ6SURQU1NPRGVzY3JpcHRvcj48L21kOkVudGl0eURlc2NyaXB0b3I+" description = "test" }
```
Import ¶
CAM SAML provider can be imported using the id, e.g.
``` $ terraform import tencentcloud_cam_saml_provider.foo cam-SAML-provider-test ```
Provides a resource to manage CAM user.
Example Usage ¶
```hcl
resource "tencentcloud_cam_user" "foo" { name = "cam-user-test" remark = "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 ```
Provides a resource to create a CAM user policy attachment.
Example Usage ¶
```hcl
resource "tencentcloud_cam_user_policy_attachment" "foo" { user_id = tencentcloud_cam_user.foo.id policy_id = tencentcloud_cam_policy.foo.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 ```
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 ```
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 ```
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 ```
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 }
```
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 ```
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 ```
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 }
```
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" }
```
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 ```
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 }
```
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 }
```
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 ```
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 = false 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 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 ```
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 }
```
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 }
```
Provides a resource to create a CFS access group.
Example Usage ¶
```hcl
resource "tencentcloud_cfs_access_group" "foo" { name = "test_access_group" description = "test" }
```
Import ¶
CFS access group can be imported using the id, e.g.
``` $ terraform import tencentcloud_cfs_access_group.foo pgroup-7nx89k7l ```
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" }
```
Provides a resource to create a cloud file system(CFS).
Example Usage ¶
```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" }
```
Import ¶
Cloud file system can be imported using the id, e.g.
``` $ terraform import tencentcloud_cfs_file_system.foo cfs-6hgquxmj ```
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 ```
Use this resource to create ckafka instance.
~> **NOTE:** It only support create profession ckafka instance.
Example Usage ¶
```hcl
resource "tencentcloud_ckafka_instance" "foo" { band_width = 40 disk_size = 500 disk_type = "CLOUD_BASIC" period = 1 instance_name = "ckafka-instance-tf-test" kafka_version = "1.1.1" msg_retention_time = 1300 multi_zone_flag = true partition = 800 public_network = 3 renew_flag = 0 subnet_id = "subnet-4vwihrzk" vpc_id = "vpc-82p1t1nv" zone_id = 100006 zone_ids = [ 100006, 100007, ] config { auto_create_topic_enable = true default_num_partitions = 3 default_replication_factor = 3 } dynamic_retention_config { bottom_retention = 0 disk_quota_percentage = 0 enable = 1 step_forward_percentage = 0 } }
```
Import ¶
ckafka instance can be imported using the instance_id, e.g.
``` $ terraform import tencentcloud_ckafka_instance.foo ckafka-f9ife4zz ```
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 ```
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 ```
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 ```
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 ```
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" } }
```
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" } }
```
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 ```
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" }
``` 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 ```
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 ```
Provides a resource to create an exclusive CLB Logset.
Example Usage ¶
```hcl
resource "tencentcloud_clb_log_set" "foo" { perioid = 7 }
```
Import ¶
CLB log set can be imported using the id, e.g.
``` $ terraform import tencentcloud_clb_logset.foo 4eb9e3a8-9c42-4b32-9ddf-e215e9c92764 ```
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
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 ```
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 ```
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 ```
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 ```
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 ```
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 = "" } ```
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" }
```
Provides a resource to create a cls config extra ¶
Example Usage ¶
```hcl
resource "tencentcloud_cls_config_extra" "extra" { name = "helloworld" 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
# host_file { # log_path = "/var/log/tmep" # file_pattern = "*.log" # custom_labels = ["key1=value1"] # }
container_file { container = "nginx" file_pattern = "log" log_path = "/nginx" namespace = "default" workload { container ="nginx" kind = "deployment" name = "nginx" namespace = "default" } } group_id ="27752a9b-9918-440a-8ee7-9c84a14a47ed" }
```
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 ```
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 ```
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 ```
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 ```
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 ```
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" }
```
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" }
```
Provides a COS resource to create a COS bucket and set its attributes.
Example Usage ¶
Private Bucket ¶
```hcl
resource "tencentcloud_cos_bucket" "mycos" { bucket = "mycos-1258798060" acl = "private" }
```
Creation of multiple available zone bucket ¶
```hcl
resource "tencentcloud_cos_bucket" "mycos" { bucket = "mycos-1258798060" acl = "private" multi_az = true versioning_enable = true force_clean = true }
```
Using verbose acl ```hcl
resource "tencentcloud_cos_bucket" "with_acl_body" { bucket = "mycos-1258798060" # NOTE: Granting http://cam.qcloud.com/groups/global/AllUsers `READ` Permission is equivalent to "public-read" acl acl_body = <<EOF
<AccessControlPolicy>
<Owner> <ID>qcs::cam::uin/100000000001:uin/100000000001</ID> </Owner> <AccessControlList> <Grant> <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group"> <URI>http://cam.qcloud.com/groups/global/AllUsers</URI> </Grantee> <Permission>READ</Permission> </Grant> <Grant> <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"> <ID>qcs::cam::uin/100000000001:uin/100000000001</ID> <DisplayName>qcs::cam::uin/100000000001:uin/100000000001</DisplayName> </Grantee> <Permission>WRITE</Permission> </Grant> <Grant> <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"> <ID>qcs::cam::uin/100000000001:uin/100000000001</ID> <DisplayName>qcs::cam::uin/100000000001:uin/100000000001</DisplayName> </Grantee> <Permission>READ_ACP</Permission> </Grant> </AccessControlList>
</AccessControlPolicy> EOF } ```
Static Website ¶
```hcl
resource "tencentcloud_cos_bucket" "mycos" { bucket = "mycos-1258798060" website { index_document = "index.html" error_document = "error.html" } }
```
Using CORS ¶
```hcl
resource "tencentcloud_cos_bucket" "mycos" { bucket = "mycos-1258798060" 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
resource "tencentcloud_cos_bucket" "mycos" { bucket = "mycos-1258798060" acl = "public-read-write" lifecycle_rules { filter_prefix = "path1/" transition { date = "2019-06-01" storage_class = "STANDARD_IA" } expiration { days = 90 } } }
```
Using custom origin domain settings ¶
```hcl
resource "tencentcloud_cos_bucket" "with_origin" { bucket = "mycos-1258798060" acl = "private" origin_domain_rules { domain = "abc.example.com" type = "REST" status = "ENABLE" } }
```
Using origin-pull settings ```hcl
resource "tencentcloud_cos_bucket" "with_origin" { bucket = "mycos-1258798060" acl = "private" origin_pull_rules { priority = 1 sync_back_to_source = false host = "abc.example.com" prefix = "/" protocol = "FOLLOW" // "HTTP" "HTTPS" follow_query_string = true follow_redirection = true follow_http_headers = ["origin", "host"] custom_http_headers = { "x-custom-header" = "custom_value" } } }
```
Using replication ```hcl
resource "tencentcloud_cos_bucket" "replica1" { bucket = "tf-replica-foo-1234567890" acl = "private" versioning_enable = true }
resource "tencentcloud_cos_bucket" "with_replication" { bucket = "tf-bucket-replica-1234567890" acl = "private" versioning_enable = true replica_role = "qcs::cam::uin/100000000001:uin/100000000001" replica_rules { id = "test-rep1" status = "Enabled" prefix = "dist" destination_bucket = "qcs::cos:%s::${tencentcloud_cos_bucket.replica1.bucket}" } }
```
Setting log status ¶
```hcl
resource "tencentcloud_cam_role" "cosLogGrant" { name = "CLS_QcsRole" document = <<EOF
{ "version": "2.0", "statement": [ { "action": [ "name/sts:AssumeRole" ], "effect": "allow", "principal": { "service": [ "cls.cloud.tencent.com" ] } } ] }
EOF
description = "cos log enable grant" }
data "tencentcloud_cam_policies" "cosAccess" { name = "QcloudCOSAccessForCLSRole" }
resource "tencentcloud_cam_role_policy_attachment" "cosLogGrant" { role_id = tencentcloud_cam_role.cosLogGrant.id policy_id = data.tencentcloud_cam_policies.cosAccess.policy_list.0.policy_id }
resource "tencentcloud_cos_bucket" "mylog" { bucket = "mylog-1258798060" acl = "private" }
resource "tencentcloud_cos_bucket" "mycos" { bucket = "mycos-1258798060" acl = "private" log_enable = true log_target_bucket = "mylog-1258798060" log_prefix = "MyLogPrefix" }
```
Import ¶
COS bucket can be imported, e.g.
``` $ terraform import tencentcloud_cos_bucket.bucket bucket-name ```
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===" } } } }
```
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." }
```
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 = <<EOF
{ "version": "2.0", "Statement": [ { "Principal": { "qcs": [ "qcs::cam::uin/<your-account-id>:uin/<your-account-id>" ] }, "Action": [ "name/cos:DeleteBucket", "name/cos:PutBucketACL" ], "Effect": "allow", "Resource": [ "qcs::cos:<bucket region>:uid/<your-account-id>:<bucket name>/*" ] } ] }
EOF } ```
Import ¶
COS bucket policy can be imported, e.g.
``` $ terraform import tencentcloud_cos_bucket_policy.bucket bucket-name ```
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 ```
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 ```
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" } }
```
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" } }
```
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" } } }
```
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 } }
```
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 }
```
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" }
```
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 } }
```
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" }
```
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 } }
```
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 } }
```
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 }
```
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" } }
```
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 ```
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" }
```
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 ```
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 ```
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 ```
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" 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" }
```
Provides a resource to create a NAT forwarding.
Example Usage ¶
```hcl
resource "tencentcloud_dnat" "foo" { vpc_id = "vpc-asg3sfa3" nat_id = "nat-2515tdg" protocol = "tcp" elastic_ip = "139.199.232.238" elastic_port = 80 private_ip = "10.0.0.1" private_port = 22 description = "test" }
```
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 ```
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 ```
Provide a resource to create a DnsPod record.
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 ```
Provides an EIP resource.
Example Usage ¶
```hcl
resource "tencentcloud_eip" "foo" { name = "awesome_gateway_ip" }
```
Import ¶
EIP can be imported using the id, e.g.
``` $ terraform import tencentcloud_eip.foo eip-nyvf60va ```
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 ¶
```hcl
resource "tencentcloud_eip_association" "foo" { eip_id = "eip-xxxxxx" instance_id = "ins-xxxxxx" }
```
or
```hcl
resource "tencentcloud_eip_association" "bar" { eip_id = "eip-xxxxxx" network_interface_id = "eni-xxxxxx" private_ip = "10.0.1.22" }
```
Import ¶
Eip association can be imported using the id, e.g.
``` $ terraform import tencentcloud_eip_association.bar eip-41s6jwy4::ins-34jwj3 ```
Provides an elastic kubernetes cluster resource (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
```
resource "tencentcloud_vpc" "vpc" { name = "tf-eks-vpc" cidr_block = "10.2.0.0/16" }
resource "tencentcloud_subnet" "sub" { vpc_id = tencentcloud_vpc.vpc.id name = "tf-as-subnet" cidr_block = "10.2.11.0/24" availability_zone = "ap-guangzhou-3" }
resource "tencentcloud_subnet" "sub2" { vpc_id = tencentcloud_vpc.vpc.id name = "tf-as-subnet" cidr_block = "10.2.10.0/24" availability_zone = "ap-guangzhou-3" }
resource "tencentcloud_eks_cluster" "foo" { cluster_name = "tf-test-eks" k8s_version = "1.18.4" vpc_id = tencentcloud_vpc.vpc.id subnet_ids = [ tencentcloud_subnet.sub.id, tencentcloud_subnet.sub2.id, ] cluster_desc = "test eks cluster created by terraform" service_subnet_id = tencentcloud_subnet.sub.id dns_servers { domain = "www.example1.com" servers = ["1.1.1.1:8080", "1.1.1.1:8081", "1.1.1.1:8082"] } enable_vpc_core_dns = true need_delete_cbs = true tags = { hello = "world" } }
```
Import ¶
``` terraform import tencentcloud_eks_cluster.foo cluster-id ```
Provides an elastic kubernetes service container instance (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
``` data "tencentcloud_security_groups" "group" { }
data "tencentcloud_availability_zones_by_product" "zone" { product = "cvm" }
resource "tencentcloud_vpc" "vpc" { cidr_block = "10.0.0.0/24" name = "tf-test-eksci" }
resource "tencentcloud_subnet" "sub" { availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name cidr_block = "10.0.0.0/24" name = "sub" vpc_id = tencentcloud_vpc.vpc.id }
resource "tencentcloud_cbs_storage" "cbs" { availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name storage_name = "cbs1" storage_size = 10 storage_type = "CLOUD_PREMIUM" }
resource "tencentcloud_eks_container_instance" "eci1" { name = "foo" vpc_id = tencentcloud_vpc.vpc.id subnet_id = tencentcloud_subnet.sub.id cpu = 2 cpu_type = "intel" restart_policy = "Always" memory = 4 security_groups = [data.tencentcloud_security_groups.group.security_groups[0].security_group_id] cbs_volume { name = "vol1" disk_id = tencentcloud_cbs_storage.cbs.id } container { name = "redis1" image = "redis" liveness_probe { init_delay_seconds = 1 timeout_seconds = 3 period_seconds = 11 success_threshold = 1 failure_threshold = 3 http_get_path = "/" http_get_port = 443 http_get_scheme = "HTTPS" } readiness_probe { init_delay_seconds = 1 timeout_seconds = 3 period_seconds = 10 success_threshold = 1 failure_threshold = 3 tcp_socket_port = 81 } } container { name = "nginx" image = "nginx" } init_container { name = "alpine" image = "alpine:latest" } }
```
Import ¶
``` terraform import tencentcloud_eks_container_instance.foo container-instance-id ```
Provides an elasticsearch instance resource.
Example Usage ¶
```hcl
resource "tencentcloud_elasticsearch_instance" "foo" { instance_name = "tf-test" availability_zone = "ap-guangzhou-3" version = "7.5.1" vpc_id = var.vpc_id subnet_id = var.subnet_id password = "Test12345" license_type = "oss" web_node_type_info { node_num = 1 node_type = "ES.S1.MEDIUM4" } node_info_list { node_num = 2 node_type = "ES.S1.MEDIUM4" encrypt = false } es_acl { black_list = [ "9.9.9.9", "8.8.8.8", ] white_list = [ "0.0.0.0", ] } tags = { test = "test" } }
```
Import ¶
Elasticsearch instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_elasticsearch_instance.foo es-17634f05 ```
Provide a resource to create a emr cluster.
Example Usage ¶
```hcl
resource "tencentcloud_emr_cluster" "emrrrr" { product_id=4 display_strategy="clusterList" vpc_settings={ vpc_id="vpc-fuwly8x5" subnet_id:"subnet-d830wfso" } softwares=["hadoop-2.8.4", "zookeeper-3.4.9"] support_ha=0 instance_name="emr-test" resource_spec { master_resource_spec { mem_size=8192 cpu=4 disk_size=100 disk_type="CLOUD_PREMIUM" spec="CVM.S2" storage_type=5 } core_resource_spec { mem_size=8192 cpu=4 disk_size=100 disk_type="CLOUD_PREMIUM" spec="CVM.S2" storage_type=5 } master_count=1 core_count=2 } login_settings={ password="Tencent@cloud123" } time_span=1 time_unit="m" pay_mode=1 placement={ zone="ap-guangzhou-3" project_id=0 } }
```
Provides a resource to create 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 }
```
Import ¶
ENI can be imported using the id, e.g.
```
$ terraform import tencentcloud_eni.foo eni-qka182br
```
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
```
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
```
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" }
```
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
```
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
```
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
```
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
```
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
```
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
```
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
```
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
```
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 ```
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 ```
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 ```
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 and must wait it to be outdated and released automatically.
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 2 CVM instances to host awesome_app
resource "tencentcloud_instance" "my_awesome_app" { 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 count = 2 data_disks { data_disk_type = "CLOUD_PREMIUM" data_disk_size = 50 encrypt = false } tags = { tagKey = "tagValue" } }
```
Create CVM instance based on CDH ```hcl
variable "availability_zone" { default = "ap-shanghai-4" }
resource "tencentcloud_cdh_instance" "foo" { availability_zone = var.availability_zone host_type = "HM50" charge_type = "PREPAID" instance_charge_type_prepaid_period = 1 hostname = "test" prepaid_renew_flag = "DISABLE_NOTIFY_AND_MANUAL_RENEW" }
data "tencentcloud_cdh_instances" "list" { availability_zone = var.availability_zone host_id = tencentcloud_cdh_instance.foo.id hostname = "test" host_state = "RUNNING" }
resource "tencentcloud_key_pair" "random_key" { key_ids = ["tf_example_key6"] public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDjd8fTnp7Dcuj4mLaQxf9Zs/ORgUL9fQxRCNKkPgP1paTy1I513maMX126i36Lxxl3+FUB52oVbo/FgwlIfX8hyCnv8MCxqnuSDozf1CD0/wRYHcTWAtgHQHBPCC2nJtod6cVC3kB18KeV4U7zsxmwFeBIxojMOOmcOBuh7+trRw==" }
resource "tencentcloud_placement_group" "foo" { name = "test" type = "HOST" }
resource "tencentcloud_instance" "foo" { availability_zone = var.availability_zone instance_name = "terraform-testing" image_id = "img-ix05e4px" key_ids = [tencentcloud_key_pair.random_key.id] placement_group_id = tencentcloud_placement_group.foo.id security_groups = ["sg-9c3f33xk"] system_disk_type = "CLOUD_PREMIUM" instance_charge_type = "CDHPAID" cdh_instance_type = "CDH_10C10G" cdh_host_id = tencentcloud_cdh_instance.foo.id vpc_id = "vpc-31zmeluu" subnet_id = "subnet-aujc02np" allocate_public_ip = true internet_max_bandwidth_out = 2 count = 3 data_disks { data_disk_type = "CLOUD_PREMIUM" data_disk_size = 50 encrypt = false } }
```
Import ¶
CVM instance can be imported using the id, e.g.
``` terraform import tencentcloud_instance.foo ins-2qol3a80 ```
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 }
```
Provides a key pair resource.
Example Usage ¶
```hcl
resource "tencentcloud_key_pair" "foo" { 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 ```
Provide a resource to create a KMS external key.
Example Usage ¶
```hcl
resource "tencentcloud_kms_external_key" "foo" { alias = "test" description = "describe key test message." wrapping_algorithm = "RSAES_PKCS1_V1_5" key_material_base64 = "MTIzMTIzMTIzMTIzMTIzQQ==" valid_to = 2147443200 is_enabled = true }
```
Import ¶
KMS external keys can be imported using the id, e.g.
``` $ terraform import tencentcloud_kms_external_key.foo 287e8f40-7cbb-11eb-9a3a-5254004f7f94 ```
Provide a resource to create a KMS key.
Example Usage ¶
```hcl
resource "tencentcloud_kms_key" "foo" { alias = "test" description = "describe key test message." key_rotation_enabled = true is_enabled = true tags = { "test-tag":"key-test" } }
```
Import ¶
KMS keys can be imported using the id, e.g.
``` $ terraform import tencentcloud_kms_key.foo 287e8f40-7cbb-11eb-9a3a-5254004f7f94 ```
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 ¶
```hcl
resource "tencentcloud_kubernetes_addon_attachment" "addon_cbs" { cluster_id = "cls-xxxxxxxx" name = "cbs" # version = "1.0.5" values = [ "rootdir=/var/lib/kubelet" ] }
resource "tencentcloud_kubernetes_addon_attachment" "addon_tcr" { cluster_id = "cls-xxxxxxxx" name = "tcr" # version = "1.0.0" values = [ # imagePullSecretsCrs is an array which can configure image pull "global.imagePullSecretsCrs[0].name=unique-sample-vpc", "global.imagePullSecretsCrs[0].namespaces=tcr-assistant-system", "global.imagePullSecretsCrs[0].serviceAccounts=*", "global.imagePullSecretsCrs[0].type=docker", "global.imagePullSecretsCrs[0].dockerUsername=100012345678", "global.imagePullSecretsCrs[0].dockerPassword=a.b.tcr-token", "global.imagePullSecretsCrs[0].dockerServer=xxxx.tencentcloudcr.com", "global.imagePullSecretsCrs[1].name=sample-public", "global.imagePullSecretsCrs[1].namespaces=*", "global.imagePullSecretsCrs[1].serviceAccounts=*", "global.imagePullSecretsCrs[1].type=docker", "global.imagePullSecretsCrs[1].dockerUsername=100012345678", "global.imagePullSecretsCrs[1].dockerPassword=a.b.tcr-token", "global.imagePullSecretsCrs[1].dockerServer=sample", # Specify global hosts "global.hosts[0].domain=sample-vpc.tencentcloudcr.com", "global.hosts[0].ip=10.16.0.49", "global.hosts[0].disabled=false", ] }
```
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 = <<EOF { "spec":{ "chart":{ "chartName":"cbs", "chartVersion":"1.0.5" }, "values":{ "rawValuesType":"yaml", "values":[ "rootdir=/var/lib/kubelet" ] } } }
EOF } ```
Import ¶
Addon can be imported by using cluster_id#addon_name ``` $ terraform import tencentcloud_kubernetes_addon_attachment.addon_cos cls-xxxxxxxx#cos ```
Auto scaling group for kubernetes cluster (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
```hcl # Use tencentcloud_kubernetes_node_pool instead
resource "tencentcloud_kubernetes_node_pool" "mynodepool" { name = "mynodepool" cluster_id = "cls-xxxxxxxx" max_size = 6 min_size = 1 vpc_id = "vpc-xxxxxxxx" subnet_ids = ["subnet-xxxxxxxx"] 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" security_group_ids = ["sg-24vswocp"] 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 = input_your_password enhanced_security_service = false enhanced_monitor_service = false } labels = { "test1" = "test1", "test2" = "test2", }
}
Provide a resource to configure kubernetes cluster authentication info.
~> **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 }
```
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 the usage of one cluster without worker config + node pool to manage cluster and nodes. It's 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`.
Example Usage ¶
```hcl
variable "availability_zone_first" { default = "ap-guangzhou-3" }
variable "availability_zone_second" { default = "ap-guangzhou-4" }
variable "cluster_cidr" { default = "10.31.0.0/16" }
variable "default_instance_type" { default = "SA2.2XLARGE16" }
data "tencentcloud_vpc_subnets" "vpc_first" { is_default = true availability_zone = var.availability_zone_first }
data "tencentcloud_vpc_subnets" "vpc_second" { is_default = true availability_zone = var.availability_zone_second }
resource "tencentcloud_kubernetes_cluster" "managed_cluster" { 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" data_disk { disk_type = "CLOUD_PREMIUM" disk_size = 50 } enhanced_security_service = false enhanced_monitor_service = false user_data = "dGVzdA==" password = "ZZXXccvv1212" } 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 = data.tencentcloud_vpc_subnets.vpc_second.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" cam_role_name = "CVM_QcsRole" } labels = { "test1" = "test1", "test2" = "test2", } }
```
Use Kubelet ¶
```hcl
variable "availability_zone_first" { default = "ap-guangzhou-3" }
variable "availability_zone_second" { default = "ap-guangzhou-4" }
variable "cluster_cidr" { default = "10.31.0.0/16" }
variable "default_instance_type" { default = "SA2.2XLARGE16" }
data "tencentcloud_vpc_subnets" "vpc_first" { is_default = true availability_zone = var.availability_zone_first }
data "tencentcloud_vpc_subnets" "vpc_second" { is_default = true availability_zone = var.availability_zone_second }
resource "tencentcloud_kubernetes_cluster" "managed_cluster" { 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 data_disk { disk_type = "CLOUD_PREMIUM" disk_size = 50 } enhanced_security_service = false enhanced_monitor_service = false user_data = "dGVzdA==" password = "ZZXXccvv1212" } 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 = data.tencentcloud_vpc_subnets.vpc_second.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" cam_role_name = "CVM_QcsRole" } 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 }
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" } extension_addon { name = "NodeProblemDetectorPlus" param = "{\"kind\":\"NodeProblemDetector\",\"apiVersion\":\"platform.tke/v1\",\"metadata\":{\"generateName\":\"npd\"},\"spec\":{\"version\":\"v2.0.0\",\"selfCure\":true,\"uin\":\"12345\",\"subUin\":\"12345\",\"policys\":[{\"actions\":{\"CVM\":{\"reBootCVM\":true,\"retryCounts\":1},\"runtime\":{\"reStartDokcer\":true,\"reStartKubelet\":true,\"retryCounts\":1},\"nodePod\":{\"evict\":true,\"retryCounts\":1}},\"conditionType\":\"Ready\"},{\"actions\":{\"runtime\":{\"reStartDokcer\":true,\"reStartKubelet\":true,\"retryCounts\":1}},\"conditionType\":\"KubeletProblem\"},{\"actions\":{\"runtime\":{\"reStartDokcer\":true,\"reStartKubelet\":false,\"retryCounts\":1}},\"conditionType\":\"DockerdProblem\"}]}}" } extension_addon { name = "OOMGuard" param = "{\"kind\":\"OOMGuard\",\"apiVersion\":\"platform.tke/v1\",\"metadata\":{\"generateName\":\"oom\"},\"spec\":{}}" } extension_addon { name = "DNSAutoscaler" param = "{\"kind\":\"DNSAutoscaler\",\"apiVersion\":\"platform.tke/v1\",\"metadata\":{\"generateName\":\"da\"},\"spec\":{}}" } extension_addon { name = "COS" param = "{\"kind\":\"COS\",\"apiVersion\":\"platform.tke/v1\",\"metadata\":{\"generateName\":\"cos\"},\"spec\":{\"version\":\"1.0.0\"}}" } extension_addon { name = "CFS" param = "{\"kind\":\"CFS\",\"apiVersion\":\"platform.tke/v1\",\"metadata\":{\"generateName\":\"cfs\"},\"spec\":{\"version\":\"1.0.0\"}}" } extension_addon { name = "CBS" param = "{\"kind\":\"CBS\",\"apiVersion\":\"platform.tke/v1\",\"metadata\":{\"generateName\":\"cbs\"},\"spec\":{}}" } }
```
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" } 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" } 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 log_set_topic = "" # optional } cluster_audit { enabled = true log_set_id = "" # optional log_set_topic = "" # optional } }
```
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 } }
```
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 ```
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 destroy together, please set `delete_keep_instance` to `false`.
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" 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 } 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" security_group_ids = ["sg-24vswocp"] 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", }
}
```
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.
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" } }
```
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 }
```
Provides a resource to create a lighthouse instance.
Example Usage ¶
```hcl
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\"" } }
```
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 ```
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 ```
Provides a resource to create a mariadb hour_db_instance
Example Usage ¶
```hcl
resource "tencentcloud_mariadb_hour_db_instance" "basic" { db_version_id = "8.0" instance_name = "db-test-2" memory = 2 node_count = 2 storage = 10 subnet_id = "subnet-jdi5xn22" vpc_id = "vpc-k1t8ickr" zones = ["ap-guangzhou-7","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 ```
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 ```
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 ```
Provides a resource to create a mariadb security_groups
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 ```
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_3_WT" machine_type = "GIO" available_zone = "ap-guangzhou-2" vpc_id = "vpc-mz3efvbw" subnet_id = "subnet-lk0svi3p" project_id = 0 password = "password1234" }
```
Import ¶
Mongodb instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_mongodb_instance.mongodb cmgo-41s6jwy4 ```
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_3_WT" machine_type = "GIO" available_zone = "ap-guangzhou-3" vpc_id = "vpc-mz3efvbw" subnet_id = "subnet-lk0svi3p" project_id = 0 password = "password1234" }
```
Import ¶
Mongodb sharding instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_mongodb_sharding_instance.mongodb cmgo-41s6jwy4 ```
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 ```
Provides a alarm notice resource for monitor.
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 = ["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] }
} ```
Import ¶
Monitor Alarm Notice can be imported, e.g.
``` $ terraform import tencentcloud_monitor_alarm_notice.import-test noticeId ```
Provides a alarm policy resource for monitor.
Example Usage ¶
cvm_device alarm policy
```hcl
resource "tencentcloud_monitor_alarm_policy" "group" { 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\"}" } }
```
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 ```
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}\"}" } }
```
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" } }
```
Provides a resource to create a monitor grafanaInstance ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_grafana_instance" "grafanaInstance" { instance_name = "test-grafana" vpc_id = "vpc-2hfyray3" subnet_ids = ["subnet-rdkj0agk"] grafana_init_password = "1234567890" enable_internet = false tags = { "createdBy" = "test" } }
``` Import
monitor grafanaInstance can be imported using the id, e.g. ``` $ terraform import tencentcloud_monitor_grafana_instance.grafanaInstance grafanaInstance_id ```
Provides a resource to create a monitor grafanaIntegration ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_grafana_integration" "grafanaIntegration" { instance_id = "grafana-50nj6v00" 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\":[]}}}" }
resource "tencentcloud_monitor_grafana_integration" "grafanaIntegration_update" { content = "{\"id\":\"integration-9st6kqz6\",\"kind\":\"tencentcloud-monitor-app\",\"spec\":{\"dataSourceSpec\":{\"name\":\"uint-test3\",\"authProvider\":{\"secretId\":\"ROLE\",\"useRole\":true,\"__anyOf\":\"使用服务角色\"}},\"grafanaSpec\":{\"organizationIds\":[]}}}" instance_id = "grafana-50nj6v00" kind = "tencentcloud-monitor-app" }
Provides a resource to create a monitor grafanaNotificationChannel ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_grafana_notification_channel" "grafanaNotificationChannel" { instance_id = "grafana-50nj6v00" channel_name = "create-channel" org_id = 1 receivers = ["Consumer-6vkna7pevq"] extra_org_ids = [] }
```
Provides a resource to create a monitor grafanaPlugin ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_grafana_plugin" "grafanaPlugin" { instance_id = "grafana-50nj6v00" 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 ```
Provides a resource to create a monitor grafana ssoAccount ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_grafana_sso_account" "ssoAccount" { instance_id = "grafana-50nj6v00" 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 ```
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 ```
Provides a policy group resource for monitor.
~> **NOTE:** It has been deprecated and replaced by tencentcloud_monitor_alarm_policy.
Example Usage ¶
```hcl
resource "tencentcloud_monitor_policy_group" "group" { group_name = "nice_group" 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 } conditions { metric_id = 30 alarm_notify_type = 1 alarm_notify_period = 600 calc_type = 2 calc_value = 30 calc_period = 300 continue_period = 2 } event_conditions { event_id = 39 alarm_notify_type = 0 alarm_notify_period = 300 } event_conditions { event_id = 40 alarm_notify_type = 0 alarm_notify_period = 300 } }
``` Import
Policy group instance can be imported, e.g.
``` $ terraform import tencentcloud_monitor_policy_group.group group-id ```
Provides a resource to create a monitor tmpAlertRule ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_alert_rule" "tmpAlertRule" { instance_id = "prom-c89b3b3u" rule_name = "test123" expr = "up{service=\"rig-prometheus-agent\"}>0" receivers = ["notice-l9ziyxw6"] rule_state = 2 duration = "4m" labels { key = "hello1" value = "world1" } annotations { key = "hello2" value = "world2" } }
``` Import
monitor tmpAlertRule can be imported using the id, e.g. ``` $ terraform import tencentcloud_monitor_tmp_alert_rule.tmpAlertRule instanceId#Rule_id ```
Provides a resource to create a monitor tmpCvmAgent ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_cvm_agent" "tmpCvmAgent" { instance_id = "prom-dko9d0nu" name = "agent" }
``` Import
monitor tmpCvmAgent can be imported using the id, e.g. ``` $ terraform import tencentcloud_monitor_tmp_cvm_agent.tmpCvmAgent instance_id#agent_id ```
Provides a resource to create a monitor tmpExporterIntegration ¶
Example Usage ¶
```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" }
```
Provides a resource to create a monitor tmpInstance ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_instance" "tmpInstance" { instance_name = "demo" vpc_id = "vpc-2hfyray3" subnet_id = "subnet-rdkj0agk" data_retention_time = 30 zone = "ap-guangzhou-3" tags = { "createdBy" = "terraform" } }
``` Import
monitor tmpInstance can be imported using the id, e.g. ``` $ terraform import tencentcloud_monitor_tmp_instance.tmpInstance tmpInstance_id ```
Provides a resource to create a monitor tmp recordingRule ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_recording_rule" "recordingRule" { name = "dasdasdsadasd" group = <<EOF
--- name: example-test rules:
- record: job:http_inprogress_requests:sum expr: sum by (job) (http_inprogress_requests)
EOF
instance_id = "prom-c89b3b3u" rule_state = 2 }
``` Import
monitor recordingRule can be imported using the id, e.g. ``` $ terraform import tencentcloud_monitor_tmp_recording_rule.recordingRule instanceId#recordingRule_id ```
Provides a resource to create a monitor tmpScrapeJob ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_scrape_job" "tmpScrapeJob" { instance_id = "prom-dko9d0nu" agent_id = "agent-6a7g40k2" config = <<-EOT
job_name: demo-config honor_timestamps: true metrics_path: /metrics scheme: https EOT }
``` Import
monitor tmpScrapeJob can be imported using the id, e.g. ``` $ terraform import tencentcloud_monitor_tmp_scrape_job.tmpScrapeJob tmpScrapeJob_id ```
Provides a resource to create a tke tmpAlertPolicy ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_tke_alert_policy" "tmpAlertPolicy" { instance_id = "xxxxx" alert_rule { name = "xxx" rules { name = "xx" rule = "xx" template = "xx" for = "xx" labels { name = "xx" value = "xx" } annotations { name = "xx" value = "xx" } } notification { type = "xx" enabled = true alert_manager { url = "xx" cluster_id = "xx" cluster_type = "xx" } } } }
```
Provides a resource to create a tmp tke cluster agent ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_tke_cluster_agent" "tmpClusterAgent" { instance_id = "prom-xxx" agents { region = "ap-xxx" cluster_type = "eks" cluster_id = "cls-xxx" enable_external = false } }
```
Provides a resource to create a tke tmpPrometheusConfig ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_tke_config" "foo" { instance_id = "xxx" cluster_type = "xxx" cluster_id = "xxx" raw_jobs { name = "raw_jobs_001" config = "your config for raw_jobs_001\n" } service_monitors { name = "kube-system/service-monitor-001" # name with default namespace kube-system config = "apiVersion: monitoring.coreos.com/v1\nkind: ServiceMonitor\nmetadata:\n name: service-monitor-001\n namespace: kube-system\n" } pod_monitors { name = "mynamespace/pod-monitor-001" # name with the specified namespace config = "apiVersion: monitoring.coreos.com/v1\nkind: PodMonitor\nmetadata:\n name: pod-monitor-001\n namespace: mynamespace\n" } }
```
Provides a resource to create a tmp tke global notification ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_tke_global_notification" "tmpGlobalNotification" { instance_id = xxx notification{ enabled = true type = "webhook" web_hook = "" alert_manager { url = "" cluster_type = "" cluster_id = "" } repeat_interval = "" time_range_start = "" time_range_end = "" notify_way = ["SMS", "EMAIL"] receiver_groups = [""] phone_notify_order = [] phone_circle_times = xxx phone_inner_interval = xxx phone_circle_interval = xxx phone_arrive_notice = false } }
```
Provides a resource to create a tke tmpRecordRule ¶
Example Usage ¶
```hcl
resource "resourceTencentCloudMonitorTmpTkeRecordRuleYaml" "foo" { instance_id = "" content = <<-EOT apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: example-record spec: groups: - name: kube-apiserver.rules rules: - expr: sum(metrics_test) labels: verb: read record: 'apiserver_request:burnrate1d' EOT }
```
Provides a resource to create a tmp tke template ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_tke_template" "template" { template { name = "test" level = "cluster" describe = "template" service_monitors { name = "test" config = "xxxxx" } } }
```
Provides a resource to create a tmp tke template attachment ¶
Example Usage ¶
```hcl
resource "tencentcloud_monitor_tmp_tke_template_attachment" "temp_attachment" { template_id = "temp-xxx" targets { region = "ap-xxx" instance_id = "prom-xxx" } }
```
Provides a MySQL account resource for database management. A MySQL instance supports multiple database account.
Example Usage ¶
```hcl
resource "tencentcloud_mysql_account" "default" { mysql_id = "my-test-database" name = "tf_account" password = "********" description = "My test account" }
```
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
resource "tencentcloud_mysql_account_privilege" "default" { mysql_id = "my-test-database" account_name = "tf_account" privileges = ["SELECT"] database_names = ["instance.name"] }
```
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
resource "tencentcloud_mysql_backup_policy" "default" { mysql_id = "cdb-dnqksd9f" retention_period = 7 backup_model = "physical" backup_time = "02:00-06:00" }
```
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.
Example Usage ¶
```hcl
resource "tencentcloud_mysql_instance" "default" { internet_service = 1 engine_version = "5.7" charge_type = "POSTPAID" root_password = "********" slave_deploy_mode = 0 first_slave_zone = "ap-guangzhou-4" second_slave_zone = "ap-guangzhou-4" slave_sync_mode = 1 availability_zone = "ap-guangzhou-4" project_id = 201901010001 instance_name = "myTestMysql" mem_size = 128000 volume_size = 250 vpc_id = "vpc-12mt3l31" subnet_id = "subnet-9uivyb1g" intranet_port = 3306 security_groups = ["sg-ot8eclwz"] tags = { name = "test" } parameters = { max_connections = "1000" } }
```
Import ¶
MySQL instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_mysql_instance.foo cdb-12345678" ```
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
resource "tencentcloud_mysql_instance" "default" { mem_size = 1000 volume_size = 25 instance_name = "guagua" engine_version = "5.7" root_password = "0153Y474" availability_zone = "ap-guangzhou-3" internet_service = 1
}
resource "tencentcloud_mysql_account" "mysql_account2" { mysql_id = tencentcloud_mysql_instance.default.id name = "test11" password = "test1234" description = "test from terraform" }
resource "tencentcloud_mysql_privilege" "tttt" { mysql_id = tencentcloud_mysql_instance.default.id account_name = tencentcloud_mysql_account.mysql_account2.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" } }
```
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
resource "tencentcloud_mysql_readonly_instance" "default" { master_instance_id = "cdb-dnqksd9f" instance_name = "myTestMysql" mem_size = 128000 volume_size = 255 vpc_id = "vpc-12mt3l31" subnet_id = "subnet-9uivyb1g" intranet_port = 3306 security_groups = ["sg-ot8eclwz"] tags = { name = "test" } }
```
Provides a resource to create a NAT gateway.
Example Usage ¶
```hcl
resource "tencentcloud_nat_gateway" "foo" { name = "test_nat_gateway" vpc_id = "vpc-4xxr2cy7" bandwidth = 100 max_concurrent = 1000000 assigned_eip_set = ["1.1.1.1"] tags = { test = "tf" } }
```
Import ¶
NAT gateway can be imported using the id, e.g.
``` $ terraform import tencentcloud_nat_gateway.foo nat-1asg3t63 ```
Provides a resource to create a NAT Gateway SNat rule.
Example Usage ¶
```hcl data "tencentcloud_availability_zones" "my_zones" {}
data "tencentcloud_vpc" "my_vpc" { name = "Default-VPC" }
data "tencentcloud_images" "my_image" { os_name = "centos" }
data "tencentcloud_instance_types" "my_instance_types" { cpu_core_count = 1 memory_size = 1 }
Create EIP ¶
resource "tencentcloud_eip" "eip_dev_dnat" { name = "terraform_test" }
resource "tencentcloud_eip" "eip_test_dnat" { name = "terraform_test" }
Create NAT Gateway ¶
resource "tencentcloud_nat_gateway" "my_nat" { vpc_id = data.tencentcloud_vpc.my_vpc.id name = "terraform test" max_concurrent = 3000000 bandwidth = 500 assigned_eip_set = [ tencentcloud_eip.eip_dev_dnat.public_ip, tencentcloud_eip.eip_test_dnat.public_ip, ] }
Create route_table and entry ¶
resource "tencentcloud_route_table" "my_route_table" { vpc_id = data.tencentcloud_vpc.my_vpc.id name = "terraform test" }
resource "tencentcloud_route_table_entry" "my_route_entry" { route_table_id = tencentcloud_route_table.my_route_table.id destination_cidr_block = "10.0.0.0/8" next_type = "NAT" next_hub = tencentcloud_nat_gateway.my_nat.id }
Create Subnet ¶
resource "tencentcloud_subnet" "my_subnet" { vpc_id = data.tencentcloud_vpc.my_vpc.id name = "terraform test" cidr_block = "172.29.23.0/24" availability_zone = data.tencentcloud_availability_zones.my_zones.zones.0.name route_table_id = tencentcloud_route_table.my_route_table.id }
Subnet Nat gateway snat ¶
resource "tencentcloud_nat_gateway_snat" "my_subnet_snat" { nat_gateway_id = tencentcloud_nat_gateway.my_nat.id resource_type = "SUBNET" subnet_id = tencentcloud_subnet.my_subnet.id subnet_cidr_block = tencentcloud_subnet.my_subnet.cidr_block description = "terraform test" public_ip_addr = [ tencentcloud_eip.eip_dev_dnat.public_ip, tencentcloud_eip.eip_test_dnat.public_ip, ] }
Create instance ¶
resource "tencentcloud_instance" "my_instance" { instance_name = "terraform test" availability_zone = data.tencentcloud_availability_zones.my_zones.zones.0.name image_id = data.tencentcloud_images.my_image.images.0.image_id instance_type = data.tencentcloud_instance_types.my_instance_types.instance_types.0.instance_type system_disk_type = "CLOUD_PREMIUM" system_disk_size = 50 hostname = "user" project_id = 0 vpc_id = data.tencentcloud_vpc.my_vpc.id subnet_id = tencentcloud_subnet.my_subnet.id internet_max_bandwidth_out = 20 }
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.my_instance.id instance_private_ip_addr = tencentcloud_instance.my_instance.private_ip description = "terraform test" public_ip_addr = [ tencentcloud_eip.eip_dev_dnat.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 ```
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 ```
Use this resource to create postgresql instance.
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" } }
```
Import ¶
postgresql instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_postgresql_instance.foo postgres-cda1iex1 ```
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 }
```
Use this resource to create postgresql readonly group.
Example Usage ¶
```hcl
resource "tencentcloud_postgresql_readonly_group" "group" { master_db_instance_id = "postgres-f44wlfdv" 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 = [] } ```
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" zone = "ap-guangzhou-6" }
```
Import ¶
postgresql readonly instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_postgresql_readonly_instance.foo pgro-bcqx8b9a ```
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 ```
Provide a resource to create a Private Dns Zone.
Example Usage ¶
```hcl
resource "tencentcloud_private_dns_zone" "foo" { domain = "domain.com" tags { "created_by" : "terraform" } vpc_set { region = "ap-guangzhou" uniq_vpc_id = "vpc-xxxxx" } remark = "test" dns_forward_status = "DISABLED" account_vpc_set { uin = "454xxxxxxx" region = "ap-guangzhou" uniq_vpc_id = "vpc-xxxxx" vpc_name = "test-redis" } }
```
Import ¶
Private Dns Zone can be imported, e.g.
``` $ terraform import tencentcloud_private_dns_zone.foo zone_id ```
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 ```
Provides a resource to manage protocol template group.
Example Usage ¶
```hcl
resource "tencentcloud_protocol_template_group" "foo" { name = "group-test" protocols = ["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 ```
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 ```
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 = 1 cron_expression = "4 22 10 11 ? 2022" 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 ```
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 ```
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 ```
Provides a resource to create a pts project ¶
Example Usage ¶
```hcls
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 ```
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 ```
Use this resource to create a backup config of redis.
Example Usage ¶
```hcl
resource "tencentcloud_redis_backup_config" "redislab" { redis_id = "crs-7yl0q0dd" backup_time = "04:00-05:00" backup_period = ["Monday"] }
```
Import ¶
Redis backup config can be imported, e.g.
``` $ terraform import tencentcloud_redis_backup_config.redisconfig redis-id ```
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 ¶
```hcl data "tencentcloud_redis_zone_config" "zone" { }
resource "tencentcloud_redis_instance" "redis_instance_test_2" { 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 }
```
Using multi replica zone set ``` data "tencentcloud_availability_zones" "az" {
}
variable "redis_replicas_num" { default = 3 }
resource "tencentcloud_redis_instance" "red1" { availability_zone = data.tencentcloud_availability_zones.az.zones[0].name charge_type = "POSTPAID" mem_size = 1024 name = "test-redis" port = 6379 project_id = 0 redis_replicas_num = var.redis_replicas_num redis_shard_num = 1 security_groups = [ "sg-d765yoec", ] subnet_id = "subnet-ie01x91v" type_id = 6 vpc_id = "vpc-k4lrsafc" password = "a12121312334" replica_zone_ids = [ for i in range(var.redis_replicas_num) : data.tencentcloud_availability_zones.az.zones[i % length(data.tencentcloud_availability_zones.az.zones)].id ] }
```
Import ¶
Redis instance can be imported, e.g.
``` $ terraform import tencentcloud_redis_instance.redislab redis-id ```
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 ```
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" }
```
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 ```
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 ```
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 `<function namespace>+<function name>`
``` $ terraform import tencentcloud_scf_function.test default+test ```
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 ```
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 ```
Provides a resource to create security group.
Example Usage ¶
```hcl
resource "tencentcloud_security_group" "sglab" { name = "mysg" description = "favourite sg" project_id = 0 }
```
Import ¶
Security group can be imported using the id, e.g.
```
$ terraform import tencentcloud_security_group.sglab sg-ey3wmiz1
```
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
```
Provides a resource to create security group rule.
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" }
```
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 ```
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 ```
Provides a resource to create a ses template ¶
Example Usage ¶
```hcl
resource "tencentcloud_ses_template" "template" { template_name = "sesTemplateName" template_content { text = "This is the content of the test" } }
``` Import
ses template can be imported using the id, e.g. ``` $ terraform import tencentcloud_ses_template.template template_id ```
Provides a resource to create a sms sign ¶
Example Usage ¶
```hcl
resource "tencentcloud_sms_sign" "sign" { sign_name = "terraform" sign_type = 1 document_type = 4 international = 0 sign_purpose = 0 proof_image = "dGhpcyBpcyBhIGV4YW1wbGU=" }
```
Provides a resource to create a sms template ¶
Example Usage ¶
```hcl
resource "tencentcloud_sms_template" "template" { template_name = "Template By Terraform" template_content = "Template Content" international = 0 sms_type = 0 remark = "terraform test" }
```
Use this resource to create SQL Server account ¶
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_account" "foo" { instance_id = tencentcloud_sqlserver_instance.example.id name = "tf_sqlserver_account" password = "test1233" remark = "testt" }
```
Import ¶
SQL Server account can be imported using the id, e.g.
``` $ terraform import tencentcloud_sqlserver_account.foo mssql-3cdq7kx5#tf_sqlserver_account ```
Use this resource to create SQL Server account DB attachment ¶
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_account_db_attachment" "foo" { instance_id = "mssql-3cdq7kx5" 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.foo mssql-3cdq7kx5#tf_sqlserver_account#test111 ```
Provides a SQL Server instance resource to create basic database instances.
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_basic_instance" "foo" { name = "example" availability_zone = var.availability_zone charge_type = "POSTPAID_BY_HOUR" vpc_id = "vpc-26w7r56z" subnet_id = "subnet-lvlr6eeu" project_id = 0 memory = 2 storage = 20 cpu = 1 machine_type = "CLOUD_PREMIUM" maintenance_week_set = [1,2,3] maintenance_start_time = "09:00" maintenance_time_span = 3 security_groups = ["sg-nltpbqg1"] tags = { "test" = "test" } }
``` Import
SQL Server basic instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_sqlserver_basic_instance.foo mssql-3cdq7kx5 ```
Provides a SQL Server DB resource belongs to SQL Server instance.
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_db" "example" { instance_id = tencentcloud_sqlserver_instance.example.id name = "example" charset = "Chinese_PRC_BIN" remark = "test-remark" }
```
Import ¶
SQL Server DB can be imported using the id, e.g.
``` $ terraform import tencentcloud_sqlserver_db.foo mssql-3cdq7kx5#db_name ```
Use this resource to create SQL Server instance ¶
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_instance" "foo" { name = "example" availability_zone = var.availability_zone charge_type = "POSTPAID_BY_HOUR" vpc_id = "vpc-409mvdvv" subnet_id = "subnet-nf9n81ps" project_id = 123 memory = 2 storage = 100 }
```
Import ¶
SQL Server instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_sqlserver_instance.foo mssql-3cdq7kx5 ```
Provides a SQL Server PublishSubscribe resource belongs to SQL Server instance.
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_publish_subscribe" "example" { publish_instance_id = tencentcloud_sqlserver_instance.publish_instance.id subscribe_instance_id = tencentcloud_sqlserver_instance.subscribe_instance.id publish_subscribe_name = "example" delete_subscribe_db = false database_tuples { publish_database = tencentcloud_sqlserver_db.test_publish_subscribe.name } }
```
Import ¶
SQL Server PublishSubscribe can be imported using the publish_sqlserver_id#subscribe_sqlserver_id, e.g.
``` $ terraform import tencentcloud_sqlserver_publish_subscribe.foo publish_sqlserver_id#subscribe_sqlserver_id ```
Provides a SQL Server instance resource to create read-only database instances.
Example Usage ¶
```hcl
resource "tencentcloud_sqlserver_readonly_instance" "foo" { name = "tf_sqlserver_instance_ro" availability_zone = "ap-guangzhou-4" charge_type = "POSTPAID_BY_HOUR" vpc_id = "vpc-xxxxxxxx" subnet_id = "subnet-xxxxxxxx" memory = 2 storage = 10 master_instance_id = tencentcloud_sqlserver_instance.test.id readonly_group_type = 1 force_upgrade = true }
```
Import ¶
SQL Server readonly instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_sqlserver_readonly_instance.foo mssqlro-3cdq7kx5 ```
Provides a resource to create a SSL certificate.
Example Usage ¶
```hcl
resource "tencentcloud_ssl_certificate" "foo" { name = "test-ssl-certificate" type = "CA" project_id = 0 cert = "-----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-----" }
```
Import ¶
ssl certificate can be imported using the id, e.g.
```
$ terraform import tencentcloud_ssl_certificate.cert GjTNRoK7
```
Provide a resource to create a Free Certificate. ~> **NOTE:** Once certificat created, it cannot be removed within 1 hours.
Example Usage ¶
```hcl
resource "tencentcloud_ssl_free_certificate" "foo" { dv_auth_method = "DNS_AUTO" domain = "example.com" package_type = "2" contact_email = "foo@example.com" contact_phone = "12345678901" validity_period = 12 csr_encrypt_algo = "RSA" csr_key_parameter = "2048" csr_key_password = "xxxxxxxx" alias = "my_free_cert" }
```
Import ¶
FreeCertificate instance can be imported, e.g. ``` $ terraform import tencentcloud_ssl_free_certificate.test free_certificate-id ```
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.
Example Usage ¶
```hcl
resource "tencentcloud_ssl_pay_certificate" "ssl" { product_id = 33 domain_num = 1 alias = "test-ssl" project_id = 0 information { csr_type = "online" certificate_domain = "www.domain.com" organization_name = "test" organization_division = "test" organization_address = "test" organization_country = "CN" organization_city = "test" organization_region = "test" postal_code = "0755" phone_area_code = "0755" phone_number = "12345678901" verify_type = "DNS" admin_first_name = "test" admin_last_name = "test" admin_phone_num = "12345678901" admin_email = "test@tencent.com" admin_position = "dev" contact_first_name = "test" contact_last_name = "test" contact_email = "test@tencent.com" contact_number = "12345678901" contact_position = "dev" } }
```
Import ¶
payment SSL instance can be imported, e.g.
``` $ terraform import tencentcloud_ssl_pay_certificate.ssl iPQNn61x#33#1#1 ```
Provide a resource to create a SSM secret. Example Usage ```hcl
resource "tencentcloud_ssm_secret" "foo" { secret_name = "test" description = "test secret" recovery_window_in_days = 0 is_enabled = true tags = { test-tag = "test" } }
``` Import SSM secret can be imported using the secretName, e.g. ``` $ terraform import tencentcloud_ssm_secret.foo test ```
Provide a resource to create a SSM secret version. Example Usage ```hcl
resource "tencentcloud_ssm_secret" "foo" { secret_name = "test" description = "test secret" recovery_window_in_days = 0 is_enabled = true tags = { test-tag = "test" } }
resource "tencentcloud_ssm_secret_version" "v1" { secret_name = tencentcloud_ssm_secret.foo.secret_name version_id = "v1" 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 ```
Provide a resource to create a VPC subnet.
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_subnet" "subnet" { availability_zone = var.availability_zone name = "guagua-ci-temp-test" vpc_id = tencentcloud_vpc.foo.id cidr_block = "10.0.20.0/28" is_multicast = false }
```
Import ¶
Vpc subnet instance can be imported, e.g.
``` $ terraform import tencentcloud_subnet.test subnet_id ```
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 ¶
```hcl
resource "tencentcloud_tcaplus_cluster" "test" { idl_type = "PROTO" cluster_name = "tf_tcaplus_cluster_test" vpc_id = "vpc-7k6gzox6" subnet_id = "subnet-akwgvfa3" password = "1qaA2k1wgvfa3ZZZ" old_password_expire_last = 3600 }
```
Import ¶
tcaplus cluster can be imported using the id, e.g.
``` $ terraform import tencentcloud_tcaplus_cluster.test 26655801 ```
Use this resource to create TcaplusDB IDL file.
Example Usage ¶
```hcl
resource "tencentcloud_tcaplus_cluster" "test" { idl_type = "PROTO" cluster_name = "tf_tcaplus_cluster_test" vpc_id = "vpc-7k6gzox6" subnet_id = "subnet-akwgvfa3" password = "1qaA2k1wgvfa3ZZZ" old_password_expire_last = 3600 }
resource "tencentcloud_tcaplus_tablegroup" "tablegroup" { cluster_id = tencentcloud_tcaplus_cluster.test.id tablegroup_name = "tf_test_group_name" }
resource "tencentcloud_tcaplus_idl" "main" { cluster_id = tencentcloud_tcaplus_cluster.test.id tablegroup_id = tencentcloud_tcaplus_tablegroup.tablegroup.id file_name = "tf_idl_test" file_type = "PROTO" file_ext_type = "proto" file_content = <<EOF syntax = "proto2"; package myTcaplusTable; import "tcaplusservice.optionv1.proto"; message tb_online { option(tcaplusservice.tcaplus_primary_key) = "uin,name,region"; required int64 uin = 1; required string name = 2; required int32 region = 3; required int32 gamesvrid = 4; optional int32 logintime = 5 [default = 1]; repeated int64 lockid = 6 [packed = true]; optional bool is_available = 7 [default = false]; optional pay_info pay = 8; } message pay_info { required int64 pay_id = 1; optional uint64 total_money = 2; optional uint64 pay_times = 3; optional pay_auth_info auth = 4; message pay_auth_info { required string pay_keys = 1; optional int64 update_time = 2; } } EOF }
```
Use this resource to create TcaplusDB table.
Example Usage ¶
```hcl
resource "tencentcloud_tcaplus_cluster" "test" { idl_type = "PROTO" cluster_name = "tf_tcaplus_cluster_test" vpc_id = "vpc-7k6gzox6" subnet_id = "subnet-akwgvfa3" password = "1qaA2k1wgvfa3ZZZ" old_password_expire_last = 3600 }
resource "tencentcloud_tcaplus_tablegroup" "tablegroup" { cluster_id = tencentcloud_tcaplus_cluster.test.id tablegroup_name = "tf_test_group_name" }
resource "tencentcloud_tcaplus_idl" "main" { cluster_id = tencentcloud_tcaplus_cluster.test.id tablegroup_id = tencentcloud_tcaplus_tablegroup.tablegroup.id file_name = "tf_idl_test_2" file_type = "PROTO" file_ext_type = "proto" file_content = <<EOF syntax = "proto2"; package myTcaplusTable; import "tcaplusservice.optionv1.proto"; message tb_online { option(tcaplusservice.tcaplus_primary_key) = "uin,name,region"; required int64 uin = 1; required string name = 2; required int32 region = 3; required int32 gamesvrid = 4; optional int32 logintime = 5 [default = 1]; repeated int64 lockid = 6 [packed = true]; optional bool is_available = 7 [default = false]; optional pay_info pay = 8; } message pay_info { required int64 pay_id = 1; optional uint64 total_money = 2; optional uint64 pay_times = 3; optional pay_auth_info auth = 4; message pay_auth_info { required string pay_keys = 1; optional int64 update_time = 2; } } EOF }
resource "tencentcloud_tcaplus_table" "table" { cluster_id = tencentcloud_tcaplus_cluster.test.id tablegroup_id = tencentcloud_tcaplus_tablegroup.tablegroup.id table_name = "tb_online" table_type = "GENERIC" description = "test" idl_id = tencentcloud_tcaplus_idl.main.id table_idl_type = "PROTO" reserved_read_cu = 1000 reserved_write_cu = 20 reserved_volume = 1 }
```
Use this resource to create TcaplusDB table group.
Example Usage ¶
```hcl
resource "tencentcloud_tcaplus_cluster" "test" { idl_type = "PROTO" cluster_name = "tf_tcaplus_cluster_test" vpc_id = "vpc-7k6gzox6" subnet_id = "subnet-akwgvfa3" password = "1qaA2k1wgvfa3ZZZ" old_password_expire_last = 3600 }
resource "tencentcloud_tcaplus_tablegroup" "tablegroup" { cluster_id = tencentcloud_tcaplus_cluster.test.id tablegroup_name = "tf_test_group_name" }
```
Provides a resource to create a tcm cluster_attachment
Example Usage ¶
```hcl
resource "tencentcloud_tcm_cluster_attachment" "cluster_attachment" { mesh_id = "mesh-b9q6vf9l" cluster_list { cluster_id = "cls-rc5uy6dy" region = "ap-guangzhou" role = "REMOTE" vpc_id = "vpc-a1jycmbx" subnet_id = "subnet-lkyb3ayc" type = "TKE" } }
``` Import
tcm cluster_attachment can be imported using the mesh_id#cluster_id, e.g. ``` $ terraform import tencentcloud_tcm_cluster_attachment.cluster_attachment mesh-b9q6vf9l#cls-rc5uy6dy ```
Provides a resource to create a tcm mesh ¶
Example Usage ¶
```hcl
resource "tencentcloud_tcm_mesh" "basic" { display_name = "test_mesh" mesh_version = "1.12.5" type = "HOSTED" config { istio { outbound_traffic_policy = "ALLOW_ANY" disable_policy_checks = true enable_pilot_http = true disable_http_retry = true smart_dns { istio_meta_dns_capture = true istio_meta_dns_auto_allocate = true } } } tag_list { key = "key" value = "value" passthrough = true } }
``` Import
tcm mesh can be imported using the id, e.g. ``` $ terraform import tencentcloud_tcm_mesh.mesh mesh_id ```
Use this resource to create tcr instance.
Example Usage ¶
```hcl
resource "tencentcloud_tcr_instance" "foo" { name = "example" instance_type = "basic" tags = { test = "tf" } }
```
Using public network access whitelist ```hcl
resource "tencentcloud_tcr_instance" "foo" { name = "example" 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 with Replications ¶
```hcl
resource "tencentcloud_tcr_instance" "foo" { name = "example" 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 cls-cda1iex1 ```
Use this resource to create tcr namespace.
Example Usage ¶
```hcl
resource "tencentcloud_tcr_namespace" "foo" { instance_id = "" name = "example" is_public = true }
```
Import ¶
tcr namespace can be imported using the id, e.g.
``` $ terraform import tencentcloud_tcr_namespace.foo cls-cda1iex1#namespace ```
Use this resource to create tcr repository.
Example Usage ¶
```hcl
data "tencentcloud_tcr_instances" "test" { name = "test" }
resource "tencentcloud_tcr_repository" "foo" { instance_id = data.tencentcloud_tcr_instances.test.instance_list[0].id namespace_name = "exampleNamespace" name = "example" }
```
Import ¶
tcr repository can be imported using the id, e.g.
``` $ terraform import tencentcloud_tcr_repository.foo cls-cda1iex1#namespace#repository ```
Use this resource to create tcr long term token.
Example Usage ¶
```hcl
resource "tencentcloud_tcr_token" "foo" { instance_id = "cls-cda1iex1" description = "test" }
```
Import ¶
tcr token can be imported using the id, e.g.
``` $ terraform import tencentcloud_tcr_token.foo cls-cda1iex1#namespace#buv3h3j96j2d1rk1cllg ```
Use this resource to create tcr vpc attachment to manage access of internal endpoint.
Example Usage ¶
```hcl
resource "tencentcloud_tcr_vpc_attachment" "foo" { instance_id = "cls-satg5125" vpc_id = "vpc-asg3sfa3" subnet_id = "subnet-1uwh63so" }
```
Import ¶
tcr vpc attachment can be imported using the id, e.g.
``` $ terraform import tencentcloud_tcr_vpc_attachment.foo tcrId#vpcId#subnetId ```
Provide a resource to create a TDMQ instance.
Example Usage ¶
```hcl
resource "tencentcloud_tdmq_instance" "foo" { cluster_name = "example" remark = "this is description." tags = { "createdBy" = "terraform" } }
```
Import ¶
Tdmq instance can be imported, e.g.
``` $ terraform import tencentcloud_tdmq_instance.test tdmq_id ```
Provide a resource to create a tdmq namespace.
Example Usage ¶
```hcl
resource "tencentcloud_tdmq_instance" "foo" { cluster_name = "example" remark = "this is description." }
resource "tencentcloud_tdmq_namespace" "bar" { environ_name = "example" msg_ttl = 300 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
```
Import ¶
Tdmq namespace can be imported, e.g.
``` $ terraform import tencentcloud_tdmq_instance.test namespace_id ```
Provide a resource to create a TDMQ role.
Example Usage ¶
```hcl
resource "tencentcloud_tdmq_instance" "foo" { cluster_name = "example" remark = "this is description." }
resource "tencentcloud_tdmq_namespace" "bar" { environ_name = "example" msg_ttl = 300 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
resource "tencentcloud_tdmq_topic" "bar" { environ_id = "${tencentcloud_tdmq_namespace.bar.id}" topic_name = "example" partitions = 6 topic_type = 0 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
resource "tencentcloud_tdmq_role" "bar" { role_name = "example" cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description world" }
resource "tencentcloud_tdmq_namespace_role_attachment" "bar" { environ_id = "${tencentcloud_tdmq_namespace.bar.id}" role_name = "${tencentcloud_tdmq_role.bar.role_name}" permissions = ["produce", "consume"] cluster_id = "${tencentcloud_tdmq_instance.foo.id}" }
```
Provide a resource to create a TDMQ role.
Example Usage ¶
```hcl
resource "tencentcloud_tdmq_instance" "foo" { cluster_name = "example" remark = "this is description." }
resource "tencentcloud_tdmq_namespace" "bar" { environ_name = "example" msg_ttl = 300 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
resource "tencentcloud_tdmq_topic" "bar" { environ_id = "${tencentcloud_tdmq_namespace.bar.id}" topic_name = "example" partitions = 6 topic_type = 0 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
resource "tencentcloud_tdmq_role" "bar" { role_name = "example" cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description world" }
```
Import ¶
Tdmq instance can be imported, e.g.
``` $ terraform import tencentcloud_tdmq_instance.test tdmq_id ```
Provide a resource to create a TDMQ topic.
Example Usage ¶
```hcl
resource "tencentcloud_tdmq_instance" "foo" { cluster_name = "example" remark = "this is description." }
resource "tencentcloud_tdmq_namespace" "bar" { environ_name = "example" msg_ttl = 300 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
resource "tencentcloud_tdmq_topic" "bar" { environ_id = "${tencentcloud_tdmq_namespace.bar.id}" topic_name = "example" partitions = 6 topic_type = 0 cluster_id = "${tencentcloud_tdmq_instance.foo.id}" remark = "this is description." }
```
Import ¶
Tdmq Topic can be imported, e.g.
``` $ terraform import tencentcloud_tdmq_topic.test topic_id ```
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 ```
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" }
``` Import
tem application can be imported using the id, e.g. ``` $ terraform import tencentcloud_tem_application.application application_id ```
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"] }
``` Import
tem environment can be imported using the id, e.g. ``` $ terraform import tencentcloud_tem_environment.environment environment_id ```
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 ```
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 ```
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 ```
Provides a resource to create a tem workload ¶
Example Usage ¶
```hcl
resource "tencentcloud_tem_workload" "workload" { application_id = "app-3j29aa2p" environment_id = "en-853mggjm" deploy_version = "hello-world" deploy_mode = "IMAGE" img_repo = "tem_demo/tem_demo" init_pod_num = 1 cpu_spec = 1 memory_spec = 1 liveness { type = "HttpGet" protocol = "HTTP" path = "/" port = 8201 initial_delay_seconds = 0 timeout_seconds = 1 period_seconds = 10 } readiness { type = "HttpGet" protocol = "HTTP" path = "/" port = 8201 initial_delay_seconds = 0 timeout_seconds = 1 period_seconds = 10 } startup_probe { type = "HttpGet" protocol = "HTTP" path = "/" port = 8201 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 ```
Provides a resource to create a teo application_proxy
Example Usage ¶
```hcl
resource "tencentcloud_teo_application_proxy" "application_proxy" { accelerate_type = 1 plat_type = "domain" proxy_name = "applicationProxies-test-1" proxy_type = "instance" security_type = 1 session_persist_time = 2400 status = "online" tags = {} zone_id = "zone-2983wizgxqvm" ipv6 { switch = "off" } }
``` Import
teo application_proxy can be imported using the zoneId#proxyId, e.g. ``` $ terraform import tencentcloud_teo_application_proxy.application_proxy zone-2983wizgxqvm#proxy-6972528a-373a-11ed-afca-52540044a456 ```
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 ```
Provides a resource to create a teo custom_error_page
Example Usage ¶
```hcl
resource "tencentcloud_teo_custom_error_page" "error_page_0" { zone_id = data.tencentcloud_teo_zone_ddos_policy.zone_policy.zone_id entity = data.tencentcloud_teo_zone_ddos_policy.zone_policy.shield_areas[0].application[0].host name = "test" content = "<html lang='en'><body><div><p>test content</p></div></body></html>" }
```
Provides a resource to create a teo ddos_policy
Example Usage ¶
```hcl
resource "tencentcloud_teo_ddos_policy" "ddos_policy" { policy_id = 1278 zone_id = "zone-2983wizgxqvm" ddos_rule { switch = "on" acl { switch = "on" } allow_block { switch = "on" } anti_ply { abnormal_connect_num = 0 abnormal_syn_num = 0 abnormal_syn_ratio = 0 connect_timeout = 0 destination_connect_limit = 0 destination_create_limit = 0 drop_icmp = "off" drop_other = "off" drop_tcp = "off" drop_udp = "off" empty_connect_protect = "off" source_connect_limit = 0 source_create_limit = 0 udp_shard = "off" } geo_ip { region_ids = [] switch = "on" } packet_filter { switch = "on" } speed_limit { flux_limit = "0 bps" package_limit = "0 pps" } status_info { ply_level = "middle" } } }
``` Import
teo ddos_policy can be imported using the id#ddosPolicy_id, e.g. ``` $ terraform import tencentcloud_teo_ddos_policy.ddos_policy zone-2a1u0y616jz6#11587 ```
Provides a resource to create a teo dns_record
Example Usage ¶
```hcl
resource "tencentcloud_teo_dns_record" "dns_record" { zone_id = "zone-297z8rf93cfw" type = "A" name = "www.toutiao2.com" content = "150.109.8.2" mode = "proxied" ttl = "1" priority = 1 }
``` Import
teo dns_record can be imported using the zone_id#dns_record_id, e.g. ``` $ terraform import tencentcloud_teo_dns_record.dns_record zone-297z8rf93cfw#record-297z9ei9b9oc ```
Provides a resource to create a teo dns_sec
Example Usage ¶
```hcl
resource "tencentcloud_teo_dns_sec" "dns_sec" { zone_id = "zone-297z8rf93cfw" status = "enabled" }
``` Import
teo dns_sec can be imported using the zone_id, e.g. ``` $ terraform import tencentcloud_teo_dns_sec.dns_sec zone-297z8rf93cfw ```
Provides a resource to create a teo load_balancing
Example Usage ¶
```hcl resource "tencentcloud_teo_load_balancing" "load_balancing" { # backup_origin_group_id = "origin-a499ca4b-3721-11ed-b9c1-5254005a52aa"
host = "www.toutiao2.com" origin_group_id = "origin-4f8a30b2-3720-11ed-b66b-525400dceb86" status = "online" tags = {} ttl = 600 type = "proxied" zone_id = "zone-297z8rf93cfw" }
``` Import
teo load_balancing can be imported using the zone_id#loadBalancing_id, e.g. ``` $ terraform import tencentcloud_teo_load_balancing.load_balancing zone-297z8rf93cfw#lb-2a93c649-3719-11ed-b9c1-5254005a52aa ```
Provides a resource to create a teo origin_group
Example Usage ¶
```hcl
resource "tencentcloud_teo_origin_group" "origin_group" { configuration_type = "weight" origin_group_name = "test-group" origin_type = "self" tags = {} zone_id = "zone-297z8rf93cfw" origin_records { area = [] port = 8080 private = false record = "150.109.8.1" 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 ````
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 { or { and { operator = "equal" target = "host" values = [ tencentcloud_teo_dns_record.example.name, ] } and { operator = "equal" target = "extension" values = [ "mp4", ] } } actions { normal_action { action = "CachePrefresh" parameters { name = "Switch" values = [ "on", ] } parameters { name = "Percent" values = [ "80", ] } } } actions { normal_action { action = "CacheKey" parameters { name = "Type" values = [ "Header", ] } parameters { name = "Switch" values = [ "on", ] } parameters { name = "Value" values = [ "Duck", ] } } } } }
``` 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 ```
Provides a resource to create a teo rule_engine_priority
Example Usage ¶
```hcl
resource "tencentcloud_teo_rule_engine_priority" "rule_engine_priority" { zone_id = "zone-294v965lwmn6" rules_priority { index = 0 value = "rule-m9jlttua" } rules_priority { index = 1 value = "rule-m5l9t4k1" } }
``` Import
teo rule_engine_priority can be imported using the zone_id, e.g. ``` $ terraform import tencentcloud_teo_rule_engine_priority.rule_engine_priority zone-294v965lwmn6 ```
Provides a resource to create a teo security_policy
Example Usage ¶
```hcl
resource "tencentcloud_teo_security_policy" "security_policy" { entity = "aaa.sfurnace.work" zone_id = "zone-2983wizgxqvm" config { acl_config { switch = "off" } bot_config { switch = "off" intelligence_rule { switch = "off" items { action = "drop" label = "evil_bot" } items { action = "alg" label = "suspect_bot" } items { action = "monitor" label = "good_bot" } items { action = "trans" label = "normal" } } managed_rule { action = "monitor" alg_managed_ids = [] cap_managed_ids = [] drop_managed_ids = [] mon_managed_ids = [] page_id = 0 punish_time = 0 response_code = 0 rule_id = 0 trans_managed_ids = [] } portrait_rule { alg_managed_ids = [] cap_managed_ids = [] drop_managed_ids = [] mon_managed_ids = [] rule_id = -1 switch = "off" } } drop_page_config { switch = "on" acl_drop_page_detail { name = "-" page_id = 0 status_code = 569 type = "default" } waf_drop_page_detail { name = "-" page_id = 0 status_code = 566 type = "default" } } except_config { switch = "on" } ip_table_config { switch = "off" } rate_limit_config { switch = "on" intelligence { action = "monitor" switch = "off" } template { mode = "sup_loose" detail { action = "alg" id = 831807989 mode = "sup_loose" period = 1 punish_time = 0 threshold = 2000 } } } switch_config { web_switch = "on" } waf_config { level = "strict" mode = "block" switch = "on" ai_rule { mode = "smart_status_close" } waf_rules { block_rule_ids = [ 22, 84214562, 106246133, 106246507, 106246508, 106246523, 106246524, 106246679, 106247029, 106247048, 106247140, 106247356, 106247357, 106247358, 106247378, 106247389, 106247392, 106247394, 106247405, 106247409, 106247413, 106247558, 106247795, 106247819, 106248021, ] observe_rule_ids = [] switch = "off" } } } }
``` Import
teo security_policy can be imported using the zoneId#entity, e.g. ``` $ terraform import tencentcloud_teo_security_policy.security_policy zone-2983wizgxqvm#aaa.sfurnace.work ```
Provides a resource to create a teo zone ¶
Example Usage ¶
```hcl
resource "tencentcloud_teo_zone" "zone" { zone_name = "toutiao2.com" plan_type = "sta" type = "full" paused = false
# vanity_name_servers { # switch = "" # servers = "" # # }
cname_speed_up = "enabled"
# tags { # tag_key = "" # tag_value = "" # # }
tags = { "createdBy" = "terraform" } }
``` Import
teo zone can be imported using the id, e.g. ``` $ terraform import tencentcloud_teo_zone.zone zone_id ```
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# ```
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 ```
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 ```
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 ```
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 ```
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 ```
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 ```
Provide a resource to create a VPC.
Example Usage ¶
```hcl
resource "tencentcloud_vpc" "foo" { name = "ci-temp-test-updated" 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" "foo" { name = "ci-temp-test-updated" cidr_block = "10.0.0.0/16" is_multicast = false assistant_cidr = ["172.16.0.0/24"] tags = { "test" = "test" } }
```
Import ¶
Vpc instance can be imported, e.g.
``` $ terraform import tencentcloud_vpc.test vpc-id ```
Provide a resource to create a VPC ACL instance.
Example Usage ¶
```hcl data "tencentcloud_vpc_instances" "default" { }
resource "tencentcloud_vpc_acl" "foo" { vpc_id = data.tencentcloud_vpc_instances.default.instance_list.0.vpc_id name = "test_acl_update" 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 ```
Provide a resource to attach an existing subnet to Network ACL.
Example Usage ¶
```hcl data "tencentcloud_vpc_instances" "id_instances" { }
resource "tencentcloud_vpc_acl" "foo" { vpc_id = data.tencentcloud_vpc_instances.id_instances.instance_list.0.vpc_id name = "test_acl" 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.foo.id subnet_id = data.tencentcloud_vpc_instances.id_instances.instance_list[0].subnet_ids[0] }
```
Import ¶
Acl attachment can be imported using the id, e.g.
``` $ terraform import tencentcloud_vpc_acl_attachment.attachment acl-eotx5qsg#subnet-91x0geu6 ```
Provides a resource to create a vpc bandwidth_package
Example Usage ¶
```hcl
resource "tencentcloud_vpc_bandwidth_package" "bandwidth_package" { network_type = "BGP" charge_type = "TOP5_POSTPAID_BY_MONTH" bandwidth_package_name = "test-001" 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 ```
Provides a resource to create a vpc bandwidth_package_attachment
Example Usage ¶
```hcl
resource "tencentcloud_vpc_bandwidth_package_attachment" "bandwidth_package_attachment" { resource_id = "lb-dv1ai6ma" bandwidth_package_id = "bwp-atmf0p9g" network_type = "BGP" resource_type = "LoadBalance" protocol = "" }
```
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 ```
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 ```
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 ¶
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 ```
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 ```
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 ```
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 ```
Index ¶
- Constants
- Variables
- func AlarmPolicyRule() map[string]*schema.Schema
- func Base64ToString(config string) (string, error)
- func BuildTagResourceName(serviceType, resourceType, region, id string) string
- func CheckNil(object interface{}, fields map[string]string) (nilFields []string)
- func ConverterVpnGatewayRouteToMap(vpnGatewayId string, route *vpc.VpnGatewayRoute) map[string]interface{}
- func DeltaList(oldInstanceList []interface{}, newInstanceList []interface{}) (increment []string, decrement []string)
- func DisableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) error
- func EnableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) error
- func FindIntListIndex(list []int, elem int) int
- func GetBucketPublicACL(acl *cos.BucketGetACLResult) string
- func GetCertificateList(ctx context.Context, sslService SSLService, id, name, certType *string) (certificateList []*ssl.Certificates, errRet error)
- func GetCommonCertificates(certificatesById, certificatesByName []*ssl.Certificates) (result []*ssl.Certificates)
- func GetDnsStatus(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) (status *tcr.VpcPrivateDomainStatus, err error)
- func GetListDiffs(o []int, n []int) (adds []int, lacks []int)
- func GetListIncrement(o []int, n []int) (result []int, err error)
- func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
- func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint
- func GetUrlsHash(urls []string) string
- func IsContains(array interface{}, value interface{}) bool
- func LayerContent() map[string]*schema.Schema
- func ListenerIdCheck(listenerId string) error
- func NatGatewaySnatPara() map[string]*schema.Schema
- func ParseMultiDisks(_multiDisks []map[string]interface{}) []*emr.MultiDisk
- func ParseResource(_resource map[string]interface{}) *emr.Resource
- func ParseTags(_tags []map[string]string) []*emr.Tag
- func Provider() terraform.ResourceProvider
- func ResourceTencentCloudKubernetesAsScalingGroup() *schema.Resource
- func ResourceTencentCloudKubernetesNodePool() *schema.Resource
- func RetentionPolicy() map[string]*schema.Schema
- func RuleIdCheck(ruleId string) error
- func StringToBase64(config string) string
- func TencentCloudMysqlParameterDetail() map[string]*schema.Schema
- func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema
- func TencentCynosdbInstanceBaseInfo() map[string]*schema.Schema
- func TencentKmsBasicInfo() map[string]*schema.Schema
- func TencentMongodbBasicInfo() map[string]*schema.Schema
- func TencentMsyqlBasicInfo() map[string]*schema.Schema
- func TencentMysqlSellType() map[string]*schema.Schema
- func TencentMysqlZoneConfig() map[string]*schema.Schema
- func TencentSqlServerBasicInfo(isROInstance bool) map[string]*schema.Schema
- func TkeCvmCreateInfo() map[string]*schema.Schema
- func TkeExistCvmCreateInfo() map[string]*schema.Schema
- func TkeInstanceAdvancedSetting() map[string]*schema.Schema
- func TkeNodePoolGlobalConfig() map[string]*schema.Schema
- func VodWatermarkResource() *schema.Resource
- func VpnGatewayRoutePara() map[string]*schema.Schema
- func WaitForAccessIpExists(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) (accessIp string, errRet error)
- func YamlParser(config string) (map[interface{}]interface{}, error)
- type APIGatewayService
- func (me *APIGatewayService) BindEnvironment(ctx context.Context, ...) (errRet error)
- func (me *APIGatewayService) BindSecretId(ctx context.Context, usagePlanId string, apiKeyId string) (errRet error)
- func (me *APIGatewayService) BindSubDomainService(ctx context.Context, ...) (errRet error)
- func (me *APIGatewayService) CreateApiKey(ctx context.Context, secretName string) (accessKeyId string, errRet error)
- func (me *APIGatewayService) CreateIPStrategy(ctx context.Context, ...) (strategyId string, errRet error)
- func (me *APIGatewayService) CreateService(ctx context.Context, ...) (serviceId string, errRet error)
- func (me *APIGatewayService) CreateStrategyAttachment(ctx context.Context, serviceId, strategyId, envName, bindApiId string) (has bool, errRet error)
- func (me *APIGatewayService) CreateUsagePlan(ctx context.Context, usagePlanName string, usagePlanDesc *string, ...) (usagePlanId string, errRet error)
- func (me *APIGatewayService) DeleteApi(ctx context.Context, serviceId, apiId string) (errRet error)
- func (me *APIGatewayService) DeleteApiKey(ctx context.Context, accessKeyId string) (errRet error)
- func (me *APIGatewayService) DeleteIPStrategy(ctx context.Context, serviceId, strategyId string) (errRet error)
- func (me *APIGatewayService) DeleteService(ctx context.Context, serviceId string) (errRet error)
- func (me *APIGatewayService) DeleteStrategyAttachment(ctx context.Context, serviceId, strategyId, envName, bindApiId string) (has bool, errRet error)
- func (me *APIGatewayService) DeleteUsagePlan(ctx context.Context, usagePlanId string) (errRet error)
- func (me *APIGatewayService) DescribeApi(ctx context.Context, serviceId, apiId string) (info apigateway.ApiInfo, has bool, errRet error)
- func (me *APIGatewayService) DescribeApiEnvironmentStrategyList(ctx context.Context, serviceId string, environmentNames []string, apiId string) (environmentApiList []*apigateway.ApiEnvironmentStrategy, errRet error)
- func (me *APIGatewayService) DescribeApiKey(ctx context.Context, accessKeyId string) (apiKey *apigateway.ApiKey, has bool, errRet error)
- func (me *APIGatewayService) DescribeApiKeysStatus(ctx context.Context, secretName, accessKeyId string) (apiKeySet []*apigateway.ApiKey, errRet error)
- func (me *APIGatewayService) DescribeApiUsagePlan(ctx context.Context, serviceId string) (list []*apigateway.ApiUsagePlan, errRet error)
- func (me *APIGatewayService) DescribeApisStatus(ctx context.Context, serviceId, apiName, apiId string) (infos []*apigateway.DesApisStatus, errRet error)
- func (me *APIGatewayService) DescribeIPStrategies(ctx context.Context, serviceId, strategyId, environmentName string) (ipStrategies *apigateway.IPStrategy, errRet error)
- func (me *APIGatewayService) DescribeIPStrategyHas(ctx context.Context, serviceId, strategyId string) (has bool, errRet error)
- func (me *APIGatewayService) DescribeIPStrategyStatus(ctx context.Context, serviceId, strategyId string) (ipStrategies *apigateway.IPStrategy, has bool, errRet error)
- func (me *APIGatewayService) DescribeIPStrategysStatus(ctx context.Context, serviceId, strategyName string) (infos []*apigateway.IPStrategy, errRet error)
- func (me *APIGatewayService) DescribeService(ctx context.Context, serviceId string) (info apigateway.DescribeServiceResponse, has bool, errRet error)
- func (me *APIGatewayService) DescribeServiceEnvironmentReleaseHistory(ctx context.Context, serviceId, envName string) (versionList []*apigateway.ServiceReleaseHistoryInfo, has bool, errRet error)
- func (me *APIGatewayService) DescribeServiceEnvironmentStrategyList(ctx context.Context, serviceId string) (environmentList []*apigateway.ServiceEnvironmentStrategy, errRet error)
- func (me *APIGatewayService) DescribeServiceSubDomainMappings(ctx context.Context, serviceId, subDomain string) (info *apigateway.ServiceSubDomainMappings, errRet error)
- func (me *APIGatewayService) DescribeServiceSubDomains(ctx context.Context, serviceId string) (domainList []*apigateway.DomainSetList, errRet error)
- func (me *APIGatewayService) DescribeServiceSubDomainsService(ctx context.Context, serviceId, subDomain string) (resultList []*apigateway.DomainSetList, errRet error)
- func (me *APIGatewayService) DescribeServiceUsagePlan(ctx context.Context, serviceId string) (list []*apigateway.ApiUsagePlan, errRet error)
- func (me *APIGatewayService) DescribeServicesStatus(ctx context.Context, serviceId, serviceName string) (infos []*apigateway.Service, errRet error)
- func (me *APIGatewayService) DescribeStrategyAttachment(ctx context.Context, serviceId, strategyId, bindApiId string) (has bool, errRet error)
- func (me *APIGatewayService) DescribeUsagePlan(ctx context.Context, usagePlanId string) (info apigateway.UsagePlanInfo, has bool, errRet error)
- func (me *APIGatewayService) DescribeUsagePlanEnvironments(ctx context.Context, usagePlanId string, bindType string) (list []*apigateway.UsagePlanEnvironment, errRet error)
- func (me *APIGatewayService) DescribeUsagePlansStatus(ctx context.Context, usagePlanId string, usagePlanName string) (infos []*apigateway.UsagePlanStatusInfo, errRet error)
- func (me *APIGatewayService) DisableApiKey(ctx context.Context, accessKeyId string) (errRet error)
- func (me *APIGatewayService) EnableApiKey(ctx context.Context, accessKeyId string) (errRet error)
- func (me *APIGatewayService) ModifyApiEnvironmentStrategy(ctx context.Context, serviceId string, strategy int64, environmentName string, ...) (result bool, errRet error)
- func (me *APIGatewayService) ModifyService(ctx context.Context, serviceId, serviceName, protocol, serviceDesc string, ...) (errRet error)
- func (me *APIGatewayService) ModifyServiceEnvironmentStrategy(ctx context.Context, serviceId string, strategy int64, ...) (result bool, errRet error)
- func (me *APIGatewayService) ModifySubDomainService(ctx context.Context, serviceId, subDomain string, isDefaultMapping bool, ...) (errRet error)
- func (me *APIGatewayService) ModifyUsagePlan(ctx context.Context, usagePlanId string, usagePlanName string, ...) (errRet error)
- func (me *APIGatewayService) ReleaseService(ctx context.Context, serviceId, environmentName, releaseDesc string) (response *apigateway.ReleaseServiceResponse, err error)
- func (me *APIGatewayService) UnBindEnvironment(ctx context.Context, ...) (errRet error)
- func (me *APIGatewayService) UnBindSecretId(ctx context.Context, usagePlanId string, apiKeyId string) (errRet error)
- func (me *APIGatewayService) UnBindSubDomainService(ctx context.Context, serviceId, subDomain string) (errRet error)
- func (me *APIGatewayService) UnReleaseService(ctx context.Context, serviceId, environment string) (errRet error)
- func (me *APIGatewayService) UpdateIPStrategy(ctx context.Context, serviceId, strategyId, strategyData string) (errRet error)
- type APIService
- type AddonRequestBody
- type AddonResponseData
- type AddonResponseMeta
- type AddonSpec
- type AddonSpecChart
- type AddonSpecValues
- type AntiddosService
- func (me *AntiddosService) AssociateDDoSEipAddress(ctx context.Context, instanceId string, eip string, cvmInstanceID string, ...) (err error)
- func (me *AntiddosService) AssociateDDoSEipLoadBalancer(ctx context.Context, instanceId string, eip string, loadBalancerID string, ...) (err error)
- func (me *AntiddosService) CreateCCPrecisionPolicy(ctx context.Context, instanceId, protocol, ip, domain, policyAction string, ...) (err error)
- func (me *AntiddosService) CreateCCReqLimitPolicy(ctx context.Context, instanceId, protocol, ip, domain string, ...) (err error)
- func (me *AntiddosService) CreateCcBlackWhiteIpList(ctx context.Context, instanceId, protocol, ip, domain, ipType string, ...) (err error)
- func (me *AntiddosService) CreateCcGeoIPBlockConfig(ctx context.Context, instanceId, protocol, ip, domain string, ...) (err error)
- func (me *AntiddosService) CreateDDoSAI(ctx context.Context, instanceId, ddosAI string) (err error)
- func (me *AntiddosService) CreateDDoSBlackWhiteIpList(ctx context.Context, instanceId string, ipList []string, ipType string) (err error)
- func (me *AntiddosService) CreateDDoSConnectLimit(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) CreateDDoSGeoIPBlockConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) CreateDDoSSpeedLimitConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) CreatePacketFilterConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) CreatePortAclConfig(ctx context.Context, instanceId string, aclConfig antiddos.AclConfig) (err error)
- func (me *AntiddosService) CreateProtocolBlockConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) DeleteCCLevelPolicy(ctx context.Context, instanceId, ip, domain string) (err error)
- func (me *AntiddosService) DeleteCCPrecisionPolicy(ctx context.Context, instanceId, policyId string) (err error)
- func (me *AntiddosService) DeleteCCRequestLimitPolicy(ctx context.Context, instanceId, policyId string) (err error)
- func (me *AntiddosService) DeleteCCThresholdPolicy(ctx context.Context, instanceId, ip, domain string) (err error)
- func (me *AntiddosService) DeleteCcBlackWhiteIpList(ctx context.Context, instanceId, policyId string) (err error)
- func (me *AntiddosService) DeleteCcGeoIPBlockConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) DeleteDDoSAI(ctx context.Context, instanceId string) (err error)
- func (me *AntiddosService) DeleteDDoSBlackWhiteIpList(ctx context.Context, instanceId string, ips []string, ipType string) (err error)
- func (me *AntiddosService) DeleteDDoSConnectLimit(ctx context.Context, instanceId string) (err error)
- func (me *AntiddosService) DeleteDDoSGeoIPBlockConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) DeleteDDoSSpeedLimitConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) DeleteDDoSThreshold(ctx context.Context, business, instanceId string) (err error)
- func (me *AntiddosService) DeletePacketFilterConfig(ctx context.Context, instanceId string, ...) (err error)
- func (me *AntiddosService) DeletePortAclConfig(ctx context.Context, instanceId string, aclConfig antiddos.AclConfig) (err error)
- func (me *AntiddosService) DeleteProtocolBlockConfig(ctx context.Context, instanceId string) (err error)
- func (me *AntiddosService) DeleteyDDoSLevel(ctx context.Context, business, instanceId string) (err error)
- func (me *AntiddosService) DescribeCCLevelList(ctx context.Context, business, instanceId string) (result []*antiddos.CCLevelPolicy, err error)
- func (me *AntiddosService) DescribeCCLevelPolicy(ctx context.Context, domain, instanceId, ip, protocol string) (level string, err error)
- func (me *AntiddosService) DescribeCCPrecisionPlyList(ctx context.Context, business, instanceId string) (result []*antiddos.CCPrecisionPolicy, err error)
- func (me *AntiddosService) DescribeCCReqLimitPolicyList(ctx context.Context, business, instanceId string) (result []*antiddos.CCReqLimitPolicy, err error)
- func (me *AntiddosService) DescribeCCThresholdList(ctx context.Context, business, instanceId string) (result []*antiddos.CCThresholdPolicy, err error)
- func (me *AntiddosService) DescribeCcBlackWhiteIpList(ctx context.Context, business, instanceId string) (result []*antiddos.CcBlackWhiteIpPolicy, err error)
- func (me *AntiddosService) DescribeCcGeoIPBlockConfigList(ctx context.Context, business, instanceId string) (result []*antiddos.CcGeoIpPolicyNew, err error)
- func (me *AntiddosService) DescribeDDoSConnectLimitList(ctx context.Context, instanceId string) (result antiddos.ConnectLimitConfig, err error)
- func (me *AntiddosService) DescribeListBGPIPInstanceById(ctx context.Context, business, instanceId string) (result []*antiddos.BGPIPInstance, err error)
- func (me *AntiddosService) DescribeListBGPIPInstances(ctx context.Context, instanceId string, status []string, offset int, limit int) (result []*antiddos.BGPIPInstance, err error)
- func (me *AntiddosService) DescribeListBGPInstanceById(ctx context.Context, business, instanceId string) (result []*antiddos.BGPInstance, err error)
- func (me *AntiddosService) DescribeListBlackWhiteIpList(ctx context.Context, instanceId string) (result []*antiddos.BlackWhiteIpRelation, err error)
- func (me *AntiddosService) DescribeListDDoSAI(ctx context.Context, instanceId string) (result antiddos.DDoSAIRelation, err error)
- func (me *AntiddosService) DescribeListDDoSGeoIPBlockConfig(ctx context.Context, instanceId string) (result []*antiddos.DDoSGeoIPBlockConfigRelation, err error)
- func (me *AntiddosService) DescribeListDDoSSpeedLimitConfig(ctx context.Context, instanceId string) (result []*antiddos.DDoSSpeedLimitConfigRelation, err error)
- func (me *AntiddosService) DescribeListPacketFilterConfig(ctx context.Context, instanceId string) (result []*antiddos.PacketFilterRelation, err error)
- func (me *AntiddosService) DescribeListPortAclList(ctx context.Context, instanceId string) (result []*antiddos.AclConfigRelation, err error)
- func (me *AntiddosService) DescribeListProtectThresholdConfig(ctx context.Context, instanceId string) (result antiddos.ProtectThresholdRelation, err error)
- func (me *AntiddosService) DescribeListProtocolBlockConfig(ctx context.Context, instanceId string) (result antiddos.ProtocolBlockRelation, err error)
- func (me *AntiddosService) DescribeListWaterPrintConfig(ctx context.Context, instanceId string) (result antiddos.WaterPrintRelation, err error)
- func (me *AntiddosService) DisassociateDDoSEipAddress(ctx context.Context, instanceId string, eip string) (err error)
- func (me *AntiddosService) ModifyCCLevelPolicy(ctx context.Context, instanceId, ip, domain, protocol, level string) (err error)
- func (me *AntiddosService) ModifyCCThresholdPolicy(ctx context.Context, instanceId, protocol, ip, domain string, threshold int) (err error)
- func (me *AntiddosService) ModifyDDoSLevel(ctx context.Context, business, instanceId, ddosLevel string) (err error)
- func (me *AntiddosService) ModifyDDoSThreshold(ctx context.Context, business, instanceId string, threshold int) (err error)
- type AsService
- func (me *AsService) AttachInstances(ctx context.Context, scalingGroupId string, instanceIds []string) error
- func (me *AsService) ClearScalingGroupInstance(ctx context.Context, scalingGroupId string) error
- func (me *AsService) DeleteLaunchConfiguration(ctx context.Context, configurationId string) error
- func (me *AsService) DeleteLifecycleHook(ctx context.Context, lifecycleHookId string) error
- func (me *AsService) DeleteNotification(ctx context.Context, notificationId string) error
- func (me *AsService) DeleteScalingGroup(ctx context.Context, scalingGroupId string) error
- func (me *AsService) DeleteScalingPolicy(ctx context.Context, scalingPolicyId string) error
- func (me *AsService) DeleteScheduledAction(ctx context.Context, scheduledActonId string) error
- func (me *AsService) DescribeActivityById(ctx context.Context, activityId string) (status string, errRet error)
- func (me *AsService) DescribeAutoScalingAttachment(ctx context.Context, scalingGroupId string, fully bool) (instanceIds []string, errRet error)
- func (me *AsService) DescribeAutoScalingGroupByFilter(ctx context.Context, scalingGroupId, configurationId, scalingGroupName string, ...) (scalingGroups []*as.AutoScalingGroup, errRet error)
- func (me *AsService) DescribeAutoScalingGroupById(ctx context.Context, scalingGroupId string) (scalingGroup *as.AutoScalingGroup, has int, errRet error)
- func (me *AsService) DescribeLaunchConfigurationByFilter(ctx context.Context, configurationId, configurationName string) (configs []*as.LaunchConfiguration, errRet error)
- func (me *AsService) DescribeLaunchConfigurationById(ctx context.Context, configurationId string) (config *as.LaunchConfiguration, has int, errRet error)
- func (me *AsService) DescribeLifecycleHookById(ctx context.Context, lifecycleHookId string) (lifecycleHook *as.LifecycleHook, has int, errRet error)
- func (me *AsService) DescribeNotificationById(ctx context.Context, notificationId string) (notification *as.AutoScalingNotification, has int, errRet error)
- func (me *AsService) DescribeScalingPolicyByFilter(ctx context.Context, policyId, policyName, scalingGroupId string) (scalingPolicies []*as.ScalingPolicy, errRet error)
- func (me *AsService) DescribeScalingPolicyById(ctx context.Context, scalingPolicyId string) (scalingPolicy *as.ScalingPolicy, has int, errRet error)
- func (me *AsService) DescribeScheduledActionById(ctx context.Context, scheduledActionId string) (scheduledAction *as.ScheduledAction, has int, errRet error)
- func (me *AsService) DetachInstances(ctx context.Context, scalingGroupId string, instanceIds []string) error
- func (me *AsService) ModifyAutoScalingGroup(ctx context.Context, request *as.ModifyAutoScalingGroupRequest) (errRet error)
- type AuditService
- func (me *AuditService) DescribeAuditById(ctx context.Context, name string) (auditInfo *audit.DescribeAuditResponse, has bool, errRet error)
- func (me *AuditService) DescribeAuditCmqRegions(ctx context.Context) (regions []*audit.CmqRegionInfo, errRet error)
- func (me *AuditService) DescribeAuditCosRegions(ctx context.Context) (regions []*audit.CosRegionInfo, errRet error)
- func (me *AuditService) DescribeKeyAlias(ctx context.Context, region string) (keyMetadatas []*audit.KeyMetadata, errRet error)
- type CamService
- func (me *CamService) AddGroupPolicyAttachment(ctx context.Context, groupId string, policyId string) error
- func (me *CamService) AddUserPolicyAttachment(ctx context.Context, userId string, policyId string) error
- func (me *CamService) DeleteGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) error
- func (me *CamService) DeleteRoleById(ctx context.Context, roleId string) error
- func (me *CamService) DeleteRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) error
- func (me *CamService) DeleteUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) error
- func (me *CamService) DescribeGroupById(ctx context.Context, groupId string) (camInstance *cam.GetGroupResponse, errRet error)
- func (me *CamService) DescribeGroupMembershipById(ctx context.Context, groupId string) (members []*string, errRet error)
- func (me *CamService) DescribeGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeGroupPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeGroupsByFilter(ctx context.Context, params map[string]interface{}) (groups []*cam.GroupInfo, errRet error)
- func (me *CamService) DescribePoliciesByFilter(ctx context.Context, params map[string]interface{}) (policies []*cam.StrategyInfo, errRet error)
- func (me *CamService) DescribePolicyById(ctx context.Context, policyId string) (result *cam.GetPolicyResponse, errRet error)
- func (me *CamService) DescribeRoleById(ctx context.Context, roleId string) (camInstance *cam.RoleInfo, errRet error)
- func (me *CamService) DescribeRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)
- func (me *CamService) DescribeRolePolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyOfRoles []*cam.AttachedPolicyOfRole, errRet error)
- func (me *CamService) DescribeRolesByFilter(ctx context.Context, params map[string]interface{}) (roles []*cam.RoleInfo, errRet error)
- func (me *CamService) DescribeSAMLProviderById(ctx context.Context, providerName string) (result *cam.GetSAMLProviderResponse, errRet error)
- func (me *CamService) DescribeSAMLProvidersByFilter(ctx context.Context, params map[string]interface{}) (providers []*cam.SAMLProviderInfo, errRet error)
- func (me *CamService) DescribeUserById(ctx context.Context, userId string) (response *cam.GetUserResponse, errRet error)
- func (me *CamService) DescribeUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeUserPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeUsersByFilter(ctx context.Context, params map[string]interface{}) (result []*cam.SubAccountInfo, errRet error)
- func (me *CamService) PolicyDocumentForceCheck(document string) error
- type CatService
- func (me *CatService) DeleteCatTaskSetById(ctx context.Context, taskId string) (errRet error)
- func (me *CatService) DescribeCatNodeByFilter(ctx context.Context, param map[string]interface{}) (node []*cat.NodeDefine, errRet error)
- func (me *CatService) DescribeCatProbeDataByFilter(ctx context.Context, param map[string]interface{}) (probeData []*cat.DetailedSingleDataDefine, errRet error)
- func (me *CatService) DescribeCatTaskSet(ctx context.Context, taskId string) (taskSet *cat.ProbeTask, errRet error)
- type CbsService
- func (me *CbsService) ApplySnapshot(ctx context.Context, diskId, snapshotId string) error
- func (me *CbsService) AttachDisk(ctx context.Context, diskId, instanceId string) error
- func (me *CbsService) AttachSnapshotPolicy(ctx context.Context, diskId, policyId string) error
- func (me *CbsService) CreateSnapshot(ctx context.Context, diskId, snapshotName string, tags map[string]string) (snapshotId string, errRet error)
- func (me *CbsService) DeleteDiskById(ctx context.Context, diskId string) error
- func (me *CbsService) DeleteDiskSetByIds(ctx context.Context, diskSetIds string) error
- func (me *CbsService) DeleteSnapshot(ctx context.Context, snapshotId string) error
- func (me *CbsService) DeleteSnapshotPolicy(ctx context.Context, policyId string) error
- func (me *CbsService) DescribeAttachedSnapshotPolicy(ctx context.Context, diskId, policyId string) (policy *cbs.AutoSnapshotPolicy, errRet error)
- func (me *CbsService) DescribeDiskById(ctx context.Context, diskId string) (disk *cbs.Disk, errRet error)
- func (me *CbsService) DescribeDiskList(ctx context.Context, diskIds []*string) (disk []*cbs.Disk, errRet error)
- func (me *CbsService) DescribeDiskSetByIds(ctx context.Context, diskSetIds string) (disks []*cbs.Disk, errRet error)
- func (me *CbsService) DescribeDisksByFilter(ctx context.Context, params map[string]interface{}) (disks []*cbs.Disk, errRet error)
- func (me *CbsService) DescribeDisksInParallelByFilter(ctx context.Context, params map[string]interface{}) (disks []*cbs.Disk, errRet error)
- func (me *CbsService) DescribeSnapshotById(ctx context.Context, snapshotId string) (snapshot *cbs.Snapshot, errRet error)
- func (me *CbsService) DescribeSnapshotByIds(ctx context.Context, snapshotIdsParam []*string) (snapshots []*cbs.Snapshot, errRet error)
- func (me *CbsService) DescribeSnapshotPolicy(ctx context.Context, policyId, policyName string) (policies []*cbs.AutoSnapshotPolicy, errRet error)
- func (me *CbsService) DescribeSnapshotPolicyById(ctx context.Context, policyId string) (policy *cbs.AutoSnapshotPolicy, errRet error)
- func (me *CbsService) DescribeSnapshotsByFilter(ctx context.Context, params map[string]string) (snapshots []*cbs.Snapshot, errRet error)
- func (me *CbsService) DetachDisk(ctx context.Context, diskId, instanceId string) error
- func (me *CbsService) ModifyDiskAttributes(ctx context.Context, diskId, diskName string, projectId int) error
- func (me *CbsService) ModifyDiskChargeType(ctx context.Context, storageId string, chargeType string, renewFlag string, ...) error
- func (me *CbsService) ModifyDisksRenewFlag(ctx context.Context, storageId string, renewFlag string) error
- func (me *CbsService) ModifySnapshotName(ctx context.Context, snapshotId, snapshotName string) error
- func (me *CbsService) ModifyThroughputPerformance(ctx context.Context, diskId string, throughputPerformance int) error
- func (me *CbsService) ResizeDisk(ctx context.Context, diskId string, diskSize int) error
- func (me *CbsService) UnattachSnapshotPolicy(ctx context.Context, diskId, policyId string) error
- type CcnAttachedInstanceInfo
- type CcnBandwidthLimit
- type CcnBasicInfo
- type CdhService
- func (me *CdhService) CreateCdhInstance(ctx context.Context, placement *cvm.Placement, ...) (hostId string, errRet error)
- func (me *CdhService) DescribeCdhInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.HostItem, errRet error)
- func (me *CdhService) DescribeCdhInstanceById(ctx context.Context, hostId string) (instance *cvm.HostItem, errRet error)
- func (me *CdhService) ModifyHostName(ctx context.Context, hostId, hostName string) (errRet error)
- func (me *CdhService) ModifyPrepaidRenewFlag(ctx context.Context, hostId, renewFlag string) (errRet error)
- func (me *CdhService) ModifyProject(ctx context.Context, hostId string, projectId int) (errRet error)
- type CdnService
- func (me *CdnService) CreateVerifyRecord(ctx context.Context, domain string) (resp *cdn.CreateVerifyRecordResponseParams, errRet error)
- func (me *CdnService) DeleteDomain(ctx context.Context, domain string) error
- func (me *CdnService) DescribeDomainsConfigByDomain(ctx context.Context, domain string) (domainConfig *cdn.DetailDomain, errRet error)
- func (me *CdnService) DescribeDomainsConfigByFilters(ctx context.Context, filterMap map[string]interface{}) (domainConfig []*cdn.DetailDomain, errRet error)
- func (me *CdnService) DescribePurgeTasks(ctx context.Context, request *cdn.DescribePurgeTasksRequest) (task []*cdn.PurgeTask, errRet error)
- func (me *CdnService) DescribePushTasks(ctx context.Context, request *cdn.DescribePushTasksRequest) (task []*cdn.PushTask, errRet error)
- func (me *CdnService) PurgeUrlsCache(ctx context.Context, request *cdn.PurgeUrlsCacheRequest) (taskId string, errRet error)
- func (me *CdnService) PushUrlsCache(ctx context.Context, request *cdn.PushUrlsCacheRequest) (taskId string, errRet error)
- func (me *CdnService) StartDomain(ctx context.Context, domain string) error
- func (me *CdnService) StopDomain(ctx context.Context, domain string) error
- func (me *CdnService) UpdateDomainConfig(ctx context.Context, request *cdn.UpdateDomainConfigRequest) (errRet error)
- func (me *CdnService) VerifyDomainRecord(ctx context.Context, domain string) (result bool, errRet error)
- type CdnVerifyRecordResponse
- type CfsService
- func (me *CfsService) CreateAccessGroup(ctx context.Context, name, description string) (id string, errRet error)
- func (me *CfsService) DeleteAccessGroup(ctx context.Context, id string) error
- func (me *CfsService) DeleteAccessRule(ctx context.Context, accessGroupId, accessRuleId string) error
- func (me *CfsService) DeleteFileSystem(ctx context.Context, fsId string) error
- func (me *CfsService) DescribeAccessGroup(ctx context.Context, id, name string) (accessGroups []*cfs.PGroupInfo, errRet error)
- func (me *CfsService) DescribeAccessRule(ctx context.Context, accessGroupId, accessRuleId string) (accessRules []*cfs.PGroupRuleInfo, errRet error)
- func (me *CfsService) DescribeFileSystem(ctx context.Context, fsId, vpcId, subnetId string) (fs []*cfs.FileSystemInfo, errRet error)
- func (me *CfsService) DescribeMountTargets(ctx context.Context, fsId string) (targets []*cfs.MountInfo, errRet error)
- func (me *CfsService) ModifyFileSystemAccessGroup(ctx context.Context, fsId, accessGroupId string) error
- func (me *CfsService) ModifyFileSystemName(ctx context.Context, fsId, fsName string) error
- type CkafkaService
- func (me *CkafkaService) AddCkafkaTopicIpWhiteList(ctx context.Context, instanceId string, topicName string, ...) (errRet error)
- func (me *CkafkaService) AddCkafkaTopicPartition(ctx context.Context, instanceId string, topicName string, partitionNum int64) (errRet error)
- func (me *CkafkaService) CheckCkafkaInstanceReady(ctx context.Context, instanceId string) (has bool, ready bool, errRet error)
- func (me *CkafkaService) CreateAcl(ctx context.Context, ...) (errRet error)
- func (me *CkafkaService) CreateCkafkaTopic(ctx context.Context, request *ckafka.CreateTopicRequest) (errRet error)
- func (me *CkafkaService) CreateUser(ctx context.Context, instanceId, user, password string) (errRet error)
- func (me *CkafkaService) DeleteAcl(ctx context.Context, aclId string) (errRet error)
- func (me *CkafkaService) DeleteCkafkaTopic(ctx context.Context, instanceId string, name string) (errRet error)
- func (me *CkafkaService) DeleteUser(ctx context.Context, userId string) (errRet error)
- func (me *CkafkaService) DescribeAclByAclId(ctx context.Context, aclId string) (aclInfo *ckafka.Acl, has bool, errRet error)
- func (me *CkafkaService) DescribeAclByFilter(ctx context.Context, params map[string]interface{}) (aclInfos []*ckafka.Acl, errRet error)
- func (me *CkafkaService) DescribeCkafkaById(ctx context.Context, instanceId string) (instance *ckafka.InstanceDetail, has bool, errRet error)
- func (me *CkafkaService) DescribeCkafkaInstanceById(ctx context.Context, instanceId string) (info *ckafka.InstanceDetail, has bool, errRet error)
- func (me *CkafkaService) DescribeCkafkaTopicAttributes(ctx context.Context, instanceId string, topicName string) (topicInfo *ckafka.TopicAttributesResponse, errRet error)
- func (me *CkafkaService) DescribeCkafkaTopicByName(ctx context.Context, instanceId string, topicName string) (topic *ckafka.TopicDetail, has bool, errRet error)
- func (me *CkafkaService) DescribeCkafkaTopics(ctx context.Context, instanceId string, topicName string) (topicList []*ckafka.TopicDetail, errRet error)
- func (me *CkafkaService) DescribeInstanceById(ctx context.Context, instanceId string) (instanceInfo *ckafka.InstanceAttributesResponse, has bool, errRet error)
- func (me *CkafkaService) DescribeTopicById(ctx context.Context, topicId string) (topicInfo *ckafka.TopicAttributesResponse, has bool, errRet error)
- func (me *CkafkaService) DescribeUserByFilter(ctx context.Context, params map[string]interface{}) (userInfos []*ckafka.User, errRet error)
- func (me *CkafkaService) DescribeUserByUserId(ctx context.Context, userId string) (userInfo *ckafka.User, has bool, errRet error)
- func (me *CkafkaService) ModifyCkafkaInstanceAttributes(ctx context.Context, request *ckafka.ModifyInstanceAttributesRequest) (errRet error)
- func (me *CkafkaService) ModifyCkafkaTopicAttribute(ctx context.Context, request *ckafka.ModifyTopicAttributesRequest) (errRet error)
- func (me *CkafkaService) ModifyPassword(ctx context.Context, instanceId, user, oldPasswd, newPasswd string) (errRet error)
- func (me *CkafkaService) OperateStatusCheck(ctx context.Context, result *ckafka.JgwOperateResponse) (isSucceed bool)
- func (me *CkafkaService) RemoveCkafkaTopicIpWhiteList(ctx context.Context, instaneId string, topicName string, whiteIpList []*string) (errRet error)
- type ClbService
- func (me *ClbService) AssociateTargetGroups(ctx context.Context, listenerId, clbId, targetGroupId, locationId string) (errRet error)
- func (me *ClbService) BindOrUnBindCustomizedConfigWithLbId(ctx context.Context, action string, configId string, lbIdsList []interface{}) (errRet error)
- func (me *ClbService) CreateClbLogSet(ctx context.Context, name string, logsetType string, period int) (id string, errRet error)
- func (me *ClbService) CreateLoadBalancerSnatIps(ctx context.Context, id string, ips []*clb.SnatIp) (taskId string, errRet error)
- func (me *ClbService) CreateTargetGroup(ctx context.Context, targetGroupName string, vpcId string, port uint64, ...) (targetGroupId string, err error)
- func (me *ClbService) CreateTopic(ctx context.Context, params map[string]interface{}) (response *clb.CreateTopicResponse, err error)
- func (me *ClbService) DeleteAttachmentById(ctx context.Context, clbId string, listenerId string, locationId string, ...) error
- func (me *ClbService) DeleteLbCustomizedConfigById(ctx context.Context, configId string) (errRet error)
- func (me *ClbService) DeleteListenerById(ctx context.Context, clbId string, listenerId string) error
- func (me *ClbService) DeleteLoadBalancerById(ctx context.Context, clbId string) error
- func (me *ClbService) DeleteLoadBalancerSnatIps(ctx context.Context, id string, ips []*string) (taskId string, errRet error)
- func (me *ClbService) DeleteRedirectionById(ctx context.Context, rewriteId string) error
- func (me *ClbService) DeleteRuleById(ctx context.Context, clbId string, listenerId string, locationId string) error
- func (me *ClbService) DeleteTarget(ctx context.Context, targetGroupId string) error
- func (me *ClbService) DeregisterTargetInstances(ctx context.Context, targetGroupId, bindIp string, port uint64) (err error)
- func (me *ClbService) DescribeAllAutoRedirections(ctx context.Context, rewriteId string) (rewriteInfos []*map[string]string, errRet error)
- func (me *ClbService) DescribeAssociateTargetGroups(ctx context.Context, ids []string) (has bool, err error)
- func (me *ClbService) DescribeAttachmentByPara(ctx context.Context, clbId string, listenerId string, locationId string) (clbAttachment *clb.ListenerBackend, errRet error)
- func (me *ClbService) DescribeAttachmentsByFilter(ctx context.Context, params map[string]string) (clbAttachments []*clb.ListenerBackend, errRet error)
- func (me *ClbService) DescribeClbLogSet(ctx context.Context) (logSetId string, healthId string, errRet error)
- func (me *ClbService) DescribeLbCustomizedConfigById(ctx context.Context, configId string) (customizedConfig *clb.ConfigListItem, errRet error)
- func (me *ClbService) DescribeListenerById(ctx context.Context, listenerId string, clbId string) (clbListener *clb.Listener, errRet error)
- func (me *ClbService) DescribeListenersByFilter(ctx context.Context, params map[string]interface{}) (listeners []*clb.Listener, errRet error)
- func (me *ClbService) DescribeLoadBalancerByFilter(ctx context.Context, params map[string]interface{}) (clbs []*clb.LoadBalancer, errRet error)
- func (me *ClbService) DescribeLoadBalancerById(ctx context.Context, clbId string) (clbInstance *clb.LoadBalancer, errRet error)
- func (me *ClbService) DescribeRedirectionById(ctx context.Context, rewriteId string) (rewriteInfo *map[string]string, errRet error)
- func (me *ClbService) DescribeRedirectionsByFilter(ctx context.Context, params map[string]string) (rewriteInfos []*map[string]string, errRet error)
- func (me *ClbService) DescribeRuleByPara(ctx context.Context, clbId string, listenerId string, domain string, ...) (clbRule *clb.RuleOutput, errRet error)
- func (me *ClbService) DescribeRulesByFilter(ctx context.Context, params map[string]string) (rules []*clb.RuleOutput, errRet error)
- func (me *ClbService) DescribeTargetGroupInstances(ctx context.Context, filters map[string]string) (targetGroupInstances []*clb.TargetGroupBackend, errRet error)
- func (me *ClbService) DescribeTargetGroups(ctx context.Context, targetGroupId string, filters map[string]string) (targetGroupInfos []*clb.TargetGroupInfo, errRet error)
- func (me *ClbService) DisassociateTargetGroups(ctx context.Context, targetGroupId, listenerId, clbId, locationId string) (errRet error)
- func (me *ClbService) ModifyTargetGroup(ctx context.Context, targetGroupId, targetGroupName string, port uint64) (err error)
- func (me *ClbService) ModifyTargetGroupInstancesWeight(ctx context.Context, targetGroupId, bindIp string, port, weight uint64) (errRet error)
- func (me *ClbService) RegisterTargetInstances(ctx context.Context, targetGroupId, bindIp string, port, weight uint64) (err error)
- func (me *ClbService) UpdateClsLogSet(ctx context.Context, request *cls.ModifyLogsetRequest) (errRet error)
- type ClsService
- func (me *ClsService) DeleteClsConfig(ctx context.Context, id string) (errRet error)
- func (me *ClsService) DeleteClsConfigExtra(ctx context.Context, id string) (errRet error)
- func (me *ClsService) DeleteClsCosShipper(ctx context.Context, id string) (errRet error)
- func (me *ClsService) DeleteClsIndex(ctx context.Context, id string) (errRet error)
- func (me *ClsService) DeleteClsLogsetById(ctx context.Context, logsetId string) (errRet error)
- func (me *ClsService) DeleteClsMachineGroup(ctx context.Context, id string) (errRet error)
- func (me *ClsService) DeleteClsTopic(ctx context.Context, id string) (errRet error)
- func (me *ClsService) DescribeClsCosShipperById(ctx context.Context, shipperId string) (instance *cls.ShipperInfo, errRet error)
- func (me *ClsService) DescribeClsCosShippersByFilter(ctx context.Context, filters map[string]string) (instances []*cls.ShipperInfo, errRet error)
- func (me *ClsService) DescribeClsLogset(ctx context.Context, logsetId string) (logset *cls.LogsetInfo, errRet error)
- func (me *ClsService) DescribeClsLogsetByFilter(ctx context.Context, filters map[string]string) (instances []*cls.LogsetInfo, errRet error)
- func (me *ClsService) DescribeClsMachineGroupByFilter(ctx context.Context, filters map[string]string) (instances []*cls.MachineGroupInfo, errRet error)
- func (me *ClsService) DescribeClsMachineGroupById(ctx context.Context, id string) (machineGroup *cls.MachineGroupInfo, errRet error)
- func (me *ClsService) DescribeClsTopicByFilter(ctx context.Context, filters map[string]string) (instances []*cls.TopicInfo, errRet error)
- func (me *ClsService) DescribeClsTopicById(ctx context.Context, topicId string) (topic *cls.TopicInfo, errRet error)
- type ClusterAdvancedSettings
- type ClusterBasicSetting
- type ClusterCidrSettings
- type ClusterExtraArgs
- type ClusterInfo
- type CosBucketDomainCertItem
- type CosService
- func (me *CosService) DeleteBucket(ctx context.Context, bucket string, forced bool, versioned bool) (errRet error)
- func (me *CosService) DeleteBucketOriginDomain(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteBucketPolicy(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteBucketPullOrigin(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteBucketReplication(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteCosBucketDomainCertificate(ctx context.Context, certId string) (errRet error)
- func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (errRet error)
- func (me *CosService) DescribeCosBucketDomainCertificate(ctx context.Context, certId string) (result *cos.BucketGetDomainCertificateResult, bucket string, errRet error)
- func (me *CosService) DescribePolicyByBucket(ctx context.Context, bucket string) (bucketPolicy string, errRet error)
- func (me *CosService) ForceCleanObject(ctx context.Context, bucket string, versioned bool) error
- func (me *CosService) GetBucketACL(ctx context.Context, bucket string) (result *cos.BucketGetACLResult, errRet error)
- func (me *CosService) GetBucketCors(ctx context.Context, bucket string) (corsRules []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketEncryption(ctx context.Context, bucket string) (encryption string, errRet error)
- func (me *CosService) GetBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketLogStatus(ctx context.Context, bucket string) (logEnable bool, logTargetBucket string, logPrefix string, errRet error)
- func (me *CosService) GetBucketOriginDomain(ctx context.Context, bucket string) (result []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketPullOrigin(ctx context.Context, bucket string) (result []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketReplication(ctx context.Context, bucket string) (result *cos.GetBucketReplicationResult, errRet error)
- func (me *CosService) GetBucketTags(ctx context.Context, bucket string) (map[string]string, error)
- func (me *CosService) GetBucketVersioning(ctx context.Context, bucket string) (versioningEnable bool, errRet error)
- func (me *CosService) GetBucketWebsite(ctx context.Context, bucket string) (websites []map[string]interface{}, errRet error)
- func (me *CosService) GetDataSourceBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)
- func (me *CosService) GetObjectTags(ctx context.Context, bucket string, key string) (map[string]string, error)
- func (me *CosService) HeadBucket(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) HeadObject(ctx context.Context, bucket, key string) (info *s3.HeadObjectOutput, errRet error)
- func (me *CosService) ListBuckets(ctx context.Context) (buckets []*s3.Bucket, errRet error)
- func (me *CosService) ListObjects(ctx context.Context, bucket string) (objects []*s3.Object, errRet error)
- func (me *CosService) PutBucket(ctx context.Context, bucket, acl string) (errRet error)
- func (me *CosService) PutBucketOriginDomain(ctx context.Context, bucket string, rules []cos.BucketDomainRule) (errRet error)
- func (me *CosService) PutBucketPolicy(ctx context.Context, bucket, policy string) (errRet error)
- func (me *CosService) PutBucketPullOrigin(ctx context.Context, bucket string, rules []cos.BucketOriginRule) (errRet error)
- func (me *CosService) PutBucketReplication(ctx context.Context, bucket string, role string, ...) (errRet error)
- func (me *CosService) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)
- func (me *CosService) SetBucketTags(ctx context.Context, bucket string, tags map[string]string) error
- func (me *CosService) SetObjectTags(ctx context.Context, bucket string, key string, tags map[string]string) error
- func (me *CosService) TencentCosPutBucket(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (errRet error)
- func (me *CosService) TencentCosPutBucketACL(ctx context.Context, bucket string, reqBody string, header string) (errRet error)
- func (me *CosService) TencentcloudHeadBucket(ctx context.Context, bucket string) (code int, header http.Header, errRet error)
- type CvmService
- func (me *CvmService) BindKeyPair(ctx context.Context, keyIds []*string, instanceId string) error
- func (me *CvmService) CreateKeyPair(ctx context.Context, keyName, publicKey string, projectId int64, ...) (keyId string, errRet error)
- func (me *CvmService) CreatePlacementGroup(ctx context.Context, placementName, placementType string) (placementId string, errRet error)
- func (me *CvmService) CreateReservedInstance(ctx context.Context, configId string, count int64, ...) (instanceId string, errRet error)
- func (me *CvmService) DeleteImage(ctx context.Context, imageId string) error
- func (me *CvmService) DeleteInstance(ctx context.Context, instanceId string) error
- func (me *CvmService) DeleteInstanceSetByIds(ctx context.Context, instanceSetIds string) error
- func (me *CvmService) DeleteKeyPair(ctx context.Context, keyId string) error
- func (me *CvmService) DeletePlacementGroup(ctx context.Context, placementId string) error
- func (me *CvmService) DescribeImageById(ctx context.Context, keyId string, isDelete bool) (image *cvm.Image, has bool, errRet error)
- func (me *CvmService) DescribeImagesByFilter(ctx context.Context, filters map[string][]string, instanceType string) (images []*cvm.Image, errRet error)
- func (me *CvmService) DescribeInstanceByFilter(ctx context.Context, instancesId []*string, filters map[string]string) (instances []*cvm.Instance, errRet error)
- func (me *CvmService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *cvm.Instance, errRet error)
- func (me *CvmService) DescribeInstanceInParallelByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.Instance, errRet error)
- func (me *CvmService) DescribeInstanceSetByIds(ctx context.Context, instanceSetIds string) (instance []*cvm.Instance, errRet error)
- func (me *CvmService) DescribeInstanceTypes(ctx context.Context, zone string) (instanceTypes []*cvm.InstanceTypeConfig, errRet error)
- func (me *CvmService) DescribeInstanceTypesByFilter(ctx context.Context, filters map[string][]string) (instanceTypes []*cvm.InstanceTypeConfig, errRet error)
- func (me *CvmService) DescribeInstancesSellTypeByFilter(ctx context.Context, filters map[string][]string) (instanceTypes []*cvm.InstanceTypeQuotaItem, errRet error)
- func (me *CvmService) DescribeKeyPairByFilter(ctx context.Context, id, name string, projectId *int) (keyPairs []*cvm.KeyPair, errRet error)
- func (me *CvmService) DescribeKeyPairById(ctx context.Context, keyId string) (keyPair *cvm.KeyPair, errRet error)
- func (me *CvmService) DescribePlacementGroupByFilter(ctx context.Context, id, name string) (placementGroups []*cvm.DisasterRecoverGroup, errRet error)
- func (me *CvmService) DescribePlacementGroupById(ctx context.Context, placementId string) (placementGroup *cvm.DisasterRecoverGroup, errRet error)
- func (me *CvmService) DescribeRegions(ctx context.Context) (zones []*cvm.RegionInfo, errRet error)
- func (me *CvmService) DescribeReservedInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.ReservedInstances, errRet error)
- func (me *CvmService) DescribeReservedInstanceConfigs(ctx context.Context, filters map[string]string) (configs []*cvm.ReservedInstancesOffering, errRet error)
- func (me *CvmService) DescribeZones(ctx context.Context) (zones []*cvm.ZoneInfo, errRet error)
- func (me *CvmService) ModifyImage(ctx context.Context, instanceId, imageName, imageDesc string) (errRet error)
- func (me *CvmService) ModifyInstanceChargeType(ctx context.Context, instanceId string, chargeType string, period int, ...) error
- func (me *CvmService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) error
- func (me *CvmService) ModifyInstanceType(ctx context.Context, instanceId, instanceType string) error
- func (me *CvmService) ModifyInternetMaxBandwidthOut(ctx context.Context, instanceId, internetChargeType string, ...) error
- func (me *CvmService) ModifyKeyPairName(ctx context.Context, keyId, keyName string) error
- func (me *CvmService) ModifyPassword(ctx context.Context, instanceId, password string) error
- func (me *CvmService) ModifyPlacementGroup(ctx context.Context, placementId, name string) error
- func (me *CvmService) ModifyProjectId(ctx context.Context, instanceId string, projectId int64) error
- func (me *CvmService) ModifyRenewParam(ctx context.Context, instanceId string, renewFlag string) error
- func (me *CvmService) ModifySecurityGroups(ctx context.Context, instanceId string, securityGroups []*string) error
- func (me *CvmService) ModifyVpc(ctx context.Context, instanceId, vpcId, subnetId, privateIp string) error
- func (me *CvmService) ResetInstance(ctx context.Context, request *cvm.ResetInstanceRequest) (errRet error)
- func (me *CvmService) ResizeInstanceDisks(ctx context.Context, request *cvm.ResizeInstanceDisksRequest) (errRet error)
- func (me *CvmService) StartInstance(ctx context.Context, instanceId string) error
- func (me *CvmService) StopInstance(ctx context.Context, instanceId string, stoppedMode string) error
- func (me *CvmService) UnbindKeyPair(ctx context.Context, keyIds []*string, instanceIds []*string) error
- type CynosdbService
- func (me *CynosdbService) DescribeClusterById(ctx context.Context, clusterId string) (renewFlag int64, clusterInfo *cynosdb.CynosdbClusterDetail, has bool, ...)
- func (me *CynosdbService) DescribeClusterInstanceGrps(ctx context.Context, clusterId string) (response *cynosdb.DescribeClusterInstanceGrpsResponse, errRet error)
- func (me *CynosdbService) DescribeClusterParams(ctx context.Context, clusterId string) (items []*cynosdb.ParamInfo, errRet error)
- func (me *CynosdbService) DescribeClusters(ctx context.Context, filters map[string]string) (clusters []*cynosdb.CynosdbCluster, errRet error)
- func (me *CynosdbService) DescribeInsGrpSecurityGroups(ctx context.Context, instanceGrpId string) (response *cynosdb.DescribeDBSecurityGroupsResponse, errRet error)
- func (me *CynosdbService) DescribeInstanceById(ctx context.Context, instanceId string) (clusterId string, instanceInfo *cynosdb.CynosdbInstanceDetail, has bool, ...)
- func (me *CynosdbService) DescribeInstances(ctx context.Context, filters map[string]string) (instances []*cynosdb.CynosdbInstance, errRet error)
- func (me *CynosdbService) DescribeMaintainPeriod(ctx context.Context, instanceId string) (response *cynosdb.DescribeMaintainPeriodResponse, errRet error)
- func (me *CynosdbService) DescribeRedisZoneConfig(ctx context.Context) (instanceSpecSet []*cynosdb.InstanceSpec, err error)
- func (me *CynosdbService) IsolateCluster(ctx context.Context, clusterId string) (flowId int64, errRet error)
- func (me *CynosdbService) IsolateInstance(ctx context.Context, clusterId, instanceId string) (errRet error)
- func (me *CynosdbService) ModifyClusterParam(ctx context.Context, request *cynosdb.ModifyClusterParamRequest) (asyncReqId string, errRet error)
- func (me *CynosdbService) ModifyInsGrpSecurityGroups(ctx context.Context, insGrp, az string, sg []*string) (errRet error)
- func (me *CynosdbService) ModifyMaintainPeriodConfig(ctx context.Context, instanceId string, startTime, duration int64, ...) (errRet error)
- func (me *CynosdbService) OfflineCluster(ctx context.Context, clusterId string) (errRet error)
- func (me *CynosdbService) OfflineInstance(ctx context.Context, clusterId, instanceId string) (errRet error)
- func (me *CynosdbService) UpgradeInstance(ctx context.Context, instanceId string, cpu, mem int64) (errRet error)
- type DayuService
- func (me *DayuService) BindDdosPolicy(ctx context.Context, resourceId string, resourceType string, policyId string) (errRet error)
- func (me *DayuService) CreateCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, ...) (policyId string, errRet error)
- func (me *DayuService) CreateDdosPolicy(ctx context.Context, resourceType string, name string, ...) (policyId string, errRet error)
- func (me *DayuService) CreateDdosPolicyCase(ctx context.Context, request *dayu.CreateDDoSPolicyCaseRequest) (sceneId string, errRet error)
- func (me *DayuService) CreateL4Rule(ctx context.Context, resourceType string, resourceId string, ...) (ruleId string, errRet error)
- func (me *DayuService) CreateL7Rule(ctx context.Context, resourceType string, resourceId string, ...) (ruleId string, errRet error)
- func (me *DayuService) CreateL7RuleV2(ctx context.Context, business string, resourceId string, resourceIp string, ...) (errRet error)
- func (me *DayuService) CreateNewL4Rules(ctx context.Context, business string, id string, vip string, ...) (errRet error)
- func (me *DayuService) DeleteCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, policyId string) (errRet error)
- func (me *DayuService) DeleteDdosPolicy(ctx context.Context, resourceType string, policyId string) (errRet error)
- func (me *DayuService) DeleteDdosPolicyCase(ctx context.Context, resourceType string, sceneId string) (errRet error)
- func (me *DayuService) DeleteL4Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (errRet error)
- func (me *DayuService) DeleteL7Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (errRet error)
- func (me *DayuService) DeleteL7RulesV2(ctx context.Context, resourceType string, resourceId string, resourceIp string, ...) (errRet error)
- func (me *DayuService) DeleteNewL4Rules(ctx context.Context, business string, id string, ip string, ruleIds []string) (errRet error)
- func (me *DayuService) DescribeCCSelfdefinePolicies(ctx context.Context, resourceType string, resourceId string, policyName string, ...) (infos []*dayu.CCPolicy, has bool, errRet error)
- func (me *DayuService) DescribeCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, policyId string) (infos *dayu.CCPolicy, has bool, errRet error)
- func (me *DayuService) DescribeDdosPolicies(ctx context.Context, resourceType string, policyId string) (ddosPolicies []*dayu.DDosPolicy, errRet error)
- func (me *DayuService) DescribeDdosPolicy(ctx context.Context, resourceType string, policyId string) (ddosPolicy dayu.DDosPolicy, has bool, errRet error)
- func (me *DayuService) DescribeDdosPolicyAttachments(ctx context.Context, resourceId string, resourceType string, policyId string) (attachments []map[string]interface{}, has bool, errRet error)
- func (me *DayuService) DescribeDdosPolicyCase(ctx context.Context, resourceType string, sceneId string) (ddosPolicyCase dayu.KeyValueRecord, has bool, errRet error)
- func (me *DayuService) DescribeL4Health(ctx context.Context, resourceType string, resourceId string, ruleId string) (healthCheck *dayu.L4HealthConfig, has bool, errRet error)
- func (me *DayuService) DescribeL4Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (infos *dayu.L4RuleEntry, health *dayu.L4RuleHealth, has bool, errRet error)
- func (me *DayuService) DescribeL4Rules(ctx context.Context, resourceType string, resourceId string, ruleName string, ...) (infos []*dayu.L4RuleEntry, healths []*dayu.L4RuleHealth, has bool, ...)
- func (me *DayuService) DescribeL7Health(ctx context.Context, resourceType string, resourceId string, ruleId string) (healthCheck *dayu.L7HealthConfig, has bool, errRet error)
- func (me *DayuService) DescribeL7Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (infos *dayu.L7RuleEntry, health *dayu.L7RuleHealth, has bool, errRet error)
- func (me *DayuService) DescribeL7Rules(ctx context.Context, resourceType string, resourceId string, ruleDomain string, ...) (infos []*dayu.L7RuleEntry, healths []*dayu.L7RuleHealth, has bool, ...)
- func (me *DayuService) DescribeL7RulesV2(ctx context.Context, business string, offset int, limit int, ...) (rules []*dayu.NewL7RuleEntry, healths []*dayu.L7RuleHealth, errRet error)
- func (me *DayuService) DescribeNewL4Rules(ctx context.Context, business string, extendParams map[string]interface{}) (infos []*dayu.NewL4RuleEntry, errRet error)
- func (me *DayuService) ModifyCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, policyId string, ...) (errRet error)
- func (me *DayuService) ModifyDdosPolicy(ctx context.Context, resourceType string, policyId string, ...) (errRet error)
- func (me *DayuService) ModifyDdosPolicyCase(ctx context.Context, request *dayu.ModifyDDoSPolicyCaseRequest) (errRet error)
- func (me *DayuService) ModifyDdosPolicyName(ctx context.Context, resourceType string, policyId string, name string) (errRet error)
- func (me *DayuService) ModifyL4Rule(ctx context.Context, resourceType string, resourceId string, ...) (errRet error)
- func (me *DayuService) ModifyL7Rule(ctx context.Context, resourceType string, resourceId string, ...) (errRet error)
- func (me *DayuService) ModifyL7RuleV2(ctx context.Context, resourceType string, resourceId string, ...) (errRet error)
- func (me *DayuService) ModifyNewL4Rule(ctx context.Context, business string, id string, singleRule interface{}) (errRet error)
- func (me *DayuService) SetL4Health(ctx context.Context, resourceType string, resourceId string, ...) (errRet error)
- func (me *DayuService) SetL7Health(ctx context.Context, resourceType string, resourceId string, ...) (errRet error)
- func (me *DayuService) SetRuleSwitch(ctx context.Context, resourceType string, resourceId string, ruleId string, ...) (errRet error)
- func (me *DayuService) SetSession(ctx context.Context, resourceType string, resourceId string, ruleId string, ...) (errRet error)
- func (me *DayuService) UnbindDdosPolicy(ctx context.Context, resourceId string, resourceType string, policyId string) (errRet error)
- type DcService
- func (me *DcService) CreateDirectConnectTunnel(ctx context.Context, ...) (dcxId string, errRet error)
- func (me *DcService) DeleteDirectConnectTunnel(ctx context.Context, dcxId string) (errRet error)
- func (me *DcService) DescribeDirectConnectTunnel(ctx context.Context, dcxId string) (info dc.DirectConnectTunnel, has int64, errRet error)
- func (me *DcService) DescribeDirectConnectTunnels(ctx context.Context, dcxId, name string) (infos []dc.DirectConnectTunnel, errRet error)
- func (me *DcService) DescribeDirectConnects(ctx context.Context, dcId, name string) (infos []dc.DirectConnect, errRet error)
- func (me *DcService) ModifyDirectConnectTunnelAttribute(ctx context.Context, dcxId string, ...) (errRet error)
- type DcdbService
- func (me *DcdbService) DeleteDcdbAccountById(ctx context.Context, instanceId, userName, host string) (errRet error)
- func (me *DcdbService) DeleteDcdbHourdbInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *DcdbService) DeleteDcdbSecurityGroupAttachmentById(ctx context.Context, instanceId, securityGroupId string) (errRet error)
- func (me *DcdbService) DescribeDcdbAccount(ctx context.Context, instanceId, userName string) (account *dcdb.DescribeAccountsResponseParams, errRet error)
- func (me *DcdbService) DescribeDcdbAccountsByFilter(ctx context.Context, param map[string]interface{}) (accounts []*dcdb.DBAccount, errRet error)
- func (me *DcdbService) DescribeDcdbDatabasesByFilter(ctx context.Context, param map[string]interface{}) (databases []*dcdb.Database, errRet error)
- func (me *DcdbService) DescribeDcdbDbInstance(ctx context.Context, instanceId string) (instances *dcdb.DescribeDCDBInstancesResponseParams, errRet error)
- func (me *DcdbService) DescribeDcdbHourdbInstance(ctx context.Context, instanceId string) (hourdbInstance *dcdb.DescribeDCDBInstancesResponseParams, errRet error)
- func (me *DcdbService) DescribeDcdbInstancesByFilter(ctx context.Context, params map[string]interface{}) (instances []*dcdb.DCDBInstanceInfo, errRet error)
- func (me *DcdbService) DescribeDcdbParametersByFilter(ctx context.Context, param map[string]interface{}) (parameters []*dcdb.ParamDesc, errRet error)
- func (me *DcdbService) DescribeDcdbSecurityGroup(ctx context.Context, instanceId string) (securityGroup *dcdb.DescribeDBSecurityGroupsResponseParams, errRet error)
- func (me *DcdbService) DescribeDcdbSecurityGroupsByFilter(ctx context.Context, param map[string]interface{}) (securityGroups []*dcdb.SecurityGroup, errRet error)
- func (me *DcdbService) DescribeDcdbShardsByFilter(ctx context.Context, param map[string]interface{}) (shards []*dcdb.DCDBShardInfo, errRet error)
- func (me *DcdbService) InitDcdbDbInstance(ctx context.Context, instanceId string, params []*dcdb.DBParamValue) (initRet bool, errRet error)
- type DcgInstanceInfo
- type DcgRouteInfo
- type DnspodService
- func (me *DnspodService) DeleteDomain(ctx context.Context, domain string) (errRet error)
- func (me *DnspodService) DescribeDomain(ctx context.Context, domain string) (ret *dnspod.DescribeDomainResponse, errRet error)
- func (me *DnspodService) ModifyDnsPodDomainRemark(ctx context.Context, domain string, remark string) (errRet error)
- func (me *DnspodService) ModifyDnsPodDomainStatus(ctx context.Context, domain string, status string) (errRet error)
- type DomainService
- type EMRService
- func (me *EMRService) CreateInstance(ctx context.Context, d *schema.ResourceData) (id string, err error)
- func (me *EMRService) DeleteInstance(ctx context.Context, d *schema.ResourceData) error
- func (me *EMRService) DescribeClusterNodes(ctx context.Context, instanceId, nodeFlag, hardwareResourceType string, ...) (nodes []*emr.NodeHardwareInfo, errRet error)
- func (me *EMRService) DescribeInstances(ctx context.Context, filters map[string]interface{}) (clusters []*emr.ClusterInstancesInfo, errRet error)
- func (me *EMRService) DescribeInstancesById(ctx context.Context, instanceId string, displayStrategy string) (clusters []*emr.ClusterInstancesInfo, errRet error)
- func (me *EMRService) UpdateInstance(ctx context.Context, request *emr.ScaleOutInstanceRequest) (id string, err error)
- type EipAssociationId
- type EksClusterCredentialResponse
- type EksClusterInfo
- type EksService
- func (me *EksService) CreateEksCluster(ctx context.Context, request *tke.CreateEKSClusterRequest) (id string, errRet error)
- func (me *EksService) CreateEksContainerInstances(ctx context.Context, request *tke.CreateEKSContainerInstancesRequest) (id string, errRet error)
- func (me *EksService) DeleteEksCluster(ctx context.Context, request *tke.DeleteEKSClusterRequest) (errRet error)
- func (me *EksService) DeleteEksContainerInstance(ctx context.Context, request *tke.DeleteEKSContainerInstancesRequest) (errRet error)
- func (me *EksService) DescribeEKSClusterCredential(ctx context.Context, request *tke.DescribeEKSClusterCredentialRequest) (info *EksClusterCredentialResponse, errRet error)
- func (me *EksService) DescribeEKSClusterCredentialById(ctx context.Context, id string) (info *EksClusterCredentialResponse, errRet error)
- func (me *EksService) DescribeEKSClusters(ctx context.Context, id string, name string) (eksClusters []EksClusterInfo, errRet error)
- func (me *EksService) DescribeEksCluster(ctx context.Context, id string) (clusterInfo EksClusterInfo, has bool, errRet error)
- func (me *EksService) DescribeEksContainerInstanceById(ctx context.Context, id string) (instance *tke.EksCi, has bool, errRet error)
- func (me *EksService) DescribeEksContainerInstancesByFilter(ctx context.Context, filters []*tke.Filter, limit uint64, offset uint64) (instances []*tke.EksCi, errRet error)
- func (me *EksService) UpdateEksCluster(ctx context.Context, request *tke.UpdateEKSClusterRequest) (errRet error)
- func (me *EksService) UpdateEksContainerInstances(ctx context.Context, request *tke.UpdateEKSContainerInstanceRequest) (errRet error)
- type ElasticsearchService
- func (me *ElasticsearchService) DeleteInstance(ctx context.Context, instanceId string) error
- func (me *ElasticsearchService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *es.InstanceInfo, errRet error)
- func (me *ElasticsearchService) DescribeInstancesByFilter(ctx context.Context, instanceId, instanceName string, tags map[string]string) (instances []*es.InstanceInfo, errRet error)
- func (me *ElasticsearchService) UpdateInstance(ctx context.Context, instanceId, instanceName, password string, ...) error
- func (me *ElasticsearchService) UpdateInstanceLicense(ctx context.Context, instanceId, licenseType string) error
- func (me *ElasticsearchService) UpdateInstanceVersion(ctx context.Context, instanceId, version string) error
- type GaapService
- func (me *GaapService) BindHttpRuleRealservers(ctx context.Context, listenerId, ruleId string, ...) error
- func (me *GaapService) BindLayer4ListenerRealservers(ctx context.Context, id, protocol, proxyId string, ...) error
- func (me *GaapService) CreateDomainErrorPageInfo(ctx context.Context, listenerId, domain, body string, newErrorCode *int64, ...) (id string, errRet error)
- func (me *GaapService) CreateHTTPDomain(ctx context.Context, listenerId, domain string) error
- func (me *GaapService) CreateHTTPListener(ctx context.Context, name, proxyId string, port int) (id string, err error)
- func (me *GaapService) CreateHTTPSDomain(ctx context.Context, listenerId, domain, certificateId string, ...) error
- func (me *GaapService) CreateHTTPSListener(ctx context.Context, name, certificateId, forwardProtocol, proxyId string, ...) (id string, err error)
- func (me *GaapService) CreateHttpRule(ctx context.Context, httpRule gaapHttpRule) (id string, err error)
- func (me *GaapService) CreateProxy(ctx context.Context, name, accessRegion, realserverRegion string, ...) (id string, err error)
- func (me *GaapService) CreateRealserver(ctx context.Context, address, name string, projectId int) (id string, err error)
- func (me *GaapService) CreateSecurityPolicy(ctx context.Context, proxyId, action string) (id string, err error)
- func (me *GaapService) CreateSecurityRule(ctx context.Context, policyId, name, cidrIp, port, action, protocol string) (id string, err error)
- func (me *GaapService) CreateTCPListener(ctx context.Context, name, scheduler, realserverType, proxyId string, ...) (id string, err error)
- func (me *GaapService) CreateUDPListener(ctx context.Context, name, scheduler, realserverType, proxyId string, port int) (id string, err error)
- func (me *GaapService) DeleteCertificate(ctx context.Context, id string) error
- func (me *GaapService) DeleteDomain(ctx context.Context, listenerId, domain string) error
- func (me *GaapService) DeleteDomainErrorPageInfo(ctx context.Context, id string) error
- func (me *GaapService) DeleteHttpRule(ctx context.Context, listenerId, ruleId string) error
- func (me *GaapService) DeleteLayer4Listener(ctx context.Context, id, proxyId, protocol string) error
- func (me *GaapService) DeleteLayer7Listener(ctx context.Context, id, proxyId, protocol string) error
- func (me *GaapService) DeleteProxy(ctx context.Context, id string) error
- func (me *GaapService) DeleteRealserver(ctx context.Context, id string) error
- func (me *GaapService) DeleteSecurityPolicy(ctx context.Context, id string) error
- func (me *GaapService) DeleteSecurityRule(ctx context.Context, policyId, ruleId string) error
- func (me *GaapService) DescribeCertificateById(ctx context.Context, id string) (certificate *gaap.CertificateDetail, err error)
- func (me *GaapService) DescribeCertificates(ctx context.Context, id, name *string, certificateType *int) (certificates []*gaap.Certificate, err error)
- func (me *GaapService) DescribeDomain(ctx context.Context, listenerId, domain string) (domainRet *gaap.DomainRuleSet, err error)
- func (me *GaapService) DescribeDomainErrorPageInfo(ctx context.Context, listenerId, domain, id string) (info *gaap.DomainErrorPageInfo, err error)
- func (me *GaapService) DescribeDomainErrorPageInfoList(ctx context.Context, listenerId, domain string) (list []*gaap.DomainErrorPageInfo, err error)
- func (me *GaapService) DescribeDomains(ctx context.Context, listenerId, domain string) (domains []*gaap.DomainRuleSet, err error)
- func (me *GaapService) DescribeHTTPListeners(ctx context.Context, proxyId, id, name *string, port *int) (listeners []*gaap.HTTPListener, err error)
- func (me *GaapService) DescribeHTTPSListeners(ctx context.Context, proxyId, listenerId, name *string, port *int) (listeners []*gaap.HTTPSListener, err error)
- func (me *GaapService) DescribeHttpRule(ctx context.Context, id string) (rule *gaap.RuleInfo, err error)
- func (me *GaapService) DescribeProxies(ctx context.Context, ids []string, projectId *int, ...) (proxies []*gaap.ProxyInfo, err error)
- func (me *GaapService) DescribeRealservers(ctx context.Context, address, name *string, tags map[string]string, ...) (realservers []*gaap.BindRealServerInfo, err error)
- func (me *GaapService) DescribeSecurityPolicy(ctx context.Context, id string) (proxyId, status, action string, exist bool, err error)
- func (me *GaapService) DescribeSecurityRule(ctx context.Context, id string) (securityRule *gaap.SecurityPolicyRuleOut, err error)
- func (me *GaapService) DescribeSecurityRules(ctx context.Context, policyId string) (securityRules []*gaap.SecurityPolicyRuleOut, err error)
- func (me *GaapService) DescribeTCPListeners(ctx context.Context, proxyId, listenerId, name *string, port *int) (listeners []*gaap.TCPListener, err error)
- func (me *GaapService) DescribeUDPListeners(ctx context.Context, proxyId, id, name *string, port *int) (listeners []*gaap.UDPListener, err error)
- func (me *GaapService) DisableProxy(ctx context.Context, id string) error
- func (me *GaapService) DisableSecurityPolicy(ctx context.Context, proxyId, policyId string) error
- func (me *GaapService) EnableProxy(ctx context.Context, id string) error
- func (me *GaapService) EnableSecurityPolicy(ctx context.Context, proxyId, policyId string) error
- func (me *GaapService) ModifyCertificateName(ctx context.Context, id, name string) error
- func (me *GaapService) ModifyDomainCertificate(ctx context.Context, listenerId, domain, certificateId string, ...) error
- func (me *GaapService) ModifyHTTPListener(ctx context.Context, id, proxyId, name string) error
- func (me *GaapService) ModifyHTTPRuleAttribute(ctx context.Context, ...) error
- func (me *GaapService) ModifyHTTPRuleForwardHost(ctx context.Context, listenerId, ruleId, forwardHost string) error
- func (me *GaapService) ModifyHTTPSListener(ctx context.Context, proxyId, id string, ...) error
- func (me *GaapService) ModifyProxyConfiguration(ctx context.Context, id string, bandwidth, concurrent *int) error
- func (me *GaapService) ModifyProxyName(ctx context.Context, id, name string) error
- func (me *GaapService) ModifyProxyProjectId(ctx context.Context, id string, projectId int) error
- func (me *GaapService) ModifyRealserverName(ctx context.Context, id, name string) error
- func (me *GaapService) ModifySecurityRuleName(ctx context.Context, policyId, ruleId, name string) error
- func (me *GaapService) ModifyTCPListenerAttribute(ctx context.Context, proxyId, id string, name, scheduler *string, ...) error
- func (me *GaapService) ModifyUDPListenerAttribute(ctx context.Context, proxyId, id string, name, scheduler *string) error
- func (me *GaapService) SetAdvancedAuth(ctx context.Context, listenerId, domain string, ...) error
- type GoRoutineLimit
- type InstanceAdvancedSettings
- type InstanceInfo
- type KmsService
- func (me *KmsService) ArchiveKey(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) CancelKeyArchive(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) CancelKeyDeletion(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) CreateKey(ctx context.Context, keyType uint64, alias, description, keyUsage string) (keyId string, errRet error)
- func (me *KmsService) DeleteImportKeyMaterial(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) DeleteKey(ctx context.Context, keyId string, pendingDeleteWindowInDays uint64) (errRet error)
- func (me *KmsService) DescribeKeyById(ctx context.Context, keyId string) (key *kms.KeyMetadata, errRet error)
- func (me *KmsService) DescribeKeysByFilter(ctx context.Context, param map[string]interface{}) (keys []*kms.KeyMetadata, errRet error)
- func (me *KmsService) DisableKey(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) DisableKeyRotation(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) EnableKey(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) EnableKeyRotation(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) ImportKeyMaterial(ctx context.Context, param map[string]interface{}) (errRet error)
- func (me *KmsService) UpdateKeyAlias(ctx context.Context, keyId, alias string) (errRet error)
- func (me *KmsService) UpdateKeyDescription(ctx context.Context, keyId, description string) (errRet error)
- type LightHouseService
- func (me *LightHouseService) DeleteLighthouseInstanceById(ctx context.Context, id string) (errRet error)
- func (me *LightHouseService) DescribeLighthouseInstanceById(ctx context.Context, instanceId string) (instance *lighthouse.Instance, errRet error)
- func (me *LightHouseService) IsolateLighthouseInstanceById(ctx context.Context, id string) (errRet error)
- type MariadbService
- func (me *MariadbService) DeleteMariadbAccountById(ctx context.Context, instanceId, userName, host string) (errRet error)
- func (me *MariadbService) DeleteMariadbDbInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *MariadbService) DeleteMariadbDbInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *MariadbService) DeleteMariadbHourDbInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *MariadbService) DeleteMariadbSecurityGroupsById(ctx context.Context, instanceId, securityGroupId, product string) (errRet error)
- func (me *MariadbService) DescribeMariadbAccount(ctx context.Context, instanceId, userName, host string) (account *mariadb.DBAccount, errRet error)
- func (me *MariadbService) DescribeMariadbAccountsByFilter(ctx context.Context, param map[string]interface{}) (accounts []*mariadb.DBAccount, errRet error)
- func (me *MariadbService) DescribeMariadbDbInstance(ctx context.Context, instanceId string) (dbInstance *mariadb.DBInstance, errRet error)
- func (me *MariadbService) DescribeMariadbDbInstancesByFilter(ctx context.Context, param map[string]interface{}) (dbInstances []*mariadb.DBInstance, errRet error)
- func (me *MariadbService) DescribeMariadbLogFileRetentionPeriod(ctx context.Context, instanceId string) (logFileRetentionPeriod *mariadb.DescribeLogFileRetentionPeriodResponseParams, ...)
- func (me *MariadbService) DescribeMariadbParameters(ctx context.Context, instanceId string) (parameters *mariadb.DescribeDBParametersResponseParams, errRet error)
- func (me *MariadbService) DescribeMariadbSecurityGroup(ctx context.Context, instanceId, securityGroupId, product string) (securityGroup *mariadb.SecurityGroup, errRet error)
- func (me *MariadbService) DescribeMariadbSecurityGroupsByFilter(ctx context.Context, param map[string]interface{}) (securityGroups []*mariadb.SecurityGroup, errRet error)
- func (me *MariadbService) InitDbInstance(ctx context.Context, instanceId string, params []*mariadb.DBParamValue) (initRet bool, errRet error)
- type MongodbService
- func (me *MongodbService) DescribeAsyncRequestInfo(ctx context.Context, asyncId string) (errRet error)
- func (me *MongodbService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *mongodb.InstanceDetail, has bool, errRet error)
- func (me *MongodbService) DescribeInstancesByFilter(ctx context.Context, instanceId string, clusterType int) (mongodbs []*mongodb.InstanceDetail, errRet error)
- func (me *MongodbService) DescribeSpecInfo(ctx context.Context, zone string) (infos []*mongodb.SpecificationInfo, errRet error)
- func (me *MongodbService) IsolateInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *MongodbService) ModifyAutoRenewFlag(ctx context.Context, instanceId string, period int, renewFlag int) (errRet error)
- func (me *MongodbService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) (errRet error)
- func (me *MongodbService) ModifyProjectId(ctx context.Context, instanceId string, projectId int) (errRet error)
- func (me *MongodbService) OfflineIsolatedDBInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *MongodbService) ResetInstancePassword(ctx context.Context, instanceId, accountName, password string) (errRet error)
- func (me *MongodbService) UpgradeInstance(ctx context.Context, instanceId string, memory int, volume int) (errRet error)
- type MonitorService
- func (me *MonitorService) CheckCanCreateMysqlROInstance(ctx context.Context, mysqlId string) (can bool, errRet error)
- func (me *MonitorService) DeleteMonitorAlarmNoticeById(ctx context.Context, Id string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaIntegrationById(ctx context.Context, integrationId, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaNotificationChannelById(ctx context.Context, channelId, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaPluginById(ctx context.Context, instanceId, pluginId string) (errRet error)
- func (me *MonitorService) DeleteMonitorRecordingRule(ctx context.Context, instanceId string, recordingRuleId string) (errRet error)
- func (me *MonitorService) DeleteMonitorSsoAccountById(ctx context.Context, instanceId, userId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpAlertRule(ctx context.Context, instanceId string, ruleId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpExporterIntegrationById(ctx context.Context, tmpExporterIntegrationId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpScrapeJobById(ctx context.Context, tmpScrapeJobId string) (errRet error)
- func (me *MonitorService) DescribeAlarmNoticeById(ctx context.Context, alarmmap map[string]interface{}) (noticeIds []*monitor.AlarmNotice, errRet error)
- func (me *MonitorService) DescribeAlarmPolicyById(ctx context.Context, policyId string) (info *monitor.AlarmPolicy, errRet error)
- func (me *MonitorService) DescribeBindingAlarmPolicyObjectList(ctx context.Context, policyId string) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
- func (me *MonitorService) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaInstance(ctx context.Context, instanceId string) (grafanaInstance *monitor.GrafanaInstanceInfo, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaIntegration(ctx context.Context, integrationId, instanceId string) (grafanaIntegration *monitor.GrafanaIntegrationConfig, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaNotificationChannel(ctx context.Context, channelId, instanceId string) (grafanaNotificationChannel *monitor.GrafanaChannel, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaPlugin(ctx context.Context, instanceId, pluginId string) (grafanaPlugin *monitor.GrafanaPlugin, errRet error)
- func (me *MonitorService) DescribeMonitorRecordingRuleById(ctx context.Context, instanceId string, recordingRuleId string) (instance *monitor.RecordingRuleSet, errRet error)
- func (me *MonitorService) DescribeMonitorSsoAccount(ctx context.Context, instanceId, userId string) (ssoAccount *monitor.GrafanaAccountInfo, errRet error)
- func (me *MonitorService) DescribeMonitorTmpAlertRuleById(ctx context.Context, instanceId string, tmpAlertRuleId string) (instance *monitor.PrometheusRuleSet, errRet error)
- func (me *MonitorService) DescribeMonitorTmpCvmAgent(ctx context.Context, instanceId string, tmpCvmAgentId string) (tmpCvmAgent *monitor.PrometheusAgent, errRet error)
- func (me *MonitorService) DescribeMonitorTmpExporterIntegration(ctx context.Context, tmpExporterIntegrationId string) (tmpExporterIntegration *monitor.IntegrationConfiguration, errRet error)
- func (me *MonitorService) DescribeMonitorTmpInstance(ctx context.Context, tmpInstanceId string) (tmpInstance *monitor.PrometheusInstancesItem, errRet error)
- func (me *MonitorService) DescribeMonitorTmpScrapeJob(ctx context.Context, tmpScrapeJobId string) (tmpScrapeJob *monitor.PrometheusScrapeJob, errRet error)
- func (me *MonitorService) DescribePolicyGroup(ctx context.Context, groupId int64) (info *monitor.DescribePolicyGroupListGroup, errRet error)
- func (me *MonitorService) DescribePolicyGroupDetailInfo(ctx context.Context, groupId int64) (response *monitor.DescribePolicyGroupInfoResponse, errRet error)
- func (me *MonitorService) FullRegions() (regions []string, errRet error)
- func (me *MonitorService) IsolateMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
- type MysqlService
- func (me *MysqlService) CheckDBGTIDOpen(ctx context.Context, mysqlId string) (open int64, errRet error)
- func (me *MysqlService) CloseWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) CreateAccount(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) CreateBackup(ctx context.Context, mysqlId string) (backupId int64, errRet error)
- func (me *MysqlService) DeleteAccount(ctx context.Context, mysqlId string, accountName string, accountHost string) (asyncRequestId string, errRet error)
- func (me *MysqlService) DescribeAccountPrivileges(ctx context.Context, mysqlId string, accountName string, accountHost string, ...) (privileges []string, errRet error)
- func (me *MysqlService) DescribeAccounts(ctx context.Context, mysqlId string) (accountInfos []*cdb.AccountInfo, errRet error)
- func (me *MysqlService) DescribeAsyncRequestInfo(ctx context.Context, asyncRequestId string) (status, message string, errRet error)
- func (me *MysqlService) DescribeBackupConfigByMysqlId(ctx context.Context, mysqlId string) (desResponse *cdb.DescribeBackupConfigResponse, errRet error)
- func (me *MysqlService) DescribeBackupsByMysqlId(ctx context.Context, mysqlId string, leftNumber int64) (backupInfos []*cdb.BackupInfo, errRet error)
- func (me *MysqlService) DescribeCaresParameters(ctx context.Context, instanceId string, cares []string) (caresKv map[string]interface{}, errRet error)
- func (me *MysqlService) DescribeDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
- func (me *MysqlService) DescribeDBInstanceConfig(ctx context.Context, mysqlId string) (backupConfig *cdb.DescribeDBInstanceConfigResponse, errRet error)
- func (me *MysqlService) DescribeDBSecurityGroups(ctx context.Context, mysqlId string) (securityGroups []string, errRet error)
- func (me *MysqlService) DescribeDBZoneConfig(ctx context.Context) (sellConfigures []*cdb.RegionSellConf, errRet error)
- func (me *MysqlService) DescribeDefaultParameters(ctx context.Context, engineVersion string) (parameterList []*cdb.ParameterDetail, errRet error)
- func (me *MysqlService) DescribeInstanceParameters(ctx context.Context, instanceId string) (parameterList []*cdb.ParameterDetail, errRet error)
- func (me *MysqlService) DescribeIsolatedDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
- func (me *MysqlService) DescribeRunningDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
- func (me *MysqlService) DescribeTagsOfInstanceId(ctx context.Context, mysqlId string) (tags map[string]string, errRet error)
- func (me *MysqlService) DisassociateSecurityGroup(ctx context.Context, mysqlId string, securityGroup string) (errRet error)
- func (me *MysqlService) InitDBInstances(ctx context.Context, mysqlId, password, charset, lowerCase string, port int) (asyncRequestId string, errRet error)
- func (me *MysqlService) IsolateDBInstance(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountDescription(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountPassword(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountPrivileges(ctx context.Context, mysqlId string, accountName, accountHost string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAutoRenewFlag(ctx context.Context, mysqlId string, newRenewFlag int64) (errRet error)
- func (me *MysqlService) ModifyBackupConfigByMysqlId(ctx context.Context, mysqlId string, retentionPeriod int64, ...) (errRet error)
- func (me *MysqlService) ModifyDBInstanceName(ctx context.Context, mysqlId, newInstanceName string) (errRet error)
- func (me *MysqlService) ModifyDBInstanceProject(ctx context.Context, mysqlId string, newProjectId int64) (errRet error)
- func (me *MysqlService) ModifyDBInstanceSecurityGroups(ctx context.Context, mysqlId string, securityGroups []string) (errRet error)
- func (me *MysqlService) ModifyDBInstanceVipVport(ctx context.Context, mysqlId, vpcId, subnetId string, port int64) (errRet error)
- func (me *MysqlService) ModifyInstanceParam(ctx context.Context, instanceId string, params map[string]string) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyInstanceTag(ctx context.Context, mysqlId string, deleteTags, modifyTags map[string]string) (errRet error)
- func (me *MysqlService) NotFoundMysqlInstance(err error) bool
- func (me *MysqlService) OfflineIsolatedInstances(ctx context.Context, mysqlId string) (errRet error)
- func (me *MysqlService) OpenDBInstanceGTID(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) OpenWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) UpgradeDBInstance(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- type OverrideSettings
- type PostgresqlService
- func (me *PostgresqlService) CheckDBInstanceStatus(ctx context.Context, instanceId string, retryMinutes ...int) error
- func (me *PostgresqlService) CreatePostgresqlInstance(ctx context.Context, ...) (instanceId string, errRet error)
- func (me *PostgresqlService) DeletePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *PostgresqlService) DeletePostgresqlReadOnlyGroupById(ctx context.Context, groupId string) (errRet error)
- func (me *PostgresqlService) DescribeBackupPlans(ctx context.Context, request *postgresql.DescribeBackupPlansRequest) (result []*postgresql.BackupPlan, errRet error)
- func (me *PostgresqlService) DescribeDBEncryptionKeys(ctx context.Context, request *postgresql.DescribeEncryptionKeysRequest) (has bool, key *postgresql.EncryptionKey, errRet error)
- func (me *PostgresqlService) DescribeDBInstanceAttribute(ctx context.Context, request *postgresql.DescribeDBInstanceAttributeRequest) (ins *postgresql.DBInstance, errRet error)
- func (me *PostgresqlService) DescribeDBXlogs(ctx context.Context, request *postgresql.DescribeDBXlogsRequest) (xlogs []*postgresql.Xlog, errRet error)
- func (me *PostgresqlService) DescribePgParams(ctx context.Context, instanceId string) (params map[string]string, err error)
- func (me *PostgresqlService) DescribePostgresqlInstanceById(ctx context.Context, instanceId string) (instance *postgresql.DBInstance, has bool, errRet error)
- func (me *PostgresqlService) DescribePostgresqlInstances(ctx context.Context, filter []*postgresql.Filter) (instanceList []*postgresql.DBInstance, errRet error)
- func (me *PostgresqlService) DescribePostgresqlReadOnlyGroupById(ctx context.Context, groupId string) (instanceList []*postgresql.ReadOnlyGroup, errRet error)
- func (me *PostgresqlService) DescribePostgresqlReadOnlyGroups(ctx context.Context, filter []*postgresql.Filter) (instanceList []*postgresql.ReadOnlyGroup, errRet error)
- func (me *PostgresqlService) DescribeRootUser(ctx context.Context, instanceId string) (accounts []*postgresql.AccountInfo, errRet error)
- func (me *PostgresqlService) DescribeSpecinfos(ctx context.Context, zone string) (specCodeList []*postgresql.SpecItemInfo, errRet error)
- func (me *PostgresqlService) InitPostgresqlInstance(ctx context.Context, instanceId string, username string, password string, ...) (errRet error)
- func (me *PostgresqlService) IsolatePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *PostgresqlService) ModifyBackupPlan(ctx context.Context, request *postgresql.ModifyBackupPlanRequest) (errRet error)
- func (me *PostgresqlService) ModifyDBInstanceDeployment(ctx context.Context, request *postgresql.ModifyDBInstanceDeploymentRequest) (errRet error)
- func (me *PostgresqlService) ModifyPgParams(ctx context.Context, instanceId string, paramEntrys map[string]string) (err error)
- func (me *PostgresqlService) ModifyPostgresqlInstanceName(ctx context.Context, instanceId string, name string) (errRet error)
- func (me *PostgresqlService) ModifyPostgresqlInstanceProjectId(ctx context.Context, instanceId string, projectId int) (errRet error)
- func (me *PostgresqlService) ModifyPublicService(ctx context.Context, openInternet bool, instanceId string) (errRet error)
- func (me *PostgresqlService) SetPostgresqlInstanceAutoRenewFlag(ctx context.Context, instanceId string, autoRenewFlag int) (errRet error)
- func (me *PostgresqlService) SetPostgresqlInstanceRootPassword(ctx context.Context, instanceId string, password string) (errRet error)
- func (me *PostgresqlService) UpgradePostgresqlInstance(ctx context.Context, instanceId string, memory int, storage int) (errRet error)
- type PrivateDnsService
- type PrometheusConfigIds
- type PtsService
- func (me *PtsService) DeletePtsAlertChannelById(ctx context.Context, noticeId, projectId string) (errRet error)
- func (me *PtsService) DeletePtsCronJobById(ctx context.Context, cronJobId, projectId string) (errRet error)
- func (me *PtsService) DeletePtsFileById(ctx context.Context, projectId, fileIds string) (errRet error)
- func (me *PtsService) DeletePtsJobById(ctx context.Context, projectId, scenarioId, jobId string) (errRet error)
- func (me *PtsService) DeletePtsProjectById(ctx context.Context, projectId string) (errRet error)
- func (me *PtsService) DeletePtsScenarioById(ctx context.Context, projectId, scenarioId string) (errRet error)
- func (me *PtsService) DescribePtsAlertChannel(ctx context.Context, noticeId, projectId string) (alertChannel *pts.AlertChannelRecord, errRet error)
- func (me *PtsService) DescribePtsCronJob(ctx context.Context, cronJobId, projectId string) (cronJob *pts.CronJob, errRet error)
- func (me *PtsService) DescribePtsFile(ctx context.Context, projectId, fileIds string) (file *pts.File, errRet error)
- func (me *PtsService) DescribePtsJob(ctx context.Context, projectId, scenarioId, jobId string) (job *pts.Job, errRet error)
- func (me *PtsService) DescribePtsProject(ctx context.Context, projectId string) (project *pts.Project, errRet error)
- func (me *PtsService) DescribePtsScenario(ctx context.Context, projectId, scenarioId string) (scenario *pts.Scenario, errRet error)
- type RedisService
- func (me *RedisService) ApplyParamsTemplate(ctx context.Context, request *redis.ApplyParamsTemplateRequest) (taskIds []*int64, errRet error)
- func (me *RedisService) CheckRedisDestroyOk(ctx context.Context, redisId string) (has bool, isolated bool, errRet error)
- func (me *RedisService) CheckRedisOnlineOk(ctx context.Context, redisId string, retryTimeout time.Duration) (has bool, online bool, info *redis.InstanceSet, errRet error)
- func (me *RedisService) CheckRedisUpdateOk(ctx context.Context, redisId string) (errRet error)
- func (me *RedisService) CleanUpInstance(ctx context.Context, redisId string) (taskId int64, errRet error)
- func (me *RedisService) CreateInstances(ctx context.Context, zoneName string, typeId int64, ...) (instanceIds []*string, errRet error)
- func (me *RedisService) CreateParamTemplate(ctx context.Context, request *redis.CreateParamTemplateRequest) (id string, errRet error)
- func (me *RedisService) DeleteParamTemplate(ctx context.Context, request *redis.DeleteParamTemplateRequest) (errRet error)
- func (me *RedisService) DescribeAutoBackupConfig(ctx context.Context, redisId string) (weekDays []string, timePeriod string, errRet error)
- func (me *RedisService) DescribeDBSecurityGroups(ctx context.Context, product string, instanceId string) (sg []string, errRet error)
- func (me *RedisService) DescribeInstanceDealDetail(ctx context.Context, dealId string) (done bool, redisId string, errRet error)
- func (me *RedisService) DescribeInstanceSecurityGroup(ctx context.Context, redisId string) (sg []string, errRet error)
- func (me *RedisService) DescribeInstances(ctx context.Context, zoneName, searchKey string, projectId, needLimit int64) (instances []TencentCloudRedisDetail, errRet error)
- func (me *RedisService) DescribeParamTemplateById(ctx context.Context, id string) (params *redis.ParamTemplateInfo, errRet error)
- func (me *RedisService) DescribeParamTemplates(ctx context.Context, request *redis.DescribeParamTemplatesRequest) (params []*redis.ParamTemplateInfo, errRet error)
- func (me *RedisService) DescribeRedisZoneConfig(ctx context.Context) (sellConfigures []*redis.RegionConf, errRet error)
- func (me *RedisService) DescribeTaskInfo(ctx context.Context, redisId string, taskId int64) (ok bool, errRet error)
- func (me *RedisService) DestroyPostpaidInstance(ctx context.Context, redisId string) (taskId int64, errRet error)
- func (me *RedisService) DestroyPrepaidInstance(ctx context.Context, redisId string) (dealId string, errRet error)
- func (me *RedisService) ModifyAutoBackupConfig(ctx context.Context, redisId string, weekDays []string, timePeriod string) (errRet error)
- func (me *RedisService) ModifyDBInstanceSecurityGroups(ctx context.Context, product string, instanceId string, ...) (errRet error)
- func (me *RedisService) ModifyInstanceName(ctx context.Context, redisId string, name string) (errRet error)
- func (me *RedisService) ModifyInstanceProjectId(ctx context.Context, redisId string, projectId int64) (errRet error)
- func (me *RedisService) ResetPassword(ctx context.Context, redisId string, newPassword string) (taskId int64, errRet error)
- func (me *RedisService) UpgradeInstance(ctx context.Context, redisId string, ...) (dealId string, errRet error)
- type RunInstancesForNode
- type SSLService
- func (me *SSLService) ApplyCertificate(ctx context.Context, request *ssl.ApplyCertificateRequest) (id string, errRet error)
- func (me *SSLService) CancelCertificateOrder(ctx context.Context, request *ssl.CancelCertificateOrderRequest) (err error)
- func (me *SSLService) CommitCertificateInformation(ctx context.Context, request *ssl.CommitCertificateInformationRequest) (errRet error)
- func (me *SSLService) CreateCertificate(ctx context.Context, request *ssl.CreateCertificateRequest) (certificateId, dealId string, errRet error)
- func (me *SSLService) DeleteCertificate(ctx context.Context, request *ssl.DeleteCertificateRequest) (deleteResult bool, err error)
- func (me *SSLService) DescribeCertificateDetail(ctx context.Context, request *ssl.DescribeCertificateDetailRequest) (response *ssl.DescribeCertificateDetailResponse, err error)
- func (me *SSLService) DescribeCertificates(ctx context.Context, request *ssl.DescribeCertificatesRequest) (certificateList []*ssl.Certificates, err error)
- func (me *SSLService) ModifyCertificateAlias(ctx context.Context, request *ssl.ModifyCertificateAliasRequest) (err error)
- func (me *SSLService) ModifyCertificateProject(ctx context.Context, request *ssl.ModifyCertificateProjectRequest) (err error)
- func (me *SSLService) SubmitCertificateInformation(ctx context.Context, request *ssl.SubmitCertificateInformationRequest) (err error)
- func (me *SSLService) UploadCertificate(ctx context.Context, request *ssl.UploadCertificateRequest) (id string, err error)
- type ScfService
- func (me *ScfService) CreateFunction(ctx context.Context, info scfFunctionInfo) error
- func (me *ScfService) CreateNamespace(ctx context.Context, namespace, desc string) error
- func (me *ScfService) CreateTriggers(ctx context.Context, functionName, namespace string, triggers []scfTrigger) error
- func (me *ScfService) DeleteFunction(ctx context.Context, name, namespace string) error
- func (me *ScfService) DeleteNamespace(ctx context.Context, namespace string) error
- func (me *ScfService) DeleteTriggers(ctx context.Context, functionName, namespace string, triggers []scfTrigger) error
- func (me *ScfService) DescribeFunction(ctx context.Context, name, namespace string) (resp *scf.GetFunctionResponse, err error)
- func (me *ScfService) DescribeFunctions(ctx context.Context, name, namespace, desc *string, tags map[string]string) (functions []*scf.Function, err error)
- func (me *ScfService) DescribeLogs(ctx context.Context, fnName, namespace, order, orderBy string, ...) (logs []*scf.FunctionLog, err error)
- func (me *ScfService) DescribeNamespace(ctx context.Context, namespace string) (ns *scf.Namespace, err error)
- func (me *ScfService) DescribeNamespaces(ctx context.Context) (nss []*scf.Namespace, err error)
- func (me *ScfService) ModifyFunctionCode(ctx context.Context, info scfFunctionInfo) error
- func (me *ScfService) ModifyFunctionConfig(ctx context.Context, info scfFunctionInfo) error
- func (me *ScfService) ModifyNamespace(ctx context.Context, namespace, desc string) error
- type SecretInfo
- type SecretVersionInfo
- type SesService
- func (me *SesService) DeleteSesDomainById(ctx context.Context, emailIdentity string) (errRet error)
- func (me *SesService) DeleteSesEmail_addressById(ctx context.Context, emailAddress string) (errRet error)
- func (me *SesService) DeleteSesTemplateById(ctx context.Context, templateID uint64) (errRet error)
- func (me *SesService) DescribeSesDomain(ctx context.Context, emailIdentity string) (domain *ses.DNSAttributes, errRet error)
- func (me *SesService) DescribeSesEmailAddress(ctx context.Context, emailAddress string) (emailSender *ses.EmailSender, errRet error)
- func (me *SesService) DescribeSesTemplate(ctx context.Context, templateId uint64) (templateResponse *ses.GetEmailTemplateResponseParams, errRet error)
- func (me *SesService) DescribeSesTemplateMetadata(ctx context.Context, templateId uint64) (templatesMetadata *ses.TemplatesMetadata, errRet error)
- type SmsService
- func (me *SmsService) DeleteSmsSignById(ctx context.Context, signId string) (errRet error)
- func (me *SmsService) DeleteSmsTemplateById(ctx context.Context, templateId string) (errRet error)
- func (me *SmsService) DescribeSmsSign(ctx context.Context, signId string, international string) (sign *sms.DescribeSignListStatus, errRet error)
- func (me *SmsService) DescribeSmsTemplate(ctx context.Context, templateId string, international string) (template *sms.DescribeTemplateListStatus, errRet error)
- type SqlserverService
- func (me *SqlserverService) AddSecurityGroup(ctx context.Context, instanceId string, securityGroupId string) (errRet error)
- func (me *SqlserverService) CreateSqlserverAccount(ctx context.Context, instanceId string, userName string, password string, ...) (errRet error)
- func (me *SqlserverService) CreateSqlserverBasicInstance(ctx context.Context, paramMap map[string]interface{}, weekSet []int, ...) (instanceId string, errRet error)
- func (me *SqlserverService) CreateSqlserverDB(ctx context.Context, instanceID string, dbname string, charset string, ...) (errRet error)
- func (me *SqlserverService) CreateSqlserverInstance(ctx context.Context, request *sqlserver.CreateDBInstancesRequest) (instanceId string, errRet error)
- func (me *SqlserverService) CreateSqlserverPublishSubscribe(ctx context.Context, ...) (errRet error)
- func (me *SqlserverService) CreateSqlserverReadonlyInstance(ctx context.Context, request *sqlserver.CreateReadOnlyDBInstancesRequest) (instanceId string, errRet error)
- func (me *SqlserverService) DeletePublishSubscribe(ctx context.Context, publishSubscribe *sqlserver.PublishSubscribe, ...) (errRet error)
- func (me *SqlserverService) DeleteSqlserverAccount(ctx context.Context, instanceId string, userName string) (errRet error)
- func (me *SqlserverService) DeleteSqlserverDB(ctx context.Context, instanceId string, names []*string) (errRet error)
- func (me *SqlserverService) DeleteSqlserverInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *SqlserverService) DescribeAccountDBAttachmentById(ctx context.Context, instanceId, accountName, dbName string) (attachment map[string]string, has bool, errRet error)
- func (me *SqlserverService) DescribeAccountDBAttachments(ctx context.Context, instanceId, accountName, dbName string) (attachments []map[string]string, errRet error)
- func (me *SqlserverService) DescribeDBDetailsById(ctx context.Context, dbId string) (dbInfo *sqlserver.DBDetail, has bool, errRet error)
- func (me *SqlserverService) DescribeDBsOfInstance(ctx context.Context, instanceId string) (instanceDBList []*sqlserver.DBDetail, errRet error)
- func (me *SqlserverService) DescribeInstanceSecurityGroups(ctx context.Context, instanceId string) (securityGroups []string, errRet error)
- func (me *SqlserverService) DescribeMaintenanceSpan(ctx context.Context, instanceId string) (weekSet []int, startTime string, timeSpan int, errRet error)
- func (me *SqlserverService) DescribeProductConfig(ctx context.Context, zone string) (specInfoList []*sqlserver.SpecInfo, errRet error)
- func (me *SqlserverService) DescribeReadonlyGroupList(ctx context.Context, instanceId string) (groupList []*sqlserver.ReadOnlyGroup, errRet error)
- func (me *SqlserverService) DescribeReadonlyGroupListByReadonlyInstanceId(ctx context.Context, instanceId string) (readonlyGroupId string, masterInstanceId string, errRet error)
- func (me *SqlserverService) DescribeSqlserverAccountById(ctx context.Context, instanceId string, userName string) (account *sqlserver.AccountDetail, has bool, errRet error)
- func (me *SqlserverService) DescribeSqlserverAccounts(ctx context.Context, instanceId string) (accounts []*sqlserver.AccountDetail, errRet error)
- func (me *SqlserverService) DescribeSqlserverBackups(ctx context.Context, instanceId string, startTime string, endTime string) (backupList []*sqlserver.Backup, errRet error)
- func (me *SqlserverService) DescribeSqlserverInstanceById(ctx context.Context, instanceId string) (instance *sqlserver.DBInstance, has bool, errRet error)
- func (me *SqlserverService) DescribeSqlserverInstances(ctx context.Context, instanceId, instanceName string, projectId int, ...) (instanceList []*sqlserver.DBInstance, errRet error)
- func (me *SqlserverService) DescribeSqlserverPublishSubscribeById(ctx context.Context, instanceId, pubOrSubInstanceId string) (instance *sqlserver.PublishSubscribe, has bool, errRet error)
- func (me *SqlserverService) DescribeSqlserverPublishSubscribes(ctx context.Context, paramMap map[string]interface{}) (publishSubscribeList []*sqlserver.PublishSubscribe, errRet error)
- func (me *SqlserverService) DescribeZones(ctx context.Context) (zoneInfoList []*sqlserver.ZoneInfo, errRet error)
- func (me *SqlserverService) GetInfoFromDeal(ctx context.Context, dealId string) (instanceId string, errRet error)
- func (me *SqlserverService) ModifyAccountDBAttachment(ctx context.Context, instanceId, accountName, dbName, privilege string) (errRet error)
- func (me *SqlserverService) ModifyPublishSubscribeName(ctx context.Context, id uint64, name string) (errRet error)
- func (me *SqlserverService) ModifySqlserverAccountRemark(ctx context.Context, instanceId string, userName string, remark string) (errRet error)
- func (me *SqlserverService) ModifySqlserverDBRemark(ctx context.Context, instanceId string, dbName string, remark string) (errRet error)
- func (me *SqlserverService) ModifySqlserverInstanceMaintenanceSpan(ctx context.Context, instanceId string, weekSet []int, startTime string, ...) (errRet error)
- func (me *SqlserverService) ModifySqlserverInstanceName(ctx context.Context, instanceId string, name string) (errRet error)
- func (me *SqlserverService) ModifySqlserverInstanceProjectId(ctx context.Context, instanceId string, projectId int) (errRet error)
- func (me *SqlserverService) NewModifyDBInstanceRenewFlag(ctx context.Context, instanceId string, renewFlag int) (errRet error)
- func (me *SqlserverService) RecycleDBInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *SqlserverService) RemoveSecurityGroup(ctx context.Context, instanceId string, securityGroupId string) (errRet error)
- func (me *SqlserverService) ResetSqlserverAccountPassword(ctx context.Context, instanceId string, userName string, password string) (errRet error)
- func (me *SqlserverService) TerminateSqlserverInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *SqlserverService) UpgradeSqlserverBasicInstance(ctx context.Context, instanceId string, memory int, ...) (errRet error)
- func (me *SqlserverService) UpgradeSqlserverInstance(ctx context.Context, instanceId string, memory, storage, autoVoucher int, ...) (errRet error)
- func (me *SqlserverService) WaitForTaskFinish(ctx context.Context, flowId int64) (errRet error)
- type SslService
- func (me *SslService) CheckCertificateType(ctx context.Context, certId string, checkType string) (bool, error)
- func (me *SslService) CreateCertificate(ctx context.Context, certType, cert, name string, projectId int, key *string) (id string, err error)
- func (me *SslService) DeleteCertificate(ctx context.Context, id string) error
- func (me *SslService) DescribeCertificates(ctx context.Context, id, name, certType *string) (certificates []*ssl.SSLCertificate, err error)
- type SsmService
- func (me *SsmService) CreateSecret(ctx context.Context, param map[string]interface{}) (secretName string, errRet error)
- func (me *SsmService) DeleteSecret(ctx context.Context, secretName string, recoveryWindowInDays uint64) (errRet error)
- func (me *SsmService) DeleteSecretVersion(ctx context.Context, secretName, versionId string) (errRet error)
- func (me *SsmService) DescribeSecretByName(ctx context.Context, secretName string) (secret *SecretInfo, errRet error)
- func (me *SsmService) DescribeSecretVersion(ctx context.Context, secretName, versionId string) (secretVersion *SecretVersionInfo, errRet error)
- func (me *SsmService) DescribeSecretVersionIdsByName(ctx context.Context, secretName string) (versionIds []string, errRet error)
- func (me *SsmService) DescribeSecretsByFilter(ctx context.Context, param map[string]interface{}) (secrets []*ssm.SecretMetadata, errRet error)
- func (me *SsmService) DisableSecret(ctx context.Context, secretName string) (errRet error)
- func (me *SsmService) EnableSecret(ctx context.Context, secretName string) (errRet error)
- func (me *SsmService) PutSecretValue(ctx context.Context, param map[string]interface{}) (secretName, versionId string, errRet error)
- func (me *SsmService) UpdateSecret(ctx context.Context, param map[string]interface{}) (errRet error)
- func (me *SsmService) UpdateSecretDescription(ctx context.Context, secretName, description string) (errRet error)
- type StsService
- type TCRService
- func (me *TCRService) CreateReplicationInstance(ctx context.Context, request *tcr.CreateReplicationInstanceRequest) (id string, errRet error)
- func (me *TCRService) CreateTCRInstance(ctx context.Context, name string, instanceType string, tags map[string]string) (instanceId string, errRet error)
- func (me *TCRService) CreateTCRLongTermToken(ctx context.Context, instanceId string, description string) (tokenId string, token string, userName string, errRet error)
- func (me *TCRService) CreateTCRNameSpace(ctx context.Context, instanceId string, name string, isPublic bool) (errRet error)
- func (me *TCRService) CreateTCRRepository(ctx context.Context, instanceId string, namespace string, ...) (errRet error)
- func (me *TCRService) CreateTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string, subnetId string, ...) (errRet error)
- func (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, ...) (errRet error)
- func (me *TCRService) DeleteReplicationInstance(ctx context.Context, request *tcr.DeleteReplicationInstanceRequest) (errRet error)
- func (me *TCRService) DeleteTCRInstance(ctx context.Context, instanceId string, deleteBucket bool) (errRet error)
- func (me *TCRService) DeleteTCRLongTermToken(ctx context.Context, instanceId string, tokenId string) (errRet error)
- func (me *TCRService) DeleteTCRNameSpace(ctx context.Context, instanceId string, name string) (errRet error)
- func (me *TCRService) DeleteTCRRepository(ctx context.Context, instanceId string, namespace string, ...) (errRet error)
- func (me *TCRService) DeleteTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string, subnetId string, ...) (errRet error)
- func (me *TCRService) DeleteTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, ...) (errRet error)
- func (me *TCRService) DescribeExternalEndpointStatus(ctx context.Context, instanceId string) (status string, has bool, errRet error)
- func (me *TCRService) DescribeReplicationInstances(ctx context.Context, request *tcr.DescribeReplicationInstancesRequest) (list []*tcr.ReplicationRegistry, errRet error)
- func (me *TCRService) DescribeSecurityPolicies(ctx context.Context, request *tcr.DescribeSecurityPoliciesRequest) (policies []*tcr.SecurityPolicy, errRet error)
- func (me *TCRService) DescribeTCRInstanceById(ctx context.Context, instanceId string) (instance *tcr.Registry, has bool, errRet error)
- func (me *TCRService) DescribeTCRInstances(ctx context.Context, instanceId string, filter []*tcr.Filter) (instanceList []*tcr.Registry, errRet error)
- func (me *TCRService) DescribeTCRLongTermTokenById(ctx context.Context, instanceId string, tokenId string) (token *tcr.TcrInstanceToken, has bool, errRet error)
- func (me *TCRService) DescribeTCRNameSpaceById(ctx context.Context, instanceId string, name string) (namespace *tcr.TcrNamespaceInfo, has bool, errRet error)
- func (me *TCRService) DescribeTCRNameSpaces(ctx context.Context, instanceId string, name string) (namespaceList []*tcr.TcrNamespaceInfo, errRet error)
- func (me *TCRService) DescribeTCRRepositories(ctx context.Context, instanceId string, namespace string, ...) (repositoryList []*tcr.TcrRepositoryInfo, errRet error)
- func (me *TCRService) DescribeTCRRepositoryById(ctx context.Context, instanceId string, namespace string, ...) (repository *tcr.TcrRepositoryInfo, has bool, errRet error)
- func (me *TCRService) DescribeTCRTokens(ctx context.Context, instanceId string, tokenId string) (tokenList []*tcr.TcrInstanceToken, errRet error)
- func (me *TCRService) DescribeTCRVPCAttachmentById(ctx context.Context, instanceId string, vpcId string, subnetId string) (vpcAccess *tcr.AccessVpc, has bool, errRet error)
- func (me *TCRService) DescribeTCRVPCAttachments(ctx context.Context, instanceId string, vpcId string, subnetId string) (vpcList []*tcr.AccessVpc, errRet error)
- func (me *TCRService) DescribeTcrVpcDnsById(ctx context.Context, instanceId string, vpcId string, accessIp string, ...) (vpcPrivateDomainStatus *tcr.VpcPrivateDomainStatus, has bool, errRet error)
- func (me *TCRService) ManageTCRExternalEndpoint(ctx context.Context, instanceId, operation string) (errRet error)
- func (me *TCRService) ModifyInstance(ctx context.Context, registryId, registryType string) (errRet error)
- func (me *TCRService) ModifyTCRLongTermToken(ctx context.Context, instanceId string, tokenId string, enable bool) (errRet error)
- func (me *TCRService) ModifyTCRNameSpace(ctx context.Context, instanceId string, name string, isPublic bool) (errRet error)
- func (me *TCRService) ModifyTCRRepository(ctx context.Context, instanceId string, namespace string, ...) (errRet error)
- type TagService
- type TcaplusIdlId
- type TcaplusService
- func (me *TcaplusService) CreateCluster(ctx context.Context, idlType, clusterName, vpcId, subnetId, password string) (id string, errRet error)
- func (me *TcaplusService) CreateGroup(ctx context.Context, id string, groupName string) (groupId string, errRet error)
- func (me *TcaplusService) CreateTables(ctx context.Context, tid TcaplusIdlId, ...) (taskId string, tableInstanceId string, errRet error)
- func (me *TcaplusService) DeleteCluster(ctx context.Context, id string) (taskId string, errRet error)
- func (me *TcaplusService) DeleteGroup(ctx context.Context, clusterId string, groupId string) (errRet error)
- func (me *TcaplusService) DeleteIdlFiles(ctx context.Context, tid TcaplusIdlId) (errRet error)
- func (me *TcaplusService) DeleteTable(ctx context.Context, clusterId, groupId, tableInstanceId, tableName string) (taskId string, errRet error)
- func (me *TcaplusService) DesOldIdlFiles(ctx context.Context, tid TcaplusIdlId) (tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
- func (me *TcaplusService) DescribeCluster(ctx context.Context, id string) (clusterInfo tcaplusdb.ClusterInfo, has bool, errRet error)
- func (me *TcaplusService) DescribeClusters(ctx context.Context, clusterId string, clusterName string) (clusterInfos []*tcaplusdb.ClusterInfo, errRet error)
- func (me *TcaplusService) DescribeGroup(ctx context.Context, id string, groupId string) (info tcaplusdb.TableGroupInfo, has bool, errRet error)
- func (me *TcaplusService) DescribeGroups(ctx context.Context, clusterId string, groupId, groupName string) (infos []*tcaplusdb.TableGroupInfo, errRet error)
- func (me *TcaplusService) DescribeIdlFileInfos(ctx context.Context, clusterId string) (infos []*tcaplusdb.IdlFileInfo, errRet error)
- func (me *TcaplusService) DescribeTable(ctx context.Context, clusterId, tableInstanceId string) (tableInfo tcaplusdb.TableInfoNew, has bool, errRet error)
- func (me *TcaplusService) DescribeTables(ctx context.Context, clusterId string, groupId, tableId, tableName string) (infos []*tcaplusdb.TableInfoNew, errRet error)
- func (me *TcaplusService) DescribeTask(ctx context.Context, clusterId string, taskId string) (taskInfo tcaplusdb.TaskInfoNew, has bool, errRet error)
- func (me *TcaplusService) ModifyClusterName(ctx context.Context, id string, clusterName string) (errRet error)
- func (me *TcaplusService) ModifyClusterPassword(ctx context.Context, id string, oldPassword, newPassword string, ...) (errRet error)
- func (me *TcaplusService) ModifyGroupName(ctx context.Context, id string, groupId, groupName string) (errRet error)
- func (me *TcaplusService) ModifyTableMemo(ctx context.Context, ...) (errRet error)
- func (me *TcaplusService) ModifyTables(ctx context.Context, tid TcaplusIdlId, ...) (taskId string, errRet error)
- func (me *TcaplusService) VerifyIdlFiles(ctx context.Context, tid TcaplusIdlId, groupId string, fileContent string) (idlId int64, tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
- type TcmService
- func (me *TcmService) DeleteTcmClusterAttachmentById(ctx context.Context, meshId, clusterId string) (errRet error)
- func (me *TcmService) DeleteTcmMeshById(ctx context.Context, meshId string) (errRet error)
- func (me *TcmService) DescribeTcmMesh(ctx context.Context, meshId string) (mesh *tcm.DescribeMeshResponseParams, errRet error)
- type TdmqService
- func (me *TdmqService) CreateTdmqNamespace(ctx context.Context, environName string, msgTtl uint64, clusterId string, ...) (environId string, errRet error)
- func (me *TdmqService) CreateTdmqNamespaceRoleAttachment(ctx context.Context, environId string, roleName string, permissions []*string, ...) (errRet error)
- func (me *TdmqService) CreateTdmqRole(ctx context.Context, roleName string, clusterId string, remark string) (roleId string, errRet error)
- func (me *TdmqService) CreateTdmqTopic(ctx context.Context, environId string, topicName string, partitions uint64, ...) (errRet error)
- func (me *TdmqService) DeleteTdmqInstance(ctx context.Context, clusterId string) (errRet error)
- func (me *TdmqService) DeleteTdmqNamespace(ctx context.Context, environId string, clusterId string) (errRet error)
- func (me *TdmqService) DeleteTdmqNamespaceRoleAttachment(ctx context.Context, environId string, roleName string, cluserId string) (errRet error)
- func (me *TdmqService) DeleteTdmqRole(ctx context.Context, roleName string, cluserId string) (errRet error)
- func (me *TdmqService) DeleteTdmqTopic(ctx context.Context, environId string, topicName string, clusterId string) (errRet error)
- func (me *TdmqService) DescribeTdmqInstanceById(ctx context.Context, clusterId string) (info *tdmq.Cluster, has bool, errRet error)
- func (me *TdmqService) DescribeTdmqNamespaceById(ctx context.Context, environId string, clusterId string) (info *tdmq.Environment, has bool, errRet error)
- func (me *TdmqService) DescribeTdmqNamespaceRoleAttachment(ctx context.Context, environId string, roleName string, clusterId string) (info *tdmq.EnvironmentRole, has bool, errRet error)
- func (me *TdmqService) DescribeTdmqRoleById(ctx context.Context, roleName string, clusterId string) (info *tdmq.Role, has bool, errRet error)
- func (me *TdmqService) DescribeTdmqTopicById(ctx context.Context, environId string, topicName string, clusterId string) (info *tdmq.Topic, has bool, errRet error)
- func (me *TdmqService) ModifyTdmqInstanceAttribute(ctx context.Context, clusterId, clusterName string, remark string) (errRet error)
- func (me *TdmqService) ModifyTdmqNamespaceAttribute(ctx context.Context, environId string, msgTtl uint64, remark string, ...) (errRet error)
- func (me *TdmqService) ModifyTdmqNamespaceRoleAttachment(ctx context.Context, environId string, roleName string, permissions []*string, ...) (errRet error)
- func (me *TdmqService) ModifyTdmqRoleAttribute(ctx context.Context, roleName string, clusterId string, remark string) (errRet error)
- func (me *TdmqService) ModifyTdmqTopicAttribute(ctx context.Context, environId string, topicName string, partitions uint64, ...) (errRet error)
- type TemService
- func (me *TemService) DeleteTemAppConfigById(ctx context.Context, environmentId string, name string) (errRet error)
- func (me *TemService) DeleteTemApplicationById(ctx context.Context, applicationId string) (errRet error)
- func (me *TemService) DeleteTemEnvironmentById(ctx context.Context, environmentId string) (errRet error)
- func (me *TemService) DeleteTemGatewayById(ctx context.Context, environmentId string, ingressName string) (errRet error)
- func (me *TemService) DeleteTemLogConfigById(ctx context.Context, environmentId string, applicationId string, name string) (errRet error)
- func (me *TemService) DeleteTemScaleRuleById(ctx context.Context, environmentId string, applicationId string, ...) (errRet error)
- func (me *TemService) DeleteTemWorkloadById(ctx context.Context, environmentId string, applicationId string) (errRet error)
- func (me *TemService) DescribeTemAppConfig(ctx context.Context, environmentId string, name string) (appConfig *tem.ConfigData, errRet error)
- func (me *TemService) DescribeTemApplication(ctx context.Context, applicationId string) (application *tem.DescribeApplicationsResponseParams, errRet error)
- func (me *TemService) DescribeTemEnvironment(ctx context.Context, environmentId string) (environment *tem.DescribeEnvironmentResponseParams, errRet error)
- func (me *TemService) DescribeTemEnvironmentStatus(ctx context.Context, environmentId string) (environment *tem.NamespaceStatusInfo, errRet error)
- func (me *TemService) DescribeTemGateway(ctx context.Context, environmentId string, ingressName string) (gateway *tem.IngressInfo, errRet error)
- func (me *TemService) DescribeTemLogConfig(ctx context.Context, environmentId string, applicationId string, name string) (logConfig *tem.LogConfig, errRet error)
- func (me *TemService) DescribeTemScaleRule(ctx context.Context, environmentId string, applicationId string, ...) (scaleRule *tem.Autoscaler, errRet error)
- func (me *TemService) DescribeTemWorkload(ctx context.Context, environmentId string, applicationId string) (workload *tem.DescribeApplicationInfoResponseParams, errRet error)
- func (me *TemService) DisableTemScaleRuleById(ctx context.Context, environmentId string, applicationId string, ...) (errRet error)
- type TencentCloudClient
- type TencentCloudRedisDetail
- type TeoService
- func (me *TeoService) CheckZoneComplete(ctx context.Context, zoneId string) error
- func (me *TeoService) DeleteTeoApplicationProxyById(ctx context.Context, zoneId, proxyId string) (errRet error)
- func (me *TeoService) DeleteTeoApplicationProxyRuleById(ctx context.Context, zoneId, proxyId, ruleId string) (errRet error)
- func (me *TeoService) DeleteTeoDnsRecordById(ctx context.Context, zoneId, dnsRecordId string) (errRet error)
- func (me *TeoService) DeleteTeoLoadBalancingById(ctx context.Context, zoneId string, loadBalancingId string) (errRet error)
- func (me *TeoService) DeleteTeoOriginGroupById(ctx context.Context, zoneId, originGroupId string) (errRet error)
- func (me *TeoService) DeleteTeoRuleEngineById(ctx context.Context, zoneId, ruleId string) (errRet error)
- func (me *TeoService) DeleteTeoZoneById(ctx context.Context, zoneId string) (errRet error)
- func (me *TeoService) DescribeTeoApplicationProxy(ctx context.Context, zoneId, proxyId string) (applicationProxy *teo.ApplicationProxy, errRet error)
- func (me *TeoService) DescribeTeoApplicationProxyRule(ctx context.Context, zoneId, proxyId, ruleId string) (applicationProxyRule *teo.ApplicationProxyRule, errRet error)
- func (me *TeoService) DescribeTeoBotManagedRulesByFilter(ctx context.Context, param map[string]interface{}) (botManagedRules []*teo.BotManagedRuleDetail, errRet error)
- func (me *TeoService) DescribeTeoBotPortraitRulesByFilter(ctx context.Context, param map[string]interface{}) (portraitManagedRules []*teo.PortraitManagedRuleDetail, errRet error)
- func (me *TeoService) DescribeTeoDdosPolicy(ctx context.Context, zoneId string, policyId int64) (ddosPolicy *teo.DescribeDDoSPolicyResponseParams, errRet error)
- func (me *TeoService) DescribeTeoDefaultCertificate(ctx context.Context, zoneId, certId string) (defaultCertificate *teo.DefaultServerCertInfo, errRet error)
- func (me *TeoService) DescribeTeoDnsRecord(ctx context.Context, zoneId, name string) (dnsRecord *teo.DnsRecord, errRet error)
- func (me *TeoService) DescribeTeoDnsSec(ctx context.Context, zoneId string) (dnsSec *teo.DescribeDnssecResponseParams, errRet error)
- func (me *TeoService) DescribeTeoLoadBalancing(ctx context.Context, zoneId, loadBalancingId string) (loadBalancing *teo.LoadBalancing, errRet error)
- func (me *TeoService) DescribeTeoOriginGroup(ctx context.Context, zoneId, originGroupId string) (originGroup *teo.OriginGroup, errRet error)
- func (me *TeoService) DescribeTeoRuleEngine(ctx context.Context, zoneId, ruleId string) (ruleEngine *teo.RuleItem, errRet error)
- func (me *TeoService) DescribeTeoRuleEnginePriority(ctx context.Context, zoneId string) (ruleEnginePriority []*teo.RuleItem, errRet error)
- func (me *TeoService) DescribeTeoRuleEngineSettingsByFilter(ctx context.Context) (actions []*teo.RulesSettingAction, errRet error)
- func (me *TeoService) DescribeTeoSecurityPolicy(ctx context.Context, zoneId, entity string) (securityPolicy *teo.DescribeSecurityPolicyResponseParams, errRet error)
- func (me *TeoService) DescribeTeoSecurityPolicyRegionsByFilter(ctx context.Context) (geoIps []*teo.GeoIp, errRet error)
- func (me *TeoService) DescribeTeoWafRuleGroupsByFilter(ctx context.Context, param map[string]interface{}) (wafGroupDetails []*teo.WafGroupDetail, errRet error)
- func (me *TeoService) DescribeTeoZone(ctx context.Context, zoneId string) (zone *teo.Zone, errRet error)
- func (me *TeoService) DescribeTeoZoneAvailablePlansByFilter(ctx context.Context) (planInfos []*teo.PlanInfo, errRet error)
- func (me *TeoService) DescribeTeoZoneDDoSPolicyByFilter(ctx context.Context, param map[string]interface{}) (ddosPolicy *teo.DescribeZoneDDoSPolicyResponseParams, errRet error)
- func (me *TeoService) DescribeTeoZoneSetting(ctx context.Context, zoneId string) (zoneSetting *teo.ZoneSetting, errRet error)
- type TkeService
- func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)
- func (me *TkeService) CheckClusterVersion(ctx context.Context, id string, clusterVersion string) (isOk bool, errRet error)
- func (me *TkeService) CheckInstancesUpgradeAble(ctx context.Context, id string, upgradeType string) (instanceIds []string, errRet error)
- func (me *TkeService) CheckOneOfClusterNodeReady(ctx context.Context, clusterId string, mustHaveWorkers bool) error
- func (me *TkeService) CreateCluster(ctx context.Context, basic ClusterBasicSetting, ...) (id string, errRet error)
- func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, ...) (asGroupId string, errRet error)
- func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, ...) (errRet error)
- func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, ...) (instanceIds []string, errRet error)
- func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, ...) (asGroupId string, errRet error)
- func (me *TkeService) CreateExtensionAddon(ctx context.Context, clusterName, reqBody string) (errRet error)
- func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)
- func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)
- func (me *TkeService) DeleteClusterEndpoint(ctx context.Context, id string, isInternet bool) (errRet error)
- func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)
- func (me *TkeService) DeleteClusterNodePool(ctx context.Context, id, nodePoolId string, deleteKeepInstance bool) (errRet error)
- func (me *TkeService) DeleteExtensionAddon(ctx context.Context, clusterName, addon string) (errRet error)
- func (me *TkeService) DeletePrometheusClusterAgent(ctx context.Context, instanceId, clusterId, clusterType string) (errRet error)
- func (me *TkeService) DeletePrometheusRecordRuleYaml(ctx context.Context, id, name string) (errRet error)
- func (me *TkeService) DeleteTkeTmpAlertPolicyById(ctx context.Context, instanceId, tmpAlertPolicyId string) (errRet error)
- func (me *TkeService) DeleteTkeTmpConfigByName(ctx context.Context, configId string, ServiceMonitors []*string, ...) (errRet error)
- func (me *TkeService) DeleteTmpTkeTemplate(ctx context.Context, tempId string) (errRet error)
- func (me *TkeService) DescribeCluster(ctx context.Context, id string) (clusterInfo ClusterInfo, has bool, errRet error)
- func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)
- func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, errRet error)
- func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)
- func (me *TkeService) DescribeClusterConfig(ctx context.Context, id string, isPublic bool) (config string, errRet error)
- func (me *TkeService) DescribeClusterEndpointStatus(ctx context.Context, id string, isExtranet bool) (status string, message string, errRet error)
- func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
- func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)
- func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) (npGlobalConfig *tke.ClusterAsGroupOption, errRet error)
- func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)
- func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)
- func (me *TkeService) DescribeExtensionAddon(ctx context.Context, clusterName, addon string) (result string, has bool, errRet error)
- func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
- func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, nodePoolId string) (nodePool *tke.NodePool, has bool, errRet error)
- func (me *TkeService) DescribePrometheusRecordRuleByName(ctx context.Context, id, name string) (ret *tke.DescribePrometheusRecordRulesResponse, errRet error)
- func (me *TkeService) DescribePrometheusTempSync(ctx context.Context, templateId string) (targets []*tke.PrometheusTemplateSyncTarget, errRet error)
- func (me *TkeService) DescribeTkeTmpAlertPolicy(ctx context.Context, instanceId, tmpAlertPolicyId string) (tmpAlertPolicy *tke.PrometheusAlertPolicyItem, errRet error)
- func (me *TkeService) DescribeTkeTmpConfigById(ctx context.Context, configId string) (respParams *tke.DescribePrometheusConfigResponseParams, errRet error)
- func (me *TkeService) DescribeTkeTmpGlobalNotification(ctx context.Context, instanceId string) (tmpNotification *tke.PrometheusNotificationItem, errRet error)
- func (me *TkeService) DescribeTmpTkeClusterAgentsById(ctx context.Context, instanceId, clusterId, clusterType string) (agents *tke.PrometheusAgentOverview, errRet error)
- func (me *TkeService) DescribeTmpTkeTemplateById(ctx context.Context, templateId string) (template *tke.PrometheusTemp, errRet error)
- func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)
- func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)
- func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)
- func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)
- func (me *TkeService) GetAddonReqBody(addon, version string, values []*string) (string, error)
- func (me *TkeService) GetAddonsPath(cluster, addon string) string
- func (me *TkeService) GetTkeAppChartList(ctx context.Context, request *tke.GetTkeAppChartListRequest) (info []*tke.AppChart, errRet error)
- func (me *TkeService) GetUpgradeInstanceResult(ctx context.Context, id string) (done bool, errRet error)
- func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)
- func (me *TkeService) ModifyClusterAsGroupAttribute(ctx context.Context, id, asGroupId string, maxSize, minSize int64) (errRet error)
- func (me *TkeService) ModifyClusterAttribute(ctx context.Context, id string, projectId int64, ...) (errRet error)
- func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)
- func (me *TkeService) ModifyClusterEndpointSG(ctx context.Context, id string, securityGroup string) (errRet error)
- func (me *TkeService) ModifyClusterEndpointSP(ctx context.Context, id string, securityPolicies []string) (errRet error)
- func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, ...) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolDesiredCapacity(ctx context.Context, clusterId, nodePoolId string, desiredCapacity int64) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolInstanceTypes(ctx context.Context, clusterId, nodePoolId string, instanceTypes []*string) (errRet error)
- func (me *TkeService) ModifyClusterVersion(ctx context.Context, id string, clusterVersion string, extraArgs interface{}) (errRet error)
- func (me *TkeService) ModifyDeletionProtection(ctx context.Context, id string, enable bool) (errRet error)
- func (me *TkeService) ModifyTkeTmpGlobalNotification(ctx context.Context, instanceId string, ...) (response *tke.ModifyPrometheusGlobalNotificationResponse, errRet error)
- func (me *TkeService) PollingAddonsPhase(ctx context.Context, clusterId, addonName string, ...) (string, bool, error)
- func (me *TkeService) ProcessExtensionAddons(ctx context.Context, request *tke.ForwardApplicationRequestV3Request) (response *tke.ForwardApplicationRequestV3Response, err error)
- func (me *TkeService) SwitchClusterAudit(ctx context.Context, clusterId, logSetId, topicId string, enable bool) error
- func (me *TkeService) SwitchEventPersistence(ctx context.Context, clusterId, logSetId, topicId string, enable bool) error
- func (me *TkeService) SwitchLogAgent(ctx context.Context, clusterId, rootDir string, enable bool) error
- func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)
- func (me *TkeService) UpdateExtensionAddon(ctx context.Context, clusterName, addon, reqBody string) (errRet error)
- func (me *TkeService) UpgradeClusterInstances(ctx context.Context, id string, upgradeType string, instanceIds []string) (errRet error)
- func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, errRet error)
- type VodService
- func (me *VodService) DeleteAdaptiveDynamicStreamingTemplate(ctx context.Context, templateId string, subAppid uint64) (errRet error)
- func (me *VodService) DeleteImageSpriteTemplate(ctx context.Context, templateId string, subAppid uint64) (errRet error)
- func (me *VodService) DeleteProcedureTemplate(ctx context.Context, templateId string, subAppid uint64) (errRet error)
- func (me *VodService) DeleteSnapshotByTimeOffsetTemplate(ctx context.Context, templateId string, subAppid uint64) (errRet error)
- func (me *VodService) DeleteSuperPlayerConfig(ctx context.Context, configId string, subAppid uint64) (errRet error)
- func (me *VodService) DescribeAdaptiveDynamicStreamingTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.AdaptiveDynamicStreamingTemplate, errRet error)
- func (me *VodService) DescribeAdaptiveDynamicStreamingTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.AdaptiveDynamicStreamingTemplate, has bool, errRet error)
- func (me *VodService) DescribeImageSpriteTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.ImageSpriteTemplate, errRet error)
- func (me *VodService) DescribeImageSpriteTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.ImageSpriteTemplate, has bool, errRet error)
- func (me *VodService) DescribeProcedureTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.ProcedureTemplate, errRet error)
- func (me *VodService) DescribeProcedureTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.ProcedureTemplate, has bool, errRet error)
- func (me *VodService) DescribeSnapshotByTimeOffsetTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.SnapshotByTimeOffsetTemplate, errRet error)
- func (me *VodService) DescribeSnapshotByTimeOffsetTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.SnapshotByTimeOffsetTemplate, has bool, errRet error)
- func (me *VodService) DescribeSuperPlayerConfigsByFilter(ctx context.Context, filters map[string]interface{}) (configs []*vod.PlayerConfig, errRet error)
- func (me *VodService) DescribeSuperPlayerConfigsById(ctx context.Context, configId string) (configInfo *vod.PlayerConfig, has bool, errRet error)
- type VpcACLRule
- type VpcBasicInfo
- type VpcEniIP
- type VpcRouteEntryBasicInfo
- type VpcRouteTableBasicInfo
- type VpcSecurityGroupLiteRule
- type VpcService
- func (me *VpcService) AssignIpv4ToEni(ctx context.Context, id string, ipv4s []VpcEniIP, ipv4Count *int) error
- func (me *VpcService) AssociateAclSubnets(ctx context.Context, aclId string, subnetIds []string) (errRet error)
- func (me *VpcService) AttachCcnInstances(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string, ...) (errRet error)
- func (me *VpcService) AttachEip(ctx context.Context, eipId, instanceId string) error
- func (me *VpcService) AttachEniToCvm(ctx context.Context, eniId, cvmId string) error
- func (me *VpcService) AttachLiteRulesToSecurityGroup(ctx context.Context, sgId string, ingress, egress []VpcSecurityGroupLiteRule) error
- func (me *VpcService) AttachRulesToACL(ctx context.Context, aclID string, ingressParm, egressParm []VpcACLRule) (errRet error)
- func (me *VpcService) CheckAssistantCidr(ctx context.Context, request *vpc.CheckAssistantCidrRequest) (info []*vpc.ConflictSource, errRet error)
- func (me *VpcService) CreateAddressTemplate(ctx context.Context, name string, addresses []interface{}) (templateId string, errRet error)
- func (me *VpcService) CreateAddressTemplateGroup(ctx context.Context, name string, addressTemplate []interface{}) (templateId string, errRet error)
- func (me *VpcService) CreateAssistantCidr(ctx context.Context, request *vpc.CreateAssistantCidrRequest) (info []*vpc.AssistantCidr, errRet error)
- func (me *VpcService) CreateCcn(ctx context.Context, ...) (basicInfo CcnBasicInfo, errRet error)
- func (me *VpcService) CreateDirectConnectGateway(ctx context.Context, name, networkType, networkInstanceId, gatewayType string) (dcgId string, errRet error)
- func (me *VpcService) CreateDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, cidr string, asPaths []string) (routeId string, errRet error)
- func (me *VpcService) CreateEni(ctx context.Context, name, vpcId, subnetId, desc string, ...) (id string, err error)
- func (me *VpcService) CreateNatGatewaySnat(ctx context.Context, natGatewayId string, snat *vpc.SourceIpTranslationNatRule) (errRet error)
- func (me *VpcService) CreateRouteTable(ctx context.Context, name, vpcId string, tags map[string]string) (routeTableId string, errRet error)
- func (me *VpcService) CreateRoutes(ctx context.Context, ...) (entryId int64, errRet error)
- func (me *VpcService) CreateSecurityGroup(ctx context.Context, name, desc string, projectId *int, tags map[string]string) (id string, err error)
- func (me *VpcService) CreateSecurityGroupPolicy(ctx context.Context, info securityGroupRuleBasicInfoWithPolicyIndex) (ruleId string, err error)
- func (me *VpcService) CreateServiceTemplate(ctx context.Context, name string, services []interface{}) (templateId string, errRet error)
- func (me *VpcService) CreateServiceTemplateGroup(ctx context.Context, name string, serviceTemplate []interface{}) (templateId string, errRet error)
- func (me *VpcService) CreateSubnet(ctx context.Context, vpcId, name, cidr, zone string, tags map[string]string) (subnetId string, errRet error)
- func (me *VpcService) CreateVpc(ctx context.Context, name, cidr string, isMulticast bool, dnsServers []string, ...) (vpcId string, isDefault bool, errRet error)
- func (me *VpcService) CreateVpcNetworkAcl(ctx context.Context, vpcID string, name string, tags map[string]string) (aclID string, errRet error)
- func (me *VpcService) CreateVpnGatewayRoute(ctx context.Context, vpnGatewayId string, vpnGwRoutes []*vpc.VpnGatewayRoute) (errRet error, routes []*vpc.VpnGatewayRoute)
- func (me *VpcService) DeleteAcl(ctx context.Context, aclID string) (errRet error)
- func (me *VpcService) DeleteAclAttachment(ctx context.Context, attachmentAcl string) (errRet error)
- func (me *VpcService) DeleteAddressTemplate(ctx context.Context, templateId string) (errRet error)
- func (me *VpcService) DeleteAddressTemplateGroup(ctx context.Context, templateGroupId string) (errRet error)
- func (me *VpcService) DeleteAssistantCidr(ctx context.Context, request *vpc.DeleteAssistantCidrRequest) (errRet error)
- func (me *VpcService) DeleteCcn(ctx context.Context, ccnId string) (errRet error)
- func (me *VpcService) DeleteCustomerGateway(ctx context.Context, customerGatewayId string) (errRet error)
- func (me *VpcService) DeleteDirectConnectGateway(ctx context.Context, dcgId string) (errRet error)
- func (me *VpcService) DeleteDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, routeId string) (errRet error)
- func (me *VpcService) DeleteEip(ctx context.Context, eipId string) error
- func (me *VpcService) DeleteEni(ctx context.Context, id string) error
- func (me *VpcService) DeleteHaVip(ctx context.Context, haVipId string) (errRet error)
- func (me *VpcService) DeleteLiteRules(ctx context.Context, sgId string, rules []VpcSecurityGroupLiteRule, ...) error
- func (me *VpcService) DeleteNatGateway(ctx context.Context, natGatewayId string) (errRet error)
- func (me *VpcService) DeleteNatGatewaySnat(ctx context.Context, natGatewayId string, snatId string) (errRet error)
- func (me *VpcService) DeleteRouteTable(ctx context.Context, routeTableId string) (errRet error)
- func (me *VpcService) DeleteRoutes(ctx context.Context, routeTableId string, entryId uint64) (errRet error)
- func (me *VpcService) DeleteSecurityGroup(ctx context.Context, id string) error
- func (me *VpcService) DeleteSecurityGroupPolicy(ctx context.Context, ruleId string) error
- func (me *VpcService) DeleteSecurityGroupPolicyByPolicyIndex(ctx context.Context, policyIndex int64, sgId, policyType string) error
- func (me *VpcService) DeleteServiceTemplate(ctx context.Context, templateId string) (errRet error)
- func (me *VpcService) DeleteServiceTemplateGroup(ctx context.Context, templateGroupId string) (errRet error)
- func (me *VpcService) DeleteSubnet(ctx context.Context, subnetId string) (errRet error)
- func (me *VpcService) DeleteVpc(ctx context.Context, vpcId string) (errRet error)
- func (me *VpcService) DeleteVpcBandwidthPackageAttachmentById(ctx context.Context, bandwidthPackageId, resourceId string) (errRet error)
- func (me *VpcService) DeleteVpcBandwidthPackageById(ctx context.Context, bandwidthPackageId string) (errRet error)
- func (me *VpcService) DeleteVpnGateway(ctx context.Context, vpnGatewayId string) (errRet error)
- func (me *VpcService) DeleteVpnGatewayRoutes(ctx context.Context, vpnGatewayId string, routeIds []*string) (errRet error)
- func (me *VpcService) DeleteVpnGatewaySslClient(ctx context.Context, SslClientId string) (taskId *uint64, errRet error)
- func (me *VpcService) DeleteVpnGatewaySslServer(ctx context.Context, SslServerId string) (taskId uint64, errRet error)
- func (me *VpcService) DescribeAddressTemplateById(ctx context.Context, templateId string) (template *vpc.AddressTemplate, has bool, errRet error)
- func (me *VpcService) DescribeAddressTemplateGroupById(ctx context.Context, templateGroupId string) (templateGroup *vpc.AddressTemplateGroup, has bool, errRet error)
- func (me *VpcService) DescribeAddressTemplateGroups(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.AddressTemplateGroup, errRet error)
- func (me *VpcService) DescribeAddressTemplates(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.AddressTemplate, errRet error)
- func (me *VpcService) DescribeAssistantCidr(ctx context.Context, vpcId string) (info []*vpc.AssistantCidr, errRet error)
- func (me *VpcService) DescribeByAclId(ctx context.Context, attachmentAcl string) (has bool, errRet error)
- func (me *VpcService) DescribeCcn(ctx context.Context, ccnId string) (info CcnBasicInfo, has int, errRet error)
- func (me *VpcService) DescribeCcnAttachedInstance(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string) (info CcnAttachedInstanceInfo, has int, errRet error)
- func (me *VpcService) DescribeCcnAttachedInstances(ctx context.Context, ccnId string) (infos []CcnAttachedInstanceInfo, errRet error)
- func (me *VpcService) DescribeCcnAttachmentsByInstance(ctx context.Context, instanceType string, instanceId string, ...) (infos []vpc.CcnAttachedInstance, errRet error)
- func (me *VpcService) DescribeCcnRegionBandwidthLimit(ctx context.Context, ccnId, region string) (bandwidth int64, errRet error)
- func (me *VpcService) DescribeCcnRegionBandwidthLimits(ctx context.Context, ccnId string) (infos []CcnBandwidthLimit, errRet error)
- func (me *VpcService) DescribeCcns(ctx context.Context, ccnId, name string) (infos []CcnBasicInfo, errRet error)
- func (me *VpcService) DescribeCustomerGatewayByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.CustomerGateway, errRet error)
- func (me *VpcService) DescribeDirectConnectGateway(ctx context.Context, dcgId string) (info DcgInstanceInfo, has int, errRet error)
- func (me *VpcService) DescribeDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, routeId string) (infoRet DcgRouteInfo, has int, errRet error)
- func (me *VpcService) DescribeDirectConnectGatewayCcnRoutes(ctx context.Context, dcgId string) (infos []DcgRouteInfo, errRet error)
- func (me *VpcService) DescribeDirectConnectGateways(ctx context.Context, dcgId, name string) (infos []DcgInstanceInfo, errRet error)
- func (me *VpcService) DescribeEipByFilter(ctx context.Context, filters map[string][]string) (eips []*vpc.Address, errRet error)
- func (me *VpcService) DescribeEipById(ctx context.Context, eipId string) (eip *vpc.Address, errRet error)
- func (me *VpcService) DescribeEniByFilters(ctx context.Context, vpcId, subnetId, cvmId, sgId, name, desc, ipv4 *string, ...) (enis []*vpc.NetworkInterface, err error)
- func (me *VpcService) DescribeEniById(ctx context.Context, ids []string) (enis []*vpc.NetworkInterface, err error)
- func (me *VpcService) DescribeHaVipByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.HaVip, errRet error)
- func (me *VpcService) DescribeHaVipEipById(ctx context.Context, haVipEipAttachmentId string) (eip string, haVip string, has bool, errRet error)
- func (me *VpcService) DescribeNatGatewayByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.NatGateway, errRet error)
- func (me *VpcService) DescribeNatGatewayById(ctx context.Context, natGateWayId string) (natGateWay *vpc.NatGateway, errRet error)
- func (me *VpcService) DescribeNatGatewaySnats(ctx context.Context, natGatewayId string, filters []*vpc.Filter) (errRet error, result []*vpc.SourceIpTranslationNatRule)
- func (me *VpcService) DescribeNetWorkAcls(ctx context.Context, aclID, vpcID, name string) (info []*vpc.NetworkAcl, errRet error)
- func (me *VpcService) DescribeNetWorkByACLID(ctx context.Context, aclID string) (info *vpc.NetworkAcl, has int, errRet error)
- func (me *VpcService) DescribeRouteTable(ctx context.Context, routeTableId string) (info VpcRouteTableBasicInfo, has int, errRet error)
- func (me *VpcService) DescribeRouteTables(ctx context.Context, routeTableId, routeTableName, vpcId string, ...) (infos []VpcRouteTableBasicInfo, errRet error)
- func (me *VpcService) DescribeSecurityGroup(ctx context.Context, id string) (sg *vpc.SecurityGroup, err error)
- func (me *VpcService) DescribeSecurityGroupPolices(ctx context.Context, sgId string) (ingress, egress []VpcSecurityGroupLiteRule, exist bool, err error)
- func (me *VpcService) DescribeSecurityGroupPolicy(ctx context.Context, ruleId string) (sgId string, policyType string, policy *vpc.SecurityGroupPolicy, errRet error)
- func (me *VpcService) DescribeSecurityGroups(ctx context.Context, sgId, sgName *string, projectId *int, ...) (sgs []*vpc.SecurityGroup, err error)
- func (me *VpcService) DescribeSecurityGroupsAssociate(ctx context.Context, ids []string) ([]*vpc.SecurityGroupAssociationStatistics, error)
- func (me *VpcService) DescribeServiceTemplateById(ctx context.Context, templateId string) (template *vpc.ServiceTemplate, has bool, errRet error)
- func (me *VpcService) DescribeServiceTemplateGroupById(ctx context.Context, templateGroupId string) (template *vpc.ServiceTemplateGroup, has bool, errRet error)
- func (me *VpcService) DescribeServiceTemplateGroups(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.ServiceTemplateGroup, errRet error)
- func (me *VpcService) DescribeServiceTemplates(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.ServiceTemplate, errRet error)
- func (me *VpcService) DescribeSubnet(ctx context.Context, subnetId string, isRemoteVpcSNAT *bool, ...) (info VpcSubnetBasicInfo, has int, errRet error)
- func (me *VpcService) DescribeSubnets(ctx context.Context, subnetId, vpcId, subnetName, zone string, ...) (infos []VpcSubnetBasicInfo, errRet error)
- func (me *VpcService) DescribeTaskResult(ctx context.Context, taskId *uint64) (err error)
- func (me *VpcService) DescribeVpc(ctx context.Context, vpcId string, tagKey string, cidrBlock string) (info VpcBasicInfo, has int, errRet error)
- func (me *VpcService) DescribeVpcBandwidthPackage(ctx context.Context, bandwidthPackageId string) (resource *vpc.BandwidthPackage, errRet error)
- func (me *VpcService) DescribeVpcBandwidthPackageAttachment(ctx context.Context, bandwidthPackageId, resourceId string) (bandwidthPackageResources *vpc.Resource, errRet error)
- func (me *VpcService) DescribeVpcTaskResult(ctx context.Context, taskId *string) (err error)
- func (me *VpcService) DescribeVpcs(ctx context.Context, vpcId, name string, tags map[string]string, ...) (infos []VpcBasicInfo, errRet error)
- func (me *VpcService) DescribeVpnGatewayRoutes(ctx context.Context, vpnGatewayId string, filters []*vpc.Filter) (errRet error, result []*vpc.VpnGatewayRoute)
- func (me *VpcService) DescribeVpnGwByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.VpnGateway, errRet error)
- func (me *VpcService) DescribeVpnGwSslClientByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.SslVpnClient, errRet error)
- func (me *VpcService) DescribeVpnGwSslServerByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.SslVpnSever, errRet error)
- func (me *VpcService) DescribeVpnSslClientById(ctx context.Context, sslId string) (has bool, gateway *vpc.SslVpnClient, err error)
- func (me *VpcService) DescribeVpnSslServerById(ctx context.Context, sslId string) (has bool, gateway *vpc.SslVpnSever, err error)
- func (me *VpcService) DescribeVpngwById(ctx context.Context, vpngwId string) (has bool, gateway *vpc.VpnGateway, err error)
- func (me *VpcService) DetachAllLiteRulesFromSecurityGroup(ctx context.Context, sgId string) error
- func (me *VpcService) DetachCcnInstances(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string) (errRet error)
- func (me *VpcService) DetachEniFromCvm(ctx context.Context, eniId, cvmId string) error
- func (me *VpcService) DisableRoutes(ctx context.Context, request *vpc.DisableRoutesRequest) (errRet error)
- func (me *VpcService) DisassociateNatGatewayAddress(ctx context.Context, request *vpc.DisassociateNatGatewayAddressRequest) (errRet error)
- func (me *VpcService) EnableRoutes(ctx context.Context, request *vpc.EnableRoutesRequest) (errRet error)
- func (me *VpcService) GetCcnRegionBandwidthLimit(ctx context.Context, ccnId, region, dstRegion, limitType string) (int64, error)
- func (me *VpcService) GetCcnRegionBandwidthLimits(ctx context.Context, ccnID string) (infos []vpc.CcnRegionBandwidthLimit, errRet error)
- func (me *VpcService) GetCcnRouteId(ctx context.Context, dcgId, cidr string, asPaths []string) (routeId string, has int, errRet error)
- func (me *VpcService) GetRouteId(ctx context.Context, ...) (entryId int64, errRet error)
- func (me *VpcService) IsRouteTableInVpc(ctx context.Context, routeTableId, vpcId string) (info VpcRouteTableBasicInfo, has int, errRet error)
- func (me *VpcService) ModifyAddressTemplate(ctx context.Context, templateId string, name string, addresses []interface{}) (errRet error)
- func (me *VpcService) ModifyAddressTemplateGroup(ctx context.Context, templateGroupId string, name string, ...) (errRet error)
- func (me *VpcService) ModifyAssistantCidr(ctx context.Context, request *vpc.ModifyAssistantCidrRequest) (errRet error)
- func (me *VpcService) ModifyCcnAttribute(ctx context.Context, ccnId, name, description string) (errRet error)
- func (me *VpcService) ModifyCcnRegionBandwidthLimitsType(ctx context.Context, ccnID, limitType string) error
- func (me *VpcService) ModifyDirectConnectGatewayAttribute(ctx context.Context, dcgId, name string) (errRet error)
- func (me *VpcService) ModifyEipBandwidthOut(ctx context.Context, eipId string, bandwidthOut int) error
- func (me *VpcService) ModifyEipName(ctx context.Context, eipId, eipName string) error
- func (me *VpcService) ModifyEniAttribute(ctx context.Context, id string, name, desc *string, sgs []string) error
- func (me *VpcService) ModifyEniPrimaryIpv4Desc(ctx context.Context, id, ip string, desc *string) error
- func (me *VpcService) ModifyNatGatewaySnat(ctx context.Context, natGatewayId string, snat *vpc.SourceIpTranslationNatRule) (errRet error)
- func (me *VpcService) ModifyNetWorkAclRules(ctx context.Context, aclID string, ingressParm, egressParm []VpcACLRule) (errRet error)
- func (me *VpcService) ModifyRouteTableAttribute(ctx context.Context, routeTableId string, name string) (errRet error)
- func (me *VpcService) ModifySecurityGroup(ctx context.Context, id string, newName, newDesc *string) error
- func (me *VpcService) ModifySecurityGroupPolicy(ctx context.Context, ruleId string, desc *string) error
- func (me *VpcService) ModifyServiceTemplate(ctx context.Context, templateId string, name string, services []interface{}) (errRet error)
- func (me *VpcService) ModifyServiceTemplateGroup(ctx context.Context, serviceGroupId string, name string, ...) (errRet error)
- func (me *VpcService) ModifySubnetAttribute(ctx context.Context, subnetId, name string, isMulticast bool) (errRet error)
- func (me *VpcService) ModifyVpcAttribute(ctx context.Context, vpcId, name string, isMulticast bool, dnsServers []string) (errRet error)
- func (me *VpcService) ModifyVpcNetworkAcl(ctx context.Context, id *string, name *string) (errRet error)
- func (me *VpcService) ModifyVpnGatewayRoute(ctx context.Context, vpnGatewayId, routeId, status string) (errRet error, routes *vpc.VpnGatewayRoute)
- func (me *VpcService) ReplaceRouteTableAssociation(ctx context.Context, subnetId string, routeTableId string) (errRet error)
- func (me *VpcService) SetCcnRegionBandwidthLimits(ctx context.Context, ccnId, region, dstRegion string, bandwidth int64) (errRet error)
- func (me *VpcService) SwitchRouteEnabled(ctx context.Context, routeTableId string, routeId uint64, enabled bool) error
- func (me *VpcService) UnAssignIpv4FromEni(ctx context.Context, id string, ipv4s []string) error
- func (me *VpcService) UnattachEip(ctx context.Context, eipId string) error
- type VpcSubnetBasicInfo
Constants ¶
const ( PROVIDER_READ_RETRY_TIMEOUT = "TENCENTCLOUD_READ_RETRY_TIMEOUT" PROVIDER_WRITE_RETRY_TIMEOUT = "TENCENTCLOUD_WRITE_RETRY_TIMEOUT" PROVIDER_WAIT_READ_TIMEOUT = "TENCENTCLOUD_WAIT_READ_TIMEOUT" SWEEPER_NEED_PROTECT = "SWEEPER_NEED_PROTECT" TENCENTCLOUD_COMMON_TIME_LAYOUT = "2006-01-02 15:04:05" )
const ( SERVICE_ERR_CODE = "ResourceNotFound.InvalidService" API_ERR_CODE = "ResourceNotFound.InvalidApi" OSS_EXCEPTION = "InternalError.OssException" )
const ( QUOTA = -1 QUOTA_MAX = 5000 )
const ( STRATEGY = -1 STRATEGY_MAX = 5000 )
const ( API_GATEWAY_KEY_ENABLED = "on" API_GATEWAY_KEY_DISABLED = "off" )
const ( API_GATEWAY_TYPE_SERVICE = "SERVICE" API_GATEWAY_TYPE_API = "API" )
const ( API_GATEWAY_NET_TYPE_INNER = "INNER" API_GATEWAY_NET_TYPE_OUTER = "OUTER" )
const ( API_GATEWAY_NET_IP_VERSION4 = "IPv4" API_GATEWAY_NET_IP_VERSION6 = "IPv6" )
const ( API_GATEWAY_SERVICE_PROTOCOL_HTTP = "http" API_GATEWAY_SERVICE_PROTOCOL_HTTPS = "https" API_GATEWAY_SERVICE_PROTOCOL_ALL = "http&https" )
const ( API_GATEWAY_SERVICE_ENV_TEST = "test" API_GATEWAY_SERVICE_ENV_RELEASE = "release" API_GATEWAY_SERVICE_ENV_PREPUB = "prepub" )
const ( API_GATEWAY_SERVICE_TYPE_WEBSOCKET = "WEBSOCKET" API_GATEWAY_SERVICE_TYPE_HTTP = "HTTP" API_GATEWAY_SERVICE_TYPE_SCF = "SCF" API_GATEWAY_SERVICE_TYPE_MOCK = "MOCK" )
const ( API_GATEWAY_AUTH_TYPE_SECRET = "SECRET" API_GATEWAY_AUTH_TYPE_NONE = "NONE" )
const ( API_GATEWAY_API_PROTOCOL_HTTP = "HTTP" API_GATEWAY_API_PROTOCOL_WEBSOCKET = "WEBSOCKET" )
const ( CERTIFI_CATE_ID_EXPIRED = "FailedOperation.CertificateIdExpired" CERTIFICATE_ID_UNDER_VERIFY = "FailedOperation.CertificateIdUnderVerify" DOMAIN_NEED_BEIAN = "FailedOperation.DomainNeedBeian" EXCEEDED_DEFINE_MAPPING_LIMIT = "LimitExceeded.ExceededDefineMappingLimit" DOMAIN_RESOLVE_ERROR = "FailedOperation.DomainResolveError" DOMAIN_BIND_SERVICE = "FailedOperation.DomainAlreadyBindService" )
const ( SYSTEM_DISK_TYPE_LOCAL_BASIC = "LOCAL_BASIC" SYSTEM_DISK_TYPE_LOCAL_SSD = "LOCAL_SSD" SYSTEM_DISK_TYPE_CLOUD_BASIC = "CLOUD_BASIC" SYSTEM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM" SYSTEM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD" SYSTEM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD" SYSTEM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD" )
const ( INTERNET_CHARGE_TYPE_BANDWIDTH_PREPAID = "BANDWIDTH_PREPAID" INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID_BY_HOUR = "TRAFFIC_POSTPAID_BY_HOUR" INTERNET_CHARGE_TYPE_BANDWIDTH_POSTPAID_BY_HOUR = "BANDWIDTH_POSTPAID_BY_HOUR" INTERNET_CHARGE_TYPE_BANDWIDTH_PACKAGE = "BANDWIDTH_PACKAGE" )
const ( INSTANCE_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR" INSTANCE_CHARGE_TYPE_SPOTPAID = "SPOTPAID" INSTANCE_CHARGE_TYPE_PREPAID = "PREPAID" )
const ( SCALING_GROUP_TERMINATION_POLICY_NEWEST_INSTANCE = "NEWEST_INSTANCE" SCALING_GROUP_TERMINATION_POLICY_OLDEST_INSTANCE = "OLDEST_INSTANCE" )
const ( SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY = "IMMEDIATE_RETRY" SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS = "INCREMENTAL_INTERVALS" )
const ( SCALING_DISK_TYPE_POLICY_ORIGINAL = "ORIGINAL" SCALING_DISK_TYPE_POLICY_AUTOMATIC = "AUTOMATIC" )
const ( INSTANCE_NAME_ORIGINAL = "ORIGINAL" INSTANCE_NAME_UNIQUE = "UNIQUE" )
const ( SCALING_GROUP_ADJUSTMENT_TYPE_CHANGE_IN_CAPACITY = "CHANGE_IN_CAPACITY" SCALING_GROUP_ADJUSTMENT_TYPE_EXACT_CAPACITY = "EXACT_CAPACITY" SCALING_GROUP_ADJUSTMENT_TYPE_PERCENT_CHANGE_IN_CAPACITY = "PERCENT_CHANGE_IN_CAPACITY" )
const ( SCALING_GROUP_COMPARISON_OPERATOR_GREATER = "GREATER_THAN" SCALING_GROUP_COMPARISON_OPERATOR_GREATER_EQUAL = "GREATER_THAN_OR_EQUAL_TO" SCALING_GROUP_COMPARISON_OPERATOR_LESS = "LESS_THAN" SCALING_GROUP_COMPARISON_OPERATOR_LESS_EQUAL = "LESS_THAN_OR_EQUAL_TO" SCALING_GROUP_COMPARISON_OPERATOR_EQUAL = "EQUAL_TO" SCALING_GROUP_COMPARISON_OPERATOR_NOT_EQUAL = "NOT_EQUAL_TO" )
const ( SCALING_GROUP_METRIC_NAME_CPU_UTILIZATION = "CPU_UTILIZATION" SCALING_GROUP_METRIC_NAME_MEM_UTILIZATION = "MEM_UTILIZATION" SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_OUT = "LAN_TRAFFIC_OUT" SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_IN = "LAN_TRAFFIC_IN" SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_OUT = "WAN_TRAFFIC_OUT" SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_IN = "WAN_TRAFFIC_IN" )
const ( SCALING_GROUP_STATISTIC_AVERAGE = "AVERAGE" SCALING_GROUP_STATISTIC_MAXIMUM = "MAXIMUM" SCALING_GROUP_STATISTIC_MINIMUM = "MINIMUM" )
const ( SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_SUCCESS = "SCALE_OUT_SUCCESSFUL" SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_FAILED = "SCALE_OUT_FAILED" SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_SUCCESS = "SCALE_IN_SUCCESSFUL" SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_FAILED = "SCALE_IN_FAILED" SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_SUCCESS = "REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL" SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_FAILED = "REPLACE_UNHEALTHY_INSTANCE_FAILED" )
const ( SCALING_GROUP_ACTIVITY_STATUS_INIT = "INIT" SCALING_GROUP_ACTIVITY_STATUS_RUNNING = "RUNNING" SCALING_GROUP_ACTIVITY_STATUS_SUCCESSFUL = "SUCCESSFUL" SCALING_GROUP_ACTIVITY_STATUS_PARTIALLY_SUCCESSFUL = "PARTIALLY_SUCCESSFUL" SCALING_GROUP_ACTIVITY_STATUS_FAILED = "FAILED" SCALING_GROUP_ACTIVITY_STATUS_CANCELLED = "CANCELLED" )
const ( AsScheduleNotFound = "ResourceNotFound.ScheduledActionNotFound" AsScalingGroupInProgress = "ResourceInUse.ActivityInProgress" AsScalingGroupInstanceInGroup = "ResourceInUse.InstanceInGroup" AsScalingGroupNotFound = "ResourceNotFound.AutoScalingGroupNotFound" SCALING_GROUP_IN_ACTIVITY_STATUS = "IN_ACTIVITY" SCALING_GROUP_NOT_IN_ACTIVITY_STATUS = "NOT_IN_ACTIVITY" )
const ( MultiZoneSubnetPolicyPriority = "PRIORITY" MultiZoneSubnetPolicyEquality = "EQUALITY" )
const ( SCALING_MODE_CLASSIC = "CLASSIC_SCALING" SCALING_MODE_WAKE_UP_STOPPED = "WAKE_UP_STOPPED_SCALING" )
const ( CAM_POLICY_CREATE_STRATEGY_CUSTOM = "User" CAM_POLICY_CREATE_STRATEGY_PRESET = "QCS" CAM_POLICY_CREATE_STRATEGY_NULL = "" )
const ( CBS_STORAGE_TYPE_CLOUD_BASIC = "CLOUD_BASIC" CBS_STORAGE_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM" CBS_STORAGE_TYPE_CLOUD_SSD = "CLOUD_SSD" CBS_STORAGE_USAGE_SYSTEM_DISK = "SYSTEM_DISK" CBS_STORAGE_USAGE_DATA_DISK = "DATA_DISK" CBS_STORAGE_STATUS_UNATTACHED = "UNATTACHED" CBS_STORAGE_STATUS_ATTACHING = "ATTACHING" CBS_STORAGE_STATUS_ATTACHED = "ATTACHED" CBS_STORAGE_STATUS_EXPANDING = "EXPANDING" CBS_STORAGE_STATUS_ROLLBACKING = "ROLLBACKING" CBS_STORAGE_STATUS_TORECYCLE = "TORECYCLE" CBS_SNAPSHOT_STATUS_NORMAL = "NORMAL" CBS_SNAPSHOT_STATUS_CREATING = "CREATING" )
const ( CBS_PREPAID_RENEW_FLAG_NOTIFY_NOTIFY_AND_AUTO_RENEW = "NOTIFY_AND_AUTO_RENEW" CBS_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW = "NOTIFY_AND_MANUAL_RENEW" CBS_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW = "DISABLE_NOTIFY_AND_MANUAL_RENEW" CBS_CHARGE_TYPE_PREPAID = "PREPAID" CBS_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR" )
const ( CDH_CHARGE_TYPE_PREPAID = "PREPAID" CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_AUTO_RENEW = "NOTIFY_AND_AUTO_RENEW" CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW = "NOTIFY_AND_MANUAL_RENEW" CDH_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW = "DISABLE_NOTIFY_AND_MANUAL_RENEW" CDH_HOST_STATE_PENDING = "PENDING" CDH_HOST_STATE_LAUNCH_FAILURE = "LAUNCH_FAILURE" CDH_HOST_RUNNING = "RUNNING" CDH_HOST_EXPIRED = "EXPIRED" CDH_ZONE_SOLD_OUT_FOR_SPECIFIED_INSTANCE_ERROR = "ResourceInsufficient.ZoneSoldOutForSpecifiedInstance" )
const ( CDN_SERVICE_TYPE_WEB = "web" CDN_SERVICE_TYPE_DOWNLOAD = "download" CDN_SERVICE_TYPE_MEDIA = "media" CDN_ORIGIN_TYPE_DOMAIN = "domain" CDN_ORIGIN_TYPE_COS = "cos" CDN_ORIGIN_TYPE_IP = "ip" CDN_ORIGIN_TYPE_IPV6 = "ipv6" CDN_ORIGIN_TYPE_IP_IPV6 = "ip_ipv6" CDN_ORIGIN_PULL_PROTOCOL_HTTP = "http" CDN_ORIGIN_PULL_PROTOCOL_HTTPS = "https" CDN_ORIGIN_PULL_PROTOCOL_FOLLOW = "follow" CDN_AREA_MAINLAND = "mainland" CDN_AREA_OVERSEAS = "overseas" CDN_AREA_GLOBAL = "global" CDN_SWITCH_ON = "on" CDN_SWITCH_OFF = "off" CDN_DOMAIN_STATUS_ONLINE = "online" CDN_DOMAIN_STATUS_OFFLINE = "offline" CDN_DOMAIN_STATUS_PROCESSING = "processing" CDN_SERVICE_NAME = "cdn" CDN_RESOURCE_NAME_DOMAIN = "domain" CDN_HOST_NOT_FOUND = "ResourceNotFound.CdnHostNotExists" CDN_HOST_EXISTS = "ResourceInUse.CdnHostExists" CDN_DOMAIN_CONFIG_ERROR = "FailedOperation.CdnConfigError" CDN_RULE_TYPE_ALL = "all" CDN_RULE_TYPE_FILE = "file" CDN_RULE_TYPE_DIRECTORY = "directory" CDN_RULE_TYPE_PATH = "path" CDN_RULE_TYPE_INDEX = "index" CDN_RULE_TYPE_DEFAULT = "default" CDN_RULE_PATH = "no max-age" )
const ( CFS_PROTOCOL_NFS = "NFS" CFS_PROTOCOL_CIFS = "CIFS" CFS_STORAGETYPE_SD = "SD" CFS_STORAGETYPE_HP = "HP" CFS_FILE_SYSTEM_STATUS_CREATING = "creating" CFS_FILE_SYSTEM_STATUS_SUCCESS = "available" CFS_FILE_SYSTEM_STATUS_FAILED = "create_failed" CFS_RW_PERMISSION_RO = "RO" CFS_RW_PERMISSION_RW = "RW" CFS_USER_PERMISSION_ALL_SQUASH = "all_squash" CFS_USER_PERMISSION_NO_ALL_SQUASH = "no_all_squash" CFS_USER_PERMISSION_ROOT_SQUASH = "root_squash" CFS_USER_PERMISSION_NO_ROOT_SQUASH = "no_root_squash" )
const ( CKAFKA_DESCRIBE_LIMIT = 50 CKAFKA_ACL_PRINCIPAL_STR = "User:" )
const ( CLB_NETWORK_TYPE_OPEN = "OPEN" CLB_NETWORK_TYPE_INTERNAL = "INTERNAL" )
const ( CLB_LISTENER_PROTOCOL_TCP = "TCP" CLB_LISTENER_PROTOCOL_UDP = "UDP" CLB_LISTENER_PROTOCOL_HTTP = "HTTP" CLB_LISTENER_PROTOCOL_HTTPS = "HTTPS" CLB_LISTENER_PROTOCOL_TCPSSL = "TCP_SSL" )
const ( CLB_HTTP_METHOD_GET = "GET" CLB_HTTP_METHOD_HEAD = "HEAD" )
const ( CLB_LISTENER_SCHEDULER_WRR = "WRR" CLB_LISTENER_SCHEDULER_LEASTCONN = "LEAST_CONN" CLB_LISTENER_SCHEDULER_IP_HASH = "IP_HASH" )
const ( HTTP_VERSION_ONE_ZERO = "HTTP/1.0" HTTP_VERSION_ONE_ONE = "HTTP/1.1" )
const ( HEALTH_CHECK_TYPE_CUSTOM = "CUSTOM" HEALTH_CHECK_TYPE_TCP = "TCP" HEALTH_CHECK_TYPE_HTTP = "HTTP" )
const ( CONTEX_TYPE_HEX = "HEX" CONTEX_TYPE_TEXT = "TEXT" )
const ( CERT_SSL_MODE_UNI = "UNIDIRECTIONAL" CERT_SSL_MODE_MUT = "MUTUAL" )
const ( CLB_TASK_SUCCESS = 0 CLB_TASK_FAIL = 1 CLB_TASK_EXPANDING = 2 )
const ( HEALTH_APPLY_TYPE_LISTENER = "listener" HEALTH_APPLY_TYPE_RULE = "rule" )
const ( AUTO_TARGET_PORT = 443 AUTO_SOURCE_PORT = 80 )
const ( CLB_TARGET_TYPE_NODE = "NODE" CLB_TARGET_TYPE_TARGETGROUP = "TARGETGROUP" )
const ( CVM_CHARGE_TYPE_PREPAID = "PREPAID" CVM_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR" CVM_CHARGE_TYPE_SPOTPAID = "SPOTPAID" CVM_CHARGE_TYPE_CDHPAID = "CDHPAID" CVM_INTERNET_CHARGE_TYPE_BANDWIDTH_PREPAID = "BANDWIDTH_PREPAID" CVM_INTERNET_CHARGE_TYPE_BANDWIDTH_POSTPAID = "BANDWIDTH_POSTPAID_BY_HOUR" CVM_INTERNET_CHARGE_TYPE_BANDWIDTH_PACKAGE = "BANDWIDTH_PACKAGE" CVM_INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID = "TRAFFIC_POSTPAID_BY_HOUR" CVM_STATUS_RUNNING = "RUNNING" CVM_STATUS_STOPPED = "STOPPED" CVM_STATUS_SHUTDOWN = "SHUTDOWN" CVM_STATUS_TERMINATING = "TERMINATING" CVM_STATUS_LAUNCH_FAILED = "LAUNCH_FAILED" CVM_LATEST_OPERATION_STATE_OPERATING = "OPERATING" CVM_LATEST_OPERATION_STATE_SUCCESS = "SUCCESS" CVM_LATEST_OPERATION_STATE_FAILED = "FAILED" CVM_PREPAID_RENEW_FLAG_NOTIFY_NOTIFY_AND_AUTO_RENEW = "NOTIFY_AND_AUTO_RENEW" CVM_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW = "NOTIFY_AND_MANUAL_RENEW" CVM_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW = "DISABLE_NOTIFY_AND_MANUAL_RENEW" CVM_DISK_TYPE_LOCAL_BASIC = "LOCAL_BASIC" CVM_DISK_TYPE_LOCAL_SSD = "LOCAL_SSD" CVM_DISK_TYPE_CLOUD_BASIC = "CLOUD_BASIC" CVM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD" CVM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM" CVM_DISK_TYPE_CLOUD_BSSD = "CLOUD_BSSD" CVM_PLACEMENT_GROUP_TYPE_HOST = "HOST" CVM_PLACEMENT_GROUP_TYPE_SW = "SW" CVM_PLACEMENT_GROUP_TYPE_RACK = "RACK" ZONE_STATE_AVAILABLE = "AVAILABLE" ZONE_STATE_UNAVAILABLE = "UNAVAILABLE" CVM_NOT_FOUND_ERROR = "InvalidInstanceId.NotFound" KEY_PAIR_NOT_SUPPORT_ERROR = "InvalidParameterValue.KeyPairNotSupported" KYE_PAIR_INVALID_ERROR = "InvalidKeyPair" CVM_SPOT_INSTANCE_TYPE_ONE_TIME = "ONE-TIME" CVM_MARKET_TYPE_SPOT = "spot" CVM_IMAGE_LOGIN = "TRUE" CVM_IMAGE_LOGIN_NOT = "FALSE" // @Deprecated use cvm.INVALIDPARAMETERVALUE_ZONENOTSUPPORTED CVM_ZONE_NOT_SUPPORT_ERROR = "InvalidParameterValue.ZoneNotSupported" // @Deprecated use cvm.RESOURCEINSUFFICIENT_CLOUDDISKSOLDOUT instead CVM_CLOUD_DISK_SOLD_OUT_ERROR = "ResourceInsufficient.CloudDiskSoldOut" CVM_STOP_MODE_KEEP_CHARGING = "KEEP_CHARGING" CVM_STOP_MODE_STOP_CHARGING = "STOP_CHARGING" CVM_SELL_STATUS = "SELL" CVM_SOLD_OUT_STATUS = "SOLD_OUT" MIDLINE = "-" UNDERLINE = "_" )
const ( CYNOSDB_CHARGE_TYPE_POSTPAID = COMMON_PAYTYPE_POSTPAID CYNOSDB_CHARGE_TYPE_PREPAID = COMMON_PAYTYPE_PREPAID CYNOSDB_STATUS_RUNNING = "running" CYNOSDB_STATUS_OFFLINE = "offlined" CYNOSDB_STATUS_ISOLATED = "isolated" CYNOSDB_STATUS_DELETED = "deleted" CYNOSDB_UPGRADE_IMMEDIATE = "upgradeImmediate" CYNOSDB_INSTANCE_RW_TYPE = "rw" CYNOSDB_INSTANCE_RO_TYPE = "ro" CYNOSDB_DEFAULT_OFFSET = 0 CYNOSDB_MAX_LIMIT = 100 CYNOSDB_INSGRP_HA = "ha" CYNOSDB_INSGRP_RO = "ro" )
const ( DAYU_RESOURCE_TYPE_BGPIP = "bgpip" DAYU_RESOURCE_TYPE_BGP = "bgp" DAYU_RESOURCE_TYPE_BGPMUL = "bgp-multip" DAYU_RESOURCE_TYPE_NET = "net" )
const ( DAYU_APP_PLATFORM_PC = "PC" DAYU_APP_PLATFORM_MOBILE = "MOBILE" DAYU_APP_PLATFORM_TV = "TV" DAYU_APP_PLATFORM_SERVER = "SERVER" )
const ( DAYU_PROTOCOL_TCP = "tcp" DAYU_PROTOCOL_UDP = "udp" DAYU_PROTOCOL_ICMP = "icmp" DAYU_PROTOCOL_ALL = "all" )
const ( DAYU_MATCH_TYPE_SUNDAY = "sunday" DAYU_MATCH_TYPE_PCRE = "pcre" )
const ( DAYU_MATCH_SWITCH_ON_L5 = "begin_l5" DAYU_MATCH_SWITCH_OFF = "no_match" )
const ( DAYU_IP_TYPE_BLACK = "black" DAYU_IP_TYPE_WHITE = "white" )
const ( DAYU_PACKET_ACTION_DROP = "drop" DAYU_PACKET_ACTION_TRANSMIT = "transmit" DAYU_PACKET_PROTOCOL_DROP_BLACK = "drop_black" DAYU_PACKET_PROTOCOL_DROP_RST = "drop_rst" DAYU_PACKET_PROTOCOL_DROP_BLACK_RST = "drop_black_rst" )
const ( DAYU_PORT_ACTION_DROP = "drop" DAYU_PORT_ACTION_TRANSMIT = "transmit" )
const ( DAYU_APP_TYPE_WEB = "WEB" DAYU_APP_TYPE_GAME = "GAME" DAYU_APP_TYPE_APP = "APP" DAYU_APP_TYPE_OTHER = "OTHER" )
const ( DAYU_BOOL_FLAG_TRUE = "yes" DAYU_BOOL_FLAG_FALSE = "no" )
const ( DAYU_L7_RULE_PROTOCOL_HTTP = "http" DAYU_L7_RULE_PROTOCOL_HTTPS = "https" )
const ( DAYU_RULE_METHOD_GET = "GET" DAYU_RULE_METHOD_HEAD = "HEAD" )
const ( DAYU_L7_RULE_SOURCE_TYPE_HOST = 1 DAYU_L7_RULE_SOURCE_TYPE_IP = 2 )
const ( DAYU_L7_HTTPS_SWITCH_ON_DEFAULT = 20000 DAYU_L7_HTTPS_SWITCH_OFF = 0 )
const ( DAYU_CC_POLICY_ACTION_DROP = "drop" DAYU_CC_POLICY_ACTION_ALG = "alg" )
const ( DAYU_CC_POLICY_SMODE_MATCH = "matching" DAYU_CC_POLICY_SMODE_SPEED_LIMIT = "speedlimit" )
const ( DAYU_CC_POLICY_CHECK_TYPE_HOST = "host" DAYU_CC_POLICY_CHECK_TYPE_CGI = "cgi" DAYU_CC_POLICY_CHECK_TYPE_UA = "ua" DAYU_CC_POLICY_CHECK_TYPE_REFERER = "referer" )
const ( DAYU_CC_POLICY_CHECK_OP_INCLUDE = "include" DAYU_CC_POLICY_CHECK_OP_NOT_INCLUDE = "not_include" DAYU_CC_POLICY_CHECK_OP_EQUAL = "equal" )
const ( DAYU_L4_RULE_PROTOCOL_TCP = "TCP" DAYU_L4_RULE_PROTOCOL_UDP = "UDP" )
const ( DAYU_L7_STATUS_SET_DONE = 0 DAYU_L7_STATUS_SETTING = 1 DAYU_L7_STATUS_SET_FAIL = 2 DAYU_L7_STATUS_DEL_DONE = 3 DAYU_L7_STATUS_DEL_FAIL = 5 DAYU_L7_STATUS_SET_WAIT = 6 DAYU_L7_STATUS_DEL_WAIT = 7 DAYU_L7_STATUS_SSL_WAIT = 8 )
const ( DAYU_L7_HEALTH_STATUS_SET_DONE = 0 DAYU_L7_HEALTH_STATUS_SETTING = 1 DAYU_L7_HEALTH_STATUS_SET_FAIL = 2 )
const ( DC_NETWORK_TYPE_VPC = "VPC" DC_NETWORK_TYPE_BMVPC = "BMVPC" DC_NETWORK_TYPE_CCN = "CCN" )
const ( DC_ROUTE_TYPE_BGP = "BGP" DC_ROUTE_TYPE_STATIC = "STATIC" )
const ( DCG_NETWORK_TYPE_VPC = "VPC" DCG_NETWORK_TYPE_CCN = "CCN" )
https://cloud.tencent.com/document/product/215/19192
const ( DCG_GATEWAY_TYPE_NORMAL = "NORMAL" DCG_GATEWAY_TYPE_NAT = "NAT" )
const ( DCG_CCN_ROUTE_TYPE_BGP = "BGP" DCG_CCN_ROUTE_TYPE_STATIC = "STATIC" )
https://cloud.tencent.com/document/product/215/30643
const ( DDOS_EIP_BIND_STATUS_BINDING = "BINDING" DDOS_EIP_BIND_STATUS_BIND = "BIND" DDOS_EIP_BIND_STATUS_UNBINDING = "UNBINDING" DDOS_EIP_BIND_STATUS_UNBIND = "UNBIND" )
const ( DDOS_EIP_BIND_RESOURCE_TYPE_CVM = "cvm" DDOS_EIP_BIND_RESOURCE_TYPE_CLB = "clb" )
const ( DDOS_BLACK_WHITE_IP_TYPE_BLACK = "black" DDOS_BLACK_WHITE_IP_TYPE_WHITE = "white" )
const ( DNSPOD_DOMAIN_MARK_YES = "yes" DNSPOD_DOMAIN_MARK_NO = "no" )
const ( DNSPOD_DOMAIN_STATUS_ENABLE = "enable" DNSPOD_DOMAIN_STATUS_DISABLE = "disable" )
const ( ES_CHARGE_TYPE_PREPAID = "PREPAID" ES_CHARGE_TYPE_POSTPAID_BY_HOUR = "POSTPAID_BY_HOUR" ES_DEPLOY_MODE_SINGLE_REGION = 0 ES_DEPLOY_MODE_MULTI_REGION = 1 ES_LICENSE_TYPE_OSS = "oss" ES_LICENSE_TYPE_BASIC = "basic" ES_LICENSE_TYPE_PLATINUM = "platinum" ES_BASIC_SECURITY_TYPE_ON = 2 ES_BASIC_SECURITY_TYPE_OFF = 1 ES_NODE_TYPE_HOT_DATA = "hotData" ES_NODE_TYPE_WARM_DATA = "warmData" ES_NODE_TYPE_DEDICATED_MATER = "dedicatedMaster" ES_RENEW_FLAG_AUTO = "RENEW_FLAG_AUTO" ES_RENEW_FLAG_MANUAL = "RENEW_FLAG_MANUAL" ES_INSTANCE_STATUS_PROCESSING = 0 ES_INSTANCE_STATUS_NORMAL = 1 ES_INSTANCE_STATUS_CREATING = 2 ES_INSTANCE_STATUS_STOP = -1 ES_INSTANCE_STATUS_DESTROYING = -2 ES_INSTANCE_STATUS_DESTROYED = -3 )
const ( EmrInternetStatusCreated int64 = 2 EmrInternetStatusDeleted int64 = 201 )
const ( EMR_MASTER_WAN_TYPE_NEED_MASTER_WAN = "NEED_MASTER_WAN" EMR_MASTER_WAN_TYPE_NOT_NEED_MASTER_WAN = "NOT_NEED_MASTER_WAN" )
const ( // all gaap proxy status https://cloud.tencent.com/document/api/608/37023#ProxyInfo GAAP_PROXY_CREATING = "CREATING" GAAP_PROXY_RUNNING = "RUNNING" GAAP_PROXY_DESTROYING = "DESTROYING" GAAP_PROXY_OPENING = "OPENING" GAAP_PROXY_CLOSING = "CLOSING" GAAP_PROXY_CLOSED = "CLOSED" GAAP_PROXY_ADJUSTING = "ADJUSTING" GAAP_PROXY_ISOLATING = "ISOLATING" GAAP_PROXY_ISOLATED = "ISOLATED" GAAP_PROXY_UNKNOWN = "UNKNOWN" GAAP_LISTENER_RUNNING = 0 GAAP_LISTENER_CREATING = 1 GAAP_LISTENER_DESTROYING = 2 GAAP_LISTENER_REALSERVER_ADJUSTING = 3 GAAP_LISTENER_ADJUSTING = 4 GAAP_SECURITY_POLICY_BOUND = "BOUND" GAAP_SECURITY_POLICY_UNBIND = "UNBIND" GAAP_SECURITY_POLICY_BINDING = "BINDING" GAAP_SECURITY_POLICY_UNBINDING = "UNBINDING" GAAP_HTTP_RULE_RUNNING = 0 GAAP_HTTP_RULE_CREATING = 1 GAAP_HTTP_RULE_DESTROYING = 2 GAAP_HTTP_RULE_BINDING_OR_UNBINDING = 3 GAAP_HTTP_RULE_ADJUSTING = 4 GAAPInternalError = "InternalError" GAAPResourceNotFound = "ResourceNotFound" GAAP_SERVER_NAME_INDICATION_SWITCH_ON = "ON" GAAP_SERVER_NAME_INDICATION_SWITCH_OFF = "OFF" )
const ( TRUE = "true" FALSE = "false" )
const ( KMS_ORIGIN_TENCENT_KMS = "TENCENT_KMS" KMS_ORIGIN_EXTERNAL = "EXTERNAL" KMS_ORIGIN_ALL = "ALL" )
const ( KMS_KEY_USAGE_ALL = "ALL" KMS_KEY_USAGE_ENCRYPT_DECRYPT = "ENCRYPT_DECRYPT" KMS_KEY_USAGE_ASYMMETRIC_DECRYPT_RSA_2048 = "ASYMMETRIC_DECRYPT_RSA_2048" KMS_KEY_USAGE_ASYMMETRIC_DECRYPT_SM2 = "ASYMMETRIC_DECRYPT_SM2" KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_SM2 = "ASYMMETRIC_SIGN_VERIFY_SM2" KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_RSA_2048 = "ASYMMETRIC_SIGN_VERIFY_RSA_2048" KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_ECC = "ASYMMETRIC_SIGN_VERIFY_ECC" )
const ( KMS_WRAPPING_ALGORITHM_RSAES_PKCS1_V1_5 = "RSAES_PKCS1_V1_5" KMS_WRAPPING_ALGORITHM_RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1" KMS_WRAPPING_ALGORITHM_RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256" )
const ( KMS_KEY_STATE_ALL = "All" KMS_KEY_STATE_ENABLED = "Enabled" KMS_KEY_STATE_DISABLED = "Disabled" KMS_KEY_STATE_PENDINGDELETE = "PendingDelete" KMS_KEY_STATE_PENDINGIMPORT = "PendingImport" KMS_KEY_STATE_ARCHIVED = "Archived" )
const ( MONGODB_INSTANCE_STATUS_INITIAL = 0 MONGODB_INSTANCE_STATUS_PROCESSING = 1 MONGODB_INSTANCE_STATUS_RUNNING = 2 MONGODB_INSTANCE_STATUS_EXPIRED = -2 MONGODB_ENGINE_VERSION_3_WT = "MONGO_3_WT" MONGODB_ENGINE_VERSION_36_WT = "MONGO_36_WT" MONGODB_ENGINE_VERSION_3_ROCKS = "MONGO_3_ROCKS" MONGODB_ENGINE_VERSION_4_WT = "MONGO_40_WT" MONGODB_MACHINE_TYPE_GIO = "GIO" MONGODB_MACHINE_TYPE_TGIO = "TGIO" MONGODB_MACHINE_TYPE_HIO = "HIO" MONGODB_MACHINE_TYPE_HIO10G = "HIO10G" MONGODB_CLUSTER_TYPE_REPLSET = "REPLSET" MONGODB_CLUSTER_TYPE_SHARD = "SHARD" MONGO_INSTANCE_TYPE_FORMAL = 1 MONGO_INSTANCE_TYPE_READONLY = 3 MONGO_INSTANCE_TYPE_STANDBY = 4 )
const ( MONGODB_DEFAULT_LIMIT = 20 MONGODB_MAX_LIMIT = 100 MONGODB_DEFAULT_OFFSET = 0 )
const ( MONGODB_CHARGE_TYPE_POSTPAID = COMMON_PAYTYPE_POSTPAID MONGODB_CHARGE_TYPE_PREPAID = COMMON_PAYTYPE_PREPAID )
const ( MONGODB_TASK_FAILED = "failed" MONGODB_TASK_PAUSED = "paused" MONGODB_TASK_RUNNING = "running" MONGODB_TASK_SUCCESS = "success" )
const ( ZONE_SELL_STATUS_ONLINE = 1 ZONE_SELL_STATUS_NEW = 2 )
const ( MYSQL_STATUS_DELIVING = 0 MYSQL_STATUS_RUNNING = 1 MYSQL_STATUS_ISOLATING = 4 MYSQL_STATUS_ISOLATED = 5 //https://cloud.tencent.com/document/api/236/36197 //Internal business state , not public MYSQL_STATUS_ISOLATED_1 = 6 MYSQL_STATUS_ISOLATED_2 = 7 )
mysql Status https://cloud.tencent.com/document/api/236/15872
const ( MYSQL_TASK_STATUS_INITIAL = "INITIAL" MYSQL_TASK_STATUS_RUNNING = "RUNNING" MYSQL_TASK_STATUS_SUCCESS = "SUCCESS" MYSQL_TASK_STATUS_FAILED = "FAILED" MYSQL_TASK_STATUS_REMOVED = "REMOVED" MYSQL_TASK_STATUS_PAUSED = "PAUSED " )
Async task status, from https://cloud.tencent.com/document/api/236/20410
const ( MYSQL_RENEW_NOUSE = 0 MYSQL_RENEW_OPEN = 1 MYSQL_RENEW_CLOSE = 2 )
automatic renewal status code
const ( MYSQL_CHARGE_TYPE_PREPAID = "PREPAID" MYSQL_CHARGE_TYPE_POSTPAID = "POSTPAID" )
const ( MysqlInstanceIdNotFound = "InvalidParameter.InstanceNotFound" MysqlInstanceIdNotFound2 = "InvalidParameter" MysqlInstanceIdNotFound3 = "InternalError.DatabaseAccessError" )
const ( POSTGRESQL_PAYTYPE_PREPAID = "prepaid" POSTGRESQL_PAYTYPE_POSTPAID = "postpaid" )
const ( COMMON_PAYTYPE_PREPAID = "PREPAID" COMMON_PAYTYPE_POSTPAID = "POSTPAID_BY_HOUR" )
const ( POSTGRESQL_DB_VERSION_9_3_5 = "9.3.5" POSTGRESQL_DB_VERSION_9_5_4 = "9.5.4" POSTGRESQL_DB_VERSION_10_4 = "10.4" )
const ( POSTGRESQL_DB_CHARSET_UTF8 = "UTF8" POSTGRESQL_DB_CHARSET_LATIN1 = "LATIN1" )
const ( DNS_FORWARD_STATUS_ENABLE = "ENABLED" DNS_FORWARD_STATUS_DISABLED = "DISABLED" )
const ( REDIS_VERSION_MASTER_SLAVE_REDIS = 2 REDIS_VERSION_MASTER_SLAVE_CKV = 3 REDIS_VERSION_CLUSTER_CKV = 4 REDIS_VERSION_STANDALONE_REDIS = 5 REDIS_VERSION_MASTER_SLAVE_REDIS4 = 6 REDIS_VERSION_CLUSTER_REDIS = 7 REDIS_VERSION_MASTER_SLAVE_REDIS5 = 8 REDIS_VERSION_CLUSTER_REDIS5 = 9 )
redis version https://cloud.tencent.com/document/api/239/20022#ProductConf
const ( REDIS_STATUS_INIT = 0 REDIS_STATUS_PROCESSING = 1 REDIS_STATUS_ONLINE = 2 REDIS_STATUS_ISOLATE = -2 REDIS_STATUS_TODELETE = -3 )
redis status https://cloud.tencent.com/document/product/239/20018
const ( REDIS_ORDER_SUCCESS_DELIVERY = 4 REDIS_ORDER_PAYMENT = 12 )
https://cloud.tencent.com/document/api/239/20022#TradeDealDetail Order status 1: unpaid 2: paid, not shipped 3: in shipment 4: successfully 5: shipped failed 6: refunded 7: closed order 8: expired 9: order no longer valid 10: product no longer valid 11: payment refused 12: in payment
const ( REDIS_TASK_PREPARING = "preparing" REDIS_TASK_RUNNING = "running" REDIS_TASK_SUCCEED = "succeed" REDIS_TASK_FAILED = "failed" REDIS_TASK_ERROR = "error" )
https://cloud.tencent.com/document/api/239/30601
const ( REDIS_CHARGE_TYPE_POSTPAID = "POSTPAID" REDIS_CHARGE_TYPE_PREPAID = "PREPAID" )
const ( SCF_FUNCTION_TYPE_EVENT = "Event" SCF_FUNCTION_STATUS_ACTIVE = "Active" SCF_FUNCTION_STATUS_CREATING = "Creating" SCF_FUNCTION_STATUS_CREATE_FAILED = "CreateFailed" SCF_FUNCTION_STATUS_UPDATING = "Updating" SCF_FUNCTION_STATUS_UPDATE_FAILED = "UpdateFailed" SCF_FUNCTION_STATUS_PUBLISH_FAILED = "PublishFailed" SCF_SERVICE = "scf" SCF_FUNCTION_RESOURCE = "lam" SCF_TRIGGER_TYPE_COS = "cos" SCF_TRIGGER_TYPE_CMQ = "cmq" SCF_TRIGGER_TYPE_TIMER = "timer" SCF_TRIGGER_TYPE_CKAFKA = "ckafka" SCF_TRIGGER_TYPE_API_GATEWAY = "apigw" SCF_LOGS_ORDER_BY_FUNCTION_NAME = "function_name" SCF_LOGS_ORDER_BY_DERATION = "duration" SCF_LOGS_ORDER_BY_MEM_USAGE = "mem_usage" SCF_LOGS_ORDER_BY_START_TIME = "start_time" SCF_LOGS_RET_CODE_NOT0 = "not0" SCF_LOGS_RET_CODE_IS0 = "is0" SCF_LOGS_RET_CODE_TIME_LIMIT_EXECEEDED = "TimeLimitExceeded" SCF_LOGS_RET_CODE_RESOURCE_LIMIT_EXECEEDED = "ResourceLimitExceeded" SCF_LOGS_RET_CODE_USER_CODE_EXCEPTION = "UserCodeException" SCF_LOGS_DESCRIBE_TIME_FORMAT = "2006-01-02 15:04:05" SCF_LOGS_ORDER_DESC = "desc" SCF_LOGS_ORDER_ASC = "asc" SCF_FUNCTION_DESCRIBE_LIMIT = 20 SCF_NAMESPACE_DESCRIBE_LIMIT = 20 )
const ( SQLSERVER_CHARGE_TYPE_PREPAID = "PREPAID" SQLSERVER_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR" )
const ( SQLSERVER_TASK_SUCCESS = 0 SQLSERVER_TASK_FAIL = 1 SQLSERVER_TASK_RUNNING = 2 )
const ( SQLSERVER_ACCOUNT_RW = "ReadWrite" SQLSERVER_ACCOUNT_RO = "ReadOnly" )
const ( SQLSERVER_DEFAULT_LIMIT = 20 SQLSERVER_DEFAULT_OFFSET = 0 )
const ( SQLSERVER_DB_CREATING = 1 SQLSERVER_DB_RUNNING = 2 SQLSERVER_DB_MODIFYING = 3 SQLSERVER_DB_DELETING = -1 SQLSERVER_DB_UPGRADING = 9 SQLSERVER_DB_SWITCH_PENDING = 13 // 实例修改中且待切换 SQLSERVER_DB_PUBSUB_CREATING = 14 // 订阅发布创建中 SQLSERVER_DB_PUBSUB_MODIFYING = 15 // 订阅发布修改中 SQLSERVER_DB_SWITCHING = 16 // 实例修改中且切换中 SQLSERVER_DB_RO_CREATING = 17 // 创建RO副本中 )
const ( SQLSERVER_HA_FLAG_SINGLE = "SINGLE" SQLSERVER_HA_FLAG_DAUL = "MIRROR" SQLSERVER_HA_FLAG_CLUSTER = "ALWAYSON" )
const ( BASIC_NETWORK = 0 VPC_NEWORK = 1 )
const ( INTERNALERROR_DBERROR = "InternalError.DBError" INSTANCE_STATUS_INVALID = "ResourceUnavailable.InstanceStatusInvalid" )
const ( CLOUD_PREMIUM = "CLOUD_PREMIUM" CLOUD_SSD = "CLOUD_SSD" )
const ( SSL_MODULE_TYPE = "ssl" SSL_WITH_CERT = "1" SSL_STATUS_AVAILABLE = 1 )
const ( SSL_CERT_TYPE_SERVER = "SVR" SSL_CERT_TYPE_CA = "CA" )
const ( CsrTypeOnline = "online" CsrTypeParse = "parse" )
const ( DNSAuto = "DNS_AUTO" DNS = "DNS" File = "FILE" )
const ( InvalidParam = "FailedOperation.InvalidParam" CertificateNotFound = "FailedOperation.CertificateNotFound" InvalidParameter = "InvalidParameter" InvalidParameterValue = "InvalidParameterValue" CertificateInvalid = "FailedOperation.CertificateInvalid" )
const ( SSM_STATUS_ENABLED = "Enabled" SSM_STATUS_DISABLED = "Disabled" SSM_STATUS_PENDINGDELETE = "PendingDelete" )
const ( TCAPLUS_IDL_TYPE_PROTO = "PROTO" TCAPLUS_IDL_TYPE_TDR = "TDR" TCAPLUS_IDL_TYPE_MIX = "MIX" )
const ( TCAPLUS_FILE_EXT_TYPE_PROTO = "proto" TCAPLUS_FILE_EXT_TYPE_XML = "xml" )
const ( TCAPLUS_TABLE_IDL_TYPE_PROTO = "PROTO" TCAPLUS_TABLE_IDL_TYPE_TDR = "TDR" )
const ( TCAPLUS_TABLE_TYPE_GENERIC = "GENERIC" TCAPLUS_TABLE_TYPE__LIST = "LIST" )
const ( TCR_VPC_DNS_STATUS_ENABLED = "ENABLED" TCR_VPC_DNS_STATUS_DISABLED = "DISABLED" )
const ( TKE_CLUSTER_OS_CENTOS72 = "centos7.2x86_64" TKE_CLUSTER_OS_CENTOS76 = "centos7.6.0_x64" TKE_CLUSTER_OS_UBUNTU18 = "ubuntu18.04.1x86_64" TKE_CLUSTER_OS_LINUX24 = "tlinux2.4x86_64" TKE_CLUSTER_OS_LINUX22 = "tlinux2.2(tkernel3)x86_64" TKE_CLUSTER_OS_LINUXF22 = "Tencent tlinux release 2.2 (Final)" )
const ( TkeClusterOsCentOS76 = "centos7.6x86_64" //TkeClusterOsUbuntu16 = "ubuntu16.04.1 LTSx86_64" TkeClusterOsUbuntu18 = "ubuntu18.04.1 LTSx86_64" )
兼容旧的 cluster_os 定义
const ( TKE_DEPLOY_TYPE_MANAGED = "MANAGED_CLUSTER" TKE_DEPLOY_TYPE_INDEPENDENT = "INDEPENDENT_CLUSTER" )
const ( TKE_RUNTIME_DOCKER = "docker" TKE_RUNTIME_CONTAINERD = "containerd" )
const ( TKE_ROLE_MASTER_ETCD = "MASTER_ETCD" TKE_ROLE_WORKER = "WORKER" )
const ( TKE_CLUSTER_OS_TYPE_DOCKER_CUSTOMIZE = "DOCKER_CUSTOMIZE" TKE_CLUSTER_OS_TYPE_GENERAL = "GENERAL" )
const ( TkeInternetStatusCreating = "Creating" TkeInternetStatusCreateFailed = "CreateFailed" TkeInternetStatusCreated = "Created" TkeInternetStatusDeleting = "Deleting" TkeInternetStatusDeleted = "Deleted" TkeInternetStatusDeletedFailed = "DeletedFailed" TkeInternetStatusNotfound = "NotFound" )
const ( TKE_CLUSTER_NETWORK_TYPE_GR = "GR" TKE_CLUSTER_NETWORK_TYPE_VPC_CNI = "VPC-CNI" )
const ( TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP = "lan-ip" TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME = "hostname" )
const ( VOD_AUDIO_CHANNEL_MONO = "mono" VOD_AUDIO_CHANNEL_DUAL = "dual" VOD_AUDIO_CHANNEL_STEREO = "stereo" VOD_SUB_APPLICATION_RUNNING = "On" VOD_SUB_APPLICATION_STOPPED = "Off" VOD_SUB_APPLICATION_DESTROY = "Destroyed" VOD_DEFAULT_OFFSET = 0 VOD_MAX_LIMIT = 100 )
const ( EIP_STATUS_CREATING = "CREATING" EIP_STATUS_BINDING = "BINDING" EIP_STATUS_BIND = "BIND" EIP_STATUS_UNBINDING = "UNBINDING" EIP_STATUS_UNBIND = "UNBIND" EIP_STATUS_OFFLINING = "OFFLINING" EIP_STATUS_BIND_ENI = "BIND_ENI" EIP_TYPE_EIP = "EIP" EIP_TYPE_ANYCAST = "AnycastEIP" EIP_TYPE_HIGH_QUALITY = "HighQualityEIP" EIP_ANYCAST_ZONE_GLOBAL = "ANYCAST_ZONE_GLOBAL" EIP_ANYCAST_ZONE_OVERSEAS = "ANYCAST_ZONE_OVERSEAS" EIP_INTERNET_PROVIDER_BGP = "BGP" EIP_INTERNET_PROVIDER_CMCC = "CMCC" EIP_INTERNET_PROVIDER_CTCC = "CTCC" EIP_INTERNET_PROVIDER_CUCC = "CUCC" EIP_RESOURCE_TYPE = "eip" EIP_TASK_STATUS_SUCCESS = "SUCCESS" EIP_TASK_STATUS_RUNNING = "RUNNING" EIP_TASK_STATUS_FAILED = "FAILED" )
EIP
const ( ENI_STATE_PENDING = "PENDING" ENI_STATE_AVAILABLE = "AVAILABLE" ENI_STATE_ATTACHING = "ATTACHING" ENI_STATE_DETACHING = "DETACHING" ENI_STATE_DELETING = "DELETING" )
const ( ENI_IP_PENDING = "PENDING" ENI_IP_AVAILABLE = "AVAILABLE" ENI_IP_ATTACHING = "ATTACHING" ENI_IP_DETACHING = "DETACHING" ENI_IP_DELETING = "DELETING" )
const ( NAT_DESCRIBE_LIMIT = 100 NAT_EIP_MAX_LIMIT = 10 )
const ( NAT_GATEWAY_TYPE_SUBNET = "SUBNET" NAT_GATEWAY_TYPE_NETWORK_INTERFACE = "NETWORKINTERFACE" )
const ( VPN_TASK_STATUS_SUCCESS = "SUCCESS" VPN_TASK_STATUS_RUNNING = "RUNNING" VPN_TASK_STATUS_FAILED = "FAILED" )
const ( VPN_STATE_PENDING = "PENDING" VPN_STATE_DELETING = "DELETING" VPN_STATE_AVAILABLE = "AVAILABLE" )
const ( VPN_PERIOD_PREPAID_RENEW_FLAG_AUTO_NOTIFY = "NOTIFY_AND_AUTO_RENEW" VPN_PERIOD_PREPAID_RENEW_FLAG_NOT = "NOTIFY_AND_MANUAL_RENEW" )
const ( VPN_CHARGE_TYPE_PREPAID = "PREPAID" VPN_CHARGE_TYPE_POSTPAID_BY_HOUR = "POSTPAID_BY_HOUR" )
const ( VPN_RESTRICT_STATE_NORMAL = "NORMAL" VPN_RESTRICT_STATE_ISOLATE = "PRETECIVELY_ISOLATED" )
const ( VPN_IKE_PROPO_ENCRY_ALGORITHM_3DESCBC = "3DES-CBC" VPN_IKE_PROPO_ENCRY_ALGORITHM_AESCBC128 = "AES-CBC-128" VPN_IKE_PROPO_ENCRY_ALGORITHM_AESCBC192 = "AES-CBS-192`" VPN_IKE_PROPO_ENCRY_ALGORITHM_AESCBC256 = "AES-CBC-256" VPN_IKE_PROPO_ENCRY_ALGORITHM_DESCBC = "DES-CBC" )
const ( VPN_IKE_PROPO_AUTHEN_ALGORITHM_SHA = "SHA" VPN_IKE_PROPO_AUTHEN_ALGORITHM_MD5 = "MD5" VPN_IKE_PROPO_AUTHEN_ALGORITHM_SHA256 = "SHA-256" )
const ( VPN_IPSEC_INTEGRITY_ALGORITHM_SHA1 = "SHA1" VPN_IPSEC_INTEGRITY_ALGORITHM_MD5 = "MD5" VPN_IPSEC_INTEGRITY_ALGORITHM_SHA256 = "SHA-256" )
const ( VPN_IKE_EXCHANGE_MODE_AGGRESSIVE = "AGGRESSIVE" VPN_IKE_EXCHANGE_MODE_MAIN = "MAIN" )
const ( VPN_IKE_IDENTITY_ADDRESS = "ADDRESS" VPN_IKE_IDENTITY_FQDN = "FQDN" )
const ( VPN_IKE_DH_GROUP_NAME_GROUP1 = "GROUP1" VPN_IKE_DH_GROUP_NAME_GROUP2 = "GROUP2" VPN_IKE_DH_GROUP_NAME_GROUP5 = "GROUP5" VPN_IKE_DH_GROUP_NAME_GROUP14 = "GROUP14" VPN_IKE_DH_GROUP_NAME_GROUP24 = "GROUP24" )
const ( VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP1 = "DH-GROUP1" VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP2 = "DH-GROUP2" VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP5 = "DH-GROUP5" VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP14 = "DH-GROUP14" VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP24 = "DH-GROUP24" VPN_IPSEC_PFS_DH_GROUP_NAME_NULL = "NULL" )
const ( VPN_IPSEC_ENCRY_ALGORITHM_3DESCBC = "3DES-CBC" VPN_IPSEC_ENCRY_ALGORITHM_AESCBC128 = "AES-CBC-128" VPN_IPSEC_ENCRY_ALGORITHM_AESCBC192 = "AES-CBS-192`" VPN_IPSEC_ENCRY_ALGORITHM_AESCBC256 = "AES-CBC-256" VPN_IPSEC_ENCRY_ALGORITHM_DESCBC = "DES-CBC" VPN_IPSEC_ENCRY_ALGORITHM_NULL = "NULL" )
const ( VPCNotFound = "ResourceNotFound" VPCUnsupportedOperation = "UnsupportedOperation" )
COMMON
const ( DPD_ACTION_CLEAR = "clear" DPD_ACTION_RESTART = "restart" )
const ( PROVIDER_SECRET_ID = "TENCENTCLOUD_SECRET_ID" PROVIDER_SECRET_KEY = "TENCENTCLOUD_SECRET_KEY" PROVIDER_SECURITY_TOKEN = "TENCENTCLOUD_SECURITY_TOKEN" PROVIDER_REGION = "TENCENTCLOUD_REGION" PROVIDER_PROTOCOL = "TENCENTCLOUD_PROTOCOL" PROVIDER_DOMAIN = "TENCENTCLOUD_DOMAIN" PROVIDER_ASSUME_ROLE_ARN = "TENCENTCLOUD_ASSUME_ROLE_ARN" PROVIDER_ASSUME_ROLE_SESSION_NAME = "TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME" PROVIDER_ASSUME_ROLE_SESSION_DURATION = "TENCENTCLOUD_ASSUME_ROLE_SESSION_DURATION" )
const ( CERT_ENABLED = "Enabled" CERT_DISABLED = "Disabled" )
const (
CLB_PAGE_LIMIT = 100
)
const CNN_INSTANCE_TYPE_BMVPC = "BMVPC"
const CNN_INSTANCE_TYPE_DIRECTCONNECT = "DIRECTCONNECT"
const CNN_INSTANCE_TYPE_VPC = "VPC"
const CNN_INSTANCE_TYPE_VPNGW = "VPNGW"
const CNN_QOS_AG = "AG"
const CNN_QOS_AU = "AU"
const CNN_QOS_PT = "PT"
const CfsInvalidPgroup = "InvalidParameterValue.InvalidPgroup"
const CkafkaFailedOperation = "FailedOperation"
const CkafkaInstanceNotFound = "InvalidParameterValue.InstanceNotExist"
sdk ckafka not found error
const DESCRIBE_SECURITY_GROUP_LIMIT = 50
const DESCRIBE_TAGS_LIMIT = 20
const (
DefaultAuthenticationOptionsIssuer = "https://kubernetes.default.svc.cluster.local"
)
const (
DefaultDesiredPodNum = 0
)
const (
DisplayStrategyIsclusterList = "clusterList"
)
const (
ENI_DESCRIBE_LIMIT = 100
)
ENI
const FILED_SP = "#"
const (
FORWARD_TYPE_HTTP = "HTTP"
)
const GATE_WAY_TYPE_CCN = "CCN"
const GATE_WAY_TYPE_CVM = "CVM"
all gate way types https://cloud.tencent.com/document/api/215/15824#Route
const GATE_WAY_TYPE_DIRECTCONNECT = "DIRECTCONNECT"
const GATE_WAY_TYPE_EIP = "EIP"
const GATE_WAY_TYPE_NAT = "NAT"
const GATE_WAY_TYPE_NORMAL_CVM = "NORMAL_CVM"
const GATE_WAY_TYPE_PEERCONNECTION = "PEERCONNECTION"
const GATE_WAY_TYPE_SSLVPN = "SSLVPN"
const GATE_WAY_TYPE_VPN = "VPN"
const (
HAVIP_DESCRIBE_LIMIT = 100
)
const InterRegionLimit = "INTER_REGION_LIMIT"
const InternalError = "InternalError"
InternalError common internalError, do not add in retryableErrorCode, because when some product return this error, retry won't fix anything.
const (
KMS_PAGE_LIMIT = 200
)
const (
KMS_WRAPPING_KEY_SPEC_RSA_2048 = "RSA_2048"
)
const (
NAT_FAILED_STATE = "FAILED"
)
const OuterRegionLimit = "OUTER_REGION_LIMIT"
const PAGE_ITEM = 200
const (
POSTGRESQL_STAUTS_RUNNING = "running"
)
const POSTPAID = "POSTPAID"
const PREPAID = "PREPAID"
const PUBLIC_GRANTEE = "http://cam.qcloud.com/groups/global/AllUsers"
const RedisInstanceNotFound = "ResourceNotFound.InstanceNotExists"
sdk redis not found error
const (
SSM_PAGE_LIMIT = 200
)
const (
TKE_CLUSTER_KUBE_PROXY_MODE_BPF = "kube-proxy-bpf"
)
const VPC_SERVICE_TYPE = "vpc"
const (
VPN_DESCRIBE_LIMIT = 100
)
const (
VPN_PURCHASE_PLAN_PRE_POST = "PREPAID_TO_POSTPAID"
)
Variables ¶
var ( CYNOSDB_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36} CYNOSDB_CHARGE_TYPE = map[int64]string{ 0: COMMON_PAYTYPE_POSTPAID, 1: COMMON_PAYTYPE_PREPAID, } )
var ( MysqlPayByMonth = 0 MysqlPayByUse = 1 )
type of pay
var ( SCF_FUNCTIONS_NOT_FOUND_SET = []string{ "ResourceNotFound.Function", "ResourceNotFound.FunctionName", "InvalidParameterValue.FunctionName", "ResourceNotFound.Namespace", } SCF_TRIGGER_TYPES = []string{ SCF_TRIGGER_TYPE_COS, SCF_TRIGGER_TYPE_CMQ, SCF_TRIGGER_TYPE_TIMER, SCF_TRIGGER_TYPE_CKAFKA, SCF_TRIGGER_TYPE_API_GATEWAY, } SCF_LOGS_ORDERS = []string{ SCF_LOGS_ORDER_DESC, SCF_LOGS_ORDER_ASC, } SCF_LOGS_ORDER_BY = []string{ SCF_LOGS_ORDER_BY_FUNCTION_NAME, SCF_LOGS_ORDER_BY_DERATION, SCF_LOGS_ORDER_BY_MEM_USAGE, SCF_LOGS_ORDER_BY_START_TIME, } SCF_LOGS_RET_CODES = []string{ SCF_LOGS_RET_CODE_NOT0, SCF_LOGS_RET_CODE_IS0, SCF_LOGS_RET_CODE_TIME_LIMIT_EXECEEDED, SCF_LOGS_RET_CODE_RESOURCE_LIMIT_EXECEEDED, SCF_LOGS_RET_CODE_USER_CODE_EXCEPTION, } )
var ( VOD_AUDIO_CHANNEL_TYPE_TO_INT = map[string]int64{ VOD_AUDIO_CHANNEL_MONO: 1, VOD_AUDIO_CHANNEL_DUAL: 2, VOD_AUDIO_CHANNEL_STEREO: 6, } VOD_AUDIO_CHANNEL_TYPE_TO_STRING = map[int64]string{ 1: VOD_AUDIO_CHANNEL_MONO, 2: VOD_AUDIO_CHANNEL_DUAL, 6: VOD_AUDIO_CHANNEL_STEREO, } DISABLE_HIGHER_VIDEO_BITRATE_TO_UNINT = map[bool]uint64{ // contains filtered or unexported fields } DISABLE_HIGHER_VIDEO_RESOLUTION_TO_UNINT = map[bool]uint64{ // contains filtered or unexported fields } RESOLUTION_ADAPTIVE_TO_STRING = map[bool]string{ // contains filtered or unexported fields } REMOVE_AUDIO_TO_UNINT = map[bool]uint64{ // contains filtered or unexported fields } DRM_SWITCH_TO_STRING = map[bool]string{ // contains filtered or unexported fields } )
var ALL_GATE_WAY_TYPES = []string{ GATE_WAY_TYPE_CVM, GATE_WAY_TYPE_VPN, GATE_WAY_TYPE_DIRECTCONNECT, GATE_WAY_TYPE_PEERCONNECTION, GATE_WAY_TYPE_SSLVPN, GATE_WAY_TYPE_NAT, GATE_WAY_TYPE_NORMAL_CVM, GATE_WAY_TYPE_EIP, GATE_WAY_TYPE_CCN, }
var API_GATEWAY_API_PROTOCOLS = []string{ API_GATEWAY_API_PROTOCOL_HTTP, API_GATEWAY_API_PROTOCOL_WEBSOCKET, }
var API_GATEWAY_API_RESPONSE_TYPES = []string{"HTML", "JSON", "TEXT", "BINARY", "XML", ""}
var API_GATEWAY_AUTH_TYPES = []string{ API_GATEWAY_AUTH_TYPE_SECRET, API_GATEWAY_AUTH_TYPE_NONE, }
var API_GATEWAY_KEYS = []string{ API_GATEWAY_KEY_ENABLED, API_GATEWAY_KEY_DISABLED, }
var API_GATEWAY_KEY_INT2STRS = map[int64]string{ 1: API_GATEWAY_KEY_ENABLED, 0: API_GATEWAY_KEY_DISABLED, }
var API_GATEWAY_KEY_STR2INTS = map[string]int64{ API_GATEWAY_KEY_ENABLED: 1, API_GATEWAY_KEY_DISABLED: 0, }
var API_GATEWAY_NET_IP_VERSIONS = []string{ API_GATEWAY_NET_IP_VERSION4, API_GATEWAY_NET_IP_VERSION6, }
var API_GATEWAY_SERVICE_ENVS = []string{ API_GATEWAY_SERVICE_ENV_TEST, API_GATEWAY_SERVICE_ENV_RELEASE, API_GATEWAY_SERVICE_ENV_PREPUB, }
var API_GATEWAY_SERVICE_PROTOCOLS = []string{ API_GATEWAY_SERVICE_PROTOCOL_HTTP, API_GATEWAY_SERVICE_PROTOCOL_HTTPS, API_GATEWAY_SERVICE_PROTOCOL_ALL, }
var API_GATEWAY_SERVICE_TYPES = []string{ API_GATEWAY_SERVICE_TYPE_WEBSOCKET, API_GATEWAY_SERVICE_TYPE_HTTP, API_GATEWAY_SERVICE_TYPE_SCF, API_GATEWAY_SERVICE_TYPE_MOCK, }
var API_GATEWAY_TYPES = []string{ API_GATEWAY_TYPE_SERVICE, API_GATEWAY_TYPE_API, }
var CAM_POLICY_CREATE_STRATEGY = []string{ CAM_POLICY_CREATE_STRATEGY_CUSTOM, CAM_POLICY_CREATE_STRATEGY_PRESET, CAM_POLICY_CREATE_STRATEGY_NULL, }
var CBS_CHARGE_TYPE = []string{ CBS_CHARGE_TYPE_PREPAID, CBS_CHARGE_TYPE_POSTPAID, }
var CBS_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
var CBS_PREPAID_RENEW_FLAG = []string{ CBS_PREPAID_RENEW_FLAG_NOTIFY_NOTIFY_AND_AUTO_RENEW, CBS_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW, CBS_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW, }
var CBS_STORAGE_TYPE = []string{ CBS_STORAGE_TYPE_CLOUD_BASIC, CBS_STORAGE_TYPE_CLOUD_PREMIUM, CBS_STORAGE_TYPE_CLOUD_SSD, }
var CBS_STORAGE_USAGE = []string{ CBS_STORAGE_USAGE_SYSTEM_DISK, CBS_STORAGE_USAGE_DATA_DISK, }
var CDH_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
var CDH_PREPAID_RENEW_FLAG = []string{ CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_AUTO_RENEW, CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW, CDH_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW, }
var CDN_AREA = []string{ CDN_AREA_MAINLAND, CDN_AREA_OVERSEAS, CDN_AREA_GLOBAL, }
var CDN_BACKUP_ORIGIN_TYPE = []string{ CDN_ORIGIN_TYPE_IP, CDN_ORIGIN_TYPE_DOMAIN, }
var CDN_FORCE_REDIRECT_TYPE = []string{ CDN_ORIGIN_PULL_PROTOCOL_HTTP, CDN_ORIGIN_PULL_PROTOCOL_HTTPS, }
var CDN_HEADER_RULE = []string{ CDN_RULE_TYPE_ALL, CDN_RULE_TYPE_FILE, CDN_RULE_TYPE_DIRECTORY, CDN_RULE_TYPE_PATH, }
var CDN_HTTPS_SWITCH = []string{ CDN_DOMAIN_STATUS_ONLINE, CDN_DOMAIN_STATUS_OFFLINE, CDN_DOMAIN_STATUS_PROCESSING, }
var CDN_ORIGIN_PULL_PROTOCOL = []string{ CDN_ORIGIN_PULL_PROTOCOL_HTTP, CDN_ORIGIN_PULL_PROTOCOL_HTTPS, CDN_ORIGIN_PULL_PROTOCOL_FOLLOW, }
var CDN_ORIGIN_TYPE = []string{ CDN_ORIGIN_TYPE_DOMAIN, CDN_ORIGIN_TYPE_COS, CDN_ORIGIN_TYPE_IP, CDN_ORIGIN_TYPE_IPV6, CDN_ORIGIN_TYPE_IP_IPV6, }
var CDN_RULE_TYPE = []string{ CDN_RULE_TYPE_ALL, CDN_RULE_TYPE_FILE, CDN_RULE_TYPE_DIRECTORY, CDN_RULE_TYPE_PATH, CDN_RULE_TYPE_INDEX, CDN_RULE_TYPE_DEFAULT, }
var CDN_SERVICE_TYPE = []string{ CDN_SERVICE_TYPE_WEB, CDN_SERVICE_TYPE_DOWNLOAD, CDN_SERVICE_TYPE_MEDIA, }
var CDN_SWITCH = []string{ CDN_SWITCH_OFF, CDN_SWITCH_ON, }
var CERT_SSL_MODE = []string{ CERT_SSL_MODE_UNI, CERT_SSL_MODE_MUT, }
var CFS_PROTOCOL = []string{ CFS_PROTOCOL_NFS, CFS_PROTOCOL_CIFS, }
var CFS_RW_PERMISSION = []string{ CFS_RW_PERMISSION_RO, CFS_RW_PERMISSION_RW, }
var CFS_STORAGETYPE = []string{ CFS_STORAGETYPE_SD, CFS_STORAGETYPE_HP, }
var CFS_USER_PERMISSION = []string{ CFS_USER_PERMISSION_ALL_SQUASH, CFS_USER_PERMISSION_NO_ALL_SQUASH, CFS_USER_PERMISSION_ROOT_SQUASH, CFS_USER_PERMISSION_NO_ROOT_SQUASH, }
var CKAFKA_ACL_OPERATION = map[string]int64{
"UNKNOWN": 0,
"ANY": 1,
"ALL": 2,
"READ": 3,
"WRITE": 4,
"CREATE": 5,
"DELETE": 6,
"ALTER": 7,
"DESCRIBE": 8,
"CLUSTER_ACTION": 9,
"DESCRIBE_CONFIGS": 10,
"ALTER_CONFIGS": 11,
"IDEMPOTEN_WRITE": 12,
}
var CKAFKA_ACL_OPERATION_TO_STRING = map[int64]string{
0: "UNKNOWN",
1: "ANY",
2: "ALL",
3: "READ",
4: "WRITE",
5: "CREATE",
6: "DELETE",
7: "ALTER",
8: "DESCRIBE",
9: "CLUSTER_ACTION",
10: "DESCRIBE_CONFIGS",
11: "ALTER_CONFIGS",
12: "IDEMPOTEN_WRITE",
}
var CKAFKA_ACL_RESOURCE_TYPE = map[string]int64{
"UNKNOWN": 0,
"ANY": 1,
"TOPIC": 2,
"GROUP": 3,
"CLUSTER": 4,
"TRANSACTIONAL_ID": 5,
}
var CKAFKA_ACL_RESOURCE_TYPE_TO_STRING = map[int64]string{
0: "UNKNOWN",
1: "ANY",
2: "TOPIC",
3: "GROUP",
4: "CLUSTER",
5: "TRANSACTIONAL_ID",
}
var CKAFKA_PERMISSION_TYPE = map[string]int64{
"UNKNOWN": 0,
"ANY": 1,
"DENY": 2,
"ALLOW": 3,
}
var CKAFKA_PERMISSION_TYPE_TO_STRING = map[int64]string{
0: "UNKNOWN",
1: "ANY",
2: "DENY",
3: "ALLOW",
}
var CLB_HTTP_METHOD = []string{ CLB_HTTP_METHOD_GET, CLB_HTTP_METHOD_HEAD, }
var CLB_LISTENER_PROTOCOL = []string{ CLB_LISTENER_PROTOCOL_TCP, CLB_LISTENER_PROTOCOL_UDP, CLB_LISTENER_PROTOCOL_HTTP, CLB_LISTENER_PROTOCOL_HTTPS, CLB_LISTENER_PROTOCOL_TCPSSL, }
var CLB_LISTENER_SCHEDULER = []string{ CLB_LISTENER_SCHEDULER_WRR, CLB_LISTENER_SCHEDULER_LEASTCONN, CLB_LISTENER_SCHEDULER_IP_HASH, }
var CLB_NETWORK_TYPE = []string{ CLB_NETWORK_TYPE_OPEN, CLB_NETWORK_TYPE_INTERNAL, }
var CONTEX_TYPE = []string{ CONTEX_TYPE_HEX, CONTEX_TYPE_TEXT, }
var CVM_CHARGE_TYPE = []string{ CVM_CHARGE_TYPE_PREPAID, CVM_CHARGE_TYPE_POSTPAID, CVM_CHARGE_TYPE_SPOTPAID, CVM_CHARGE_TYPE_CDHPAID, }
var CVM_DISK_TYPE = []string{ CVM_DISK_TYPE_LOCAL_BASIC, CVM_DISK_TYPE_LOCAL_SSD, CVM_DISK_TYPE_CLOUD_BASIC, CVM_DISK_TYPE_CLOUD_SSD, CVM_DISK_TYPE_CLOUD_PREMIUM, CVM_DISK_TYPE_CLOUD_BSSD, }
var CVM_INTERNET_CHARGE_TYPE = []string{ CVM_INTERNET_CHARGE_TYPE_BANDWIDTH_PREPAID, CVM_INTERNET_CHARGE_TYPE_BANDWIDTH_POSTPAID, CVM_INTERNET_CHARGE_TYPE_BANDWIDTH_PACKAGE, CVM_INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID, }
var CVM_PLACEMENT_GROUP_TYPE = []string{ CVM_PLACEMENT_GROUP_TYPE_HOST, CVM_PLACEMENT_GROUP_TYPE_SW, CVM_PLACEMENT_GROUP_TYPE_RACK, }
var CVM_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
var CVM_PREPAID_RENEW_FLAG = []string{ CVM_PREPAID_RENEW_FLAG_NOTIFY_NOTIFY_AND_AUTO_RENEW, CVM_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW, CVM_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW, }
var CVM_RETRYABLE_ERROR = []string{
"ClientError.HttpStatusCodeError",
}
Only client error can cvm retry, others will directly returns
var CVM_SPOT_INSTANCE_TYPE = []string{ CVM_SPOT_INSTANCE_TYPE_ONE_TIME, }
var CsrTypeArr = []string{ CsrTypeOnline, CsrTypeParse, }
var DAYU_APP_PLATFORM = []string{DAYU_APP_PLATFORM_PC, DAYU_APP_PLATFORM_MOBILE, DAYU_APP_PLATFORM_TV, DAYU_APP_PLATFORM_SERVER}
var DAYU_APP_TYPE = []string{DAYU_APP_TYPE_WEB, DAYU_APP_TYPE_GAME, DAYU_APP_TYPE_APP, DAYU_APP_TYPE_OTHER}
var DAYU_BOOL_FLAG = []string{DAYU_BOOL_FLAG_FALSE, DAYU_BOOL_FLAG_TRUE}
var DAYU_CC_POLICY_ACTION = []string{DAYU_CC_POLICY_ACTION_DROP, DAYU_CC_POLICY_ACTION_ALG}
var DAYU_CC_POLICY_CHECK_OP = []string{DAYU_CC_POLICY_CHECK_OP_INCLUDE, DAYU_CC_POLICY_CHECK_OP_NOT_INCLUDE, DAYU_CC_POLICY_CHECK_OP_EQUAL}
var DAYU_CC_POLICY_CHECK_OP_HTTPS = []string{DAYU_CC_POLICY_CHECK_OP_INCLUDE, DAYU_CC_POLICY_CHECK_OP_EQUAL}
var DAYU_CC_POLICY_HTTPS_CHECK_TYPE = []string{DAYU_CC_POLICY_CHECK_TYPE_CGI, DAYU_CC_POLICY_CHECK_TYPE_UA, DAYU_CC_POLICY_CHECK_TYPE_REFERER}
var DAYU_CC_POLICY_HTTP_CHECK_TYPE = []string{DAYU_CC_POLICY_CHECK_TYPE_HOST, DAYU_CC_POLICY_CHECK_TYPE_CGI, DAYU_CC_POLICY_CHECK_TYPE_UA, DAYU_CC_POLICY_CHECK_TYPE_REFERER}
var DAYU_CC_POLICY_SMODE = []string{DAYU_CC_POLICY_SMODE_MATCH, DAYU_CC_POLICY_SMODE_SPEED_LIMIT}
var DAYU_IP_TYPE = []string{DAYU_IP_TYPE_BLACK, DAYU_IP_TYPE_WHITE}
var DAYU_L4_RULE_PROTOCOL = []string{DAYU_L4_RULE_PROTOCOL_TCP, DAYU_L4_RULE_PROTOCOL_UDP}
var DAYU_L7_RULE_PROTOCOL = []string{DAYU_L7_RULE_PROTOCOL_HTTP, DAYU_L7_RULE_PROTOCOL_HTTPS}
var DAYU_L7_RULE_SOURCE_TYPE = []int{DAYU_L7_RULE_SOURCE_TYPE_HOST, DAYU_L7_RULE_SOURCE_TYPE_IP}
var DAYU_MATCH_SWITCH = []string{DAYU_MATCH_SWITCH_ON_L5, DAYU_MATCH_SWITCH_OFF}
var DAYU_MATCH_TYPE = []string{DAYU_MATCH_TYPE_SUNDAY, DAYU_MATCH_TYPE_PCRE}
var DAYU_PACKET_ACTION = []string{DAYU_PACKET_ACTION_DROP, DAYU_PACKET_ACTION_TRANSMIT, DAYU_PACKET_PROTOCOL_DROP_BLACK, DAYU_PACKET_PROTOCOL_DROP_RST, DAYU_PACKET_PROTOCOL_DROP_BLACK_RST}
var DAYU_PORT_ACTION = []string{DAYU_PORT_ACTION_DROP, DAYU_PORT_ACTION_TRANSMIT}
var DAYU_PROTOCOL = []string{DAYU_PROTOCOL_TCP, DAYU_PROTOCOL_UDP, DAYU_PROTOCOL_ICMP, DAYU_PROTOCOL_ALL}
var DAYU_RESOURCE_TYPE = []string{DAYU_RESOURCE_TYPE_BGPIP, DAYU_RESOURCE_TYPE_BGP, DAYU_RESOURCE_TYPE_BGPMUL, DAYU_RESOURCE_TYPE_NET}
var DAYU_RESOURCE_TYPE_CASE = []string{DAYU_RESOURCE_TYPE_BGPIP, DAYU_RESOURCE_TYPE_BGPMUL, DAYU_RESOURCE_TYPE_BGP}
var DAYU_RESOURCE_TYPE_HTTPS = []string{DAYU_RESOURCE_TYPE_BGPIP}
var DAYU_RESOURCE_TYPE_RULE = []string{DAYU_RESOURCE_TYPE_BGPIP, DAYU_RESOURCE_TYPE_NET}
var DAYU_RULE_METHOD = []string{ DAYU_RULE_METHOD_GET, DAYU_RULE_METHOD_HEAD, }
var DCG_GATEWAY_TYPES = []string{DCG_GATEWAY_TYPE_NORMAL, DCG_GATEWAY_TYPE_NAT}
var DCG_NETWORK_TYPES = []string{DCG_NETWORK_TYPE_VPC, DCG_NETWORK_TYPE_CCN}
var DC_NETWORK_TYPES = []string{DC_NETWORK_TYPE_VPC, DC_NETWORK_TYPE_BMVPC, DC_NETWORK_TYPE_CCN}
var DC_ROUTE_TYPES = []string{DC_ROUTE_TYPE_BGP, DC_ROUTE_TYPE_STATIC}
var DDOS_EIP_BIND_RESOURCE_TYPE = []string{DDOS_EIP_BIND_RESOURCE_TYPE_CVM, DDOS_EIP_BIND_RESOURCE_TYPE_CLB}
var DDOS_EIP_BIND_STATUS = []string{DDOS_EIP_BIND_STATUS_BINDING, DDOS_EIP_BIND_STATUS_BIND, DDOS_EIP_BIND_STATUS_UNBINDING, DDOS_EIP_BIND_STATUS_UNBIND}
var DNSPOD_DOMAIN_MARK_TYPE = []string{ DNSPOD_DOMAIN_MARK_YES, DNSPOD_DOMAIN_MARK_NO, }
var DNSPOD_DOMAIN_STATUS_TYPE = []string{ DNSPOD_DOMAIN_STATUS_ENABLE, DNSPOD_DOMAIN_STATUS_DISABLE, }
var DPD_ACTIONS = []string{ DPD_ACTION_CLEAR, DPD_ACTION_RESTART, }
var EIP_ANYCAST_ZONE = []string{ EIP_ANYCAST_ZONE_GLOBAL, EIP_ANYCAST_ZONE_OVERSEAS, }
var EIP_INTERNET_PROVIDER = []string{ EIP_INTERNET_PROVIDER_BGP, EIP_INTERNET_PROVIDER_CMCC, EIP_INTERNET_PROVIDER_CTCC, EIP_INTERNET_PROVIDER_CUCC, }
var EIP_TYPE = []string{ EIP_TYPE_EIP, EIP_TYPE_ANYCAST, EIP_TYPE_HIGH_QUALITY, }
var EMR_MASTER_WAN_TYPES = []string{EMR_MASTER_WAN_TYPE_NEED_MASTER_WAN, EMR_MASTER_WAN_TYPE_NOT_NEED_MASTER_WAN}
var ES_BASIC_SECURITY_TYPE = []int{ ES_BASIC_SECURITY_TYPE_ON, ES_BASIC_SECURITY_TYPE_OFF, }
var ES_CHARGE_TYPE = []string{ ES_CHARGE_TYPE_POSTPAID_BY_HOUR, ES_CHARGE_TYPE_PREPAID, }
var ES_DEPLOY_MODE = []int{ ES_DEPLOY_MODE_SINGLE_REGION, ES_DEPLOY_MODE_MULTI_REGION, }
var ES_LICENSE_TYPE = []string{ ES_LICENSE_TYPE_OSS, ES_LICENSE_TYPE_BASIC, ES_LICENSE_TYPE_PLATINUM, }
var ES_NODE_DISK_TYPE = []string{ CVM_DISK_TYPE_CLOUD_SSD, CVM_DISK_TYPE_CLOUD_PREMIUM, }
var ES_NODE_TYPE = []string{ ES_NODE_TYPE_HOT_DATA, ES_NODE_TYPE_WARM_DATA, ES_NODE_TYPE_DEDICATED_MATER, }
var ES_RENEW_FLAG = []string{ ES_RENEW_FLAG_AUTO, ES_RENEW_FLAG_MANUAL, }
var FORWARD_TYPE = []string{ FORWARD_TYPE_HTTP, }
var FileExtTypeMatch = map[string]map[string]bool{ TCAPLUS_IDL_TYPE_PROTO: { TCAPLUS_FILE_EXT_TYPE_PROTO: true, }, TCAPLUS_IDL_TYPE_TDR: { TCAPLUS_FILE_EXT_TYPE_XML: true, }, TCAPLUS_IDL_TYPE_MIX: { TCAPLUS_FILE_EXT_TYPE_PROTO: true, TCAPLUS_FILE_EXT_TYPE_XML: true, }, }
var HEALTH_CHECK_TYPE = []string{ HEALTH_CHECK_TYPE_CUSTOM, HEALTH_CHECK_TYPE_TCP, HEALTH_CHECK_TYPE_HTTP, }
var HTTP_VERSION = []string{ HTTP_VERSION_ONE_ZERO, HTTP_VERSION_ONE_ONE, }
var INSTANCE_NAME_STYLE = []string{ INSTANCE_NAME_ORIGINAL, INSTANCE_NAME_UNIQUE, }
var INTERNET_CHARGE_ALLOW_TYPE = []string{ INTERNET_CHARGE_TYPE_BANDWIDTH_PREPAID, INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID_BY_HOUR, INTERNET_CHARGE_TYPE_BANDWIDTH_POSTPAID_BY_HOUR, INTERNET_CHARGE_TYPE_BANDWIDTH_PACKAGE, }
var KMS_ORIGIN_TYPE = map[string]uint64{ KMS_ORIGIN_TENCENT_KMS: 1, KMS_ORIGIN_EXTERNAL: 2, }
var KMS_RETRYABLE_ERROR = []string{
"ClientError.NetworkError",
"ClientError.HttpStatusCodeError",
}
var MONGODB_AUTO_RENEW_FLAG = map[int]string{
0: "NOTIFY_AND_MANUAL_RENEW",
1: "NOTIFY_AND_AUTO_RENEW",
2: "DISABLE_NOTIFY_AND_MANUAL_RENEW",
}
var MONGODB_CHARGE_TYPE = map[uint64]string{ 0: MONGODB_CHARGE_TYPE_POSTPAID, 1: MONGODB_CHARGE_TYPE_PREPAID, }
var MONGODB_CLUSTER_TYPE = []string{ MONGODB_CLUSTER_TYPE_REPLSET, MONGODB_CLUSTER_TYPE_SHARD, }
var MONGODB_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
var MYSQL_ALLOW_BACKUP_MODEL = []string{"logical", "physical"}
var MYSQL_ALLOW_BACKUP_TIME = []string{"02:00-06:00", "06:00-10:00", "10:00-14:00", "14:00-18:00", "18:00-22:00", "22:00-02:00"}
var MYSQL_AVAILABLE_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
mysql available period value
var MYSQL_CHARGE_TYPE = map[int]string{ MysqlPayByMonth: MYSQL_CHARGE_TYPE_PREPAID, MysqlPayByUse: MYSQL_CHARGE_TYPE_POSTPAID, }
var MYSQL_COLUMN_PRIVILEGE = []string{
"SELECT", "INSERT", "UPDATE", "REFERENCES",
}
var MYSQL_DATABASE_MUST_PRIVILEGE = "SHOW VIEW"
var MYSQL_DATABASE_PRIVILEGE = []string{"SELECT", "INSERT", "UPDATE", "DELETE",
"CREATE", "DROP", "REFERENCES", "INDEX",
"ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES",
"EXECUTE", "CREATE VIEW", "SHOW VIEW",
"CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER"}
var MYSQL_DEFAULT_ACCOUNT_HOST = "%"
default to all host
var MYSQL_GlOBAL_PRIVILEGE = []string{
"ALTER", "ALTER ROUTINE", "CREATE", "CREATE ROUTINE", "CREATE TEMPORARY TABLES",
"CREATE USER", "CREATE VIEW", "DELETE", "DROP", "EVENT", "EXECUTE", "INDEX", "INSERT",
"LOCK TABLES", "PROCESS", "REFERENCES", "RELOAD", "REPLICATION CLIENT",
"REPLICATION SLAVE", "SELECT", "SHOW DATABASES", "SHOW VIEW", "TRIGGER", "UPDATE",
}
var MYSQL_ROLE_MAP = map[int64]string{
1: "master",
2: "ro",
3: "dr",
}
var MYSQL_SUPPORTS_ENGINE = []string{"5.5", "5.6", "5.7", "8.0"}
var MYSQL_TABLE_PRIVILEGE = []string{
"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX",
"ALTER", "CREATE VIEW", "SHOW VIEW", "TRIGGER",
}
var MonitorRegionMap = map[string]string{
"ap-guangzhou": "gz",
"ap-shenzhen-fsi": "szjr",
"ap-guangzhou-open": "gzopen",
"ap-shenzhen": "szx",
"ap-shanghai": "sh",
"ap-shanghai-fsi": "shjr",
"ap-nanjing": "nj",
"ap-jinan-ec": "jnec",
"ap-hangzhou-ec": "hzec",
"ap-fuzhou-ec": "fzec",
"ap-beijing": "bj",
"ap-tianjin": "tsn",
"ap-shijiazhuang-ec": "sjwec",
"ap-beijing-fsi": "bjjr",
"ap-wuhan-ec": "whec",
"ap-changsha-ec": "csec",
"ap-chengdu": "cd",
"ap-chongqing": "cq",
"ap-taipei": "tpe",
"ap-hongkong": "hk",
"ap-singapore": "sg",
"ap-bangkok": "th",
"ap-mumbai": "in",
"ap-seoul": "kr",
"ap-tokyo": "jp",
"na-siliconvalley": "usw",
"na-ashburn": "use",
"na-toronto": "ca",
"eu-frankfurt": "de",
"eu-moscow": "ru",
}
regions in monitor
var MysqlDelStates = map[int64]bool{ MYSQL_STATUS_ISOLATING: true, MYSQL_STATUS_ISOLATED: true, MYSQL_STATUS_ISOLATED_1: true, MYSQL_STATUS_ISOLATED_2: true, }
var POSTGRESQL_DB_CHARSET = []string{POSTGRESQL_DB_CHARSET_UTF8, POSTGRESQL_DB_CHARSET_LATIN1}
var POSTGRESQL_PAYTYPE = []string{COMMON_PAYTYPE_POSTPAID}
var POSTGRESQL_RETRYABLE_STATUS = []string{
"initing",
"expanding",
"switching",
"deployment changing",
}
var POSTSQL_DB_VERSION = []string{POSTGRESQL_DB_VERSION_9_3_5, POSTGRESQL_DB_VERSION_9_5_4, POSTGRESQL_DB_VERSION_10_4}
var PRIVATE_DNS_FORWARD_STATUS = []string{ DNS_FORWARD_STATUS_ENABLE, DNS_FORWARD_STATUS_DISABLED, }
var REDIS_CHARGE_TYPE_ID = map[string]int64{ REDIS_CHARGE_TYPE_POSTPAID: 0, REDIS_CHARGE_TYPE_PREPAID: 1, }
var REDIS_CHARGE_TYPE_NAME = map[int64]string{ 0: REDIS_CHARGE_TYPE_POSTPAID, 1: REDIS_CHARGE_TYPE_PREPAID, }
var REDIS_NAMES = map[int64]string{ REDIS_VERSION_MASTER_SLAVE_REDIS: "master_slave_redis", REDIS_VERSION_MASTER_SLAVE_CKV: "master_slave_ckv", REDIS_VERSION_CLUSTER_REDIS: "cluster_redis", REDIS_VERSION_CLUSTER_CKV: "cluster_ckv", REDIS_VERSION_STANDALONE_REDIS: "standalone_redis", REDIS_VERSION_MASTER_SLAVE_REDIS4: "master_slave_redis4.0", REDIS_VERSION_MASTER_SLAVE_REDIS5: "master_slave_redis5.0", REDIS_VERSION_CLUSTER_REDIS5: "cluster_redis5.0", }
var REDIS_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
var REDIS_STATUS = map[int64]string{ REDIS_STATUS_INIT: "init", REDIS_STATUS_PROCESSING: "processing", REDIS_STATUS_ONLINE: "online", REDIS_STATUS_ISOLATE: "isolate", REDIS_STATUS_TODELETE: "todelete", }
var RegionIdMap = map[string]string{
"ap-guangzhou": "1",
"ap-shanghai": "4",
"ap-hongkong": "5",
"na-toronto": "6",
"ap-shanghai-fsi": "7",
"ap-beijing": "8",
"ap-singapore": "9",
"ap-shenzhen-fsi": "11",
"ap-guangzhou-open": "12",
"ap-shanghai-ysx": "13",
"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-jinan-ec": "31",
"ap-hangzhou-ec": "32",
"ap-nanjing": "33",
"ap-fuzhou-ec": "34",
"ap-wuhan-ec": "35",
"ap-tianjin": "36",
"ap-shenzhen": "37",
"ap-taipei": "39",
"ap-changsha-ec": "45",
"ap-beijing-fsi": "46",
"ap-shijiazhuang-ec": "53",
"ap-qingyuan": "54",
"ap-hefei-ec": "55",
"ap-shenyang-ec": "56",
"ap-xian-ec": "57",
"ap-xibei-ec": "58",
"ap-zhengzhou-ec": "71",
"ap-jakarta": "72",
"ap-qingyuan-xinan": "73",
"sa-saopaulo": "74",
"ap-guiyang": "76",
"ap-shenzhen-sycft": "77",
"ap-shanghai-adc": "78",
}
FIXME: temp data, use api request instead if support
var SCALING_DISK_TYPE_ALLOW_POLICY = []string{ SCALING_DISK_TYPE_POLICY_ORIGINAL, SCALING_DISK_TYPE_POLICY_AUTOMATIC, }
var SCALING_GROUP_ADJUSTMENT_TYPE = []string{ SCALING_GROUP_ADJUSTMENT_TYPE_CHANGE_IN_CAPACITY, SCALING_GROUP_ADJUSTMENT_TYPE_EXACT_CAPACITY, SCALING_GROUP_ADJUSTMENT_TYPE_PERCENT_CHANGE_IN_CAPACITY, }
var SCALING_GROUP_COMPARISON_OPERATOR = []string{ SCALING_GROUP_COMPARISON_OPERATOR_GREATER, SCALING_GROUP_COMPARISON_OPERATOR_GREATER_EQUAL, SCALING_GROUP_COMPARISON_OPERATOR_LESS, SCALING_GROUP_COMPARISON_OPERATOR_LESS_EQUAL, SCALING_GROUP_COMPARISON_OPERATOR_EQUAL, SCALING_GROUP_COMPARISON_OPERATOR_NOT_EQUAL, }
var SCALING_GROUP_METRIC_NAME = []string{ SCALING_GROUP_METRIC_NAME_CPU_UTILIZATION, SCALING_GROUP_METRIC_NAME_MEM_UTILIZATION, SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_OUT, SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_IN, SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_OUT, SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_IN, }
var SCALING_GROUP_NOTIFICATION_TYPE = []string{ SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_SUCCESS, SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_FAILED, SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_SUCCESS, SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_FAILED, SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_SUCCESS, SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_FAILED, }
var SCALING_GROUP_STATISTIC = []string{ SCALING_GROUP_STATISTIC_AVERAGE, SCALING_GROUP_STATISTIC_MAXIMUM, SCALING_GROUP_STATISTIC_MINIMUM, }
var SQLSERVER_ACCOUNT_PRIVILEGE = []string{ SQLSERVER_ACCOUNT_RW, SQLSERVER_ACCOUNT_RO, }
var SQLSERVER_CHARGE_TYPE_NAME = map[string]string{ "PRE": SQLSERVER_CHARGE_TYPE_PREPAID, "POST": SQLSERVER_CHARGE_TYPE_POSTPAID, "ALL": "ALL", }
var SQLSERVER_CHARSET_LIST = []string{
"Chinese_PRC_CI_AS",
"Chinese_PRC_CS_AS",
"Chinese_PRC_BIN",
"Chinese_Taiwan_Stroke_CI_AS",
"SQL_Latin1_General_CP1_CI_AS",
"SQL_Latin1_General_CP1_CS_AS",
}
var SQLSERVER_DB_STATUS = map[int64]string{ SQLSERVER_DB_CREATING: "creating", SQLSERVER_DB_RUNNING: "running", SQLSERVER_DB_MODIFYING: "modifying", SQLSERVER_DB_DELETING: "deleting", SQLSERVER_DB_UPGRADING: "upgrading", SQLSERVER_DB_SWITCH_PENDING: "switch pending", SQLSERVER_DB_PUBSUB_CREATING: "pubsub creating", SQLSERVER_DB_PUBSUB_MODIFYING: "pubsub modifying", SQLSERVER_DB_SWITCHING: "switching", SQLSERVER_DB_RO_CREATING: "ro creating", }
var SQLSERVER_HA_TYPE_FLAGS = map[string]string{ SQLSERVER_HA_FLAG_SINGLE: "SINGLE", SQLSERVER_HA_FLAG_DAUL: "DUAL", SQLSERVER_HA_FLAG_CLUSTER: "CLUSTER", }
var SQLSERVER_STATUS_WAITING = []int{ SQLSERVER_DB_CREATING, SQLSERVER_DB_MODIFYING, SQLSERVER_DB_UPGRADING, SQLSERVER_DB_SWITCH_PENDING, SQLSERVER_DB_PUBSUB_CREATING, SQLSERVER_DB_PUBSUB_MODIFYING, SQLSERVER_DB_SWITCHING, SQLSERVER_DB_RO_CREATING, }
var SSL_CERT_TYPE = []string{ SSL_CERT_TYPE_SERVER, SSL_CERT_TYPE_CA, }
var SYSTEM_DISK_ALLOW_TYPE = []string{ SYSTEM_DISK_TYPE_LOCAL_BASIC, SYSTEM_DISK_TYPE_LOCAL_SSD, SYSTEM_DISK_TYPE_CLOUD_BASIC, SYSTEM_DISK_TYPE_CLOUD_PREMIUM, SYSTEM_DISK_TYPE_CLOUD_SSD, SYSTEM_DISK_TYPE_CLOUD_HSSD, SYSTEM_DISK_TYPE_CLOUD_TSSD, }
var TCAPLUS_FILE_EXT_TYPES = []string{ TCAPLUS_FILE_EXT_TYPE_PROTO, TCAPLUS_FILE_EXT_TYPE_XML, }
var TCAPLUS_IDL_TYPES = []string{ TCAPLUS_IDL_TYPE_PROTO, TCAPLUS_IDL_TYPE_TDR, }
var TCAPLUS_TABLE_IDL_TYPES = []string{ TCAPLUS_TABLE_IDL_TYPE_PROTO, TCAPLUS_TABLE_IDL_TYPE_TDR, }
var TCAPLUS_TABLE_TYPES = []string{ TCAPLUS_TABLE_TYPE_GENERIC, TCAPLUS_TABLE_TYPE__LIST, }
var TKE_ADDON_DEFAULT_VALUES_KEY = []string{
"global.image.host",
"global.cluster.id",
"global.cluster.appid",
"global.cluster.uin",
"global.cluster.subuin",
"global.cluster.type",
"global.cluster.clustertype",
"global.cluster.kubeversion",
"global.cluster.kubeminor",
}
This use to filter default values the addon returns.
var TKE_CLUSTER_KUBE_PROXY_MODE = []string{TKE_CLUSTER_KUBE_PROXY_MODE_BPF}
var TKE_CLUSTER_NETWORK_TYPE = []string{TKE_CLUSTER_NETWORK_TYPE_GR, TKE_CLUSTER_NETWORK_TYPE_VPC_CNI}
var TKE_CLUSTER_NODE_NAME_TYPE = []string{TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP, TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME}
var TKE_CLUSTER_OS = []string{TKE_CLUSTER_OS_CENTOS76, TKE_CLUSTER_OS_UBUNTU18, TKE_CLUSTER_OS_LINUX24}
var TKE_CLUSTER_OS_TYPES = []string{TKE_CLUSTER_OS_TYPE_GENERAL}
var TKE_DEPLOY_TYPES = []string{TKE_DEPLOY_TYPE_MANAGED, TKE_DEPLOY_TYPE_INDEPENDENT}
var TKE_INSTANCE_CHARGE_TYPE = []string{CVM_CHARGE_TYPE_PREPAID, CVM_CHARGE_TYPE_POSTPAID}
var TKE_RUNTIMES = []string{TKE_RUNTIME_DOCKER, TKE_RUNTIME_CONTAINERD}
var VOD_SUB_APPLICATION_STATUS = []string{ VOD_SUB_APPLICATION_RUNNING, VOD_SUB_APPLICATION_STOPPED, VOD_SUB_APPLICATION_DESTROY, }
var VPN_CHARGE_TYPE = []string{ VPN_CHARGE_TYPE_PREPAID, VPN_CHARGE_TYPE_POSTPAID_BY_HOUR, }
var VPN_IKE_DH_GROUP_NAME = []string{ VPN_IKE_DH_GROUP_NAME_GROUP1, VPN_IKE_DH_GROUP_NAME_GROUP2, VPN_IKE_DH_GROUP_NAME_GROUP5, VPN_IKE_DH_GROUP_NAME_GROUP14, VPN_IKE_DH_GROUP_NAME_GROUP24, }
var VPN_IKE_EXCHANGE_MODE = []string{ VPN_IKE_EXCHANGE_MODE_AGGRESSIVE, VPN_IKE_EXCHANGE_MODE_MAIN, }
var VPN_IKE_IDENTITY = []string{ VPN_IKE_IDENTITY_ADDRESS, VPN_IKE_IDENTITY_FQDN, }
var VPN_IKE_PROPO_AUTHEN_ALGORITHM = []string{ VPN_IKE_PROPO_AUTHEN_ALGORITHM_SHA, VPN_IKE_PROPO_AUTHEN_ALGORITHM_MD5, VPN_IKE_PROPO_AUTHEN_ALGORITHM_SHA256, }
var VPN_IKE_PROPO_ENCRY_ALGORITHM = []string{ VPN_IKE_PROPO_ENCRY_ALGORITHM_3DESCBC, VPN_IKE_PROPO_ENCRY_ALGORITHM_AESCBC128, VPN_IKE_PROPO_ENCRY_ALGORITHM_AESCBC192, VPN_IKE_PROPO_ENCRY_ALGORITHM_AESCBC256, VPN_IKE_PROPO_ENCRY_ALGORITHM_DESCBC, }
var VPN_IPSEC_ENCRY_ALGORITHM = []string{ VPN_IPSEC_ENCRY_ALGORITHM_3DESCBC, VPN_IPSEC_ENCRY_ALGORITHM_AESCBC128, VPN_IPSEC_ENCRY_ALGORITHM_AESCBC192, VPN_IPSEC_ENCRY_ALGORITHM_AESCBC256, VPN_IPSEC_ENCRY_ALGORITHM_DESCBC, VPN_IPSEC_ENCRY_ALGORITHM_NULL, }
var VPN_IPSEC_INTEGRITY_ALGORITHM = []string{ VPN_IPSEC_INTEGRITY_ALGORITHM_SHA1, VPN_IPSEC_INTEGRITY_ALGORITHM_MD5, VPN_IPSEC_INTEGRITY_ALGORITHM_SHA256, }
var VPN_IPSEC_PFS_DH_GROUP_NAME = []string{ VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP1, VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP2, VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP5, VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP14, VPN_IPSEC_PFS_DH_GROUP_NAME_GROUP24, VPN_IPSEC_PFS_DH_GROUP_NAME_NULL, }
var VPN_PERIOD_PREPAID_RENEW_FLAG = []string{ VPN_PERIOD_PREPAID_RENEW_FLAG_AUTO_NOTIFY, VPN_PERIOD_PREPAID_RENEW_FLAG_NOT, }
var VPN_PURCHASE_PLAN = []string{ VPN_PURCHASE_PLAN_PRE_POST, }
var VPN_RESTRICT_STATE = []string{ VPN_RESTRICT_STATE_NORMAL, VPN_RESTRICT_STATE_ISOLATE, }
var VPN_STATE = []string{ VPN_STATE_PENDING, VPN_STATE_DELETING, VPN_STATE_AVAILABLE, }
var VerifyType = []string{ DNSAuto, DNS, File, }
Functions ¶
func AlarmPolicyRule ¶ added in v1.59.19
func Base64ToString ¶ added in v1.78.11
func BuildTagResourceName ¶ added in v1.41.3
BuildTagResourceName builds the Tencent Cloud specific name of a resource description. The format is `qcs:project_id:service_type:region:account:resource`. For more information, go to https://cloud.tencent.com/document/product/598/10606.
func ConverterVpnGatewayRouteToMap ¶ added in v1.58.0
func ConverterVpnGatewayRouteToMap(vpnGatewayId string, route *vpc.VpnGatewayRoute) map[string]interface{}
func DisableTcrVpcDns ¶ added in v1.54.1
func EnableTcrVpcDns ¶ added in v1.54.1
func FindIntListIndex ¶ added in v1.71.0
func GetBucketPublicACL ¶ added in v1.61.9
func GetBucketPublicACL(acl *cos.BucketGetACLResult) string
func GetCertificateList ¶ added in v1.55.0
func GetCertificateList(ctx context.Context, sslService SSLService, id, name, certType *string) (certificateList []*ssl.Certificates, errRet error)
func GetCommonCertificates ¶ added in v1.55.0
func GetCommonCertificates(certificatesById, certificatesByName []*ssl.Certificates) (result []*ssl.Certificates)
func GetDnsStatus ¶ added in v1.54.1
func GetDnsStatus(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, accessIp string, usePublicDomain bool) (status *tcr.VpcPrivateDomainStatus, err error)
func GetListIncrement ¶ added in v1.71.0
func GetTkeLabels ¶ added in v1.41.3
func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
func GetTkeTaints ¶ added in v1.52.0
func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint
func GetUrlsHash ¶ added in v1.74.0
func IsContains ¶ added in v1.41.3
func IsContains(array interface{}, value interface{}) bool
IsContains returns whether value is within array
func LayerContent ¶ added in v1.60.0
func ListenerIdCheck ¶ added in v1.47.0
func NatGatewaySnatPara ¶ added in v1.58.0
func ParseMultiDisks ¶ added in v1.60.11
func ParseResource ¶ added in v1.60.11
func Provider ¶
func Provider() terraform.ResourceProvider
func ResourceTencentCloudKubernetesAsScalingGroup ¶ added in v1.41.3
func ResourceTencentCloudKubernetesNodePool ¶ added in v1.52.0
func RetentionPolicy ¶ added in v1.59.12
func RuleIdCheck ¶ added in v1.47.0
func StringToBase64 ¶ added in v1.78.11
func TencentCloudMysqlParameterDetail ¶ added in v1.41.3
func TencentCynosdbClusterBaseInfo ¶ added in v1.44.0
func TencentCynosdbInstanceBaseInfo ¶ added in v1.44.0
func TencentKmsBasicInfo ¶ added in v1.54.0
func TencentMongodbBasicInfo ¶ added in v1.41.3
func TencentMsyqlBasicInfo ¶ added in v1.41.3
func TencentMysqlSellType ¶ added in v1.41.3
func TencentMysqlZoneConfig ¶ added in v1.41.3
func TencentSqlServerBasicInfo ¶ added in v1.41.3
func TkeCvmCreateInfo ¶ added in v1.41.3
func TkeExistCvmCreateInfo ¶ added in v1.56.8
func TkeInstanceAdvancedSetting ¶ added in v1.41.3
func TkeNodePoolGlobalConfig ¶ added in v1.55.2
func VodWatermarkResource ¶ added in v1.45.0
func VpnGatewayRoutePara ¶ added in v1.58.0
func WaitForAccessIpExists ¶ added in v1.54.1
func YamlParser ¶ added in v1.77.4
YamlParser yaml syntax Parser
Types ¶
type APIGatewayService ¶ added in v1.46.0
type APIGatewayService struct {
// contains filtered or unexported fields
}
func (*APIGatewayService) BindEnvironment ¶ added in v1.46.0
func (me *APIGatewayService) BindEnvironment(ctx context.Context, serviceId, environment, bindType, usagePlanId, apiId string) (errRet error)
func (*APIGatewayService) BindSecretId ¶ added in v1.46.0
func (*APIGatewayService) BindSubDomainService ¶ added in v1.46.0
func (*APIGatewayService) CreateApiKey ¶ added in v1.46.0
func (*APIGatewayService) CreateIPStrategy ¶ added in v1.46.0
func (*APIGatewayService) CreateService ¶ added in v1.46.0
func (*APIGatewayService) CreateStrategyAttachment ¶ added in v1.46.0
func (*APIGatewayService) CreateUsagePlan ¶ added in v1.46.0
func (*APIGatewayService) DeleteApi ¶ added in v1.46.0
func (me *APIGatewayService) DeleteApi(ctx context.Context, serviceId, apiId string) (errRet error)
func (*APIGatewayService) DeleteApiKey ¶ added in v1.46.0
func (me *APIGatewayService) DeleteApiKey(ctx context.Context, accessKeyId string) (errRet error)
func (*APIGatewayService) DeleteIPStrategy ¶ added in v1.46.0
func (me *APIGatewayService) DeleteIPStrategy(ctx context.Context, serviceId, strategyId string) (errRet error)
func (*APIGatewayService) DeleteService ¶ added in v1.46.0
func (me *APIGatewayService) DeleteService(ctx context.Context, serviceId string) (errRet error)
func (*APIGatewayService) DeleteStrategyAttachment ¶ added in v1.46.0
func (*APIGatewayService) DeleteUsagePlan ¶ added in v1.46.0
func (me *APIGatewayService) DeleteUsagePlan(ctx context.Context, usagePlanId string) (errRet error)
func (*APIGatewayService) DescribeApi ¶ added in v1.46.0
func (me *APIGatewayService) DescribeApi(ctx context.Context, serviceId, apiId string) (info apigateway.ApiInfo, has bool, errRet error)
func (*APIGatewayService) DescribeApiEnvironmentStrategyList ¶ added in v1.46.0
func (me *APIGatewayService) DescribeApiEnvironmentStrategyList(ctx context.Context, serviceId string, environmentNames []string, apiId string) (environmentApiList []*apigateway.ApiEnvironmentStrategy, errRet error)
func (*APIGatewayService) DescribeApiKey ¶ added in v1.46.0
func (me *APIGatewayService) DescribeApiKey(ctx context.Context, accessKeyId string) (apiKey *apigateway.ApiKey, has bool, errRet error)
func (*APIGatewayService) DescribeApiKeysStatus ¶ added in v1.46.0
func (me *APIGatewayService) DescribeApiKeysStatus(ctx context.Context, secretName, accessKeyId string) (apiKeySet []*apigateway.ApiKey, errRet error)
func (*APIGatewayService) DescribeApiUsagePlan ¶ added in v1.46.0
func (me *APIGatewayService) DescribeApiUsagePlan(ctx context.Context, serviceId string) (list []*apigateway.ApiUsagePlan, errRet error)
func (*APIGatewayService) DescribeApisStatus ¶ added in v1.46.0
func (me *APIGatewayService) DescribeApisStatus(ctx context.Context, serviceId, apiName, apiId string) (infos []*apigateway.DesApisStatus, errRet error)
func (*APIGatewayService) DescribeIPStrategies ¶ added in v1.46.0
func (me *APIGatewayService) DescribeIPStrategies(ctx context.Context, serviceId, strategyId, environmentName string) (ipStrategies *apigateway.IPStrategy, errRet error)
func (*APIGatewayService) DescribeIPStrategyHas ¶ added in v1.46.0
func (*APIGatewayService) DescribeIPStrategyStatus ¶ added in v1.46.0
func (me *APIGatewayService) DescribeIPStrategyStatus(ctx context.Context, serviceId, strategyId string) (ipStrategies *apigateway.IPStrategy, has bool, errRet error)
func (*APIGatewayService) DescribeIPStrategysStatus ¶ added in v1.46.0
func (me *APIGatewayService) DescribeIPStrategysStatus(ctx context.Context, serviceId, strategyName string) (infos []*apigateway.IPStrategy, errRet error)
func (*APIGatewayService) DescribeService ¶ added in v1.46.0
func (me *APIGatewayService) DescribeService(ctx context.Context, serviceId string) (info apigateway.DescribeServiceResponse, has bool, errRet error)
func (*APIGatewayService) DescribeServiceEnvironmentReleaseHistory ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServiceEnvironmentReleaseHistory(ctx context.Context, serviceId, envName string) (versionList []*apigateway.ServiceReleaseHistoryInfo, has bool, errRet error)
func (*APIGatewayService) DescribeServiceEnvironmentStrategyList ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServiceEnvironmentStrategyList(ctx context.Context, serviceId string) (environmentList []*apigateway.ServiceEnvironmentStrategy, errRet error)
limit & domain
func (*APIGatewayService) DescribeServiceSubDomainMappings ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServiceSubDomainMappings(ctx context.Context, serviceId, subDomain string) (info *apigateway.ServiceSubDomainMappings, errRet error)
func (*APIGatewayService) DescribeServiceSubDomains ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServiceSubDomains(ctx context.Context, serviceId string) (domainList []*apigateway.DomainSetList, errRet error)
func (*APIGatewayService) DescribeServiceSubDomainsService ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServiceSubDomainsService(ctx context.Context, serviceId, subDomain string) (resultList []*apigateway.DomainSetList, errRet error)
func (*APIGatewayService) DescribeServiceUsagePlan ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServiceUsagePlan(ctx context.Context, serviceId string) (list []*apigateway.ApiUsagePlan, errRet error)
func (*APIGatewayService) DescribeServicesStatus ¶ added in v1.46.0
func (me *APIGatewayService) DescribeServicesStatus(ctx context.Context, serviceId, serviceName string) (infos []*apigateway.Service, errRet error)
func (*APIGatewayService) DescribeStrategyAttachment ¶ added in v1.46.0
func (*APIGatewayService) DescribeUsagePlan ¶ added in v1.46.0
func (me *APIGatewayService) DescribeUsagePlan(ctx context.Context, usagePlanId string) (info apigateway.UsagePlanInfo, has bool, errRet error)
func (*APIGatewayService) DescribeUsagePlanEnvironments ¶ added in v1.46.0
func (me *APIGatewayService) DescribeUsagePlanEnvironments(ctx context.Context, usagePlanId string, bindType string) (list []*apigateway.UsagePlanEnvironment, errRet error)
func (*APIGatewayService) DescribeUsagePlansStatus ¶ added in v1.46.0
func (me *APIGatewayService) DescribeUsagePlansStatus(ctx context.Context, usagePlanId string, usagePlanName string) (infos []*apigateway.UsagePlanStatusInfo, errRet error)
func (*APIGatewayService) DisableApiKey ¶ added in v1.46.0
func (me *APIGatewayService) DisableApiKey(ctx context.Context, accessKeyId string) (errRet error)
func (*APIGatewayService) EnableApiKey ¶ added in v1.46.0
func (me *APIGatewayService) EnableApiKey(ctx context.Context, accessKeyId string) (errRet error)
func (*APIGatewayService) ModifyApiEnvironmentStrategy ¶ added in v1.46.0
func (*APIGatewayService) ModifyService ¶ added in v1.46.0
func (*APIGatewayService) ModifyServiceEnvironmentStrategy ¶ added in v1.46.0
func (*APIGatewayService) ModifySubDomainService ¶ added in v1.46.0
func (*APIGatewayService) ModifyUsagePlan ¶ added in v1.46.0
func (*APIGatewayService) ReleaseService ¶ added in v1.46.0
func (me *APIGatewayService) ReleaseService(ctx context.Context, serviceId, environmentName, releaseDesc string) (response *apigateway.ReleaseServiceResponse, err error)
func (*APIGatewayService) UnBindEnvironment ¶ added in v1.46.0
func (me *APIGatewayService) UnBindEnvironment(ctx context.Context, serviceId, environment, bindType, usagePlanId, apiId string) (errRet error)
func (*APIGatewayService) UnBindSecretId ¶ added in v1.46.0
func (*APIGatewayService) UnBindSubDomainService ¶ added in v1.46.0
func (me *APIGatewayService) UnBindSubDomainService(ctx context.Context, serviceId, subDomain string) (errRet error)
func (*APIGatewayService) UnReleaseService ¶ added in v1.46.0
func (me *APIGatewayService) UnReleaseService(ctx context.Context, serviceId, environment string) (errRet error)
func (*APIGatewayService) UpdateIPStrategy ¶ added in v1.46.0
func (me *APIGatewayService) UpdateIPStrategy(ctx context.Context, serviceId, strategyId, strategyData string) (errRet error)
type APIService ¶ added in v1.60.4
type APIService struct {
// contains filtered or unexported fields
}
func (*APIService) DescribeZonesWithProduct ¶ added in v1.60.4
type AddonRequestBody ¶ added in v1.60.15
type AddonResponseData ¶ added in v1.60.15
type AddonResponseData struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *AddonResponseMeta `json:"metadata,omitempty"` Spec *AddonSpec `json:"spec,omitempty"` Status map[string]interface{} `json:"status,omitempty"` }
type AddonResponseMeta ¶ added in v1.60.15
type AddonResponseMeta struct { Name *string `json:"name,omitempty"` GenerateName *string `json:"generateName,omitempty"` Namespace *string `json:"namespace,omitempty"` SelfLink *string `json:"selfLink,omitempty"` Uid *string `json:"uid,omitempty"` ResourceVersion *string `json:"resourceVersion,omitempty"` Generation *int `json:"generation,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` Labels map[string]*string `json:"labels,omitempty"` }
type AddonSpec ¶ added in v1.60.15
type AddonSpec struct { Chart *AddonSpecChart `json:"chart,omitempty"` Values *AddonSpecValues `json:"values,omitempty"` }
type AddonSpecChart ¶ added in v1.60.15
type AddonSpecValues ¶ added in v1.60.15
type AntiddosService ¶ added in v1.61.4
type AntiddosService struct {
// contains filtered or unexported fields
}
func (*AntiddosService) AssociateDDoSEipAddress ¶ added in v1.61.4
func (*AntiddosService) AssociateDDoSEipLoadBalancer ¶ added in v1.61.4
func (*AntiddosService) CreateCCPrecisionPolicy ¶ added in v1.64.0
func (me *AntiddosService) CreateCCPrecisionPolicy(ctx context.Context, instanceId, protocol, ip, domain, policyAction string, policyList []*antiddos.CCPrecisionPlyRecord) (err error)
func (*AntiddosService) CreateCCReqLimitPolicy ¶ added in v1.64.0
func (me *AntiddosService) CreateCCReqLimitPolicy(ctx context.Context, instanceId, protocol, ip, domain string, ccReqLimitPolicyRecord antiddos.CCReqLimitPolicyRecord) (err error)
func (*AntiddosService) CreateCcBlackWhiteIpList ¶ added in v1.64.0
func (*AntiddosService) CreateCcGeoIPBlockConfig ¶ added in v1.64.0
func (me *AntiddosService) CreateCcGeoIPBlockConfig(ctx context.Context, instanceId, protocol, ip, domain string, ccGeoIPBlockConfig antiddos.CcGeoIPBlockConfig) (err error)
func (*AntiddosService) CreateDDoSAI ¶ added in v1.62.0
func (me *AntiddosService) CreateDDoSAI(ctx context.Context, instanceId, ddosAI string) (err error)
func (*AntiddosService) CreateDDoSBlackWhiteIpList ¶ added in v1.62.0
func (*AntiddosService) CreateDDoSConnectLimit ¶ added in v1.62.0
func (me *AntiddosService) CreateDDoSConnectLimit(ctx context.Context, instanceId string, connectLimitConfig antiddos.ConnectLimitConfig) (err error)
func (*AntiddosService) CreateDDoSGeoIPBlockConfig ¶ added in v1.62.0
func (me *AntiddosService) CreateDDoSGeoIPBlockConfig(ctx context.Context, instanceId string, ddosGeoIPBlockConfig antiddos.DDoSGeoIPBlockConfig) (err error)
func (*AntiddosService) CreateDDoSSpeedLimitConfig ¶ added in v1.62.0
func (me *AntiddosService) CreateDDoSSpeedLimitConfig(ctx context.Context, instanceId string, ddosSpeedLimitConfig antiddos.DDoSSpeedLimitConfig) (err error)
func (*AntiddosService) CreatePacketFilterConfig ¶ added in v1.62.0
func (me *AntiddosService) CreatePacketFilterConfig(ctx context.Context, instanceId string, packetFilterConfig antiddos.PacketFilterConfig) (err error)
func (*AntiddosService) CreatePortAclConfig ¶ added in v1.62.0
func (*AntiddosService) CreateProtocolBlockConfig ¶ added in v1.62.0
func (me *AntiddosService) CreateProtocolBlockConfig(ctx context.Context, instanceId string, protocolBlockConfig antiddos.ProtocolBlockConfig) (err error)
func (*AntiddosService) DeleteCCLevelPolicy ¶ added in v1.64.0
func (me *AntiddosService) DeleteCCLevelPolicy(ctx context.Context, instanceId, ip, domain string) (err error)
func (*AntiddosService) DeleteCCPrecisionPolicy ¶ added in v1.64.0
func (me *AntiddosService) DeleteCCPrecisionPolicy(ctx context.Context, instanceId, policyId string) (err error)
func (*AntiddosService) DeleteCCRequestLimitPolicy ¶ added in v1.64.0
func (me *AntiddosService) DeleteCCRequestLimitPolicy(ctx context.Context, instanceId, policyId string) (err error)
func (*AntiddosService) DeleteCCThresholdPolicy ¶ added in v1.64.0
func (me *AntiddosService) DeleteCCThresholdPolicy(ctx context.Context, instanceId, ip, domain string) (err error)
func (*AntiddosService) DeleteCcBlackWhiteIpList ¶ added in v1.64.0
func (me *AntiddosService) DeleteCcBlackWhiteIpList(ctx context.Context, instanceId, policyId string) (err error)
func (*AntiddosService) DeleteCcGeoIPBlockConfig ¶ added in v1.64.0
func (me *AntiddosService) DeleteCcGeoIPBlockConfig(ctx context.Context, instanceId string, ccGeoIPBlockConfig antiddos.CcGeoIPBlockConfig) (err error)
func (*AntiddosService) DeleteDDoSAI ¶ added in v1.62.0
func (me *AntiddosService) DeleteDDoSAI(ctx context.Context, instanceId string) (err error)
func (*AntiddosService) DeleteDDoSBlackWhiteIpList ¶ added in v1.62.0
func (*AntiddosService) DeleteDDoSConnectLimit ¶ added in v1.62.0
func (me *AntiddosService) DeleteDDoSConnectLimit(ctx context.Context, instanceId string) (err error)
func (*AntiddosService) DeleteDDoSGeoIPBlockConfig ¶ added in v1.62.0
func (me *AntiddosService) DeleteDDoSGeoIPBlockConfig(ctx context.Context, instanceId string, ddosGeoIPBlockConfig antiddos.DDoSGeoIPBlockConfig) (err error)
func (*AntiddosService) DeleteDDoSSpeedLimitConfig ¶ added in v1.62.0
func (me *AntiddosService) DeleteDDoSSpeedLimitConfig(ctx context.Context, instanceId string, ddosSpeedLimitConfig antiddos.DDoSSpeedLimitConfig) (err error)
func (*AntiddosService) DeleteDDoSThreshold ¶ added in v1.62.0
func (me *AntiddosService) DeleteDDoSThreshold(ctx context.Context, business, instanceId string) (err error)
func (*AntiddosService) DeletePacketFilterConfig ¶ added in v1.62.0
func (me *AntiddosService) DeletePacketFilterConfig(ctx context.Context, instanceId string, packetFilterConfig antiddos.PacketFilterConfig) (err error)
func (*AntiddosService) DeletePortAclConfig ¶ added in v1.62.0
func (*AntiddosService) DeleteProtocolBlockConfig ¶ added in v1.62.0
func (me *AntiddosService) DeleteProtocolBlockConfig(ctx context.Context, instanceId string) (err error)
func (*AntiddosService) DeleteyDDoSLevel ¶ added in v1.62.0
func (me *AntiddosService) DeleteyDDoSLevel(ctx context.Context, business, instanceId string) (err error)
func (*AntiddosService) DescribeCCLevelList ¶ added in v1.64.0
func (me *AntiddosService) DescribeCCLevelList(ctx context.Context, business, instanceId string) (result []*antiddos.CCLevelPolicy, err error)
func (*AntiddosService) DescribeCCLevelPolicy ¶ added in v1.64.0
func (*AntiddosService) DescribeCCPrecisionPlyList ¶ added in v1.64.0
func (me *AntiddosService) DescribeCCPrecisionPlyList(ctx context.Context, business, instanceId string) (result []*antiddos.CCPrecisionPolicy, err error)
func (*AntiddosService) DescribeCCReqLimitPolicyList ¶ added in v1.64.0
func (me *AntiddosService) DescribeCCReqLimitPolicyList(ctx context.Context, business, instanceId string) (result []*antiddos.CCReqLimitPolicy, err error)
func (*AntiddosService) DescribeCCThresholdList ¶ added in v1.64.0
func (me *AntiddosService) DescribeCCThresholdList(ctx context.Context, business, instanceId string) (result []*antiddos.CCThresholdPolicy, err error)
func (*AntiddosService) DescribeCcBlackWhiteIpList ¶ added in v1.64.0
func (me *AntiddosService) DescribeCcBlackWhiteIpList(ctx context.Context, business, instanceId string) (result []*antiddos.CcBlackWhiteIpPolicy, err error)
func (*AntiddosService) DescribeCcGeoIPBlockConfigList ¶ added in v1.64.0
func (me *AntiddosService) DescribeCcGeoIPBlockConfigList(ctx context.Context, business, instanceId string) (result []*antiddos.CcGeoIpPolicyNew, err error)
func (*AntiddosService) DescribeDDoSConnectLimitList ¶ added in v1.62.0
func (me *AntiddosService) DescribeDDoSConnectLimitList(ctx context.Context, instanceId string) (result antiddos.ConnectLimitConfig, err error)
func (*AntiddosService) DescribeListBGPIPInstanceById ¶ added in v1.64.0
func (me *AntiddosService) DescribeListBGPIPInstanceById(ctx context.Context, business, instanceId string) (result []*antiddos.BGPIPInstance, err error)
func (*AntiddosService) DescribeListBGPIPInstances ¶ added in v1.61.4
func (me *AntiddosService) DescribeListBGPIPInstances(ctx context.Context, instanceId string, status []string, offset int, limit int) (result []*antiddos.BGPIPInstance, err error)
func (*AntiddosService) DescribeListBGPInstanceById ¶ added in v1.64.0
func (me *AntiddosService) DescribeListBGPInstanceById(ctx context.Context, business, instanceId string) (result []*antiddos.BGPInstance, err error)
func (*AntiddosService) DescribeListBlackWhiteIpList ¶ added in v1.62.0
func (me *AntiddosService) DescribeListBlackWhiteIpList(ctx context.Context, instanceId string) (result []*antiddos.BlackWhiteIpRelation, err error)
func (*AntiddosService) DescribeListDDoSAI ¶ added in v1.62.0
func (me *AntiddosService) DescribeListDDoSAI(ctx context.Context, instanceId string) (result antiddos.DDoSAIRelation, err error)
func (*AntiddosService) DescribeListDDoSGeoIPBlockConfig ¶ added in v1.62.0
func (me *AntiddosService) DescribeListDDoSGeoIPBlockConfig(ctx context.Context, instanceId string) (result []*antiddos.DDoSGeoIPBlockConfigRelation, err error)
func (*AntiddosService) DescribeListDDoSSpeedLimitConfig ¶ added in v1.62.0
func (me *AntiddosService) DescribeListDDoSSpeedLimitConfig(ctx context.Context, instanceId string) (result []*antiddos.DDoSSpeedLimitConfigRelation, err error)
func (*AntiddosService) DescribeListPacketFilterConfig ¶ added in v1.62.0
func (me *AntiddosService) DescribeListPacketFilterConfig(ctx context.Context, instanceId string) (result []*antiddos.PacketFilterRelation, err error)
func (*AntiddosService) DescribeListPortAclList ¶ added in v1.62.0
func (me *AntiddosService) DescribeListPortAclList(ctx context.Context, instanceId string) (result []*antiddos.AclConfigRelation, err error)
func (*AntiddosService) DescribeListProtectThresholdConfig ¶ added in v1.62.0
func (me *AntiddosService) DescribeListProtectThresholdConfig(ctx context.Context, instanceId string) (result antiddos.ProtectThresholdRelation, err error)
func (*AntiddosService) DescribeListProtocolBlockConfig ¶ added in v1.62.0
func (me *AntiddosService) DescribeListProtocolBlockConfig(ctx context.Context, instanceId string) (result antiddos.ProtocolBlockRelation, err error)
func (*AntiddosService) DescribeListWaterPrintConfig ¶ added in v1.62.0
func (me *AntiddosService) DescribeListWaterPrintConfig(ctx context.Context, instanceId string) (result antiddos.WaterPrintRelation, err error)
func (*AntiddosService) DisassociateDDoSEipAddress ¶ added in v1.61.4
func (*AntiddosService) ModifyCCLevelPolicy ¶ added in v1.64.0
func (me *AntiddosService) ModifyCCLevelPolicy(ctx context.Context, instanceId, ip, domain, protocol, level string) (err error)
func (*AntiddosService) ModifyCCThresholdPolicy ¶ added in v1.64.0
func (*AntiddosService) ModifyDDoSLevel ¶ added in v1.62.0
func (me *AntiddosService) ModifyDDoSLevel(ctx context.Context, business, instanceId, ddosLevel string) (err error)
func (*AntiddosService) ModifyDDoSThreshold ¶ added in v1.62.0
type AsService ¶ added in v1.41.3
type AsService struct {
// contains filtered or unexported fields
}
func (*AsService) AttachInstances ¶ added in v1.41.3
func (*AsService) ClearScalingGroupInstance ¶ added in v1.41.3
set the scaling group desired capacity to 0
func (*AsService) DeleteLaunchConfiguration ¶ added in v1.41.3
func (*AsService) DeleteLifecycleHook ¶ added in v1.41.3
func (*AsService) DeleteNotification ¶ added in v1.41.3
func (*AsService) DeleteScalingGroup ¶ added in v1.41.3
func (*AsService) DeleteScalingPolicy ¶ added in v1.41.3
func (*AsService) DeleteScheduledAction ¶ added in v1.41.3
func (*AsService) DescribeActivityById ¶ added in v1.41.3
func (*AsService) DescribeAutoScalingAttachment ¶ added in v1.41.3
func (*AsService) DescribeAutoScalingGroupByFilter ¶ added in v1.41.3
func (*AsService) DescribeAutoScalingGroupById ¶ added in v1.41.3
func (*AsService) DescribeLaunchConfigurationByFilter ¶ added in v1.41.3
func (*AsService) DescribeLaunchConfigurationById ¶ added in v1.41.3
func (*AsService) DescribeLifecycleHookById ¶ added in v1.41.3
func (*AsService) DescribeNotificationById ¶ added in v1.41.3
func (*AsService) DescribeScalingPolicyByFilter ¶ added in v1.41.3
func (*AsService) DescribeScalingPolicyById ¶ added in v1.41.3
func (*AsService) DescribeScheduledActionById ¶ added in v1.41.3
func (*AsService) DetachInstances ¶ added in v1.41.3
func (*AsService) ModifyAutoScalingGroup ¶ added in v1.77.0
type AuditService ¶ added in v1.43.0
type AuditService struct {
// contains filtered or unexported fields
}
func (*AuditService) DescribeAuditById ¶ added in v1.43.0
func (me *AuditService) DescribeAuditById(ctx context.Context, name string) (auditInfo *audit.DescribeAuditResponse, has bool, errRet error)
func (*AuditService) DescribeAuditCmqRegions ¶ added in v1.43.0
func (me *AuditService) DescribeAuditCmqRegions(ctx context.Context) (regions []*audit.CmqRegionInfo, errRet error)
func (*AuditService) DescribeAuditCosRegions ¶ added in v1.43.0
func (me *AuditService) DescribeAuditCosRegions(ctx context.Context) (regions []*audit.CosRegionInfo, errRet error)
func (*AuditService) DescribeKeyAlias ¶ added in v1.43.0
func (me *AuditService) DescribeKeyAlias(ctx context.Context, region string) (keyMetadatas []*audit.KeyMetadata, errRet error)
type CamService ¶ added in v1.41.3
type CamService struct {
// contains filtered or unexported fields
}
func (*CamService) AddGroupPolicyAttachment ¶ added in v1.41.3
func (*CamService) AddUserPolicyAttachment ¶ added in v1.41.3
func (*CamService) DeleteGroupPolicyAttachmentById ¶ added in v1.41.3
func (me *CamService) DeleteGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) error
func (*CamService) DeleteRoleById ¶ added in v1.41.3
func (me *CamService) DeleteRoleById(ctx context.Context, roleId string) error
func (*CamService) DeleteRolePolicyAttachmentById ¶ added in v1.41.3
func (me *CamService) DeleteRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) error
func (*CamService) DeleteUserPolicyAttachmentById ¶ added in v1.41.3
func (me *CamService) DeleteUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) error
func (*CamService) DescribeGroupById ¶ added in v1.41.3
func (me *CamService) DescribeGroupById(ctx context.Context, groupId string) (camInstance *cam.GetGroupResponse, errRet error)
func (*CamService) DescribeGroupMembershipById ¶ added in v1.41.3
func (*CamService) DescribeGroupPolicyAttachmentById ¶ added in v1.41.3
func (me *CamService) DescribeGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeGroupPolicyAttachmentsByFilter ¶ added in v1.41.3
func (me *CamService) DescribeGroupPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeGroupsByFilter ¶ added in v1.41.3
func (*CamService) DescribePoliciesByFilter ¶ added in v1.41.3
func (me *CamService) DescribePoliciesByFilter(ctx context.Context, params map[string]interface{}) (policies []*cam.StrategyInfo, errRet error)
func (*CamService) DescribePolicyById ¶ added in v1.41.3
func (me *CamService) DescribePolicyById(ctx context.Context, policyId string) (result *cam.GetPolicyResponse, errRet error)
func (*CamService) DescribeRoleById ¶ added in v1.41.3
func (*CamService) DescribeRolePolicyAttachmentById ¶ added in v1.41.3
func (me *CamService) DescribeRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)
func (*CamService) DescribeRolePolicyAttachmentsByFilter ¶ added in v1.41.3
func (me *CamService) DescribeRolePolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyOfRoles []*cam.AttachedPolicyOfRole, errRet error)
func (*CamService) DescribeRolesByFilter ¶ added in v1.41.3
func (*CamService) DescribeSAMLProviderById ¶ added in v1.41.3
func (me *CamService) DescribeSAMLProviderById(ctx context.Context, providerName string) (result *cam.GetSAMLProviderResponse, errRet error)
func (*CamService) DescribeSAMLProvidersByFilter ¶ added in v1.41.3
func (me *CamService) DescribeSAMLProvidersByFilter(ctx context.Context, params map[string]interface{}) (providers []*cam.SAMLProviderInfo, errRet error)
func (*CamService) DescribeUserById ¶ added in v1.41.3
func (me *CamService) DescribeUserById(ctx context.Context, userId string) (response *cam.GetUserResponse, errRet error)
func (*CamService) DescribeUserPolicyAttachmentById ¶ added in v1.41.3
func (me *CamService) DescribeUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeUserPolicyAttachmentsByFilter ¶ added in v1.41.3
func (me *CamService) DescribeUserPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeUsersByFilter ¶ added in v1.41.3
func (me *CamService) DescribeUsersByFilter(ctx context.Context, params map[string]interface{}) (result []*cam.SubAccountInfo, errRet error)
func (*CamService) PolicyDocumentForceCheck ¶ added in v1.41.3
func (me *CamService) PolicyDocumentForceCheck(document string) error
type CatService ¶ added in v1.78.9
type CatService struct {
// contains filtered or unexported fields
}
func (*CatService) DeleteCatTaskSetById ¶ added in v1.78.9
func (me *CatService) DeleteCatTaskSetById(ctx context.Context, taskId string) (errRet error)
func (*CatService) DescribeCatNodeByFilter ¶ added in v1.78.9
func (me *CatService) DescribeCatNodeByFilter(ctx context.Context, param map[string]interface{}) (node []*cat.NodeDefine, errRet error)
func (*CatService) DescribeCatProbeDataByFilter ¶ added in v1.78.9
func (me *CatService) DescribeCatProbeDataByFilter(ctx context.Context, param map[string]interface{}) (probeData []*cat.DetailedSingleDataDefine, errRet error)
func (*CatService) DescribeCatTaskSet ¶ added in v1.78.9
type CbsService ¶ added in v1.41.3
type CbsService struct {
// contains filtered or unexported fields
}
func (*CbsService) ApplySnapshot ¶ added in v1.41.3
func (me *CbsService) ApplySnapshot(ctx context.Context, diskId, snapshotId string) error
func (*CbsService) AttachDisk ¶ added in v1.41.3
func (me *CbsService) AttachDisk(ctx context.Context, diskId, instanceId string) error
func (*CbsService) AttachSnapshotPolicy ¶ added in v1.41.3
func (me *CbsService) AttachSnapshotPolicy(ctx context.Context, diskId, policyId string) error
func (*CbsService) CreateSnapshot ¶ added in v1.41.3
func (*CbsService) DeleteDiskById ¶ added in v1.41.3
func (me *CbsService) DeleteDiskById(ctx context.Context, diskId string) error
func (*CbsService) DeleteDiskSetByIds ¶ added in v1.75.2
func (me *CbsService) DeleteDiskSetByIds(ctx context.Context, diskSetIds string) error
func (*CbsService) DeleteSnapshot ¶ added in v1.41.3
func (me *CbsService) DeleteSnapshot(ctx context.Context, snapshotId string) error
func (*CbsService) DeleteSnapshotPolicy ¶ added in v1.41.3
func (me *CbsService) DeleteSnapshotPolicy(ctx context.Context, policyId string) error
func (*CbsService) DescribeAttachedSnapshotPolicy ¶ added in v1.41.3
func (me *CbsService) DescribeAttachedSnapshotPolicy(ctx context.Context, diskId, policyId string) (policy *cbs.AutoSnapshotPolicy, errRet error)
func (*CbsService) DescribeDiskById ¶ added in v1.41.3
func (*CbsService) DescribeDiskList ¶ added in v1.61.10
func (*CbsService) DescribeDiskSetByIds ¶ added in v1.75.2
func (*CbsService) DescribeDisksByFilter ¶ added in v1.41.3
func (*CbsService) DescribeDisksInParallelByFilter ¶ added in v1.75.4
func (*CbsService) DescribeSnapshotById ¶ added in v1.41.3
func (*CbsService) DescribeSnapshotByIds ¶ added in v1.41.3
func (*CbsService) DescribeSnapshotPolicy ¶ added in v1.41.3
func (me *CbsService) DescribeSnapshotPolicy(ctx context.Context, policyId, policyName string) (policies []*cbs.AutoSnapshotPolicy, errRet error)
func (*CbsService) DescribeSnapshotPolicyById ¶ added in v1.41.3
func (me *CbsService) DescribeSnapshotPolicyById(ctx context.Context, policyId string) (policy *cbs.AutoSnapshotPolicy, errRet error)
func (*CbsService) DescribeSnapshotsByFilter ¶ added in v1.41.3
func (*CbsService) DetachDisk ¶ added in v1.41.3
func (me *CbsService) DetachDisk(ctx context.Context, diskId, instanceId string) error
func (*CbsService) ModifyDiskAttributes ¶ added in v1.41.3
func (*CbsService) ModifyDiskChargeType ¶ added in v1.41.3
func (*CbsService) ModifyDisksRenewFlag ¶ added in v1.41.3
func (*CbsService) ModifySnapshotName ¶ added in v1.41.3
func (me *CbsService) ModifySnapshotName(ctx context.Context, snapshotId, snapshotName string) error
func (*CbsService) ModifyThroughputPerformance ¶ added in v1.53.2
func (*CbsService) ResizeDisk ¶ added in v1.41.3
func (*CbsService) UnattachSnapshotPolicy ¶ added in v1.41.3
func (me *CbsService) UnattachSnapshotPolicy(ctx context.Context, diskId, policyId string) error
type CcnAttachedInstanceInfo ¶ added in v1.41.3
type CcnAttachedInstanceInfo struct {
// contains filtered or unexported fields
}
type CcnBandwidthLimit ¶ added in v1.41.3
type CcnBandwidthLimit struct {
// contains filtered or unexported fields
}
type CcnBasicInfo ¶ added in v1.41.3
type CcnBasicInfo struct {
// contains filtered or unexported fields
}
Ccn basic information
type CdhService ¶ added in v1.55.3
type CdhService struct {
// contains filtered or unexported fields
}
func (*CdhService) CreateCdhInstance ¶ added in v1.55.3
func (me *CdhService) CreateCdhInstance(ctx context.Context, placement *cvm.Placement, hostChargePrepaid *cvm.ChargePrepaid, hostChargeType, hostType string) (hostId string, errRet error)
func (*CdhService) DescribeCdhInstanceByFilter ¶ added in v1.55.3
func (*CdhService) DescribeCdhInstanceById ¶ added in v1.55.3
func (*CdhService) ModifyHostName ¶ added in v1.55.3
func (me *CdhService) ModifyHostName(ctx context.Context, hostId, hostName string) (errRet error)
func (*CdhService) ModifyPrepaidRenewFlag ¶ added in v1.55.3
func (me *CdhService) ModifyPrepaidRenewFlag(ctx context.Context, hostId, renewFlag string) (errRet error)
func (*CdhService) ModifyProject ¶ added in v1.55.3
type CdnService ¶ added in v1.41.3
type CdnService struct {
// contains filtered or unexported fields
}
func (*CdnService) CreateVerifyRecord ¶ added in v1.74.0
func (me *CdnService) CreateVerifyRecord(ctx context.Context, domain string) (resp *cdn.CreateVerifyRecordResponseParams, errRet error)
func (*CdnService) DeleteDomain ¶ added in v1.41.3
func (me *CdnService) DeleteDomain(ctx context.Context, domain string) error
func (*CdnService) DescribeDomainsConfigByDomain ¶ added in v1.41.3
func (me *CdnService) DescribeDomainsConfigByDomain(ctx context.Context, domain string) (domainConfig *cdn.DetailDomain, errRet error)
func (*CdnService) DescribeDomainsConfigByFilters ¶ added in v1.41.3
func (me *CdnService) DescribeDomainsConfigByFilters(ctx context.Context, filterMap map[string]interface{}) (domainConfig []*cdn.DetailDomain, errRet error)
func (*CdnService) DescribePurgeTasks ¶ added in v1.74.0
func (me *CdnService) DescribePurgeTasks(ctx context.Context, request *cdn.DescribePurgeTasksRequest) (task []*cdn.PurgeTask, errRet error)
func (*CdnService) DescribePushTasks ¶ added in v1.74.0
func (me *CdnService) DescribePushTasks(ctx context.Context, request *cdn.DescribePushTasksRequest) (task []*cdn.PushTask, errRet error)
func (*CdnService) PurgeUrlsCache ¶ added in v1.74.0
func (me *CdnService) PurgeUrlsCache(ctx context.Context, request *cdn.PurgeUrlsCacheRequest) (taskId string, errRet error)
func (*CdnService) PushUrlsCache ¶ added in v1.74.0
func (me *CdnService) PushUrlsCache(ctx context.Context, request *cdn.PushUrlsCacheRequest) (taskId string, errRet error)
func (*CdnService) StartDomain ¶ added in v1.41.3
func (me *CdnService) StartDomain(ctx context.Context, domain string) error
func (*CdnService) StopDomain ¶ added in v1.41.3
func (me *CdnService) StopDomain(ctx context.Context, domain string) error
func (*CdnService) UpdateDomainConfig ¶ added in v1.78.6
func (me *CdnService) UpdateDomainConfig(ctx context.Context, request *cdn.UpdateDomainConfigRequest) (errRet error)
func (*CdnService) VerifyDomainRecord ¶ added in v1.74.0
type CdnVerifyRecordResponse ¶ added in v1.74.0
type CfsService ¶ added in v1.41.3
type CfsService struct {
// contains filtered or unexported fields
}
func (*CfsService) CreateAccessGroup ¶ added in v1.41.3
func (*CfsService) DeleteAccessGroup ¶ added in v1.41.3
func (me *CfsService) DeleteAccessGroup(ctx context.Context, id string) error
func (*CfsService) DeleteAccessRule ¶ added in v1.41.3
func (me *CfsService) DeleteAccessRule(ctx context.Context, accessGroupId, accessRuleId string) error
func (*CfsService) DeleteFileSystem ¶ added in v1.41.3
func (me *CfsService) DeleteFileSystem(ctx context.Context, fsId string) error
func (*CfsService) DescribeAccessGroup ¶ added in v1.41.3
func (me *CfsService) DescribeAccessGroup(ctx context.Context, id, name string) (accessGroups []*cfs.PGroupInfo, errRet error)
func (*CfsService) DescribeAccessRule ¶ added in v1.41.3
func (me *CfsService) DescribeAccessRule(ctx context.Context, accessGroupId, accessRuleId string) (accessRules []*cfs.PGroupRuleInfo, errRet error)
func (*CfsService) DescribeFileSystem ¶ added in v1.41.3
func (me *CfsService) DescribeFileSystem(ctx context.Context, fsId, vpcId, subnetId string) (fs []*cfs.FileSystemInfo, errRet error)
func (*CfsService) DescribeMountTargets ¶ added in v1.41.3
func (*CfsService) ModifyFileSystemAccessGroup ¶ added in v1.41.3
func (me *CfsService) ModifyFileSystemAccessGroup(ctx context.Context, fsId, accessGroupId string) error
func (*CfsService) ModifyFileSystemName ¶ added in v1.41.3
func (me *CfsService) ModifyFileSystemName(ctx context.Context, fsId, fsName string) error
type CkafkaService ¶ added in v1.41.3
type CkafkaService struct {
// contains filtered or unexported fields
}
func (*CkafkaService) AddCkafkaTopicIpWhiteList ¶ added in v1.42.0
func (*CkafkaService) AddCkafkaTopicPartition ¶ added in v1.42.0
func (*CkafkaService) CheckCkafkaInstanceReady ¶ added in v1.60.19
func (*CkafkaService) CreateAcl ¶ added in v1.41.3
func (me *CkafkaService) CreateAcl(ctx context.Context, instanceId, resourceType, resourceName, operation, permissionType, host, principal string) (errRet error)
func (*CkafkaService) CreateCkafkaTopic ¶ added in v1.42.0
func (me *CkafkaService) CreateCkafkaTopic(ctx context.Context, request *ckafka.CreateTopicRequest) (errRet error)
func (*CkafkaService) CreateUser ¶ added in v1.41.3
func (me *CkafkaService) CreateUser(ctx context.Context, instanceId, user, password string) (errRet error)
func (*CkafkaService) DeleteAcl ¶ added in v1.41.3
func (me *CkafkaService) DeleteAcl(ctx context.Context, aclId string) (errRet error)
func (*CkafkaService) DeleteCkafkaTopic ¶ added in v1.42.0
func (*CkafkaService) DeleteUser ¶ added in v1.41.3
func (me *CkafkaService) DeleteUser(ctx context.Context, userId string) (errRet error)
func (*CkafkaService) DescribeAclByAclId ¶ added in v1.41.3
func (*CkafkaService) DescribeAclByFilter ¶ added in v1.41.3
func (*CkafkaService) DescribeCkafkaById ¶ added in v1.42.0
func (me *CkafkaService) DescribeCkafkaById(ctx context.Context, instanceId string) (instance *ckafka.InstanceDetail, has bool, errRet error)
func (*CkafkaService) DescribeCkafkaInstanceById ¶ added in v1.60.19
func (me *CkafkaService) DescribeCkafkaInstanceById(ctx context.Context, instanceId string) (info *ckafka.InstanceDetail, has bool, errRet error)
func (*CkafkaService) DescribeCkafkaTopicAttributes ¶ added in v1.42.0
func (me *CkafkaService) DescribeCkafkaTopicAttributes(ctx context.Context, instanceId string, topicName string) (topicInfo *ckafka.TopicAttributesResponse, errRet error)
func (*CkafkaService) DescribeCkafkaTopicByName ¶ added in v1.42.0
func (me *CkafkaService) DescribeCkafkaTopicByName(ctx context.Context, instanceId string, topicName string) (topic *ckafka.TopicDetail, has bool, errRet error)
func (*CkafkaService) DescribeCkafkaTopics ¶ added in v1.42.0
func (me *CkafkaService) DescribeCkafkaTopics(ctx context.Context, instanceId string, topicName string) (topicList []*ckafka.TopicDetail, errRet error)
func (*CkafkaService) DescribeInstanceById ¶ added in v1.41.3
func (me *CkafkaService) DescribeInstanceById(ctx context.Context, instanceId string) (instanceInfo *ckafka.InstanceAttributesResponse, has bool, errRet error)
func (*CkafkaService) DescribeTopicById ¶ added in v1.41.3
func (me *CkafkaService) DescribeTopicById(ctx context.Context, topicId string) (topicInfo *ckafka.TopicAttributesResponse, has bool, errRet error)
func (*CkafkaService) DescribeUserByFilter ¶ added in v1.41.3
func (*CkafkaService) DescribeUserByUserId ¶ added in v1.41.3
func (*CkafkaService) ModifyCkafkaInstanceAttributes ¶ added in v1.60.19
func (me *CkafkaService) ModifyCkafkaInstanceAttributes(ctx context.Context, request *ckafka.ModifyInstanceAttributesRequest) (errRet error)
func (*CkafkaService) ModifyCkafkaTopicAttribute ¶ added in v1.42.0
func (me *CkafkaService) ModifyCkafkaTopicAttribute(ctx context.Context, request *ckafka.ModifyTopicAttributesRequest) (errRet error)
func (*CkafkaService) ModifyPassword ¶ added in v1.41.3
func (me *CkafkaService) ModifyPassword(ctx context.Context, instanceId, user, oldPasswd, newPasswd string) (errRet error)
func (*CkafkaService) OperateStatusCheck ¶ added in v1.41.3
func (me *CkafkaService) OperateStatusCheck(ctx context.Context, result *ckafka.JgwOperateResponse) (isSucceed bool)
func (*CkafkaService) RemoveCkafkaTopicIpWhiteList ¶ added in v1.42.0
type ClbService ¶ added in v1.41.3
type ClbService struct {
// contains filtered or unexported fields
}
func (*ClbService) AssociateTargetGroups ¶ added in v1.45.0
func (me *ClbService) AssociateTargetGroups(ctx context.Context, listenerId, clbId, targetGroupId, locationId string) (errRet error)
func (*ClbService) BindOrUnBindCustomizedConfigWithLbId ¶ added in v1.60.11
func (*ClbService) CreateClbLogSet ¶ added in v1.60.7
func (*ClbService) CreateLoadBalancerSnatIps ¶ added in v1.74.2
func (*ClbService) CreateTargetGroup ¶ added in v1.45.0
func (me *ClbService) CreateTargetGroup(ctx context.Context, targetGroupName string, vpcId string, port uint64, targetGroupInstances []*clb.TargetGroupInstance) (targetGroupId string, err error)
func (*ClbService) CreateTopic ¶ added in v1.60.7
func (me *ClbService) CreateTopic(ctx context.Context, params map[string]interface{}) (response *clb.CreateTopicResponse, err error)
func (*ClbService) DeleteAttachmentById ¶ added in v1.41.3
func (*ClbService) DeleteLbCustomizedConfigById ¶ added in v1.60.11
func (me *ClbService) DeleteLbCustomizedConfigById(ctx context.Context, configId string) (errRet error)
func (*ClbService) DeleteListenerById ¶ added in v1.41.3
func (*ClbService) DeleteLoadBalancerById ¶ added in v1.41.3
func (me *ClbService) DeleteLoadBalancerById(ctx context.Context, clbId string) error
func (*ClbService) DeleteLoadBalancerSnatIps ¶ added in v1.74.2
func (*ClbService) DeleteRedirectionById ¶ added in v1.41.3
func (me *ClbService) DeleteRedirectionById(ctx context.Context, rewriteId string) error
func (*ClbService) DeleteRuleById ¶ added in v1.41.3
func (*ClbService) DeleteTarget ¶ added in v1.45.0
func (me *ClbService) DeleteTarget(ctx context.Context, targetGroupId string) error
func (*ClbService) DeregisterTargetInstances ¶ added in v1.45.0
func (*ClbService) DescribeAllAutoRedirections ¶ added in v1.46.2
func (*ClbService) DescribeAssociateTargetGroups ¶ added in v1.45.0
func (*ClbService) DescribeAttachmentByPara ¶ added in v1.41.3
func (me *ClbService) DescribeAttachmentByPara(ctx context.Context, clbId string, listenerId string, locationId string) (clbAttachment *clb.ListenerBackend, errRet error)
func (*ClbService) DescribeAttachmentsByFilter ¶ added in v1.41.3
func (me *ClbService) DescribeAttachmentsByFilter(ctx context.Context, params map[string]string) (clbAttachments []*clb.ListenerBackend, errRet error)
func (*ClbService) DescribeClbLogSet ¶ added in v1.60.7
func (*ClbService) DescribeLbCustomizedConfigById ¶ added in v1.60.11
func (me *ClbService) DescribeLbCustomizedConfigById(ctx context.Context, configId string) (customizedConfig *clb.ConfigListItem, errRet error)
func (*ClbService) DescribeListenerById ¶ added in v1.41.3
func (*ClbService) DescribeListenersByFilter ¶ added in v1.41.3
func (*ClbService) DescribeLoadBalancerByFilter ¶ added in v1.41.3
func (me *ClbService) DescribeLoadBalancerByFilter(ctx context.Context, params map[string]interface{}) (clbs []*clb.LoadBalancer, errRet error)
func (*ClbService) DescribeLoadBalancerById ¶ added in v1.41.3
func (me *ClbService) DescribeLoadBalancerById(ctx context.Context, clbId string) (clbInstance *clb.LoadBalancer, errRet error)
func (*ClbService) DescribeRedirectionById ¶ added in v1.41.3
func (*ClbService) DescribeRedirectionsByFilter ¶ added in v1.41.3
func (*ClbService) DescribeRuleByPara ¶ added in v1.41.3
func (me *ClbService) DescribeRuleByPara(ctx context.Context, clbId string, listenerId string, domain string, url string) (clbRule *clb.RuleOutput, errRet error)
func (*ClbService) DescribeRulesByFilter ¶ added in v1.41.3
func (me *ClbService) DescribeRulesByFilter(ctx context.Context, params map[string]string) (rules []*clb.RuleOutput, errRet error)
func (*ClbService) DescribeTargetGroupInstances ¶ added in v1.45.0
func (me *ClbService) DescribeTargetGroupInstances(ctx context.Context, filters map[string]string) (targetGroupInstances []*clb.TargetGroupBackend, errRet error)
func (*ClbService) DescribeTargetGroups ¶ added in v1.45.0
func (me *ClbService) DescribeTargetGroups(ctx context.Context, targetGroupId string, filters map[string]string) (targetGroupInfos []*clb.TargetGroupInfo, errRet error)
func (*ClbService) DisassociateTargetGroups ¶ added in v1.45.0
func (me *ClbService) DisassociateTargetGroups(ctx context.Context, targetGroupId, listenerId, clbId, locationId string) (errRet error)
func (*ClbService) ModifyTargetGroup ¶ added in v1.45.0
func (*ClbService) ModifyTargetGroupInstancesWeight ¶ added in v1.45.0
func (*ClbService) RegisterTargetInstances ¶ added in v1.45.0
func (*ClbService) UpdateClsLogSet ¶ added in v1.67.0
func (me *ClbService) UpdateClsLogSet(ctx context.Context, request *cls.ModifyLogsetRequest) (errRet error)
type ClsService ¶ added in v1.60.7
type ClsService struct {
// contains filtered or unexported fields
}
func (*ClsService) DeleteClsConfig ¶ added in v1.70.0
func (me *ClsService) DeleteClsConfig(ctx context.Context, id string) (errRet error)
cls config
func (*ClsService) DeleteClsConfigExtra ¶ added in v1.70.2
func (me *ClsService) DeleteClsConfigExtra(ctx context.Context, id string) (errRet error)
cls config extra
func (*ClsService) DeleteClsCosShipper ¶ added in v1.68.0
func (me *ClsService) DeleteClsCosShipper(ctx context.Context, id string) (errRet error)
func (*ClsService) DeleteClsIndex ¶ added in v1.73.0
func (me *ClsService) DeleteClsIndex(ctx context.Context, id string) (errRet error)
cls index
func (*ClsService) DeleteClsLogsetById ¶ added in v1.77.0
func (me *ClsService) DeleteClsLogsetById(ctx context.Context, logsetId string) (errRet error)
func (*ClsService) DeleteClsMachineGroup ¶ added in v1.67.0
func (me *ClsService) DeleteClsMachineGroup(ctx context.Context, id string) (errRet error)
func (*ClsService) DeleteClsTopic ¶ added in v1.67.0
func (me *ClsService) DeleteClsTopic(ctx context.Context, id string) (errRet error)
func (*ClsService) DescribeClsCosShipperById ¶ added in v1.68.0
func (me *ClsService) DescribeClsCosShipperById(ctx context.Context, shipperId string) (instance *cls.ShipperInfo, errRet error)
func (*ClsService) DescribeClsCosShippersByFilter ¶ added in v1.68.0
func (me *ClsService) DescribeClsCosShippersByFilter(ctx context.Context, filters map[string]string) (instances []*cls.ShipperInfo, errRet error)
cls cos shipper
func (*ClsService) DescribeClsLogset ¶ added in v1.77.0
func (me *ClsService) DescribeClsLogset(ctx context.Context, logsetId string) (logset *cls.LogsetInfo, errRet error)
cls logset
func (*ClsService) DescribeClsLogsetByFilter ¶ added in v1.67.0
func (me *ClsService) DescribeClsLogsetByFilter(ctx context.Context, filters map[string]string) (instances []*cls.LogsetInfo, errRet error)
func (*ClsService) DescribeClsMachineGroupByFilter ¶ added in v1.67.0
func (me *ClsService) DescribeClsMachineGroupByFilter(ctx context.Context, filters map[string]string) (instances []*cls.MachineGroupInfo, errRet error)
cls machine group
func (*ClsService) DescribeClsMachineGroupById ¶ added in v1.67.0
func (me *ClsService) DescribeClsMachineGroupById(ctx context.Context, id string) (machineGroup *cls.MachineGroupInfo, errRet error)
func (*ClsService) DescribeClsTopicByFilter ¶ added in v1.67.0
func (me *ClsService) DescribeClsTopicByFilter(ctx context.Context, filters map[string]string) (instances []*cls.TopicInfo, errRet error)
cls topic
func (*ClsService) DescribeClsTopicById ¶ added in v1.67.0
type ClusterAdvancedSettings ¶ added in v1.41.3
type ClusterBasicSetting ¶ added in v1.41.3
type ClusterBasicSetting struct { ClusterId string ClusterOs string ClusterOsType string ClusterVersion string ClusterName string ClusterDescription string ClusterLevel *string AutoUpgradeClusterLevel *bool VpcId string ProjectId int64 ClusterNodeNum int64 ClusterStatus string Tags map[string]string }
type ClusterCidrSettings ¶ added in v1.41.3
type ClusterExtraArgs ¶ added in v1.41.3
type ClusterInfo ¶ added in v1.41.3
type ClusterInfo struct { ClusterBasicSetting ClusterCidrSettings ClusterAdvancedSettings DeployType string CreatedTime string }
type CosBucketDomainCertItem ¶ added in v1.77.8
type CosBucketDomainCertItem struct {
// contains filtered or unexported fields
}
type CosService ¶ added in v1.41.3
type CosService struct {
// contains filtered or unexported fields
}
func (*CosService) DeleteBucket ¶ added in v1.41.3
func (*CosService) DeleteBucketOriginDomain ¶ added in v1.58.5
func (me *CosService) DeleteBucketOriginDomain(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteBucketPolicy ¶ added in v1.49.0
func (me *CosService) DeleteBucketPolicy(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteBucketPullOrigin ¶ added in v1.58.5
func (me *CosService) DeleteBucketPullOrigin(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteBucketReplication ¶ added in v1.60.27
func (me *CosService) DeleteBucketReplication(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteCosBucketDomainCertificate ¶ added in v1.77.8
func (me *CosService) DeleteCosBucketDomainCertificate(ctx context.Context, certId string) (errRet error)
func (*CosService) DeleteObject ¶ added in v1.41.3
func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (errRet error)
func (*CosService) DescribeCosBucketDomainCertificate ¶ added in v1.77.8
func (*CosService) DescribePolicyByBucket ¶ added in v1.49.0
func (*CosService) ForceCleanObject ¶ added in v1.78.1
func (*CosService) GetBucketACL ¶ added in v1.61.9
func (me *CosService) GetBucketACL(ctx context.Context, bucket string) (result *cos.BucketGetACLResult, errRet error)
func (*CosService) GetBucketCors ¶ added in v1.41.3
func (*CosService) GetBucketEncryption ¶ added in v1.41.3
func (*CosService) GetBucketLifecycle ¶ added in v1.41.3
func (*CosService) GetBucketLogStatus ¶ added in v1.51.1
func (*CosService) GetBucketOriginDomain ¶ added in v1.58.5
func (*CosService) GetBucketPullOrigin ¶ added in v1.58.5
func (*CosService) GetBucketReplication ¶ added in v1.60.27
func (me *CosService) GetBucketReplication(ctx context.Context, bucket string) (result *cos.GetBucketReplicationResult, errRet error)
func (*CosService) GetBucketTags ¶ added in v1.41.3
func (*CosService) GetBucketVersioning ¶ added in v1.41.3
func (*CosService) GetBucketWebsite ¶ added in v1.41.3
func (*CosService) GetDataSourceBucketLifecycle ¶ added in v1.41.3
func (*CosService) GetObjectTags ¶ added in v1.59.10
func (*CosService) HeadBucket ¶ added in v1.41.3
func (me *CosService) HeadBucket(ctx context.Context, bucket string) (errRet error)
func (*CosService) HeadObject ¶ added in v1.41.3
func (me *CosService) HeadObject(ctx context.Context, bucket, key string) (info *s3.HeadObjectOutput, errRet error)
func (*CosService) ListBuckets ¶ added in v1.41.3
func (*CosService) ListObjects ¶ added in v1.41.3
func (*CosService) PutBucket ¶ added in v1.41.3
func (me *CosService) PutBucket(ctx context.Context, bucket, acl string) (errRet error)
PutBucket - base on aws s3
func (*CosService) PutBucketOriginDomain ¶ added in v1.58.5
func (me *CosService) PutBucketOriginDomain(ctx context.Context, bucket string, rules []cos.BucketDomainRule) (errRet error)
func (*CosService) PutBucketPolicy ¶ added in v1.49.0
func (me *CosService) PutBucketPolicy(ctx context.Context, bucket, policy string) (errRet error)
func (*CosService) PutBucketPullOrigin ¶ added in v1.58.5
func (me *CosService) PutBucketPullOrigin(ctx context.Context, bucket string, rules []cos.BucketOriginRule) (errRet error)
func (*CosService) PutBucketReplication ¶ added in v1.60.27
func (*CosService) PutObjectAcl ¶ added in v1.41.3
func (me *CosService) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)
func (*CosService) SetBucketTags ¶ added in v1.41.3
func (me *CosService) SetBucketTags(ctx context.Context, bucket string, tags map[string]string) error
SetBucketTags if len(tags) == 0, only delete tags
func (*CosService) SetObjectTags ¶ added in v1.59.10
func (me *CosService) SetObjectTags(ctx context.Context, bucket string, key string, tags map[string]string) error
SetObjectTags same as delete Bucket Tags
func (*CosService) TencentCosPutBucket ¶ added in v1.58.5
func (me *CosService) TencentCosPutBucket(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (errRet error)
TencentCosPutBucket - To support MAZ config, We use tencentcloud cos sdk instead of aws s3
func (*CosService) TencentCosPutBucketACL ¶ added in v1.58.5
func (*CosService) TencentcloudHeadBucket ¶ added in v1.61.9
type CvmService ¶ added in v1.41.3
type CvmService struct {
// contains filtered or unexported fields
}
func (*CvmService) BindKeyPair ¶ added in v1.42.2
func (*CvmService) CreateKeyPair ¶ added in v1.41.3
func (*CvmService) CreatePlacementGroup ¶ added in v1.41.3
func (*CvmService) CreateReservedInstance ¶ added in v1.41.3
func (*CvmService) DeleteImage ¶ added in v1.43.0
func (me *CvmService) DeleteImage(ctx context.Context, imageId string) error
func (*CvmService) DeleteInstance ¶ added in v1.41.3
func (me *CvmService) DeleteInstance(ctx context.Context, instanceId string) error
func (*CvmService) DeleteInstanceSetByIds ¶ added in v1.75.0
func (me *CvmService) DeleteInstanceSetByIds(ctx context.Context, instanceSetIds string) error
func (*CvmService) DeleteKeyPair ¶ added in v1.41.3
func (me *CvmService) DeleteKeyPair(ctx context.Context, keyId string) error
func (*CvmService) DeletePlacementGroup ¶ added in v1.41.3
func (me *CvmService) DeletePlacementGroup(ctx context.Context, placementId string) error
func (*CvmService) DescribeImageById ¶ added in v1.43.0
func (*CvmService) DescribeImagesByFilter ¶ added in v1.41.3
func (*CvmService) DescribeInstanceByFilter ¶ added in v1.41.3
func (*CvmService) DescribeInstanceById ¶ added in v1.41.3
func (*CvmService) DescribeInstanceInParallelByFilter ¶ added in v1.75.4
func (*CvmService) DescribeInstanceSetByIds ¶ added in v1.75.0
func (*CvmService) DescribeInstanceTypes ¶ added in v1.41.3
func (me *CvmService) DescribeInstanceTypes(ctx context.Context, zone string) (instanceTypes []*cvm.InstanceTypeConfig, errRet error)
func (*CvmService) DescribeInstanceTypesByFilter ¶ added in v1.41.3
func (me *CvmService) DescribeInstanceTypesByFilter(ctx context.Context, filters map[string][]string) (instanceTypes []*cvm.InstanceTypeConfig, errRet error)
func (*CvmService) DescribeInstancesSellTypeByFilter ¶ added in v1.47.0
func (me *CvmService) DescribeInstancesSellTypeByFilter(ctx context.Context, filters map[string][]string) (instanceTypes []*cvm.InstanceTypeQuotaItem, errRet error)
func (*CvmService) DescribeKeyPairByFilter ¶ added in v1.41.3
func (*CvmService) DescribeKeyPairById ¶ added in v1.41.3
func (*CvmService) DescribePlacementGroupByFilter ¶ added in v1.41.3
func (me *CvmService) DescribePlacementGroupByFilter(ctx context.Context, id, name string) (placementGroups []*cvm.DisasterRecoverGroup, errRet error)
func (*CvmService) DescribePlacementGroupById ¶ added in v1.41.3
func (me *CvmService) DescribePlacementGroupById(ctx context.Context, placementId string) (placementGroup *cvm.DisasterRecoverGroup, errRet error)
func (*CvmService) DescribeRegions ¶ added in v1.41.3
func (me *CvmService) DescribeRegions(ctx context.Context) (zones []*cvm.RegionInfo, errRet error)
func (*CvmService) DescribeReservedInstanceByFilter ¶ added in v1.41.3
func (me *CvmService) DescribeReservedInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.ReservedInstances, errRet error)
func (*CvmService) DescribeReservedInstanceConfigs ¶ added in v1.41.3
func (me *CvmService) DescribeReservedInstanceConfigs(ctx context.Context, filters map[string]string) (configs []*cvm.ReservedInstancesOffering, errRet error)
func (*CvmService) DescribeZones ¶ added in v1.41.3
func (*CvmService) ModifyImage ¶ added in v1.43.0
func (me *CvmService) ModifyImage(ctx context.Context, instanceId, imageName, imageDesc string) (errRet error)
func (*CvmService) ModifyInstanceChargeType ¶ added in v1.60.26
func (*CvmService) ModifyInstanceName ¶ added in v1.41.3
func (me *CvmService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) error
func (*CvmService) ModifyInstanceType ¶ added in v1.41.3
func (me *CvmService) ModifyInstanceType(ctx context.Context, instanceId, instanceType string) error
func (*CvmService) ModifyInternetMaxBandwidthOut ¶ added in v1.41.3
func (*CvmService) ModifyKeyPairName ¶ added in v1.41.3
func (me *CvmService) ModifyKeyPairName(ctx context.Context, keyId, keyName string) error
func (*CvmService) ModifyPassword ¶ added in v1.41.3
func (me *CvmService) ModifyPassword(ctx context.Context, instanceId, password string) error
func (*CvmService) ModifyPlacementGroup ¶ added in v1.41.3
func (me *CvmService) ModifyPlacementGroup(ctx context.Context, placementId, name string) error
func (*CvmService) ModifyProjectId ¶ added in v1.41.3
func (*CvmService) ModifyRenewParam ¶ added in v1.41.3
func (*CvmService) ModifySecurityGroups ¶ added in v1.41.3
func (*CvmService) ModifyVpc ¶ added in v1.41.3
func (me *CvmService) ModifyVpc(ctx context.Context, instanceId, vpcId, subnetId, privateIp string) error
func (*CvmService) ResetInstance ¶ added in v1.59.18
func (me *CvmService) ResetInstance(ctx context.Context, request *cvm.ResetInstanceRequest) (errRet error)
func (*CvmService) ResizeInstanceDisks ¶ added in v1.61.10
func (me *CvmService) ResizeInstanceDisks(ctx context.Context, request *cvm.ResizeInstanceDisksRequest) (errRet error)
func (*CvmService) StartInstance ¶ added in v1.41.3
func (me *CvmService) StartInstance(ctx context.Context, instanceId string) error
func (*CvmService) StopInstance ¶ added in v1.41.3
func (*CvmService) UnbindKeyPair ¶ added in v1.41.3
type CynosdbService ¶ added in v1.44.0
type CynosdbService struct {
// contains filtered or unexported fields
}
func (*CynosdbService) DescribeClusterById ¶ added in v1.44.0
func (me *CynosdbService) DescribeClusterById(ctx context.Context, clusterId string) (renewFlag int64, clusterInfo *cynosdb.CynosdbClusterDetail, has bool, errRet error)
func (*CynosdbService) DescribeClusterInstanceGrps ¶ added in v1.44.0
func (me *CynosdbService) DescribeClusterInstanceGrps(ctx context.Context, clusterId string) (response *cynosdb.DescribeClusterInstanceGrpsResponse, errRet error)
func (*CynosdbService) DescribeClusterParams ¶ added in v1.77.7
func (*CynosdbService) DescribeClusters ¶ added in v1.44.0
func (me *CynosdbService) DescribeClusters(ctx context.Context, filters map[string]string) (clusters []*cynosdb.CynosdbCluster, errRet error)
func (*CynosdbService) DescribeInsGrpSecurityGroups ¶ added in v1.44.0
func (me *CynosdbService) DescribeInsGrpSecurityGroups(ctx context.Context, instanceGrpId string) (response *cynosdb.DescribeDBSecurityGroupsResponse, errRet error)
func (*CynosdbService) DescribeInstanceById ¶ added in v1.44.0
func (me *CynosdbService) DescribeInstanceById(ctx context.Context, instanceId string) (clusterId string, instanceInfo *cynosdb.CynosdbInstanceDetail, has bool, errRet error)
func (*CynosdbService) DescribeInstances ¶ added in v1.44.0
func (me *CynosdbService) DescribeInstances(ctx context.Context, filters map[string]string) (instances []*cynosdb.CynosdbInstance, errRet error)
func (*CynosdbService) DescribeMaintainPeriod ¶ added in v1.44.0
func (me *CynosdbService) DescribeMaintainPeriod(ctx context.Context, instanceId string) (response *cynosdb.DescribeMaintainPeriodResponse, errRet error)
func (*CynosdbService) DescribeRedisZoneConfig ¶ added in v1.77.7
func (me *CynosdbService) DescribeRedisZoneConfig(ctx context.Context) (instanceSpecSet []*cynosdb.InstanceSpec, err error)
func (*CynosdbService) IsolateCluster ¶ added in v1.44.0
func (*CynosdbService) IsolateInstance ¶ added in v1.44.0
func (me *CynosdbService) IsolateInstance(ctx context.Context, clusterId, instanceId string) (errRet error)
func (*CynosdbService) ModifyClusterParam ¶ added in v1.64.0
func (me *CynosdbService) ModifyClusterParam(ctx context.Context, request *cynosdb.ModifyClusterParamRequest) (asyncReqId string, errRet error)
func (*CynosdbService) ModifyInsGrpSecurityGroups ¶ added in v1.44.0
func (*CynosdbService) ModifyMaintainPeriodConfig ¶ added in v1.44.0
func (*CynosdbService) OfflineCluster ¶ added in v1.44.0
func (me *CynosdbService) OfflineCluster(ctx context.Context, clusterId string) (errRet error)
func (*CynosdbService) OfflineInstance ¶ added in v1.44.0
func (me *CynosdbService) OfflineInstance(ctx context.Context, clusterId, instanceId string) (errRet error)
func (*CynosdbService) UpgradeInstance ¶ added in v1.44.0
type DayuService ¶ added in v1.41.3
type DayuService struct {
// contains filtered or unexported fields
}
func (*DayuService) BindDdosPolicy ¶ added in v1.41.3
func (*DayuService) CreateCCSelfdefinePolicy ¶ added in v1.41.3
func (*DayuService) CreateDdosPolicy ¶ added in v1.41.3
func (me *DayuService) CreateDdosPolicy(ctx context.Context, resourceType string, name string, ddosPolicyDropOption []*dayu.DDoSPolicyDropOption, ddosPolicyPortLimit []*dayu.DDoSPolicyPortLimit, ipBlackWhite []*dayu.IpBlackWhite, ddosPacketFilter []*dayu.DDoSPolicyPacketFilter, waterPrintPolicy []*dayu.WaterPrintPolicy) (policyId string, errRet error)
func (*DayuService) CreateDdosPolicyCase ¶ added in v1.41.3
func (me *DayuService) CreateDdosPolicyCase(ctx context.Context, request *dayu.CreateDDoSPolicyCaseRequest) (sceneId string, errRet error)
func (*DayuService) CreateL4Rule ¶ added in v1.41.3
func (me *DayuService) CreateL4Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L4RuleEntry) (ruleId string, errRet error)
func (*DayuService) CreateL7Rule ¶ added in v1.41.3
func (me *DayuService) CreateL7Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L7RuleEntry) (ruleId string, errRet error)
func (*DayuService) CreateL7RuleV2 ¶ added in v1.61.4
func (*DayuService) CreateNewL4Rules ¶ added in v1.61.4
func (*DayuService) DeleteCCSelfdefinePolicy ¶ added in v1.41.3
func (*DayuService) DeleteDdosPolicy ¶ added in v1.41.3
func (*DayuService) DeleteDdosPolicyCase ¶ added in v1.41.3
func (*DayuService) DeleteL4Rule ¶ added in v1.41.3
func (*DayuService) DeleteL7Rule ¶ added in v1.41.3
func (*DayuService) DeleteL7RulesV2 ¶ added in v1.61.4
func (*DayuService) DeleteNewL4Rules ¶ added in v1.61.4
func (*DayuService) DescribeCCSelfdefinePolicies ¶ added in v1.41.3
func (*DayuService) DescribeCCSelfdefinePolicy ¶ added in v1.41.3
func (*DayuService) DescribeDdosPolicies ¶ added in v1.41.3
func (me *DayuService) DescribeDdosPolicies(ctx context.Context, resourceType string, policyId string) (ddosPolicies []*dayu.DDosPolicy, errRet error)
func (*DayuService) DescribeDdosPolicy ¶ added in v1.41.3
func (me *DayuService) DescribeDdosPolicy(ctx context.Context, resourceType string, policyId string) (ddosPolicy dayu.DDosPolicy, has bool, errRet error)
func (*DayuService) DescribeDdosPolicyAttachments ¶ added in v1.41.3
func (*DayuService) DescribeDdosPolicyCase ¶ added in v1.41.3
func (me *DayuService) DescribeDdosPolicyCase(ctx context.Context, resourceType string, sceneId string) (ddosPolicyCase dayu.KeyValueRecord, has bool, errRet error)
func (*DayuService) DescribeL4Health ¶ added in v1.41.3
func (me *DayuService) DescribeL4Health(ctx context.Context, resourceType string, resourceId string, ruleId string) (healthCheck *dayu.L4HealthConfig, has bool, errRet error)
func (*DayuService) DescribeL4Rule ¶ added in v1.41.3
func (me *DayuService) DescribeL4Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (infos *dayu.L4RuleEntry, health *dayu.L4RuleHealth, has bool, errRet error)
func (*DayuService) DescribeL4Rules ¶ added in v1.41.3
func (me *DayuService) DescribeL4Rules(ctx context.Context, resourceType string, resourceId string, ruleName string, ruleId string) (infos []*dayu.L4RuleEntry, healths []*dayu.L4RuleHealth, has bool, errRet error)
func (*DayuService) DescribeL7Health ¶ added in v1.41.3
func (me *DayuService) DescribeL7Health(ctx context.Context, resourceType string, resourceId string, ruleId string) (healthCheck *dayu.L7HealthConfig, has bool, errRet error)
func (*DayuService) DescribeL7Rule ¶ added in v1.41.3
func (me *DayuService) DescribeL7Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (infos *dayu.L7RuleEntry, health *dayu.L7RuleHealth, has bool, errRet error)
func (*DayuService) DescribeL7Rules ¶ added in v1.41.3
func (me *DayuService) DescribeL7Rules(ctx context.Context, resourceType string, resourceId string, ruleDomain string, ruleId string, protocol string) (infos []*dayu.L7RuleEntry, healths []*dayu.L7RuleHealth, has bool, errRet error)
func (*DayuService) DescribeL7RulesV2 ¶ added in v1.61.4
func (me *DayuService) DescribeL7RulesV2(ctx context.Context, business string, offset int, limit int, extendParams map[string]interface{}) (rules []*dayu.NewL7RuleEntry, healths []*dayu.L7RuleHealth, errRet error)
func (*DayuService) DescribeNewL4Rules ¶ added in v1.61.4
func (me *DayuService) DescribeNewL4Rules(ctx context.Context, business string, extendParams map[string]interface{}) (infos []*dayu.NewL4RuleEntry, errRet error)
func (*DayuService) ModifyCCSelfdefinePolicy ¶ added in v1.41.3
func (*DayuService) ModifyDdosPolicy ¶ added in v1.41.3
func (me *DayuService) ModifyDdosPolicy(ctx context.Context, resourceType string, policyId string, ddosPolicyDropOption []*dayu.DDoSPolicyDropOption, ddosPolicyPortLimit []*dayu.DDoSPolicyPortLimit, ipBlackWhite []*dayu.IpBlackWhite, ddosPacketFilter []*dayu.DDoSPolicyPacketFilter, waterPrintPolicy []*dayu.WaterPrintPolicy) (errRet error)
func (*DayuService) ModifyDdosPolicyCase ¶ added in v1.41.3
func (me *DayuService) ModifyDdosPolicyCase(ctx context.Context, request *dayu.ModifyDDoSPolicyCaseRequest) (errRet error)
func (*DayuService) ModifyDdosPolicyName ¶ added in v1.41.3
func (*DayuService) ModifyL4Rule ¶ added in v1.41.3
func (me *DayuService) ModifyL4Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L4RuleEntry) (errRet error)
func (*DayuService) ModifyL7Rule ¶ added in v1.41.3
func (me *DayuService) ModifyL7Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L7RuleEntry) (errRet error)
func (*DayuService) ModifyL7RuleV2 ¶ added in v1.61.4
func (me *DayuService) ModifyL7RuleV2(ctx context.Context, resourceType string, resourceId string, rule *dayu.NewL7RuleEntry) (errRet error)
func (*DayuService) ModifyNewL4Rule ¶ added in v1.61.4
func (*DayuService) SetL4Health ¶ added in v1.41.3
func (me *DayuService) SetL4Health(ctx context.Context, resourceType string, resourceId string, healthCheck dayu.L4HealthConfig) (errRet error)
func (*DayuService) SetL7Health ¶ added in v1.41.3
func (me *DayuService) SetL7Health(ctx context.Context, resourceType string, resourceId string, healthCheck dayu.L7HealthConfig) (errRet error)
func (*DayuService) SetRuleSwitch ¶ added in v1.41.3
func (*DayuService) SetSession ¶ added in v1.41.3
func (*DayuService) UnbindDdosPolicy ¶ added in v1.41.3
type DcService ¶ added in v1.41.3
type DcService struct {
// contains filtered or unexported fields
}
func (*DcService) CreateDirectConnectTunnel ¶ added in v1.41.3
func (*DcService) DeleteDirectConnectTunnel ¶ added in v1.41.3
func (*DcService) DescribeDirectConnectTunnel ¶ added in v1.41.3
func (*DcService) DescribeDirectConnectTunnels ¶ added in v1.41.3
func (*DcService) DescribeDirectConnects ¶ added in v1.41.3
type DcdbService ¶ added in v1.78.8
type DcdbService struct {
// contains filtered or unexported fields
}
func (*DcdbService) DeleteDcdbAccountById ¶ added in v1.78.8
func (me *DcdbService) DeleteDcdbAccountById(ctx context.Context, instanceId, userName, host string) (errRet error)
func (*DcdbService) DeleteDcdbHourdbInstanceById ¶ added in v1.78.8
func (me *DcdbService) DeleteDcdbHourdbInstanceById(ctx context.Context, instanceId string) (errRet error)
func (*DcdbService) DeleteDcdbSecurityGroupAttachmentById ¶ added in v1.78.8
func (me *DcdbService) DeleteDcdbSecurityGroupAttachmentById(ctx context.Context, instanceId, securityGroupId string) (errRet error)
func (*DcdbService) DescribeDcdbAccount ¶ added in v1.78.8
func (me *DcdbService) DescribeDcdbAccount(ctx context.Context, instanceId, userName string) (account *dcdb.DescribeAccountsResponseParams, errRet error)
dc_account
func (*DcdbService) DescribeDcdbAccountsByFilter ¶ added in v1.78.9
func (me *DcdbService) DescribeDcdbAccountsByFilter(ctx context.Context, param map[string]interface{}) (accounts []*dcdb.DBAccount, errRet error)
tencentcloud_dcdb_accounts
func (*DcdbService) DescribeDcdbDatabasesByFilter ¶ added in v1.78.9
func (me *DcdbService) DescribeDcdbDatabasesByFilter(ctx context.Context, param map[string]interface{}) (databases []*dcdb.Database, errRet error)
tencentcloud_dcdb_databases
func (*DcdbService) DescribeDcdbDbInstance ¶ added in v1.78.8
func (me *DcdbService) DescribeDcdbDbInstance(ctx context.Context, instanceId string) (instances *dcdb.DescribeDCDBInstancesResponseParams, errRet error)
dc_db_instance
func (*DcdbService) DescribeDcdbHourdbInstance ¶ added in v1.78.8
func (me *DcdbService) DescribeDcdbHourdbInstance(ctx context.Context, instanceId string) (hourdbInstance *dcdb.DescribeDCDBInstancesResponseParams, errRet error)
dc_hourdb_instance
func (*DcdbService) DescribeDcdbInstancesByFilter ¶ added in v1.78.9
func (me *DcdbService) DescribeDcdbInstancesByFilter(ctx context.Context, params map[string]interface{}) (instances []*dcdb.DCDBInstanceInfo, errRet error)
for data_source tencentcloud_dcdb_instances
func (*DcdbService) DescribeDcdbParametersByFilter ¶ added in v1.78.9
func (me *DcdbService) DescribeDcdbParametersByFilter(ctx context.Context, param map[string]interface{}) (parameters []*dcdb.ParamDesc, errRet error)
tencentcloud_dcdb_parameters
func (*DcdbService) DescribeDcdbSecurityGroup ¶ added in v1.78.8
func (me *DcdbService) DescribeDcdbSecurityGroup(ctx context.Context, instanceId string) (securityGroup *dcdb.DescribeDBSecurityGroupsResponseParams, errRet error)
dc_sg
func (*DcdbService) DescribeDcdbSecurityGroupsByFilter ¶ added in v1.78.9
func (me *DcdbService) DescribeDcdbSecurityGroupsByFilter(ctx context.Context, param map[string]interface{}) (securityGroups []*dcdb.SecurityGroup, errRet error)
tencentcloud_dcdb_security_groups
func (*DcdbService) DescribeDcdbShardsByFilter ¶ added in v1.78.9
func (me *DcdbService) DescribeDcdbShardsByFilter(ctx context.Context, param map[string]interface{}) (shards []*dcdb.DCDBShardInfo, errRet error)
tencentcloud_dcdb_shards
func (*DcdbService) InitDcdbDbInstance ¶ added in v1.78.8
func (me *DcdbService) InitDcdbDbInstance(ctx context.Context, instanceId string, params []*dcdb.DBParamValue) (initRet bool, errRet error)
type DcgInstanceInfo ¶ added in v1.41.3
type DcgInstanceInfo struct {
// contains filtered or unexported fields
}
info for one direct connect gateway.
type DcgRouteInfo ¶ added in v1.41.3
type DcgRouteInfo struct {
// contains filtered or unexported fields
}
info for direct connect gateway[ ccn type] route.
type DnspodService ¶ added in v1.60.10
type DnspodService struct {
// contains filtered or unexported fields
}
func (*DnspodService) DeleteDomain ¶ added in v1.78.4
func (me *DnspodService) DeleteDomain(ctx context.Context, domain string) (errRet error)
func (*DnspodService) DescribeDomain ¶ added in v1.78.4
func (me *DnspodService) DescribeDomain(ctx context.Context, domain string) (ret *dnspod.DescribeDomainResponse, errRet error)
func (*DnspodService) ModifyDnsPodDomainRemark ¶ added in v1.60.10
func (*DnspodService) ModifyDnsPodDomainStatus ¶ added in v1.60.10
func (me *DnspodService) ModifyDnsPodDomainStatus(ctx context.Context, domain string, status string) (errRet error)
////////api
type DomainService ¶ added in v1.73.0
type DomainService struct {
// contains filtered or unexported fields
}
func (*DomainService) DescribeDomainNameList ¶ added in v1.73.0
func (me *DomainService) DescribeDomainNameList(ctx context.Context, request *domain.DescribeDomainNameListRequest) (result []*domain.DomainList, errRet error)
type EMRService ¶ added in v1.60.11
type EMRService struct {
// contains filtered or unexported fields
}
func (*EMRService) CreateInstance ¶ added in v1.60.11
func (me *EMRService) CreateInstance(ctx context.Context, d *schema.ResourceData) (id string, err error)
func (*EMRService) DeleteInstance ¶ added in v1.60.11
func (me *EMRService) DeleteInstance(ctx context.Context, d *schema.ResourceData) error
func (*EMRService) DescribeClusterNodes ¶ added in v1.65.0
func (me *EMRService) DescribeClusterNodes(ctx context.Context, instanceId, nodeFlag, hardwareResourceType string, offset, limit int) (nodes []*emr.NodeHardwareInfo, errRet error)
func (*EMRService) DescribeInstances ¶ added in v1.60.11
func (me *EMRService) DescribeInstances(ctx context.Context, filters map[string]interface{}) (clusters []*emr.ClusterInstancesInfo, errRet error)
func (*EMRService) DescribeInstancesById ¶ added in v1.60.11
func (me *EMRService) DescribeInstancesById(ctx context.Context, instanceId string, displayStrategy string) (clusters []*emr.ClusterInstancesInfo, errRet error)
func (*EMRService) UpdateInstance ¶ added in v1.60.11
func (me *EMRService) UpdateInstance(ctx context.Context, request *emr.ScaleOutInstanceRequest) (id string, err error)
type EipAssociationId ¶ added in v1.41.3
type EksClusterCredentialResponse ¶ added in v1.66.0
type EksClusterCredentialResponse struct { Addresses []*tke.IPAddress `json:"Addresses,omitempty" name:"Addresses"` Credential *tke.ClusterCredential `json:"Credential,omitempty" name:"Credential"` PublicLB *tke.ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"` InternalLB *tke.ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"` KubeConfig string ProxyLB bool }
type EksClusterInfo ¶ added in v1.59.11
type EksClusterInfo struct { ClusterId string ClusterName string ClusterDesc string K8SVersion string VpcId string SubnetIds []string Status string CreatedTime string ServiceSubnetId string ExtraParam string DnsServers []map[string]interface{} NeedDeleteCbs bool EnableVpcCoreDNS bool Tags map[string]string }
type EksService ¶ added in v1.59.11
type EksService struct {
// contains filtered or unexported fields
}
func (*EksService) CreateEksCluster ¶ added in v1.59.11
func (me *EksService) CreateEksCluster(ctx context.Context, request *tke.CreateEKSClusterRequest) (id string, errRet error)
func (*EksService) CreateEksContainerInstances ¶ added in v1.60.10
func (me *EksService) CreateEksContainerInstances(ctx context.Context, request *tke.CreateEKSContainerInstancesRequest) (id string, errRet error)
func (*EksService) DeleteEksCluster ¶ added in v1.59.11
func (me *EksService) DeleteEksCluster(ctx context.Context, request *tke.DeleteEKSClusterRequest) (errRet error)
func (*EksService) DeleteEksContainerInstance ¶ added in v1.60.10
func (me *EksService) DeleteEksContainerInstance(ctx context.Context, request *tke.DeleteEKSContainerInstancesRequest) (errRet error)
func (*EksService) DescribeEKSClusterCredential ¶ added in v1.66.0
func (me *EksService) DescribeEKSClusterCredential(ctx context.Context, request *tke.DescribeEKSClusterCredentialRequest) (info *EksClusterCredentialResponse, errRet error)
func (*EksService) DescribeEKSClusterCredentialById ¶ added in v1.66.0
func (me *EksService) DescribeEKSClusterCredentialById(ctx context.Context, id string) (info *EksClusterCredentialResponse, errRet error)
func (*EksService) DescribeEKSClusters ¶ added in v1.59.11
func (me *EksService) DescribeEKSClusters(ctx context.Context, id string, name string) (eksClusters []EksClusterInfo, errRet error)
func (*EksService) DescribeEksCluster ¶ added in v1.59.11
func (me *EksService) DescribeEksCluster(ctx context.Context, id string) (clusterInfo EksClusterInfo, has bool, errRet error)
func (*EksService) DescribeEksContainerInstanceById ¶ added in v1.60.10
func (*EksService) DescribeEksContainerInstancesByFilter ¶ added in v1.60.10
func (*EksService) UpdateEksCluster ¶ added in v1.59.11
func (me *EksService) UpdateEksCluster(ctx context.Context, request *tke.UpdateEKSClusterRequest) (errRet error)
func (*EksService) UpdateEksContainerInstances ¶ added in v1.60.10
func (me *EksService) UpdateEksContainerInstances(ctx context.Context, request *tke.UpdateEKSContainerInstanceRequest) (errRet error)
type ElasticsearchService ¶ added in v1.41.3
type ElasticsearchService struct {
// contains filtered or unexported fields
}
func (*ElasticsearchService) DeleteInstance ¶ added in v1.41.3
func (me *ElasticsearchService) DeleteInstance(ctx context.Context, instanceId string) error
func (*ElasticsearchService) DescribeInstanceById ¶ added in v1.41.3
func (me *ElasticsearchService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *es.InstanceInfo, errRet error)
func (*ElasticsearchService) DescribeInstancesByFilter ¶ added in v1.41.3
func (me *ElasticsearchService) DescribeInstancesByFilter(ctx context.Context, instanceId, instanceName string, tags map[string]string) (instances []*es.InstanceInfo, errRet error)
func (*ElasticsearchService) UpdateInstance ¶ added in v1.41.3
func (me *ElasticsearchService) UpdateInstance(ctx context.Context, instanceId, instanceName, password string, basicSecurityType int64, nodeList []*es.NodeInfo, nodeTypeInfo *es.WebNodeTypeInfo, esAcl *es.EsAcl) error
UpdateInstance FIXME: use *Request instead of these suck params
func (*ElasticsearchService) UpdateInstanceLicense ¶ added in v1.41.3
func (me *ElasticsearchService) UpdateInstanceLicense(ctx context.Context, instanceId, licenseType string) error
func (*ElasticsearchService) UpdateInstanceVersion ¶ added in v1.41.3
func (me *ElasticsearchService) UpdateInstanceVersion(ctx context.Context, instanceId, version string) error
type GaapService ¶ added in v1.41.3
type GaapService struct {
// contains filtered or unexported fields
}
func (*GaapService) BindHttpRuleRealservers ¶ added in v1.41.3
func (me *GaapService) BindHttpRuleRealservers(ctx context.Context, listenerId, ruleId string, realservers []gaapRealserverBind) error
func (*GaapService) BindLayer4ListenerRealservers ¶ added in v1.41.3
func (me *GaapService) BindLayer4ListenerRealservers(ctx context.Context, id, protocol, proxyId string, realserverBinds []gaapRealserverBind) error
func (*GaapService) CreateDomainErrorPageInfo ¶ added in v1.41.3
func (*GaapService) CreateHTTPDomain ¶ added in v1.41.3
func (me *GaapService) CreateHTTPDomain(ctx context.Context, listenerId, domain string) error
func (*GaapService) CreateHTTPListener ¶ added in v1.41.3
func (*GaapService) CreateHTTPSDomain ¶ added in v1.41.3
func (*GaapService) CreateHTTPSListener ¶ added in v1.41.3
func (*GaapService) CreateHttpRule ¶ added in v1.41.3
func (me *GaapService) CreateHttpRule(ctx context.Context, httpRule gaapHttpRule) (id string, err error)
func (*GaapService) CreateProxy ¶ added in v1.41.3
func (*GaapService) CreateRealserver ¶ added in v1.41.3
func (*GaapService) CreateSecurityPolicy ¶ added in v1.41.3
func (*GaapService) CreateSecurityRule ¶ added in v1.41.3
func (*GaapService) CreateTCPListener ¶ added in v1.41.3
func (*GaapService) CreateUDPListener ¶ added in v1.41.3
func (*GaapService) DeleteCertificate ¶ added in v1.41.3
func (me *GaapService) DeleteCertificate(ctx context.Context, id string) error
func (*GaapService) DeleteDomain ¶ added in v1.41.3
func (me *GaapService) DeleteDomain(ctx context.Context, listenerId, domain string) error
func (*GaapService) DeleteDomainErrorPageInfo ¶ added in v1.41.3
func (me *GaapService) DeleteDomainErrorPageInfo(ctx context.Context, id string) error
func (*GaapService) DeleteHttpRule ¶ added in v1.41.3
func (me *GaapService) DeleteHttpRule(ctx context.Context, listenerId, ruleId string) error
func (*GaapService) DeleteLayer4Listener ¶ added in v1.41.3
func (me *GaapService) DeleteLayer4Listener(ctx context.Context, id, proxyId, protocol string) error
func (*GaapService) DeleteLayer7Listener ¶ added in v1.41.3
func (me *GaapService) DeleteLayer7Listener(ctx context.Context, id, proxyId, protocol string) error
func (*GaapService) DeleteProxy ¶ added in v1.41.3
func (me *GaapService) DeleteProxy(ctx context.Context, id string) error
func (*GaapService) DeleteRealserver ¶ added in v1.41.3
func (me *GaapService) DeleteRealserver(ctx context.Context, id string) error
func (*GaapService) DeleteSecurityPolicy ¶ added in v1.41.3
func (me *GaapService) DeleteSecurityPolicy(ctx context.Context, id string) error
func (*GaapService) DeleteSecurityRule ¶ added in v1.41.3
func (me *GaapService) DeleteSecurityRule(ctx context.Context, policyId, ruleId string) error
func (*GaapService) DescribeCertificateById ¶ added in v1.41.3
func (me *GaapService) DescribeCertificateById(ctx context.Context, id string) (certificate *gaap.CertificateDetail, err error)
func (*GaapService) DescribeCertificates ¶ added in v1.41.3
func (me *GaapService) DescribeCertificates(ctx context.Context, id, name *string, certificateType *int) (certificates []*gaap.Certificate, err error)
func (*GaapService) DescribeDomain ¶ added in v1.41.3
func (me *GaapService) DescribeDomain(ctx context.Context, listenerId, domain string) (domainRet *gaap.DomainRuleSet, err error)
func (*GaapService) DescribeDomainErrorPageInfo ¶ added in v1.41.3
func (me *GaapService) DescribeDomainErrorPageInfo(ctx context.Context, listenerId, domain, id string) (info *gaap.DomainErrorPageInfo, err error)
func (*GaapService) DescribeDomainErrorPageInfoList ¶ added in v1.41.3
func (me *GaapService) DescribeDomainErrorPageInfoList(ctx context.Context, listenerId, domain string) (list []*gaap.DomainErrorPageInfo, err error)
func (*GaapService) DescribeDomains ¶ added in v1.41.3
func (me *GaapService) DescribeDomains(ctx context.Context, listenerId, domain string) (domains []*gaap.DomainRuleSet, err error)
func (*GaapService) DescribeHTTPListeners ¶ added in v1.41.3
func (me *GaapService) DescribeHTTPListeners( ctx context.Context, proxyId, id, name *string, port *int, ) (listeners []*gaap.HTTPListener, err error)
func (*GaapService) DescribeHTTPSListeners ¶ added in v1.41.3
func (me *GaapService) DescribeHTTPSListeners( ctx context.Context, proxyId, listenerId, name *string, port *int, ) (listeners []*gaap.HTTPSListener, err error)
func (*GaapService) DescribeHttpRule ¶ added in v1.41.3
func (*GaapService) DescribeProxies ¶ added in v1.41.3
func (*GaapService) DescribeRealservers ¶ added in v1.41.3
func (me *GaapService) DescribeRealservers(ctx context.Context, address, name *string, tags map[string]string, projectId int) (realservers []*gaap.BindRealServerInfo, err error)
func (*GaapService) DescribeSecurityPolicy ¶ added in v1.41.3
func (*GaapService) DescribeSecurityRule ¶ added in v1.41.3
func (me *GaapService) DescribeSecurityRule(ctx context.Context, id string) (securityRule *gaap.SecurityPolicyRuleOut, err error)
func (*GaapService) DescribeSecurityRules ¶ added in v1.41.3
func (me *GaapService) DescribeSecurityRules(ctx context.Context, policyId string) (securityRules []*gaap.SecurityPolicyRuleOut, err error)
func (*GaapService) DescribeTCPListeners ¶ added in v1.41.3
func (me *GaapService) DescribeTCPListeners(ctx context.Context, proxyId, listenerId, name *string, port *int) (listeners []*gaap.TCPListener, err error)
func (*GaapService) DescribeUDPListeners ¶ added in v1.41.3
func (me *GaapService) DescribeUDPListeners(ctx context.Context, proxyId, id, name *string, port *int) (listeners []*gaap.UDPListener, err error)
func (*GaapService) DisableProxy ¶ added in v1.41.3
func (me *GaapService) DisableProxy(ctx context.Context, id string) error
func (*GaapService) DisableSecurityPolicy ¶ added in v1.41.3
func (me *GaapService) DisableSecurityPolicy(ctx context.Context, proxyId, policyId string) error
func (*GaapService) EnableProxy ¶ added in v1.41.3
func (me *GaapService) EnableProxy(ctx context.Context, id string) error
func (*GaapService) EnableSecurityPolicy ¶ added in v1.41.3
func (me *GaapService) EnableSecurityPolicy(ctx context.Context, proxyId, policyId string) error
func (*GaapService) ModifyCertificateName ¶ added in v1.41.3
func (me *GaapService) ModifyCertificateName(ctx context.Context, id, name string) error
func (*GaapService) ModifyDomainCertificate ¶ added in v1.41.3
func (*GaapService) ModifyHTTPListener ¶ added in v1.41.3
func (me *GaapService) ModifyHTTPListener(ctx context.Context, id, proxyId, name string) error
func (*GaapService) ModifyHTTPRuleAttribute ¶ added in v1.41.3
func (*GaapService) ModifyHTTPRuleForwardHost ¶ added in v1.41.3
func (me *GaapService) ModifyHTTPRuleForwardHost(ctx context.Context, listenerId, ruleId, forwardHost string) error
func (*GaapService) ModifyHTTPSListener ¶ added in v1.41.3
func (*GaapService) ModifyProxyConfiguration ¶ added in v1.41.3
func (*GaapService) ModifyProxyName ¶ added in v1.41.3
func (me *GaapService) ModifyProxyName(ctx context.Context, id, name string) error
func (*GaapService) ModifyProxyProjectId ¶ added in v1.41.3
func (*GaapService) ModifyRealserverName ¶ added in v1.41.3
func (me *GaapService) ModifyRealserverName(ctx context.Context, id, name string) error
func (*GaapService) ModifySecurityRuleName ¶ added in v1.41.3
func (me *GaapService) ModifySecurityRuleName(ctx context.Context, policyId, ruleId, name string) error
func (*GaapService) ModifyTCPListenerAttribute ¶ added in v1.41.3
func (*GaapService) ModifyUDPListenerAttribute ¶ added in v1.41.3
func (*GaapService) SetAdvancedAuth ¶ added in v1.41.3
type GoRoutineLimit ¶ added in v1.75.4
type GoRoutineLimit struct { Count int Chan chan struct{} }
GoRoutine Limit
func NewGoRoutine ¶ added in v1.75.4
func NewGoRoutine(num int) *GoRoutineLimit
func (*GoRoutineLimit) Run ¶ added in v1.75.4
func (g *GoRoutineLimit) Run(f func())
type InstanceAdvancedSettings ¶ added in v1.41.3
type InstanceInfo ¶ added in v1.41.3
type KmsService ¶ added in v1.54.0
type KmsService struct {
// contains filtered or unexported fields
}
func (*KmsService) ArchiveKey ¶ added in v1.54.0
func (me *KmsService) ArchiveKey(ctx context.Context, keyId string) (errRet error)
func (*KmsService) CancelKeyArchive ¶ added in v1.54.0
func (me *KmsService) CancelKeyArchive(ctx context.Context, keyId string) (errRet error)
func (*KmsService) CancelKeyDeletion ¶ added in v1.54.0
func (me *KmsService) CancelKeyDeletion(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DeleteImportKeyMaterial ¶ added in v1.54.0
func (me *KmsService) DeleteImportKeyMaterial(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DescribeKeyById ¶ added in v1.54.0
func (me *KmsService) DescribeKeyById(ctx context.Context, keyId string) (key *kms.KeyMetadata, errRet error)
func (*KmsService) DescribeKeysByFilter ¶ added in v1.54.0
func (me *KmsService) DescribeKeysByFilter(ctx context.Context, param map[string]interface{}) (keys []*kms.KeyMetadata, errRet error)
func (*KmsService) DisableKey ¶ added in v1.54.0
func (me *KmsService) DisableKey(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DisableKeyRotation ¶ added in v1.54.0
func (me *KmsService) DisableKeyRotation(ctx context.Context, keyId string) (errRet error)
func (*KmsService) EnableKey ¶ added in v1.54.0
func (me *KmsService) EnableKey(ctx context.Context, keyId string) (errRet error)
func (*KmsService) EnableKeyRotation ¶ added in v1.54.0
func (me *KmsService) EnableKeyRotation(ctx context.Context, keyId string) (errRet error)
func (*KmsService) ImportKeyMaterial ¶ added in v1.54.0
func (me *KmsService) ImportKeyMaterial(ctx context.Context, param map[string]interface{}) (errRet error)
func (*KmsService) UpdateKeyAlias ¶ added in v1.54.0
func (me *KmsService) UpdateKeyAlias(ctx context.Context, keyId, alias string) (errRet error)
func (*KmsService) UpdateKeyDescription ¶ added in v1.54.0
func (me *KmsService) UpdateKeyDescription(ctx context.Context, keyId, description string) (errRet error)
type LightHouseService ¶ added in v1.73.0
type LightHouseService struct {
// contains filtered or unexported fields
}
func (*LightHouseService) DeleteLighthouseInstanceById ¶ added in v1.73.0
func (me *LightHouseService) DeleteLighthouseInstanceById(ctx context.Context, id string) (errRet error)
func (*LightHouseService) DescribeLighthouseInstanceById ¶ added in v1.73.0
func (me *LightHouseService) DescribeLighthouseInstanceById(ctx context.Context, instanceId string) (instance *lighthouse.Instance, errRet error)
func (*LightHouseService) IsolateLighthouseInstanceById ¶ added in v1.73.0
func (me *LightHouseService) IsolateLighthouseInstanceById(ctx context.Context, id string) (errRet error)
type MariadbService ¶ added in v1.78.9
type MariadbService struct {
// contains filtered or unexported fields
}
func (*MariadbService) DeleteMariadbAccountById ¶ added in v1.78.9
func (me *MariadbService) DeleteMariadbAccountById(ctx context.Context, instanceId, userName, host string) (errRet error)
func (*MariadbService) DeleteMariadbDbInstance ¶ added in v1.78.9
func (me *MariadbService) DeleteMariadbDbInstance(ctx context.Context, instanceId string) (errRet error)
func (*MariadbService) DeleteMariadbDbInstanceById ¶ added in v1.78.9
func (me *MariadbService) DeleteMariadbDbInstanceById(ctx context.Context, instanceId string) (errRet error)
func (*MariadbService) DeleteMariadbHourDbInstanceById ¶ added in v1.78.9
func (me *MariadbService) DeleteMariadbHourDbInstanceById(ctx context.Context, instanceId string) (errRet error)
func (*MariadbService) DeleteMariadbSecurityGroupsById ¶ added in v1.78.9
func (me *MariadbService) DeleteMariadbSecurityGroupsById(ctx context.Context, instanceId, securityGroupId, product string) (errRet error)
func (*MariadbService) DescribeMariadbAccount ¶ added in v1.78.9
func (*MariadbService) DescribeMariadbAccountsByFilter ¶ added in v1.78.9
func (*MariadbService) DescribeMariadbDbInstance ¶ added in v1.78.9
func (me *MariadbService) DescribeMariadbDbInstance(ctx context.Context, instanceId string) (dbInstance *mariadb.DBInstance, errRet error)
func (*MariadbService) DescribeMariadbDbInstancesByFilter ¶ added in v1.78.9
func (me *MariadbService) DescribeMariadbDbInstancesByFilter(ctx context.Context, param map[string]interface{}) (dbInstances []*mariadb.DBInstance, errRet error)
func (*MariadbService) DescribeMariadbLogFileRetentionPeriod ¶ added in v1.78.9
func (me *MariadbService) DescribeMariadbLogFileRetentionPeriod(ctx context.Context, instanceId string) (logFileRetentionPeriod *mariadb.DescribeLogFileRetentionPeriodResponseParams, errRet error)
func (*MariadbService) DescribeMariadbParameters ¶ added in v1.78.9
func (me *MariadbService) DescribeMariadbParameters(ctx context.Context, instanceId string) (parameters *mariadb.DescribeDBParametersResponseParams, errRet error)
func (*MariadbService) DescribeMariadbSecurityGroup ¶ added in v1.78.9
func (me *MariadbService) DescribeMariadbSecurityGroup(ctx context.Context, instanceId, securityGroupId, product string) (securityGroup *mariadb.SecurityGroup, errRet error)
func (*MariadbService) DescribeMariadbSecurityGroupsByFilter ¶ added in v1.78.9
func (me *MariadbService) DescribeMariadbSecurityGroupsByFilter(ctx context.Context, param map[string]interface{}) (securityGroups []*mariadb.SecurityGroup, errRet error)
func (*MariadbService) InitDbInstance ¶ added in v1.78.9
func (me *MariadbService) InitDbInstance(ctx context.Context, instanceId string, params []*mariadb.DBParamValue) (initRet bool, errRet error)
type MongodbService ¶ added in v1.41.3
type MongodbService struct {
// contains filtered or unexported fields
}
func (*MongodbService) DescribeAsyncRequestInfo ¶ added in v1.41.3
func (me *MongodbService) DescribeAsyncRequestInfo(ctx context.Context, asyncId string) (errRet error)
func (*MongodbService) DescribeInstanceById ¶ added in v1.41.3
func (me *MongodbService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *mongodb.InstanceDetail, has bool, errRet error)
func (*MongodbService) DescribeInstancesByFilter ¶ added in v1.41.3
func (me *MongodbService) DescribeInstancesByFilter(ctx context.Context, instanceId string, clusterType int) (mongodbs []*mongodb.InstanceDetail, errRet error)
func (*MongodbService) DescribeSpecInfo ¶ added in v1.41.3
func (me *MongodbService) DescribeSpecInfo(ctx context.Context, zone string) (infos []*mongodb.SpecificationInfo, errRet error)
func (*MongodbService) IsolateInstance ¶ added in v1.41.3
func (me *MongodbService) IsolateInstance(ctx context.Context, instanceId string) (errRet error)
func (*MongodbService) ModifyAutoRenewFlag ¶ added in v1.41.3
func (*MongodbService) ModifyInstanceName ¶ added in v1.41.3
func (me *MongodbService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) (errRet error)
func (*MongodbService) ModifyProjectId ¶ added in v1.41.3
func (*MongodbService) OfflineIsolatedDBInstance ¶ added in v1.42.1
func (me *MongodbService) OfflineIsolatedDBInstance(ctx context.Context, instanceId string) (errRet error)
func (*MongodbService) ResetInstancePassword ¶ added in v1.41.3
func (me *MongodbService) ResetInstancePassword(ctx context.Context, instanceId, accountName, password string) (errRet error)
func (*MongodbService) UpgradeInstance ¶ added in v1.41.3
type MonitorService ¶ added in v1.41.3
type MonitorService struct {
// contains filtered or unexported fields
}
func (*MonitorService) CheckCanCreateMysqlROInstance ¶ added in v1.41.3
func (*MonitorService) DeleteMonitorAlarmNoticeById ¶ added in v1.77.4
func (me *MonitorService) DeleteMonitorAlarmNoticeById(ctx context.Context, Id string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaInstanceById ¶ added in v1.77.9
func (me *MonitorService) DeleteMonitorGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaIntegrationById ¶ added in v1.77.9
func (me *MonitorService) DeleteMonitorGrafanaIntegrationById(ctx context.Context, integrationId, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaNotificationChannelById ¶ added in v1.77.9
func (me *MonitorService) DeleteMonitorGrafanaNotificationChannelById(ctx context.Context, channelId, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaPluginById ¶ added in v1.77.9
func (me *MonitorService) DeleteMonitorGrafanaPluginById(ctx context.Context, instanceId, pluginId string) (errRet error)
func (*MonitorService) DeleteMonitorRecordingRule ¶ added in v1.75.6
func (*MonitorService) DeleteMonitorSsoAccountById ¶ added in v1.77.9
func (me *MonitorService) DeleteMonitorSsoAccountById(ctx context.Context, instanceId, userId string) (errRet error)
func (*MonitorService) DeleteMonitorTmpAlertRule ¶ added in v1.75.6
func (*MonitorService) DeleteMonitorTmpExporterIntegrationById ¶ added in v1.76.2
func (me *MonitorService) DeleteMonitorTmpExporterIntegrationById(ctx context.Context, tmpExporterIntegrationId string) (errRet error)
func (*MonitorService) DeleteMonitorTmpInstanceById ¶ added in v1.76.2
func (me *MonitorService) DeleteMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
func (*MonitorService) DeleteMonitorTmpScrapeJobById ¶ added in v1.76.2
func (me *MonitorService) DeleteMonitorTmpScrapeJobById(ctx context.Context, tmpScrapeJobId string) (errRet error)
func (*MonitorService) DescribeAlarmNoticeById ¶ added in v1.77.4
func (me *MonitorService) DescribeAlarmNoticeById(ctx context.Context, alarmmap map[string]interface{}) (noticeIds []*monitor.AlarmNotice, errRet error)
func (*MonitorService) DescribeAlarmPolicyById ¶ added in v1.60.6
func (me *MonitorService) DescribeAlarmPolicyById(ctx context.Context, policyId string) (info *monitor.AlarmPolicy, errRet error)
func (*MonitorService) DescribeBindingAlarmPolicyObjectList ¶ added in v1.60.6
func (me *MonitorService) DescribeBindingAlarmPolicyObjectList(ctx context.Context, policyId string) ( objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
func (*MonitorService) DescribeBindingPolicyObjectList ¶ added in v1.41.3
func (me *MonitorService) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
func (*MonitorService) DescribeMonitorGrafanaInstance ¶ added in v1.77.9
func (me *MonitorService) DescribeMonitorGrafanaInstance(ctx context.Context, instanceId string) (grafanaInstance *monitor.GrafanaInstanceInfo, errRet error)
func (*MonitorService) DescribeMonitorGrafanaIntegration ¶ added in v1.77.9
func (me *MonitorService) DescribeMonitorGrafanaIntegration(ctx context.Context, integrationId, instanceId string) (grafanaIntegration *monitor.GrafanaIntegrationConfig, errRet error)
func (*MonitorService) DescribeMonitorGrafanaNotificationChannel ¶ added in v1.77.9
func (me *MonitorService) DescribeMonitorGrafanaNotificationChannel(ctx context.Context, channelId, instanceId string) (grafanaNotificationChannel *monitor.GrafanaChannel, errRet error)
func (*MonitorService) DescribeMonitorGrafanaPlugin ¶ added in v1.77.9
func (me *MonitorService) DescribeMonitorGrafanaPlugin(ctx context.Context, instanceId, pluginId string) (grafanaPlugin *monitor.GrafanaPlugin, errRet error)
func (*MonitorService) DescribeMonitorRecordingRuleById ¶ added in v1.75.6
func (me *MonitorService) DescribeMonitorRecordingRuleById(ctx context.Context, instanceId string, recordingRuleId string) (instance *monitor.RecordingRuleSet, errRet error)
func (*MonitorService) DescribeMonitorSsoAccount ¶ added in v1.77.9
func (me *MonitorService) DescribeMonitorSsoAccount(ctx context.Context, instanceId, userId string) (ssoAccount *monitor.GrafanaAccountInfo, errRet error)
func (*MonitorService) DescribeMonitorTmpAlertRuleById ¶ added in v1.75.6
func (me *MonitorService) DescribeMonitorTmpAlertRuleById(ctx context.Context, instanceId string, tmpAlertRuleId string) (instance *monitor.PrometheusRuleSet, errRet error)
func (*MonitorService) DescribeMonitorTmpCvmAgent ¶ added in v1.76.2
func (me *MonitorService) DescribeMonitorTmpCvmAgent(ctx context.Context, instanceId string, tmpCvmAgentId string) (tmpCvmAgent *monitor.PrometheusAgent, errRet error)
func (*MonitorService) DescribeMonitorTmpExporterIntegration ¶ added in v1.76.2
func (me *MonitorService) DescribeMonitorTmpExporterIntegration(ctx context.Context, tmpExporterIntegrationId string) (tmpExporterIntegration *monitor.IntegrationConfiguration, errRet error)
func (*MonitorService) DescribeMonitorTmpInstance ¶ added in v1.76.2
func (me *MonitorService) DescribeMonitorTmpInstance(ctx context.Context, tmpInstanceId string) (tmpInstance *monitor.PrometheusInstancesItem, errRet error)
tmp
func (*MonitorService) DescribeMonitorTmpScrapeJob ¶ added in v1.76.2
func (me *MonitorService) DescribeMonitorTmpScrapeJob(ctx context.Context, tmpScrapeJobId string) (tmpScrapeJob *monitor.PrometheusScrapeJob, errRet error)
func (*MonitorService) DescribePolicyGroup ¶ added in v1.41.3
func (me *MonitorService) DescribePolicyGroup(ctx context.Context, groupId int64) (info *monitor.DescribePolicyGroupListGroup, errRet error)
func (*MonitorService) DescribePolicyGroupDetailInfo ¶ added in v1.41.3
func (me *MonitorService) DescribePolicyGroupDetailInfo(ctx context.Context, groupId int64) (response *monitor.DescribePolicyGroupInfoResponse, errRet error)
func (*MonitorService) FullRegions ¶ added in v1.41.3
func (me *MonitorService) FullRegions() (regions []string, errRet error)
func (*MonitorService) IsolateMonitorTmpInstanceById ¶ added in v1.76.2
func (me *MonitorService) IsolateMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
type MysqlService ¶ added in v1.41.3
type MysqlService struct {
// contains filtered or unexported fields
}
func (*MysqlService) CheckDBGTIDOpen ¶ added in v1.41.3
func (*MysqlService) CloseWanService ¶ added in v1.41.3
func (*MysqlService) CreateAccount ¶ added in v1.41.3
func (*MysqlService) CreateBackup ¶ added in v1.41.3
func (*MysqlService) DeleteAccount ¶ added in v1.41.3
func (*MysqlService) DescribeAccountPrivileges ¶ added in v1.41.3
func (*MysqlService) DescribeAccounts ¶ added in v1.41.3
func (me *MysqlService) DescribeAccounts(ctx context.Context, mysqlId string) (accountInfos []*cdb.AccountInfo, errRet error)
func (*MysqlService) DescribeAsyncRequestInfo ¶ added in v1.41.3
func (*MysqlService) DescribeBackupConfigByMysqlId ¶ added in v1.41.3
func (me *MysqlService) DescribeBackupConfigByMysqlId(ctx context.Context, mysqlId string) (desResponse *cdb.DescribeBackupConfigResponse, errRet error)
func (*MysqlService) DescribeBackupsByMysqlId ¶ added in v1.41.3
func (me *MysqlService) DescribeBackupsByMysqlId(ctx context.Context, mysqlId string, leftNumber int64) (backupInfos []*cdb.BackupInfo, errRet error)
func (*MysqlService) DescribeCaresParameters ¶ added in v1.41.3
func (*MysqlService) DescribeDBInstanceById ¶ added in v1.41.3
func (me *MysqlService) DescribeDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
func (*MysqlService) DescribeDBInstanceConfig ¶ added in v1.41.3
func (me *MysqlService) DescribeDBInstanceConfig(ctx context.Context, mysqlId string) (backupConfig *cdb.DescribeDBInstanceConfigResponse, errRet error)
func (*MysqlService) DescribeDBSecurityGroups ¶ added in v1.41.3
func (*MysqlService) DescribeDBZoneConfig ¶ added in v1.41.3
func (me *MysqlService) DescribeDBZoneConfig(ctx context.Context) (sellConfigures []*cdb.RegionSellConf, errRet error)
func (*MysqlService) DescribeDefaultParameters ¶ added in v1.41.3
func (me *MysqlService) DescribeDefaultParameters(ctx context.Context, engineVersion string) (parameterList []*cdb.ParameterDetail, errRet error)
func (*MysqlService) DescribeInstanceParameters ¶ added in v1.41.3
func (me *MysqlService) DescribeInstanceParameters(ctx context.Context, instanceId string) (parameterList []*cdb.ParameterDetail, errRet error)
func (*MysqlService) DescribeIsolatedDBInstanceById ¶ added in v1.41.3
func (me *MysqlService) DescribeIsolatedDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
func (*MysqlService) DescribeRunningDBInstanceById ¶ added in v1.41.3
func (me *MysqlService) DescribeRunningDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
func (*MysqlService) DescribeTagsOfInstanceId ¶ added in v1.41.3
func (*MysqlService) DisassociateSecurityGroup ¶ added in v1.41.3
func (*MysqlService) InitDBInstances ¶ added in v1.41.3
func (*MysqlService) IsolateDBInstance ¶ added in v1.41.3
func (*MysqlService) ModifyAccountDescription ¶ added in v1.41.3
func (*MysqlService) ModifyAccountPassword ¶ added in v1.41.3
func (*MysqlService) ModifyAccountPrivileges ¶ added in v1.41.3
func (*MysqlService) ModifyAutoRenewFlag ¶ added in v1.41.3
func (*MysqlService) ModifyBackupConfigByMysqlId ¶ added in v1.41.3
func (*MysqlService) ModifyDBInstanceName ¶ added in v1.41.3
func (me *MysqlService) ModifyDBInstanceName(ctx context.Context, mysqlId, newInstanceName string) (errRet error)
func (*MysqlService) ModifyDBInstanceProject ¶ added in v1.41.3
func (*MysqlService) ModifyDBInstanceSecurityGroups ¶ added in v1.41.3
func (*MysqlService) ModifyDBInstanceVipVport ¶ added in v1.41.3
func (*MysqlService) ModifyInstanceParam ¶ added in v1.41.3
func (*MysqlService) ModifyInstanceTag ¶ added in v1.41.3
func (*MysqlService) NotFoundMysqlInstance ¶ added in v1.41.3
func (me *MysqlService) NotFoundMysqlInstance(err error) bool
check if the err means the mysql_id is not found
func (*MysqlService) OfflineIsolatedInstances ¶ added in v1.41.3
func (me *MysqlService) OfflineIsolatedInstances(ctx context.Context, mysqlId string) (errRet error)
func (*MysqlService) OpenDBInstanceGTID ¶ added in v1.41.3
func (*MysqlService) OpenWanService ¶ added in v1.41.3
func (*MysqlService) UpgradeDBInstance ¶ added in v1.41.3
type OverrideSettings ¶ added in v1.56.11
type OverrideSettings struct { Master []tke.InstanceAdvancedSettings Work []tke.InstanceAdvancedSettings }
type PostgresqlService ¶ added in v1.41.3
type PostgresqlService struct {
// contains filtered or unexported fields
}
func (*PostgresqlService) CheckDBInstanceStatus ¶ added in v1.41.3
func (*PostgresqlService) CreatePostgresqlInstance ¶ added in v1.41.3
func (me *PostgresqlService) CreatePostgresqlInstance( ctx context.Context, name, dbVersion, dbMajorVersion, dbKernelVersion, chargeType, specCode string, autoRenewFlag, projectId, period int, subnetId, vpcId, zone string, securityGroups []string, storage int, username, password, charset string, dbNodeSet []*postgresql.DBNode, needSupportTde int, kmsKeyId, kmsRegion string, ) (instanceId string, errRet error)
func (*PostgresqlService) DeletePostgresqlInstance ¶ added in v1.41.3
func (me *PostgresqlService) DeletePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)
func (*PostgresqlService) DeletePostgresqlReadOnlyGroupById ¶ added in v1.68.0
func (me *PostgresqlService) DeletePostgresqlReadOnlyGroupById(ctx context.Context, groupId string) (errRet error)
func (*PostgresqlService) DescribeBackupPlans ¶ added in v1.71.0
func (me *PostgresqlService) DescribeBackupPlans(ctx context.Context, request *postgresql.DescribeBackupPlansRequest) (result []*postgresql.BackupPlan, errRet error)
func (*PostgresqlService) DescribeDBEncryptionKeys ¶ added in v1.72.0
func (me *PostgresqlService) DescribeDBEncryptionKeys(ctx context.Context, request *postgresql.DescribeEncryptionKeysRequest) (has bool, key *postgresql.EncryptionKey, errRet error)
func (*PostgresqlService) DescribeDBInstanceAttribute ¶ added in v1.61.2
func (me *PostgresqlService) DescribeDBInstanceAttribute(ctx context.Context, request *postgresql.DescribeDBInstanceAttributeRequest) (ins *postgresql.DBInstance, errRet error)
func (*PostgresqlService) DescribeDBXlogs ¶ added in v1.71.0
func (me *PostgresqlService) DescribeDBXlogs(ctx context.Context, request *postgresql.DescribeDBXlogsRequest) (xlogs []*postgresql.Xlog, errRet error)
func (*PostgresqlService) DescribePgParams ¶ added in v1.60.17
func (*PostgresqlService) DescribePostgresqlInstanceById ¶ added in v1.41.3
func (me *PostgresqlService) DescribePostgresqlInstanceById(ctx context.Context, instanceId string) (instance *postgresql.DBInstance, has bool, errRet error)
func (*PostgresqlService) DescribePostgresqlInstances ¶ added in v1.41.3
func (me *PostgresqlService) DescribePostgresqlInstances(ctx context.Context, filter []*postgresql.Filter) (instanceList []*postgresql.DBInstance, errRet error)
func (*PostgresqlService) DescribePostgresqlReadOnlyGroupById ¶ added in v1.68.0
func (me *PostgresqlService) DescribePostgresqlReadOnlyGroupById(ctx context.Context, groupId string) (instanceList []*postgresql.ReadOnlyGroup, errRet error)
func (*PostgresqlService) DescribePostgresqlReadOnlyGroups ¶ added in v1.68.0
func (me *PostgresqlService) DescribePostgresqlReadOnlyGroups(ctx context.Context, filter []*postgresql.Filter) (instanceList []*postgresql.ReadOnlyGroup, errRet error)
func (*PostgresqlService) DescribeRootUser ¶ added in v1.58.0
func (me *PostgresqlService) DescribeRootUser(ctx context.Context, instanceId string) (accounts []*postgresql.AccountInfo, errRet error)
func (*PostgresqlService) DescribeSpecinfos ¶ added in v1.41.3
func (me *PostgresqlService) DescribeSpecinfos(ctx context.Context, zone string) (specCodeList []*postgresql.SpecItemInfo, errRet error)
func (*PostgresqlService) InitPostgresqlInstance ¶ added in v1.41.3
func (*PostgresqlService) IsolatePostgresqlInstance ¶ added in v1.58.0
func (me *PostgresqlService) IsolatePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)
func (*PostgresqlService) ModifyBackupPlan ¶ added in v1.71.0
func (me *PostgresqlService) ModifyBackupPlan(ctx context.Context, request *postgresql.ModifyBackupPlanRequest) (errRet error)
func (*PostgresqlService) ModifyDBInstanceDeployment ¶ added in v1.61.2
func (me *PostgresqlService) ModifyDBInstanceDeployment(ctx context.Context, request *postgresql.ModifyDBInstanceDeploymentRequest) (errRet error)
func (*PostgresqlService) ModifyPgParams ¶ added in v1.60.17
func (*PostgresqlService) ModifyPostgresqlInstanceName ¶ added in v1.41.3
func (*PostgresqlService) ModifyPostgresqlInstanceProjectId ¶ added in v1.41.3
func (*PostgresqlService) ModifyPublicService ¶ added in v1.41.3
func (*PostgresqlService) SetPostgresqlInstanceAutoRenewFlag ¶ added in v1.41.3
func (*PostgresqlService) SetPostgresqlInstanceRootPassword ¶ added in v1.41.3
func (*PostgresqlService) UpgradePostgresqlInstance ¶ added in v1.41.3
type PrivateDnsService ¶ added in v1.60.21
type PrivateDnsService struct {
// contains filtered or unexported fields
}
func (*PrivateDnsService) DescribePrivateDnsRecordByFilter ¶ added in v1.60.21
func (me *PrivateDnsService) DescribePrivateDnsRecordByFilter(ctx context.Context, zoneId string, recordId string) (recordInfos []*privatedns.PrivateZoneRecord, errRet error)
////////api
type PrometheusConfigIds ¶ added in v1.77.4
type PtsService ¶ added in v1.78.11
type PtsService struct {
// contains filtered or unexported fields
}
func (*PtsService) DeletePtsAlertChannelById ¶ added in v1.78.11
func (me *PtsService) DeletePtsAlertChannelById(ctx context.Context, noticeId, projectId string) (errRet error)
func (*PtsService) DeletePtsCronJobById ¶ added in v1.78.11
func (me *PtsService) DeletePtsCronJobById(ctx context.Context, cronJobId, projectId string) (errRet error)
func (*PtsService) DeletePtsFileById ¶ added in v1.78.11
func (me *PtsService) DeletePtsFileById(ctx context.Context, projectId, fileIds string) (errRet error)
func (*PtsService) DeletePtsJobById ¶ added in v1.78.11
func (me *PtsService) DeletePtsJobById(ctx context.Context, projectId, scenarioId, jobId string) (errRet error)
func (*PtsService) DeletePtsProjectById ¶ added in v1.78.11
func (me *PtsService) DeletePtsProjectById(ctx context.Context, projectId string) (errRet error)
func (*PtsService) DeletePtsScenarioById ¶ added in v1.78.11
func (me *PtsService) DeletePtsScenarioById(ctx context.Context, projectId, scenarioId string) (errRet error)
func (*PtsService) DescribePtsAlertChannel ¶ added in v1.78.11
func (me *PtsService) DescribePtsAlertChannel(ctx context.Context, noticeId, projectId string) (alertChannel *pts.AlertChannelRecord, errRet error)
func (*PtsService) DescribePtsCronJob ¶ added in v1.78.11
func (*PtsService) DescribePtsFile ¶ added in v1.78.11
func (*PtsService) DescribePtsJob ¶ added in v1.78.11
func (*PtsService) DescribePtsProject ¶ added in v1.78.11
func (*PtsService) DescribePtsScenario ¶ added in v1.78.11
type RedisService ¶ added in v1.41.3
type RedisService struct {
// contains filtered or unexported fields
}
func (*RedisService) ApplyParamsTemplate ¶ added in v1.77.7
func (me *RedisService) ApplyParamsTemplate(ctx context.Context, request *redis.ApplyParamsTemplateRequest) (taskIds []*int64, errRet error)
func (*RedisService) CheckRedisDestroyOk ¶ added in v1.41.3
func (*RedisService) CheckRedisOnlineOk ¶ added in v1.41.3
func (*RedisService) CheckRedisUpdateOk ¶ added in v1.77.5
func (me *RedisService) CheckRedisUpdateOk(ctx context.Context, redisId string) (errRet error)
func (*RedisService) CleanUpInstance ¶ added in v1.41.3
func (*RedisService) CreateInstances ¶ added in v1.41.3
func (me *RedisService) CreateInstances(ctx context.Context, zoneName string, typeId int64, password, vpcId, subnetId, redisName string, memSize, projectId, port int64, securityGroups []string, redisShardNum, redisReplicasNum int, chargeTypeID int64, chargePeriod uint64, nodeInfo []*redis.RedisNodeInfo, noAuth bool, autoRenewFlag int, replicasReadonly bool, paramsTemplateId string, ) (instanceIds []*string, errRet error)
func (*RedisService) CreateParamTemplate ¶ added in v1.77.7
func (me *RedisService) CreateParamTemplate(ctx context.Context, request *redis.CreateParamTemplateRequest) (id string, errRet error)
func (*RedisService) DeleteParamTemplate ¶ added in v1.77.7
func (me *RedisService) DeleteParamTemplate(ctx context.Context, request *redis.DeleteParamTemplateRequest) (errRet error)
func (*RedisService) DescribeAutoBackupConfig ¶ added in v1.41.3
func (*RedisService) DescribeDBSecurityGroups ¶ added in v1.60.3
func (me *RedisService) DescribeDBSecurityGroups(ctx context.Context, product string, instanceId string) (sg []string, errRet error)
DescribeDBSecurityGroups support query different type of DB by passing product name
func (*RedisService) DescribeInstanceDealDetail ¶ added in v1.41.3
func (*RedisService) DescribeInstanceSecurityGroup ¶ added in v1.41.3
func (*RedisService) DescribeInstances ¶ added in v1.41.3
func (me *RedisService) DescribeInstances(ctx context.Context, zoneName, searchKey string, projectId, needLimit int64) (instances []TencentCloudRedisDetail, errRet error)
func (*RedisService) DescribeParamTemplateById ¶ added in v1.77.7
func (me *RedisService) DescribeParamTemplateById(ctx context.Context, id string) (params *redis.ParamTemplateInfo, errRet error)
func (*RedisService) DescribeParamTemplates ¶ added in v1.77.7
func (me *RedisService) DescribeParamTemplates(ctx context.Context, request *redis.DescribeParamTemplatesRequest) (params []*redis.ParamTemplateInfo, errRet error)
func (*RedisService) DescribeRedisZoneConfig ¶ added in v1.41.3
func (me *RedisService) DescribeRedisZoneConfig(ctx context.Context) (sellConfigures []*redis.RegionConf, errRet error)
func (*RedisService) DescribeTaskInfo ¶ added in v1.41.3
func (*RedisService) DestroyPostpaidInstance ¶ added in v1.41.3
func (*RedisService) DestroyPrepaidInstance ¶ added in v1.41.3
func (*RedisService) ModifyAutoBackupConfig ¶ added in v1.41.3
func (*RedisService) ModifyDBInstanceSecurityGroups ¶ added in v1.60.3
func (*RedisService) ModifyInstanceName ¶ added in v1.41.3
func (*RedisService) ModifyInstanceProjectId ¶ added in v1.41.3
func (*RedisService) ResetPassword ¶ added in v1.41.3
func (*RedisService) UpgradeInstance ¶ added in v1.41.3
func (me *RedisService) UpgradeInstance(ctx context.Context, redisId string, newMemSize, redisShardNum, redisReplicasNum int, nodeSet []*redis.RedisNodeInfo) (dealId string, errRet error)
type RunInstancesForNode ¶ added in v1.41.3
type SSLService ¶ added in v1.53.0
type SSLService struct {
// contains filtered or unexported fields
}
func (*SSLService) ApplyCertificate ¶ added in v1.74.2
func (me *SSLService) ApplyCertificate(ctx context.Context, request *ssl.ApplyCertificateRequest) (id string, errRet error)
func (*SSLService) CancelCertificateOrder ¶ added in v1.53.0
func (me *SSLService) CancelCertificateOrder(ctx context.Context, request *ssl.CancelCertificateOrderRequest) (err error)
func (*SSLService) CommitCertificateInformation ¶ added in v1.53.0
func (me *SSLService) CommitCertificateInformation(ctx context.Context, request *ssl.CommitCertificateInformationRequest) (errRet error)
func (*SSLService) CreateCertificate ¶ added in v1.53.0
func (me *SSLService) CreateCertificate(ctx context.Context, request *ssl.CreateCertificateRequest) (certificateId, dealId string, errRet error)
func (*SSLService) DeleteCertificate ¶ added in v1.53.0
func (me *SSLService) DeleteCertificate(ctx context.Context, request *ssl.DeleteCertificateRequest) (deleteResult bool, err error)
func (*SSLService) DescribeCertificateDetail ¶ added in v1.53.0
func (me *SSLService) DescribeCertificateDetail(ctx context.Context, request *ssl.DescribeCertificateDetailRequest) (response *ssl.DescribeCertificateDetailResponse, err error)
func (*SSLService) DescribeCertificates ¶ added in v1.55.0
func (me *SSLService) DescribeCertificates(ctx context.Context, request *ssl.DescribeCertificatesRequest) (certificateList []*ssl.Certificates, err error)
func (*SSLService) ModifyCertificateAlias ¶ added in v1.53.0
func (me *SSLService) ModifyCertificateAlias(ctx context.Context, request *ssl.ModifyCertificateAliasRequest) (err error)
func (*SSLService) ModifyCertificateProject ¶ added in v1.53.0
func (me *SSLService) ModifyCertificateProject(ctx context.Context, request *ssl.ModifyCertificateProjectRequest) (err error)
func (*SSLService) SubmitCertificateInformation ¶ added in v1.53.0
func (me *SSLService) SubmitCertificateInformation(ctx context.Context, request *ssl.SubmitCertificateInformationRequest) (err error)
func (*SSLService) UploadCertificate ¶ added in v1.55.0
func (me *SSLService) UploadCertificate(ctx context.Context, request *ssl.UploadCertificateRequest) (id string, err error)
type ScfService ¶ added in v1.41.3
type ScfService struct {
// contains filtered or unexported fields
}
func (*ScfService) CreateFunction ¶ added in v1.41.3
func (me *ScfService) CreateFunction(ctx context.Context, info scfFunctionInfo) error
func (*ScfService) CreateNamespace ¶ added in v1.41.3
func (me *ScfService) CreateNamespace(ctx context.Context, namespace, desc string) error
func (*ScfService) CreateTriggers ¶ added in v1.41.3
func (me *ScfService) CreateTriggers(ctx context.Context, functionName, namespace string, triggers []scfTrigger) error
func (*ScfService) DeleteFunction ¶ added in v1.41.3
func (me *ScfService) DeleteFunction(ctx context.Context, name, namespace string) error
func (*ScfService) DeleteNamespace ¶ added in v1.41.3
func (me *ScfService) DeleteNamespace(ctx context.Context, namespace string) error
func (*ScfService) DeleteTriggers ¶ added in v1.41.3
func (me *ScfService) DeleteTriggers(ctx context.Context, functionName, namespace string, triggers []scfTrigger) error
func (*ScfService) DescribeFunction ¶ added in v1.41.3
func (me *ScfService) DescribeFunction(ctx context.Context, name, namespace string) (resp *scf.GetFunctionResponse, err error)
func (*ScfService) DescribeFunctions ¶ added in v1.41.3
func (*ScfService) DescribeLogs ¶ added in v1.41.3
func (me *ScfService) DescribeLogs( ctx context.Context, fnName, namespace, order, orderBy string, offset, limit int, retCode, invokeRequestId, startTime, endTime *string, ) (logs []*scf.FunctionLog, err error)
func (*ScfService) DescribeNamespace ¶ added in v1.41.3
func (*ScfService) DescribeNamespaces ¶ added in v1.41.3
func (*ScfService) ModifyFunctionCode ¶ added in v1.41.3
func (me *ScfService) ModifyFunctionCode(ctx context.Context, info scfFunctionInfo) error
func (*ScfService) ModifyFunctionConfig ¶ added in v1.41.3
func (me *ScfService) ModifyFunctionConfig(ctx context.Context, info scfFunctionInfo) error
func (*ScfService) ModifyNamespace ¶ added in v1.41.3
func (me *ScfService) ModifyNamespace(ctx context.Context, namespace, desc string) error
type SecretInfo ¶ added in v1.55.0
type SecretInfo struct {
// contains filtered or unexported fields
}
type SecretVersionInfo ¶ added in v1.55.0
type SecretVersionInfo struct {
// contains filtered or unexported fields
}
type SesService ¶ added in v1.78.8
type SesService struct {
// contains filtered or unexported fields
}
func (*SesService) DeleteSesDomainById ¶ added in v1.78.8
func (me *SesService) DeleteSesDomainById(ctx context.Context, emailIdentity string) (errRet error)
func (*SesService) DeleteSesEmail_addressById ¶ added in v1.78.8
func (me *SesService) DeleteSesEmail_addressById(ctx context.Context, emailAddress string) (errRet error)
func (*SesService) DeleteSesTemplateById ¶ added in v1.78.8
func (me *SesService) DeleteSesTemplateById(ctx context.Context, templateID uint64) (errRet error)
func (*SesService) DescribeSesDomain ¶ added in v1.78.8
func (me *SesService) DescribeSesDomain(ctx context.Context, emailIdentity string) (domain *ses.DNSAttributes, errRet error)
func (*SesService) DescribeSesEmailAddress ¶ added in v1.78.8
func (me *SesService) DescribeSesEmailAddress(ctx context.Context, emailAddress string) (emailSender *ses.EmailSender, errRet error)
func (*SesService) DescribeSesTemplate ¶ added in v1.78.8
func (me *SesService) DescribeSesTemplate(ctx context.Context, templateId uint64) (templateResponse *ses.GetEmailTemplateResponseParams, errRet error)
func (*SesService) DescribeSesTemplateMetadata ¶ added in v1.78.8
func (me *SesService) DescribeSesTemplateMetadata(ctx context.Context, templateId uint64) (templatesMetadata *ses.TemplatesMetadata, errRet error)
type SmsService ¶ added in v1.78.7
type SmsService struct {
// contains filtered or unexported fields
}
func (*SmsService) DeleteSmsSignById ¶ added in v1.78.7
func (me *SmsService) DeleteSmsSignById(ctx context.Context, signId string) (errRet error)
func (*SmsService) DeleteSmsTemplateById ¶ added in v1.78.7
func (me *SmsService) DeleteSmsTemplateById(ctx context.Context, templateId string) (errRet error)
func (*SmsService) DescribeSmsSign ¶ added in v1.78.7
func (me *SmsService) DescribeSmsSign(ctx context.Context, signId string, international string) (sign *sms.DescribeSignListStatus, errRet error)
func (*SmsService) DescribeSmsTemplate ¶ added in v1.78.7
func (me *SmsService) DescribeSmsTemplate(ctx context.Context, templateId string, international string) (template *sms.DescribeTemplateListStatus, errRet error)
type SqlserverService ¶ added in v1.41.3
type SqlserverService struct {
// contains filtered or unexported fields
}
func (*SqlserverService) AddSecurityGroup ¶ added in v1.41.3
func (*SqlserverService) CreateSqlserverAccount ¶ added in v1.41.3
func (*SqlserverService) CreateSqlserverBasicInstance ¶ added in v1.48.0
func (*SqlserverService) CreateSqlserverDB ¶ added in v1.41.3
func (*SqlserverService) CreateSqlserverInstance ¶ added in v1.41.3
func (me *SqlserverService) CreateSqlserverInstance(ctx context.Context, request *sqlserver.CreateDBInstancesRequest) (instanceId string, errRet error)
func (*SqlserverService) CreateSqlserverPublishSubscribe ¶ added in v1.45.0
func (me *SqlserverService) CreateSqlserverPublishSubscribe(ctx context.Context, publishInstanceId, subscribeInstanceId, publishSubscribeName string, databaseTuples []interface{}) (errRet error)
func (*SqlserverService) CreateSqlserverReadonlyInstance ¶ added in v1.41.3
func (me *SqlserverService) CreateSqlserverReadonlyInstance(ctx context.Context, request *sqlserver.CreateReadOnlyDBInstancesRequest) (instanceId string, errRet error)
func (*SqlserverService) DeletePublishSubscribe ¶ added in v1.45.0
func (me *SqlserverService) DeletePublishSubscribe(ctx context.Context, publishSubscribe *sqlserver.PublishSubscribe, deleteDatabaseTuples []*sqlserver.DatabaseTuple) (errRet error)
func (*SqlserverService) DeleteSqlserverAccount ¶ added in v1.41.3
func (*SqlserverService) DeleteSqlserverDB ¶ added in v1.41.3
func (*SqlserverService) DeleteSqlserverInstance ¶ added in v1.41.3
func (me *SqlserverService) DeleteSqlserverInstance(ctx context.Context, instanceId string) (errRet error)
func (*SqlserverService) DescribeAccountDBAttachmentById ¶ added in v1.41.3
func (*SqlserverService) DescribeAccountDBAttachments ¶ added in v1.41.3
func (*SqlserverService) DescribeDBDetailsById ¶ added in v1.41.3
func (*SqlserverService) DescribeDBsOfInstance ¶ added in v1.41.3
func (*SqlserverService) DescribeInstanceSecurityGroups ¶ added in v1.41.3
func (*SqlserverService) DescribeMaintenanceSpan ¶ added in v1.41.3
func (*SqlserverService) DescribeProductConfig ¶ added in v1.41.3
func (*SqlserverService) DescribeReadonlyGroupList ¶ added in v1.41.3
func (me *SqlserverService) DescribeReadonlyGroupList(ctx context.Context, instanceId string) (groupList []*sqlserver.ReadOnlyGroup, errRet error)
func (*SqlserverService) DescribeReadonlyGroupListByReadonlyInstanceId ¶ added in v1.41.3
func (*SqlserverService) DescribeSqlserverAccountById ¶ added in v1.41.3
func (me *SqlserverService) DescribeSqlserverAccountById(ctx context.Context, instanceId string, userName string) (account *sqlserver.AccountDetail, has bool, errRet error)
func (*SqlserverService) DescribeSqlserverAccounts ¶ added in v1.41.3
func (me *SqlserverService) DescribeSqlserverAccounts(ctx context.Context, instanceId string) (accounts []*sqlserver.AccountDetail, errRet error)
func (*SqlserverService) DescribeSqlserverBackups ¶ added in v1.41.3
func (*SqlserverService) DescribeSqlserverInstanceById ¶ added in v1.41.3
func (me *SqlserverService) DescribeSqlserverInstanceById(ctx context.Context, instanceId string) (instance *sqlserver.DBInstance, has bool, errRet error)
func (*SqlserverService) DescribeSqlserverInstances ¶ added in v1.41.3
func (me *SqlserverService) DescribeSqlserverInstances(ctx context.Context, instanceId, instanceName string, projectId int, vpcId, subnetId string, netType int) (instanceList []*sqlserver.DBInstance, errRet error)
func (*SqlserverService) DescribeSqlserverPublishSubscribeById ¶ added in v1.45.0
func (me *SqlserverService) DescribeSqlserverPublishSubscribeById(ctx context.Context, instanceId, pubOrSubInstanceId string) (instance *sqlserver.PublishSubscribe, has bool, errRet error)
func (*SqlserverService) DescribeSqlserverPublishSubscribes ¶ added in v1.45.0
func (me *SqlserverService) DescribeSqlserverPublishSubscribes(ctx context.Context, paramMap map[string]interface{}) (publishSubscribeList []*sqlserver.PublishSubscribe, errRet error)
func (*SqlserverService) DescribeZones ¶ added in v1.41.3
func (*SqlserverService) GetInfoFromDeal ¶ added in v1.41.3
func (*SqlserverService) ModifyAccountDBAttachment ¶ added in v1.41.3
func (me *SqlserverService) ModifyAccountDBAttachment(ctx context.Context, instanceId, accountName, dbName, privilege string) (errRet error)
func (*SqlserverService) ModifyPublishSubscribeName ¶ added in v1.45.0
func (*SqlserverService) ModifySqlserverAccountRemark ¶ added in v1.41.3
func (*SqlserverService) ModifySqlserverDBRemark ¶ added in v1.41.3
func (*SqlserverService) ModifySqlserverInstanceMaintenanceSpan ¶ added in v1.41.3
func (*SqlserverService) ModifySqlserverInstanceName ¶ added in v1.41.3
func (*SqlserverService) ModifySqlserverInstanceProjectId ¶ added in v1.41.3
func (*SqlserverService) NewModifyDBInstanceRenewFlag ¶ added in v1.48.0
func (*SqlserverService) RecycleDBInstance ¶ added in v1.46.0
func (me *SqlserverService) RecycleDBInstance(ctx context.Context, instanceId string) (errRet error)
func (*SqlserverService) RemoveSecurityGroup ¶ added in v1.41.3
func (*SqlserverService) ResetSqlserverAccountPassword ¶ added in v1.41.3
func (*SqlserverService) TerminateSqlserverInstance ¶ added in v1.41.3
func (me *SqlserverService) TerminateSqlserverInstance(ctx context.Context, instanceId string) (errRet error)
func (*SqlserverService) UpgradeSqlserverBasicInstance ¶ added in v1.48.0
func (*SqlserverService) UpgradeSqlserverInstance ¶ added in v1.41.3
func (*SqlserverService) WaitForTaskFinish ¶ added in v1.41.3
func (me *SqlserverService) WaitForTaskFinish(ctx context.Context, flowId int64) (errRet error)
type SslService ¶ added in v1.41.3
type SslService struct {
// contains filtered or unexported fields
}
func (*SslService) CheckCertificateType ¶ added in v1.55.0
func (*SslService) CreateCertificate ¶ added in v1.41.3
func (*SslService) DeleteCertificate ¶ added in v1.41.3
func (me *SslService) DeleteCertificate(ctx context.Context, id string) error
func (*SslService) DescribeCertificates ¶ added in v1.41.3
func (me *SslService) DescribeCertificates(ctx context.Context, id, name, certType *string) (certificates []*ssl.SSLCertificate, err error)
type SsmService ¶ added in v1.55.0
type SsmService struct {
// contains filtered or unexported fields
}
func (*SsmService) CreateSecret ¶ added in v1.55.0
func (*SsmService) DeleteSecret ¶ added in v1.55.0
func (*SsmService) DeleteSecretVersion ¶ added in v1.55.0
func (me *SsmService) DeleteSecretVersion(ctx context.Context, secretName, versionId string) (errRet error)
func (*SsmService) DescribeSecretByName ¶ added in v1.55.0
func (me *SsmService) DescribeSecretByName(ctx context.Context, secretName string) (secret *SecretInfo, errRet error)
func (*SsmService) DescribeSecretVersion ¶ added in v1.55.0
func (me *SsmService) DescribeSecretVersion(ctx context.Context, secretName, versionId string) (secretVersion *SecretVersionInfo, errRet error)
func (*SsmService) DescribeSecretVersionIdsByName ¶ added in v1.55.0
func (*SsmService) DescribeSecretsByFilter ¶ added in v1.55.0
func (me *SsmService) DescribeSecretsByFilter(ctx context.Context, param map[string]interface{}) (secrets []*ssm.SecretMetadata, errRet error)
func (*SsmService) DisableSecret ¶ added in v1.55.0
func (me *SsmService) DisableSecret(ctx context.Context, secretName string) (errRet error)
func (*SsmService) EnableSecret ¶ added in v1.55.0
func (me *SsmService) EnableSecret(ctx context.Context, secretName string) (errRet error)
func (*SsmService) PutSecretValue ¶ added in v1.55.0
func (*SsmService) UpdateSecret ¶ added in v1.55.0
func (me *SsmService) UpdateSecret(ctx context.Context, param map[string]interface{}) (errRet error)
func (*SsmService) UpdateSecretDescription ¶ added in v1.55.0
func (me *SsmService) UpdateSecretDescription(ctx context.Context, secretName, description string) (errRet error)
type StsService ¶ added in v1.78.7
type StsService struct {
// contains filtered or unexported fields
}
func (*StsService) DescribeStsCallerIdentityByFilter ¶ added in v1.78.7
func (me *StsService) DescribeStsCallerIdentityByFilter(ctx context.Context) (callerIdentity *sts.GetCallerIdentityResponseParams, errRet error)
type TCRService ¶ added in v1.49.0
type TCRService struct {
// contains filtered or unexported fields
}
func (*TCRService) CreateReplicationInstance ¶ added in v1.78.1
func (me *TCRService) CreateReplicationInstance(ctx context.Context, request *tcr.CreateReplicationInstanceRequest) (id string, errRet error)
func (*TCRService) CreateTCRInstance ¶ added in v1.49.0
func (*TCRService) CreateTCRLongTermToken ¶ added in v1.49.0
func (me *TCRService) CreateTCRLongTermToken(ctx context.Context, instanceId string, description string) (tokenId string, token string, userName string, errRet error)
longterm token
func (*TCRService) CreateTCRNameSpace ¶ added in v1.49.0
func (me *TCRService) CreateTCRNameSpace(ctx context.Context, instanceId string, name string, isPublic bool) (errRet error)
name space
func (*TCRService) CreateTCRRepository ¶ added in v1.49.0
func (me *TCRService) CreateTCRRepository(ctx context.Context, instanceId string, namespace string, repositoryName string, briefDesc string, description string) (errRet error)
repository
func (*TCRService) CreateTCRVPCAttachment ¶ added in v1.51.0
func (me *TCRService) CreateTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string, subnetId string, regionId int64, regionName string) (errRet error)
VPC attachment
func (*TCRService) CreateTcrVpcDns ¶ added in v1.54.1
func (*TCRService) DeleteReplicationInstance ¶ added in v1.78.1
func (me *TCRService) DeleteReplicationInstance(ctx context.Context, request *tcr.DeleteReplicationInstanceRequest) (errRet error)
func (*TCRService) DeleteTCRInstance ¶ added in v1.49.0
func (*TCRService) DeleteTCRLongTermToken ¶ added in v1.49.0
func (*TCRService) DeleteTCRNameSpace ¶ added in v1.49.0
func (*TCRService) DeleteTCRRepository ¶ added in v1.49.0
func (*TCRService) DeleteTCRVPCAttachment ¶ added in v1.51.0
func (*TCRService) DeleteTcrVpcDns ¶ added in v1.54.1
func (*TCRService) DescribeExternalEndpointStatus ¶ added in v1.53.9
func (*TCRService) DescribeReplicationInstances ¶ added in v1.78.1
func (me *TCRService) DescribeReplicationInstances(ctx context.Context, request *tcr.DescribeReplicationInstancesRequest) (list []*tcr.ReplicationRegistry, errRet error)
func (*TCRService) DescribeSecurityPolicies ¶ added in v1.72.6
func (me *TCRService) DescribeSecurityPolicies(ctx context.Context, request *tcr.DescribeSecurityPoliciesRequest) (policies []*tcr.SecurityPolicy, errRet error)
func (*TCRService) DescribeTCRInstanceById ¶ added in v1.49.0
func (*TCRService) DescribeTCRInstances ¶ added in v1.49.0
func (*TCRService) DescribeTCRLongTermTokenById ¶ added in v1.49.0
func (me *TCRService) DescribeTCRLongTermTokenById(ctx context.Context, instanceId string, tokenId string) (token *tcr.TcrInstanceToken, has bool, errRet error)
func (*TCRService) DescribeTCRNameSpaceById ¶ added in v1.49.0
func (me *TCRService) DescribeTCRNameSpaceById(ctx context.Context, instanceId string, name string) (namespace *tcr.TcrNamespaceInfo, has bool, errRet error)
func (*TCRService) DescribeTCRNameSpaces ¶ added in v1.49.0
func (me *TCRService) DescribeTCRNameSpaces(ctx context.Context, instanceId string, name string) (namespaceList []*tcr.TcrNamespaceInfo, errRet error)
func (*TCRService) DescribeTCRRepositories ¶ added in v1.49.0
func (me *TCRService) DescribeTCRRepositories(ctx context.Context, instanceId string, namespace string, repositoryName string) (repositoryList []*tcr.TcrRepositoryInfo, errRet error)
func (*TCRService) DescribeTCRRepositoryById ¶ added in v1.49.0
func (me *TCRService) DescribeTCRRepositoryById(ctx context.Context, instanceId string, namespace string, repositoryName string) (repository *tcr.TcrRepositoryInfo, has bool, errRet error)
func (*TCRService) DescribeTCRTokens ¶ added in v1.49.0
func (me *TCRService) DescribeTCRTokens(ctx context.Context, instanceId string, tokenId string) (tokenList []*tcr.TcrInstanceToken, errRet error)
func (*TCRService) DescribeTCRVPCAttachmentById ¶ added in v1.51.0
func (*TCRService) DescribeTCRVPCAttachments ¶ added in v1.51.0
func (*TCRService) DescribeTcrVpcDnsById ¶ added in v1.54.1
func (*TCRService) ManageTCRExternalEndpoint ¶ added in v1.53.9
func (me *TCRService) ManageTCRExternalEndpoint(ctx context.Context, instanceId, operation string) (errRet error)
func (*TCRService) ModifyInstance ¶ added in v1.77.4
func (me *TCRService) ModifyInstance(ctx context.Context, registryId, registryType string) (errRet error)
func (*TCRService) ModifyTCRLongTermToken ¶ added in v1.49.0
func (*TCRService) ModifyTCRNameSpace ¶ added in v1.49.0
type TagService ¶ added in v1.41.3
type TagService struct {
// contains filtered or unexported fields
}
func (*TagService) DescribeResourceTags ¶ added in v1.41.3
func (*TagService) ModifyTags ¶ added in v1.41.3
type TcaplusIdlId ¶ added in v1.41.3
type TcaplusService ¶ added in v1.41.3
type TcaplusService struct {
// contains filtered or unexported fields
}
func (*TcaplusService) CreateCluster ¶ added in v1.41.3
func (*TcaplusService) CreateGroup ¶ added in v1.41.3
func (*TcaplusService) CreateTables ¶ added in v1.41.3
func (me *TcaplusService) CreateTables(ctx context.Context, tid TcaplusIdlId, clusterId, groupId, tableName, tableType, description, tableIdlType string, reservedReadQps, reservedWriteQps, reservedVolume int64) (taskId string, tableInstanceId string, errRet error)
func (*TcaplusService) DeleteCluster ¶ added in v1.41.3
func (*TcaplusService) DeleteGroup ¶ added in v1.41.3
func (*TcaplusService) DeleteIdlFiles ¶ added in v1.41.3
func (me *TcaplusService) DeleteIdlFiles(ctx context.Context, tid TcaplusIdlId) (errRet error)
func (*TcaplusService) DeleteTable ¶ added in v1.41.3
func (*TcaplusService) DesOldIdlFiles ¶ added in v1.41.3
func (me *TcaplusService) DesOldIdlFiles(ctx context.Context, tid TcaplusIdlId) (tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
func (*TcaplusService) DescribeCluster ¶ added in v1.41.3
func (me *TcaplusService) DescribeCluster(ctx context.Context, id string) (clusterInfo tcaplusdb.ClusterInfo, has bool, errRet error)
func (*TcaplusService) DescribeClusters ¶ added in v1.41.3
func (me *TcaplusService) DescribeClusters(ctx context.Context, clusterId string, clusterName string) (clusterInfos []*tcaplusdb.ClusterInfo, errRet error)
func (*TcaplusService) DescribeGroup ¶ added in v1.41.3
func (me *TcaplusService) DescribeGroup(ctx context.Context, id string, groupId string) (info tcaplusdb.TableGroupInfo, has bool, errRet error)
func (*TcaplusService) DescribeGroups ¶ added in v1.41.3
func (me *TcaplusService) DescribeGroups(ctx context.Context, clusterId string, groupId, groupName string) (infos []*tcaplusdb.TableGroupInfo, errRet error)
func (*TcaplusService) DescribeIdlFileInfos ¶ added in v1.41.3
func (me *TcaplusService) DescribeIdlFileInfos(ctx context.Context, clusterId string) (infos []*tcaplusdb.IdlFileInfo, errRet error)
func (*TcaplusService) DescribeTable ¶ added in v1.41.3
func (me *TcaplusService) DescribeTable(ctx context.Context, clusterId, tableInstanceId string) (tableInfo tcaplusdb.TableInfoNew, has bool, errRet error)
func (*TcaplusService) DescribeTables ¶ added in v1.41.3
func (me *TcaplusService) DescribeTables(ctx context.Context, clusterId string, groupId, tableId, tableName string) (infos []*tcaplusdb.TableInfoNew, errRet error)
func (*TcaplusService) DescribeTask ¶ added in v1.41.3
func (me *TcaplusService) DescribeTask(ctx context.Context, clusterId string, taskId string) (taskInfo tcaplusdb.TaskInfoNew, has bool, errRet error)
func (*TcaplusService) ModifyClusterName ¶ added in v1.41.3
func (*TcaplusService) ModifyClusterPassword ¶ added in v1.41.3
func (*TcaplusService) ModifyGroupName ¶ added in v1.41.3
func (*TcaplusService) ModifyTableMemo ¶ added in v1.41.3
func (me *TcaplusService) ModifyTableMemo(ctx context.Context, clusterId, groupId, tableInstanceId, tableName, newDesc string) (errRet error)
func (*TcaplusService) ModifyTables ¶ added in v1.41.3
func (me *TcaplusService) ModifyTables(ctx context.Context, tid TcaplusIdlId, clusterId, groupId, tableInstanceId, tableName, tableIdType string) (taskId string, errRet error)
func (*TcaplusService) VerifyIdlFiles ¶ added in v1.41.3
func (me *TcaplusService) VerifyIdlFiles(ctx context.Context, tid TcaplusIdlId, groupId string, fileContent string) (idlId int64, tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
type TcmService ¶ added in v1.78.6
type TcmService struct {
// contains filtered or unexported fields
}
func (*TcmService) DeleteTcmClusterAttachmentById ¶ added in v1.78.6
func (me *TcmService) DeleteTcmClusterAttachmentById(ctx context.Context, meshId, clusterId string) (errRet error)
func (*TcmService) DeleteTcmMeshById ¶ added in v1.78.6
func (me *TcmService) DeleteTcmMeshById(ctx context.Context, meshId string) (errRet error)
func (*TcmService) DescribeTcmMesh ¶ added in v1.78.6
func (me *TcmService) DescribeTcmMesh(ctx context.Context, meshId string) (mesh *tcm.DescribeMeshResponseParams, errRet error)
type TdmqService ¶ added in v1.59.12
type TdmqService struct {
// contains filtered or unexported fields
}
func (*TdmqService) CreateTdmqNamespace ¶ added in v1.59.12
func (me *TdmqService) CreateTdmqNamespace(ctx context.Context, environName string, msgTtl uint64, clusterId string, remark string, retentionPolicy tdmq.RetentionPolicy) (environId string, errRet error)
tdmq namespace
func (*TdmqService) CreateTdmqNamespaceRoleAttachment ¶ added in v1.59.12
func (me *TdmqService) CreateTdmqNamespaceRoleAttachment(ctx context.Context, environId string, roleName string, permissions []*string, clusterId string) (errRet error)
tdmq role
func (*TdmqService) CreateTdmqRole ¶ added in v1.59.12
func (me *TdmqService) CreateTdmqRole(ctx context.Context, roleName string, clusterId string, remark string) (roleId string, errRet error)
tdmq role
func (*TdmqService) CreateTdmqTopic ¶ added in v1.59.12
func (me *TdmqService) CreateTdmqTopic(ctx context.Context, environId string, topicName string, partitions uint64, topicType uint64, remark string, clusterId string) (errRet error)
tdmq topic
func (*TdmqService) DeleteTdmqInstance ¶ added in v1.59.12
func (me *TdmqService) DeleteTdmqInstance(ctx context.Context, clusterId string) (errRet error)
func (*TdmqService) DeleteTdmqNamespace ¶ added in v1.59.12
func (*TdmqService) DeleteTdmqNamespaceRoleAttachment ¶ added in v1.59.12
func (*TdmqService) DeleteTdmqRole ¶ added in v1.59.12
func (*TdmqService) DeleteTdmqTopic ¶ added in v1.59.12
func (*TdmqService) DescribeTdmqInstanceById ¶ added in v1.59.12
func (*TdmqService) DescribeTdmqNamespaceById ¶ added in v1.59.12
func (me *TdmqService) DescribeTdmqNamespaceById(ctx context.Context, environId string, clusterId string) (info *tdmq.Environment, has bool, errRet error)
func (*TdmqService) DescribeTdmqNamespaceRoleAttachment ¶ added in v1.59.12
func (me *TdmqService) DescribeTdmqNamespaceRoleAttachment(ctx context.Context, environId string, roleName string, clusterId string) (info *tdmq.EnvironmentRole, has bool, errRet error)
func (*TdmqService) DescribeTdmqRoleById ¶ added in v1.59.12
func (*TdmqService) DescribeTdmqTopicById ¶ added in v1.59.12
func (*TdmqService) ModifyTdmqInstanceAttribute ¶ added in v1.59.12
func (*TdmqService) ModifyTdmqNamespaceAttribute ¶ added in v1.59.12
func (me *TdmqService) ModifyTdmqNamespaceAttribute(ctx context.Context, environId string, msgTtl uint64, remark string, clusterId string, retentionPolicy *tdmq.RetentionPolicy) (errRet error)
func (*TdmqService) ModifyTdmqNamespaceRoleAttachment ¶ added in v1.59.12
func (*TdmqService) ModifyTdmqRoleAttribute ¶ added in v1.59.12
type TemService ¶ added in v1.77.0
type TemService struct {
// contains filtered or unexported fields
}
func (*TemService) DeleteTemAppConfigById ¶ added in v1.77.0
func (*TemService) DeleteTemApplicationById ¶ added in v1.77.0
func (me *TemService) DeleteTemApplicationById(ctx context.Context, applicationId string) (errRet error)
func (*TemService) DeleteTemEnvironmentById ¶ added in v1.77.0
func (me *TemService) DeleteTemEnvironmentById(ctx context.Context, environmentId string) (errRet error)
func (*TemService) DeleteTemGatewayById ¶ added in v1.77.0
func (*TemService) DeleteTemLogConfigById ¶ added in v1.77.0
func (*TemService) DeleteTemScaleRuleById ¶ added in v1.77.0
func (*TemService) DeleteTemWorkloadById ¶ added in v1.77.0
func (*TemService) DescribeTemAppConfig ¶ added in v1.77.0
func (me *TemService) DescribeTemAppConfig(ctx context.Context, environmentId string, name string) (appConfig *tem.ConfigData, errRet error)
func (*TemService) DescribeTemApplication ¶ added in v1.77.0
func (me *TemService) DescribeTemApplication(ctx context.Context, applicationId string) (application *tem.DescribeApplicationsResponseParams, errRet error)
func (*TemService) DescribeTemEnvironment ¶ added in v1.77.0
func (me *TemService) DescribeTemEnvironment(ctx context.Context, environmentId string) (environment *tem.DescribeEnvironmentResponseParams, errRet error)
func (*TemService) DescribeTemEnvironmentStatus ¶ added in v1.77.0
func (me *TemService) DescribeTemEnvironmentStatus(ctx context.Context, environmentId string) (environment *tem.NamespaceStatusInfo, errRet error)
func (*TemService) DescribeTemGateway ¶ added in v1.77.0
func (me *TemService) DescribeTemGateway(ctx context.Context, environmentId string, ingressName string) (gateway *tem.IngressInfo, errRet error)
func (*TemService) DescribeTemLogConfig ¶ added in v1.77.0
func (*TemService) DescribeTemScaleRule ¶ added in v1.77.0
func (me *TemService) DescribeTemScaleRule(ctx context.Context, environmentId string, applicationId string, scaleRuleId string) (scaleRule *tem.Autoscaler, errRet error)
func (*TemService) DescribeTemWorkload ¶ added in v1.77.0
func (me *TemService) DescribeTemWorkload(ctx context.Context, environmentId string, applicationId string) (workload *tem.DescribeApplicationInfoResponseParams, errRet error)
func (*TemService) DisableTemScaleRuleById ¶ added in v1.77.0
type TencentCloudClient ¶
type TencentCloudClient struct {
// contains filtered or unexported fields
}
type TencentCloudRedisDetail ¶ added in v1.41.3
type TencentCloudRedisDetail struct { RedisId string Name string Zone string ProjectId int64 TypeId int64 Type string MemSize int64 Status string VpcId string SubnetId string Ip string Port int64 RedisShardNum int64 RedisReplicasNum int64 CreateTime string Tags map[string]string BillingMode string NodeInfo []map[string]interface{} }
type TeoService ¶ added in v1.77.5
type TeoService struct {
// contains filtered or unexported fields
}
func (*TeoService) CheckZoneComplete ¶ added in v1.78.0
func (me *TeoService) CheckZoneComplete(ctx context.Context, zoneId string) error
func (*TeoService) DeleteTeoApplicationProxyById ¶ added in v1.77.5
func (me *TeoService) DeleteTeoApplicationProxyById(ctx context.Context, zoneId, proxyId string) (errRet error)
func (*TeoService) DeleteTeoApplicationProxyRuleById ¶ added in v1.77.5
func (me *TeoService) DeleteTeoApplicationProxyRuleById(ctx context.Context, zoneId, proxyId, ruleId string) (errRet error)
func (*TeoService) DeleteTeoDnsRecordById ¶ added in v1.77.5
func (me *TeoService) DeleteTeoDnsRecordById(ctx context.Context, zoneId, dnsRecordId string) (errRet error)
func (*TeoService) DeleteTeoLoadBalancingById ¶ added in v1.77.5
func (*TeoService) DeleteTeoOriginGroupById ¶ added in v1.77.5
func (me *TeoService) DeleteTeoOriginGroupById(ctx context.Context, zoneId, originGroupId string) (errRet error)
func (*TeoService) DeleteTeoRuleEngineById ¶ added in v1.77.5
func (me *TeoService) DeleteTeoRuleEngineById(ctx context.Context, zoneId, ruleId string) (errRet error)
func (*TeoService) DeleteTeoZoneById ¶ added in v1.77.5
func (me *TeoService) DeleteTeoZoneById(ctx context.Context, zoneId string) (errRet error)
func (*TeoService) DescribeTeoApplicationProxy ¶ added in v1.77.5
func (me *TeoService) DescribeTeoApplicationProxy(ctx context.Context, zoneId, proxyId string) (applicationProxy *teo.ApplicationProxy, errRet error)
func (*TeoService) DescribeTeoApplicationProxyRule ¶ added in v1.77.5
func (me *TeoService) DescribeTeoApplicationProxyRule(ctx context.Context, zoneId, proxyId, ruleId string) (applicationProxyRule *teo.ApplicationProxyRule, errRet error)
func (*TeoService) DescribeTeoBotManagedRulesByFilter ¶ added in v1.78.0
func (me *TeoService) DescribeTeoBotManagedRulesByFilter(ctx context.Context, param map[string]interface{}) (botManagedRules []*teo.BotManagedRuleDetail, errRet error)
func (*TeoService) DescribeTeoBotPortraitRulesByFilter ¶ added in v1.78.0
func (me *TeoService) DescribeTeoBotPortraitRulesByFilter(ctx context.Context, param map[string]interface{}) (portraitManagedRules []*teo.PortraitManagedRuleDetail, errRet error)
func (*TeoService) DescribeTeoDdosPolicy ¶ added in v1.77.5
func (me *TeoService) DescribeTeoDdosPolicy(ctx context.Context, zoneId string, policyId int64) (ddosPolicy *teo.DescribeDDoSPolicyResponseParams, errRet error)
func (*TeoService) DescribeTeoDefaultCertificate ¶ added in v1.77.5
func (me *TeoService) DescribeTeoDefaultCertificate(ctx context.Context, zoneId, certId string) (defaultCertificate *teo.DefaultServerCertInfo, errRet error)
func (*TeoService) DescribeTeoDnsRecord ¶ added in v1.77.5
func (*TeoService) DescribeTeoDnsSec ¶ added in v1.77.5
func (me *TeoService) DescribeTeoDnsSec(ctx context.Context, zoneId string) (dnsSec *teo.DescribeDnssecResponseParams, errRet error)
func (*TeoService) DescribeTeoLoadBalancing ¶ added in v1.77.5
func (me *TeoService) DescribeTeoLoadBalancing(ctx context.Context, zoneId, loadBalancingId string) (loadBalancing *teo.LoadBalancing, errRet error)
func (*TeoService) DescribeTeoOriginGroup ¶ added in v1.77.5
func (me *TeoService) DescribeTeoOriginGroup(ctx context.Context, zoneId, originGroupId string) (originGroup *teo.OriginGroup, errRet error)
func (*TeoService) DescribeTeoRuleEngine ¶ added in v1.77.5
func (*TeoService) DescribeTeoRuleEnginePriority ¶ added in v1.78.0
func (*TeoService) DescribeTeoRuleEngineSettingsByFilter ¶ added in v1.78.0
func (me *TeoService) DescribeTeoRuleEngineSettingsByFilter(ctx context.Context) (actions []*teo.RulesSettingAction, errRet error)
func (*TeoService) DescribeTeoSecurityPolicy ¶ added in v1.77.5
func (me *TeoService) DescribeTeoSecurityPolicy(ctx context.Context, zoneId, entity string) (securityPolicy *teo.DescribeSecurityPolicyResponseParams, errRet error)
func (*TeoService) DescribeTeoSecurityPolicyRegionsByFilter ¶ added in v1.78.0
func (*TeoService) DescribeTeoWafRuleGroupsByFilter ¶ added in v1.78.0
func (me *TeoService) DescribeTeoWafRuleGroupsByFilter(ctx context.Context, param map[string]interface{}) (wafGroupDetails []*teo.WafGroupDetail, errRet error)
func (*TeoService) DescribeTeoZone ¶ added in v1.77.5
func (*TeoService) DescribeTeoZoneAvailablePlansByFilter ¶ added in v1.78.0
func (*TeoService) DescribeTeoZoneDDoSPolicyByFilter ¶ added in v1.78.0
func (me *TeoService) DescribeTeoZoneDDoSPolicyByFilter(ctx context.Context, param map[string]interface{}) (ddosPolicy *teo.DescribeZoneDDoSPolicyResponseParams, errRet error)
func (*TeoService) DescribeTeoZoneSetting ¶ added in v1.77.5
func (me *TeoService) DescribeTeoZoneSetting(ctx context.Context, zoneId string) (zoneSetting *teo.ZoneSetting, errRet error)
type TkeService ¶ added in v1.41.3
type TkeService struct {
// contains filtered or unexported fields
}
func (*TkeService) AcquireClusterAdminRole ¶ added in v1.72.0
func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)
func (*TkeService) CheckClusterVersion ¶ added in v1.53.1
func (*TkeService) CheckInstancesUpgradeAble ¶ added in v1.56.3
func (*TkeService) CheckOneOfClusterNodeReady ¶ added in v1.77.0
func (*TkeService) CreateCluster ¶ added in v1.41.3
func (me *TkeService) CreateCluster(ctx context.Context, basic ClusterBasicSetting, advanced ClusterAdvancedSettings, cvms RunInstancesForNode, iAdvanced InstanceAdvancedSettings, cidrSetting ClusterCidrSettings, tags map[string]string, existedInstance []*tke.ExistedInstancesForNode, overrideSettings *OverrideSettings, iDiskMountSettings []*tke.InstanceDataDiskMountSetting, extensionAddons []*tke.ExtensionAddon, ) (id string, errRet error)
func (*TkeService) CreateClusterAsGroup ¶ added in v1.41.3
func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, iAdvanced InstanceAdvancedSettings) (asGroupId string, errRet error)
func (*TkeService) CreateClusterEndpoint ¶ added in v1.41.3
func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, internet bool) (errRet error)
open internet access
func (*TkeService) CreateClusterInstances ¶ added in v1.41.3
func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, iAdvanced tke.InstanceAdvancedSettings) (instanceIds []string, errRet error)
func (*TkeService) CreateClusterNodePool ¶ added in v1.52.0
func (*TkeService) CreateExtensionAddon ¶ added in v1.60.15
func (me *TkeService) CreateExtensionAddon(ctx context.Context, clusterName, reqBody string) (errRet error)
func (*TkeService) DeleteCluster ¶ added in v1.41.3
func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)
func (*TkeService) DeleteClusterAsGroups ¶ added in v1.41.3
func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)
func (*TkeService) DeleteClusterEndpoint ¶ added in v1.41.3
func (*TkeService) DeleteClusterInstances ¶ added in v1.41.3
func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)
if cluster is creating, return error:TencentCloudSDKError] Code=InternalError.ClusterState
func (*TkeService) DeleteClusterNodePool ¶ added in v1.52.0
func (*TkeService) DeleteExtensionAddon ¶ added in v1.60.15
func (me *TkeService) DeleteExtensionAddon(ctx context.Context, clusterName, addon string) (errRet error)
func (*TkeService) DeletePrometheusClusterAgent ¶ added in v1.77.4
func (me *TkeService) DeletePrometheusClusterAgent(ctx context.Context, instanceId, clusterId, clusterType string) (errRet error)
func (*TkeService) DeletePrometheusRecordRuleYaml ¶ added in v1.77.4
func (me *TkeService) DeletePrometheusRecordRuleYaml(ctx context.Context, id, name string) (errRet error)
func (*TkeService) DeleteTkeTmpAlertPolicyById ¶ added in v1.76.2
func (me *TkeService) DeleteTkeTmpAlertPolicyById(ctx context.Context, instanceId, tmpAlertPolicyId string) (errRet error)
func (*TkeService) DeleteTkeTmpConfigByName ¶ added in v1.77.4
func (*TkeService) DeleteTmpTkeTemplate ¶ added in v1.75.6
func (me *TkeService) DeleteTmpTkeTemplate(ctx context.Context, tempId string) (errRet error)
func (*TkeService) DescribeCluster ¶ added in v1.41.3
func (me *TkeService) DescribeCluster(ctx context.Context, id string) ( clusterInfo ClusterInfo, has bool, errRet error, )
func (*TkeService) DescribeClusterAsGroupsByGroupId ¶ added in v1.41.3
func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)
func (*TkeService) DescribeClusterAuthenticationOptions ¶ added in v1.59.9
func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, errRet error)
DescribeClusterAuthenticationOptions Field `ServiceAccounts.AutoCreateDiscoveryAnonymousAuth` will always return null by design
func (*TkeService) DescribeClusterCommonNames ¶ added in v1.72.0
func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)
func (*TkeService) DescribeClusterConfig ¶ added in v1.46.2
func (*TkeService) DescribeClusterEndpointStatus ¶ added in v1.41.3
func (*TkeService) DescribeClusterInstances ¶ added in v1.41.3
func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
func (*TkeService) DescribeClusterLevelAttribute ¶ added in v1.67.0
func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)
func (*TkeService) DescribeClusterNodePoolGlobalConfig ¶ added in v1.53.1
func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) ( npGlobalConfig *tke.ClusterAsGroupOption, errRet error, )
func (*TkeService) DescribeClusterSecurity ¶ added in v1.41.3
func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)
func (*TkeService) DescribeClusters ¶ added in v1.41.3
func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)
func (*TkeService) DescribeExtensionAddon ¶ added in v1.60.15
func (*TkeService) DescribeImages ¶ added in v1.41.3
func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
func (*TkeService) DescribeNodePool ¶ added in v1.52.0
func (*TkeService) DescribePrometheusRecordRuleByName ¶ added in v1.77.4
func (me *TkeService) DescribePrometheusRecordRuleByName(ctx context.Context, id, name string) ( ret *tke.DescribePrometheusRecordRulesResponse, errRet error)
func (*TkeService) DescribePrometheusTempSync ¶ added in v1.77.4
func (me *TkeService) DescribePrometheusTempSync(ctx context.Context, templateId string) (targets []*tke.PrometheusTemplateSyncTarget, errRet error)
func (*TkeService) DescribeTkeTmpAlertPolicy ¶ added in v1.76.2
func (me *TkeService) DescribeTkeTmpAlertPolicy(ctx context.Context, instanceId, tmpAlertPolicyId string) (tmpAlertPolicy *tke.PrometheusAlertPolicyItem, errRet error)
func (*TkeService) DescribeTkeTmpConfigById ¶ added in v1.77.4
func (me *TkeService) DescribeTkeTmpConfigById(ctx context.Context, configId string) (respParams *tke.DescribePrometheusConfigResponseParams, errRet error)
func (*TkeService) DescribeTkeTmpGlobalNotification ¶ added in v1.77.4
func (me *TkeService) DescribeTkeTmpGlobalNotification(ctx context.Context, instanceId string) (tmpNotification *tke.PrometheusNotificationItem, errRet error)
func (*TkeService) DescribeTmpTkeClusterAgentsById ¶ added in v1.77.4
func (me *TkeService) DescribeTmpTkeClusterAgentsById(ctx context.Context, instanceId, clusterId, clusterType string) (agents *tke.PrometheusAgentOverview, errRet error)
func (*TkeService) DescribeTmpTkeTemplateById ¶ added in v1.75.6
func (me *TkeService) DescribeTmpTkeTemplateById(ctx context.Context, templateId string) (template *tke.PrometheusTemp, errRet error)
func (*TkeService) DisableClusterAudit ¶ added in v1.72.5
func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)
func (*TkeService) DisableEventPersistence ¶ added in v1.72.5
func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)
func (*TkeService) EnableClusterAudit ¶ added in v1.72.5
func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)
func (*TkeService) EnableEventPersistence ¶ added in v1.72.5
func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)
func (*TkeService) GetAddonReqBody ¶ added in v1.60.15
func (me *TkeService) GetAddonReqBody(addon, version string, values []*string) (string, error)
func (*TkeService) GetAddonsPath ¶ added in v1.60.15
func (me *TkeService) GetAddonsPath(cluster, addon string) string
func (*TkeService) GetTkeAppChartList ¶ added in v1.60.15
func (me *TkeService) GetTkeAppChartList(ctx context.Context, request *tke.GetTkeAppChartListRequest) (info []*tke.AppChart, errRet error)
func (*TkeService) GetUpgradeInstanceResult ¶ added in v1.56.3
func (*TkeService) InstallLogAgent ¶ added in v1.72.5
func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)
func (*TkeService) ModifyClusterAsGroupAttribute ¶ added in v1.49.0
func (*TkeService) ModifyClusterAttribute ¶ added in v1.50.0
func (*TkeService) ModifyClusterAuthenticationOptions ¶ added in v1.59.9
func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)
func (*TkeService) ModifyClusterEndpointSG ¶ added in v1.77.7
func (*TkeService) ModifyClusterEndpointSP ¶ added in v1.41.3
func (*TkeService) ModifyClusterNodePool ¶ added in v1.52.0
func (*TkeService) ModifyClusterNodePoolDesiredCapacity ¶ added in v1.52.0
func (*TkeService) ModifyClusterNodePoolGlobalConfig ¶ added in v1.53.1
func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)
node pool global config
func (*TkeService) ModifyClusterNodePoolInstanceTypes ¶ added in v1.58.4
func (*TkeService) ModifyClusterVersion ¶ added in v1.53.1
func (*TkeService) ModifyDeletionProtection ¶ added in v1.60.12
func (*TkeService) ModifyTkeTmpGlobalNotification ¶ added in v1.77.4
func (me *TkeService) ModifyTkeTmpGlobalNotification(ctx context.Context, instanceId string, notification tke.PrometheusNotificationItem) (response *tke.ModifyPrometheusGlobalNotificationResponse, errRet error)
func (*TkeService) PollingAddonsPhase ¶ added in v1.60.15
func (me *TkeService) PollingAddonsPhase(ctx context.Context, clusterId, addonName string, addonResponseData *AddonResponseData) (string, bool, error)
func (*TkeService) ProcessExtensionAddons ¶ added in v1.60.15
func (me *TkeService) ProcessExtensionAddons(ctx context.Context, request *tke.ForwardApplicationRequestV3Request) (response *tke.ForwardApplicationRequestV3Response, err error)
func (*TkeService) SwitchClusterAudit ¶ added in v1.72.5
func (*TkeService) SwitchEventPersistence ¶ added in v1.72.5
func (*TkeService) SwitchLogAgent ¶ added in v1.72.5
func (*TkeService) UninstallLogAgent ¶ added in v1.72.5
func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)
func (*TkeService) UpdateExtensionAddon ¶ added in v1.60.15
func (me *TkeService) UpdateExtensionAddon(ctx context.Context, clusterName, addon, reqBody string) (errRet error)
func (*TkeService) UpgradeClusterInstances ¶ added in v1.56.3
func (*TkeService) WaitForAuthenticationOptionsUpdateSuccess ¶ added in v1.59.12
func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, errRet error)
type VodService ¶ added in v1.45.0
type VodService struct {
// contains filtered or unexported fields
}
func (*VodService) DeleteAdaptiveDynamicStreamingTemplate ¶ added in v1.45.0
func (*VodService) DeleteImageSpriteTemplate ¶ added in v1.45.0
func (*VodService) DeleteProcedureTemplate ¶ added in v1.45.0
func (*VodService) DeleteSnapshotByTimeOffsetTemplate ¶ added in v1.45.0
func (*VodService) DeleteSuperPlayerConfig ¶ added in v1.45.0
func (*VodService) DescribeAdaptiveDynamicStreamingTemplatesByFilter ¶ added in v1.45.0
func (me *VodService) DescribeAdaptiveDynamicStreamingTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.AdaptiveDynamicStreamingTemplate, errRet error)
func (*VodService) DescribeAdaptiveDynamicStreamingTemplatesById ¶ added in v1.45.0
func (me *VodService) DescribeAdaptiveDynamicStreamingTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.AdaptiveDynamicStreamingTemplate, has bool, errRet error)
func (*VodService) DescribeImageSpriteTemplatesByFilter ¶ added in v1.45.0
func (me *VodService) DescribeImageSpriteTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.ImageSpriteTemplate, errRet error)
func (*VodService) DescribeImageSpriteTemplatesById ¶ added in v1.45.0
func (me *VodService) DescribeImageSpriteTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.ImageSpriteTemplate, has bool, errRet error)
func (*VodService) DescribeProcedureTemplatesByFilter ¶ added in v1.45.0
func (me *VodService) DescribeProcedureTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.ProcedureTemplate, errRet error)
func (*VodService) DescribeProcedureTemplatesById ¶ added in v1.45.0
func (me *VodService) DescribeProcedureTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.ProcedureTemplate, has bool, errRet error)
func (*VodService) DescribeSnapshotByTimeOffsetTemplatesByFilter ¶ added in v1.45.0
func (me *VodService) DescribeSnapshotByTimeOffsetTemplatesByFilter(ctx context.Context, filters map[string]interface{}) (templates []*vod.SnapshotByTimeOffsetTemplate, errRet error)
func (*VodService) DescribeSnapshotByTimeOffsetTemplatesById ¶ added in v1.45.0
func (me *VodService) DescribeSnapshotByTimeOffsetTemplatesById(ctx context.Context, templateId string, subAppId int) (templateInfo *vod.SnapshotByTimeOffsetTemplate, has bool, errRet error)
func (*VodService) DescribeSuperPlayerConfigsByFilter ¶ added in v1.45.0
func (me *VodService) DescribeSuperPlayerConfigsByFilter(ctx context.Context, filters map[string]interface{}) (configs []*vod.PlayerConfig, errRet error)
func (*VodService) DescribeSuperPlayerConfigsById ¶ added in v1.45.0
func (me *VodService) DescribeSuperPlayerConfigsById(ctx context.Context, configId string) (configInfo *vod.PlayerConfig, has bool, errRet error)
type VpcACLRule ¶ added in v1.41.3
type VpcACLRule struct {
// contains filtered or unexported fields
}
acl rule
type VpcBasicInfo ¶ added in v1.41.3
type VpcBasicInfo struct {
// contains filtered or unexported fields
}
VPC basic information
type VpcRouteEntryBasicInfo ¶ added in v1.41.3
type VpcRouteEntryBasicInfo struct {
// contains filtered or unexported fields
}
route entry basic information
type VpcRouteTableBasicInfo ¶ added in v1.41.3
type VpcRouteTableBasicInfo struct {
// contains filtered or unexported fields
}
route table basic information
type VpcSecurityGroupLiteRule ¶ added in v1.41.3
type VpcSecurityGroupLiteRule struct {
// contains filtered or unexported fields
}
func (VpcSecurityGroupLiteRule) String ¶ added in v1.41.3
func (rule VpcSecurityGroupLiteRule) String() string
type VpcService ¶ added in v1.41.3
type VpcService struct {
// contains filtered or unexported fields
}
func (*VpcService) AssignIpv4ToEni ¶ added in v1.41.3
func (*VpcService) AssociateAclSubnets ¶ added in v1.41.3
func (*VpcService) AttachCcnInstances ¶ added in v1.41.3
func (*VpcService) AttachEip ¶ added in v1.41.3
func (me *VpcService) AttachEip(ctx context.Context, eipId, instanceId string) error
func (*VpcService) AttachEniToCvm ¶ added in v1.41.3
func (me *VpcService) AttachEniToCvm(ctx context.Context, eniId, cvmId string) error
func (*VpcService) AttachLiteRulesToSecurityGroup ¶ added in v1.41.3
func (me *VpcService) AttachLiteRulesToSecurityGroup(ctx context.Context, sgId string, ingress, egress []VpcSecurityGroupLiteRule) error
func (*VpcService) AttachRulesToACL ¶ added in v1.41.3
func (me *VpcService) AttachRulesToACL(ctx context.Context, aclID string, ingressParm, egressParm []VpcACLRule) (errRet error)
func (*VpcService) CheckAssistantCidr ¶ added in v1.60.26
func (me *VpcService) CheckAssistantCidr(ctx context.Context, request *vpc.CheckAssistantCidrRequest) (info []*vpc.ConflictSource, errRet error)
CheckAssistantCidr used for check if cidr conflict
func (*VpcService) CreateAddressTemplate ¶ added in v1.50.0
func (*VpcService) CreateAddressTemplateGroup ¶ added in v1.50.0
func (*VpcService) CreateAssistantCidr ¶ added in v1.60.26
func (me *VpcService) CreateAssistantCidr(ctx context.Context, request *vpc.CreateAssistantCidrRequest) (info []*vpc.AssistantCidr, errRet error)
func (*VpcService) CreateCcn ¶ added in v1.41.3
func (me *VpcService) CreateCcn(ctx context.Context, name, description, qos, chargeType, bandWithLimitType string) (basicInfo CcnBasicInfo, errRet error)
func (*VpcService) CreateDirectConnectGateway ¶ added in v1.41.3
func (*VpcService) CreateDirectConnectGatewayCcnRoute ¶ added in v1.41.3
func (*VpcService) CreateNatGatewaySnat ¶ added in v1.58.0
func (me *VpcService) CreateNatGatewaySnat(ctx context.Context, natGatewayId string, snat *vpc.SourceIpTranslationNatRule) (errRet error)
func (*VpcService) CreateRouteTable ¶ added in v1.41.3
func (*VpcService) CreateRoutes ¶ added in v1.41.3
func (*VpcService) CreateSecurityGroup ¶ added in v1.41.3
func (*VpcService) CreateSecurityGroupPolicy ¶ added in v1.41.3
func (me *VpcService) CreateSecurityGroupPolicy(ctx context.Context, info securityGroupRuleBasicInfoWithPolicyIndex) (ruleId string, err error)
func (*VpcService) CreateServiceTemplate ¶ added in v1.50.0
func (*VpcService) CreateServiceTemplateGroup ¶ added in v1.50.0
func (*VpcService) CreateSubnet ¶ added in v1.41.3
func (*VpcService) CreateVpc ¶ added in v1.41.3
func (me *VpcService) CreateVpc(ctx context.Context, name, cidr string, isMulticast bool, dnsServers []string, tags map[string]string) (vpcId string, isDefault bool, errRet error)
////////api
func (*VpcService) CreateVpcNetworkAcl ¶ added in v1.41.3
func (*VpcService) CreateVpnGatewayRoute ¶ added in v1.58.0
func (me *VpcService) CreateVpnGatewayRoute(ctx context.Context, vpnGatewayId string, vpnGwRoutes []*vpc.VpnGatewayRoute) (errRet error, routes []*vpc.VpnGatewayRoute)
func (*VpcService) DeleteAcl ¶ added in v1.41.3
func (me *VpcService) DeleteAcl(ctx context.Context, aclID string) (errRet error)
func (*VpcService) DeleteAclAttachment ¶ added in v1.41.3
func (me *VpcService) DeleteAclAttachment(ctx context.Context, attachmentAcl string) (errRet error)
func (*VpcService) DeleteAddressTemplate ¶ added in v1.50.0
func (me *VpcService) DeleteAddressTemplate(ctx context.Context, templateId string) (errRet error)
func (*VpcService) DeleteAddressTemplateGroup ¶ added in v1.50.0
func (me *VpcService) DeleteAddressTemplateGroup(ctx context.Context, templateGroupId string) (errRet error)
func (*VpcService) DeleteAssistantCidr ¶ added in v1.60.26
func (me *VpcService) DeleteAssistantCidr(ctx context.Context, request *vpc.DeleteAssistantCidrRequest) (errRet error)
func (*VpcService) DeleteCcn ¶ added in v1.41.3
func (me *VpcService) DeleteCcn(ctx context.Context, ccnId string) (errRet error)
func (*VpcService) DeleteCustomerGateway ¶ added in v1.65.2
func (me *VpcService) DeleteCustomerGateway(ctx context.Context, customerGatewayId string) (errRet error)
func (*VpcService) DeleteDirectConnectGateway ¶ added in v1.41.3
func (me *VpcService) DeleteDirectConnectGateway(ctx context.Context, dcgId string) (errRet error)
func (*VpcService) DeleteDirectConnectGatewayCcnRoute ¶ added in v1.41.3
func (me *VpcService) DeleteDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, routeId string) (errRet error)
func (*VpcService) DeleteEip ¶ added in v1.41.3
func (me *VpcService) DeleteEip(ctx context.Context, eipId string) error
func (*VpcService) DeleteEni ¶ added in v1.41.3
func (me *VpcService) DeleteEni(ctx context.Context, id string) error
func (*VpcService) DeleteHaVip ¶ added in v1.69.0
func (me *VpcService) DeleteHaVip(ctx context.Context, haVipId string) (errRet error)
func (*VpcService) DeleteLiteRules ¶ added in v1.41.3
func (me *VpcService) DeleteLiteRules(ctx context.Context, sgId string, rules []VpcSecurityGroupLiteRule, isIngress bool) error
func (*VpcService) DeleteNatGateway ¶ added in v1.67.0
func (me *VpcService) DeleteNatGateway(ctx context.Context, natGatewayId string) (errRet error)
func (*VpcService) DeleteNatGatewaySnat ¶ added in v1.58.0
func (*VpcService) DeleteRouteTable ¶ added in v1.41.3
func (me *VpcService) DeleteRouteTable(ctx context.Context, routeTableId string) (errRet error)
func (*VpcService) DeleteRoutes ¶ added in v1.41.3
func (*VpcService) DeleteSecurityGroup ¶ added in v1.41.3
func (me *VpcService) DeleteSecurityGroup(ctx context.Context, id string) error
func (*VpcService) DeleteSecurityGroupPolicy ¶ added in v1.41.3
func (me *VpcService) DeleteSecurityGroupPolicy(ctx context.Context, ruleId string) error
func (*VpcService) DeleteSecurityGroupPolicyByPolicyIndex ¶ added in v1.78.3
func (*VpcService) DeleteServiceTemplate ¶ added in v1.50.0
func (me *VpcService) DeleteServiceTemplate(ctx context.Context, templateId string) (errRet error)
func (*VpcService) DeleteServiceTemplateGroup ¶ added in v1.50.0
func (me *VpcService) DeleteServiceTemplateGroup(ctx context.Context, templateGroupId string) (errRet error)
func (*VpcService) DeleteSubnet ¶ added in v1.41.3
func (me *VpcService) DeleteSubnet(ctx context.Context, subnetId string) (errRet error)
func (*VpcService) DeleteVpc ¶ added in v1.41.3
func (me *VpcService) DeleteVpc(ctx context.Context, vpcId string) (errRet error)
func (*VpcService) DeleteVpcBandwidthPackageAttachmentById ¶ added in v1.78.7
func (me *VpcService) DeleteVpcBandwidthPackageAttachmentById(ctx context.Context, bandwidthPackageId, resourceId string) (errRet error)
func (*VpcService) DeleteVpcBandwidthPackageById ¶ added in v1.78.7
func (me *VpcService) DeleteVpcBandwidthPackageById(ctx context.Context, bandwidthPackageId string) (errRet error)
func (*VpcService) DeleteVpnGateway ¶ added in v1.64.0
func (me *VpcService) DeleteVpnGateway(ctx context.Context, vpnGatewayId string) (errRet error)
func (*VpcService) DeleteVpnGatewayRoutes ¶ added in v1.58.0
func (*VpcService) DeleteVpnGatewaySslClient ¶ added in v1.65.0
func (*VpcService) DeleteVpnGatewaySslServer ¶ added in v1.65.0
func (*VpcService) DescribeAddressTemplateById ¶ added in v1.50.0
func (me *VpcService) DescribeAddressTemplateById(ctx context.Context, templateId string) (template *vpc.AddressTemplate, has bool, errRet error)
func (*VpcService) DescribeAddressTemplateGroupById ¶ added in v1.50.0
func (me *VpcService) DescribeAddressTemplateGroupById(ctx context.Context, templateGroupId string) (templateGroup *vpc.AddressTemplateGroup, has bool, errRet error)
func (*VpcService) DescribeAddressTemplateGroups ¶ added in v1.50.0
func (me *VpcService) DescribeAddressTemplateGroups(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.AddressTemplateGroup, errRet error)
func (*VpcService) DescribeAddressTemplates ¶ added in v1.50.0
func (me *VpcService) DescribeAddressTemplates(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.AddressTemplate, errRet error)
func (*VpcService) DescribeAssistantCidr ¶ added in v1.60.26
func (me *VpcService) DescribeAssistantCidr(ctx context.Context, vpcId string) (info []*vpc.AssistantCidr, errRet error)
func (*VpcService) DescribeByAclId ¶ added in v1.41.3
func (*VpcService) DescribeCcn ¶ added in v1.41.3
func (me *VpcService) DescribeCcn(ctx context.Context, ccnId string) (info CcnBasicInfo, has int, errRet error)
func (*VpcService) DescribeCcnAttachedInstance ¶ added in v1.41.3
func (me *VpcService) DescribeCcnAttachedInstance(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string) (info CcnAttachedInstanceInfo, has int, errRet error)
func (*VpcService) DescribeCcnAttachedInstances ¶ added in v1.41.3
func (me *VpcService) DescribeCcnAttachedInstances(ctx context.Context, ccnId string) (infos []CcnAttachedInstanceInfo, errRet error)
func (*VpcService) DescribeCcnAttachmentsByInstance ¶ added in v1.41.3
func (me *VpcService) DescribeCcnAttachmentsByInstance(ctx context.Context, instanceType string, instanceId string, instanceRegion string) (infos []vpc.CcnAttachedInstance, errRet error)
func (*VpcService) DescribeCcnRegionBandwidthLimit ¶ added in v1.41.3
func (*VpcService) DescribeCcnRegionBandwidthLimits ¶ added in v1.41.3
func (me *VpcService) DescribeCcnRegionBandwidthLimits(ctx context.Context, ccnId string) (infos []CcnBandwidthLimit, errRet error)
func (*VpcService) DescribeCcns ¶ added in v1.41.3
func (me *VpcService) DescribeCcns(ctx context.Context, ccnId, name string) (infos []CcnBasicInfo, errRet error)
func (*VpcService) DescribeCustomerGatewayByFilter ¶ added in v1.65.2
func (me *VpcService) DescribeCustomerGatewayByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.CustomerGateway, errRet error)
func (*VpcService) DescribeDirectConnectGateway ¶ added in v1.41.3
func (me *VpcService) DescribeDirectConnectGateway(ctx context.Context, dcgId string) (info DcgInstanceInfo, has int, errRet error)
func (*VpcService) DescribeDirectConnectGatewayCcnRoute ¶ added in v1.41.3
func (me *VpcService) DescribeDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, routeId string) (infoRet DcgRouteInfo, has int, errRet error)
func (*VpcService) DescribeDirectConnectGatewayCcnRoutes ¶ added in v1.41.3
func (me *VpcService) DescribeDirectConnectGatewayCcnRoutes(ctx context.Context, dcgId string) (infos []DcgRouteInfo, errRet error)
func (*VpcService) DescribeDirectConnectGateways ¶ added in v1.41.3
func (me *VpcService) DescribeDirectConnectGateways(ctx context.Context, dcgId, name string) ( infos []DcgInstanceInfo, errRet error)
func (*VpcService) DescribeEipByFilter ¶ added in v1.41.3
func (*VpcService) DescribeEipById ¶ added in v1.41.3
func (me *VpcService) DescribeEipById(ctx context.Context, eipId string) (eip *vpc.Address, errRet error)
EIP
func (*VpcService) DescribeEniByFilters ¶ added in v1.41.3
func (me *VpcService) DescribeEniByFilters( ctx context.Context, vpcId, subnetId, cvmId, sgId, name, desc, ipv4 *string, tags map[string]string, ) (enis []*vpc.NetworkInterface, err error)
func (*VpcService) DescribeEniById ¶ added in v1.41.3
func (me *VpcService) DescribeEniById(ctx context.Context, ids []string) (enis []*vpc.NetworkInterface, err error)
func (*VpcService) DescribeHaVipByFilter ¶ added in v1.69.0
func (*VpcService) DescribeHaVipEipById ¶ added in v1.41.3
func (*VpcService) DescribeNatGatewayByFilter ¶ added in v1.67.0
func (me *VpcService) DescribeNatGatewayByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.NatGateway, errRet error)
func (*VpcService) DescribeNatGatewayById ¶ added in v1.60.27
func (me *VpcService) DescribeNatGatewayById(ctx context.Context, natGateWayId string) (natGateWay *vpc.NatGateway, errRet error)
func (*VpcService) DescribeNatGatewaySnats ¶ added in v1.58.0
func (me *VpcService) DescribeNatGatewaySnats(ctx context.Context, natGatewayId string, filters []*vpc.Filter) (errRet error, result []*vpc.SourceIpTranslationNatRule)
func (*VpcService) DescribeNetWorkAcls ¶ added in v1.41.3
func (me *VpcService) DescribeNetWorkAcls(ctx context.Context, aclID, vpcID, name string) (info []*vpc.NetworkAcl, errRet error)
func (*VpcService) DescribeNetWorkByACLID ¶ added in v1.41.3
func (me *VpcService) DescribeNetWorkByACLID(ctx context.Context, aclID string) (info *vpc.NetworkAcl, has int, errRet error)
func (*VpcService) DescribeRouteTable ¶ added in v1.41.3
func (me *VpcService) DescribeRouteTable(ctx context.Context, routeTableId string) (info VpcRouteTableBasicInfo, has int, errRet error)
func (*VpcService) DescribeRouteTables ¶ added in v1.41.3
func (me *VpcService) DescribeRouteTables(ctx context.Context, routeTableId, routeTableName, vpcId string, tags map[string]string, associationMain *bool, tagKey string) (infos []VpcRouteTableBasicInfo, errRet error)
func (*VpcService) DescribeSecurityGroup ¶ added in v1.41.3
func (me *VpcService) DescribeSecurityGroup(ctx context.Context, id string) (sg *vpc.SecurityGroup, err error)
func (*VpcService) DescribeSecurityGroupPolices ¶ added in v1.41.3
func (me *VpcService) DescribeSecurityGroupPolices(ctx context.Context, sgId string) (ingress, egress []VpcSecurityGroupLiteRule, exist bool, err error)
func (*VpcService) DescribeSecurityGroupPolicy ¶ added in v1.41.3
func (me *VpcService) DescribeSecurityGroupPolicy(ctx context.Context, ruleId string) (sgId string, policyType string, policy *vpc.SecurityGroupPolicy, errRet error)
func (*VpcService) DescribeSecurityGroups ¶ added in v1.41.3
func (me *VpcService) DescribeSecurityGroups(ctx context.Context, sgId, sgName *string, projectId *int, tags map[string]string) (sgs []*vpc.SecurityGroup, err error)
func (*VpcService) DescribeSecurityGroupsAssociate ¶ added in v1.41.3
func (me *VpcService) DescribeSecurityGroupsAssociate(ctx context.Context, ids []string) ([]*vpc.SecurityGroupAssociationStatistics, error)
func (*VpcService) DescribeServiceTemplateById ¶ added in v1.50.0
func (me *VpcService) DescribeServiceTemplateById(ctx context.Context, templateId string) (template *vpc.ServiceTemplate, has bool, errRet error)
func (*VpcService) DescribeServiceTemplateGroupById ¶ added in v1.50.0
func (me *VpcService) DescribeServiceTemplateGroupById(ctx context.Context, templateGroupId string) (template *vpc.ServiceTemplateGroup, has bool, errRet error)
func (*VpcService) DescribeServiceTemplateGroups ¶ added in v1.50.0
func (me *VpcService) DescribeServiceTemplateGroups(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.ServiceTemplateGroup, errRet error)
func (*VpcService) DescribeServiceTemplates ¶ added in v1.50.0
func (me *VpcService) DescribeServiceTemplates(ctx context.Context, filter []*vpc.Filter) (templateList []*vpc.ServiceTemplate, errRet error)
func (*VpcService) DescribeSubnet ¶ added in v1.41.3
func (me *VpcService) DescribeSubnet(ctx context.Context, subnetId string, isRemoteVpcSNAT *bool, tagKey, cidrBlock string) (info VpcSubnetBasicInfo, has int, errRet error)
func (*VpcService) DescribeSubnets ¶ added in v1.41.3
func (*VpcService) DescribeTaskResult ¶ added in v1.65.0
func (me *VpcService) DescribeTaskResult(ctx context.Context, taskId *uint64) (err error)
func (*VpcService) DescribeVpc ¶ added in v1.41.3
func (me *VpcService) DescribeVpc(ctx context.Context, vpcId string, tagKey string, cidrBlock string) (info VpcBasicInfo, has int, errRet error)
func (*VpcService) DescribeVpcBandwidthPackage ¶ added in v1.78.7
func (me *VpcService) DescribeVpcBandwidthPackage(ctx context.Context, bandwidthPackageId string) (resource *vpc.BandwidthPackage, errRet error)
func (*VpcService) DescribeVpcBandwidthPackageAttachment ¶ added in v1.78.7
func (*VpcService) DescribeVpcTaskResult ¶ added in v1.72.0
func (me *VpcService) DescribeVpcTaskResult(ctx context.Context, taskId *string) (err error)
func (*VpcService) DescribeVpcs ¶ added in v1.41.3
func (*VpcService) DescribeVpnGatewayRoutes ¶ added in v1.58.0
func (me *VpcService) DescribeVpnGatewayRoutes(ctx context.Context, vpnGatewayId string, filters []*vpc.Filter) (errRet error, result []*vpc.VpnGatewayRoute)
func (*VpcService) DescribeVpnGwByFilter ¶ added in v1.64.0
func (me *VpcService) DescribeVpnGwByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.VpnGateway, errRet error)
func (*VpcService) DescribeVpnGwSslClientByFilter ¶ added in v1.65.0
func (me *VpcService) DescribeVpnGwSslClientByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.SslVpnClient, errRet error)
func (*VpcService) DescribeVpnGwSslServerByFilter ¶ added in v1.65.0
func (me *VpcService) DescribeVpnGwSslServerByFilter(ctx context.Context, filters map[string]string) (instances []*vpc.SslVpnSever, errRet error)
func (*VpcService) DescribeVpnSslClientById ¶ added in v1.65.0
func (me *VpcService) DescribeVpnSslClientById(ctx context.Context, sslId string) (has bool, gateway *vpc.SslVpnClient, err error)
func (*VpcService) DescribeVpnSslServerById ¶ added in v1.65.0
func (me *VpcService) DescribeVpnSslServerById(ctx context.Context, sslId string) (has bool, gateway *vpc.SslVpnSever, err error)
func (*VpcService) DescribeVpngwById ¶ added in v1.41.3
func (me *VpcService) DescribeVpngwById(ctx context.Context, vpngwId string) (has bool, gateway *vpc.VpnGateway, err error)
func (*VpcService) DetachAllLiteRulesFromSecurityGroup ¶ added in v1.41.3
func (me *VpcService) DetachAllLiteRulesFromSecurityGroup(ctx context.Context, sgId string) error
func (*VpcService) DetachCcnInstances ¶ added in v1.41.3
func (me *VpcService) DetachCcnInstances(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string) (errRet error)
func (*VpcService) DetachEniFromCvm ¶ added in v1.41.3
func (me *VpcService) DetachEniFromCvm(ctx context.Context, eniId, cvmId string) error
func (*VpcService) DisableRoutes ¶ added in v1.72.4
func (me *VpcService) DisableRoutes(ctx context.Context, request *vpc.DisableRoutesRequest) (errRet error)
func (*VpcService) DisassociateNatGatewayAddress ¶ added in v1.60.27
func (me *VpcService) DisassociateNatGatewayAddress(ctx context.Context, request *vpc.DisassociateNatGatewayAddressRequest) (errRet error)
func (*VpcService) EnableRoutes ¶ added in v1.72.4
func (me *VpcService) EnableRoutes(ctx context.Context, request *vpc.EnableRoutesRequest) (errRet error)
func (*VpcService) GetCcnRegionBandwidthLimit ¶ added in v1.53.0
func (*VpcService) GetCcnRegionBandwidthLimits ¶ added in v1.53.0
func (me *VpcService) GetCcnRegionBandwidthLimits(ctx context.Context, ccnID string) (infos []vpc.CcnRegionBandwidthLimit, errRet error)
func (*VpcService) GetCcnRouteId ¶ added in v1.41.3
func (*VpcService) GetRouteId ¶ added in v1.41.3
func (*VpcService) IsRouteTableInVpc ¶ added in v1.41.3
func (me *VpcService) IsRouteTableInVpc(ctx context.Context, routeTableId, vpcId string) (info VpcRouteTableBasicInfo, has int, errRet error)
func (*VpcService) ModifyAddressTemplate ¶ added in v1.50.0
func (*VpcService) ModifyAddressTemplateGroup ¶ added in v1.50.0
func (*VpcService) ModifyAssistantCidr ¶ added in v1.60.26
func (me *VpcService) ModifyAssistantCidr(ctx context.Context, request *vpc.ModifyAssistantCidrRequest) (errRet error)
func (*VpcService) ModifyCcnAttribute ¶ added in v1.41.3
func (me *VpcService) ModifyCcnAttribute(ctx context.Context, ccnId, name, description string) (errRet error)
func (*VpcService) ModifyCcnRegionBandwidthLimitsType ¶ added in v1.53.0
func (me *VpcService) ModifyCcnRegionBandwidthLimitsType(ctx context.Context, ccnID, limitType string) error
func (*VpcService) ModifyDirectConnectGatewayAttribute ¶ added in v1.41.3
func (me *VpcService) ModifyDirectConnectGatewayAttribute(ctx context.Context, dcgId, name string) (errRet error)
func (*VpcService) ModifyEipBandwidthOut ¶ added in v1.53.6
func (*VpcService) ModifyEipName ¶ added in v1.41.3
func (me *VpcService) ModifyEipName(ctx context.Context, eipId, eipName string) error
func (*VpcService) ModifyEniAttribute ¶ added in v1.41.3
func (*VpcService) ModifyEniPrimaryIpv4Desc ¶ added in v1.41.3
func (*VpcService) ModifyNatGatewaySnat ¶ added in v1.58.0
func (me *VpcService) ModifyNatGatewaySnat(ctx context.Context, natGatewayId string, snat *vpc.SourceIpTranslationNatRule) (errRet error)
func (*VpcService) ModifyNetWorkAclRules ¶ added in v1.41.3
func (me *VpcService) ModifyNetWorkAclRules(ctx context.Context, aclID string, ingressParm, egressParm []VpcACLRule) (errRet error)
func (*VpcService) ModifyRouteTableAttribute ¶ added in v1.41.3
func (*VpcService) ModifySecurityGroup ¶ added in v1.41.3
func (*VpcService) ModifySecurityGroupPolicy ¶ added in v1.41.3
func (*VpcService) ModifyServiceTemplate ¶ added in v1.50.0
func (*VpcService) ModifyServiceTemplateGroup ¶ added in v1.50.0
func (*VpcService) ModifySubnetAttribute ¶ added in v1.41.3
func (*VpcService) ModifyVpcAttribute ¶ added in v1.41.3
func (*VpcService) ModifyVpcNetworkAcl ¶ added in v1.41.3
func (*VpcService) ModifyVpnGatewayRoute ¶ added in v1.58.0
func (me *VpcService) ModifyVpnGatewayRoute(ctx context.Context, vpnGatewayId, routeId, status string) (errRet error, routes *vpc.VpnGatewayRoute)
func (*VpcService) ReplaceRouteTableAssociation ¶ added in v1.41.3
func (*VpcService) SetCcnRegionBandwidthLimits ¶ added in v1.41.3
func (*VpcService) SwitchRouteEnabled ¶ added in v1.72.4
func (*VpcService) UnAssignIpv4FromEni ¶ added in v1.41.3
func (*VpcService) UnattachEip ¶ added in v1.41.3
func (me *VpcService) UnattachEip(ctx context.Context, eipId string) error
type VpcSubnetBasicInfo ¶ added in v1.41.3
type VpcSubnetBasicInfo struct {
// contains filtered or unexported fields
}
subnet basic information
Source Files ¶
- common.go
- data_source_tc_address_template_groups.go
- data_source_tc_address_templates.go
- data_source_tc_api_gateway_api_keys.go
- data_source_tc_api_gateway_apis.go
- data_source_tc_api_gateway_customer_domains.go
- data_source_tc_api_gateway_ip_strategies.go
- data_source_tc_api_gateway_services.go
- data_source_tc_api_gateway_throttling_apis.go
- data_source_tc_api_gateway_throttling_services.go
- data_source_tc_api_gateway_usage_plan_environments.go
- data_source_tc_api_gateway_usage_plans.go
- data_source_tc_as_scaling_configs.go
- data_source_tc_as_scaling_groups.go
- data_source_tc_as_scaling_policies.go
- data_source_tc_audit_cos_regions.go
- data_source_tc_audit_key_alias.go
- data_source_tc_audits.go
- data_source_tc_availability_regions.go
- data_source_tc_availability_zones.go
- data_source_tc_availability_zones_by_product.go
- data_source_tc_cam_group_memberships.go
- data_source_tc_cam_group_policy_attachments.go
- data_source_tc_cam_groups.go
- data_source_tc_cam_policies.go
- data_source_tc_cam_role_policy_attachments.go
- data_source_tc_cam_roles.go
- data_source_tc_cam_saml_providers.go
- data_source_tc_cam_user_policy_attachments.go
- data_source_tc_cam_users.go
- data_source_tc_cat_node.go
- data_source_tc_cat_probe_data.go
- data_source_tc_cbs_snapshot_policies.go
- data_source_tc_cbs_snapshots.go
- data_source_tc_cbs_storages.go
- data_source_tc_cbs_storages_set.go
- data_source_tc_ccn_bandwidth_limits.go
- data_source_tc_ccn_instances.go
- data_source_tc_cdh_instances.go
- data_source_tc_cdn_domain_verifier.go
- data_source_tc_cdn_domains.go
- data_source_tc_cfs_access_groups.go
- data_source_tc_cfs_access_rules.go
- data_source_tc_cfs_file_systems.go
- data_source_tc_ckafka_acls.go
- data_source_tc_ckafka_instances.go
- data_source_tc_ckafka_topics.go
- data_source_tc_ckafka_users.go
- data_source_tc_clb_attachments.go
- data_source_tc_clb_instances.go
- data_source_tc_clb_listener_rules.go
- data_source_tc_clb_listeners.go
- data_source_tc_clb_redirections.go
- data_source_tc_clb_target_groups.go
- data_source_tc_container_cluster_instances.go
- data_source_tc_container_clusters.go
- data_source_tc_cos_bucket_object.go
- data_source_tc_cos_buckets.go
- data_source_tc_cynosdb_clusters.go
- data_source_tc_cynosdb_instances.go
- data_source_tc_cynosdb_zone_config.go
- data_source_tc_dayu_cc_http_policies.go
- data_source_tc_dayu_cc_https_policies.go
- data_source_tc_dayu_ddos_policies.go
- data_source_tc_dayu_ddos_policy_attachments.go
- data_source_tc_dayu_ddos_policy_cases.go
- data_source_tc_dayu_eip.go
- data_source_tc_dayu_l4_rules.go
- data_source_tc_dayu_l4_rules_v2.go
- data_source_tc_dayu_l7_rules.go
- data_source_tc_dayu_l7_rules_v2.go
- data_source_tc_dc_gateway_ccn_routes.go
- data_source_tc_dc_gateway_instances.go
- data_source_tc_dc_instances.go
- data_source_tc_dcdb_accounts.go
- data_source_tc_dcdb_databases.go
- data_source_tc_dcdb_instances.go
- data_source_tc_dcdb_parameters.go
- data_source_tc_dcdb_security_groups.go
- data_source_tc_dcdb_shards.go
- data_source_tc_dcx_instances.go
- data_source_tc_dnats.go
- data_source_tc_domains.go
- data_source_tc_eip.go
- data_source_tc_eips.go
- data_source_tc_eks_cluster_credential.go
- data_source_tc_eks_clusters.go
- data_source_tc_elasticsearch_instances.go
- data_source_tc_emr.go
- data_source_tc_emr_nodes.go
- data_source_tc_enis.go
- data_source_tc_gaap_certificates.go
- data_source_tc_gaap_domain_error_pages.go
- data_source_tc_gaap_http_domains.go
- data_source_tc_gaap_http_rules.go
- data_source_tc_gaap_layer4_listeners.go
- data_source_tc_gaap_layer7_listeners.go
- data_source_tc_gaap_proxies.go
- data_source_tc_gaap_realservers.go
- data_source_tc_gaap_security_policies.go
- data_source_tc_gaap_security_rules.go
- data_source_tc_ha_vip_eip_attachments.go
- data_source_tc_ha_vips.go
- data_source_tc_image.go
- data_source_tc_images.go
- data_source_tc_instance_types.go
- data_source_tc_instances.go
- data_source_tc_instances_set.go
- data_source_tc_key_pairs.go
- data_source_tc_kms_keys.go
- data_source_tc_kubernetes_charts.go
- data_source_tc_kubernetes_cluster_common_names.go
- data_source_tc_kubernetes_cluster_levels.go
- data_source_tc_kubernetes_clusters.go
- data_source_tc_mariadb_accounts.go
- data_source_tc_mariadb_db_instances.go
- data_source_tc_mariadb_security_groups.go
- data_source_tc_mongodb_instances.go
- data_source_tc_mongodb_zone_config.go
- data_source_tc_monitor_alarm_notices.go
- data_source_tc_monitor_binding_objects.go
- data_source_tc_monitor_data.go
- data_source_tc_monitor_policy_conditions.go
- data_source_tc_monitor_policy_groups.go
- data_source_tc_monitor_product_event.go
- data_source_tc_monitor_product_namespace.go
- data_source_tc_mysql_backup_list.go
- data_source_tc_mysql_default_params.go
- data_source_tc_mysql_instance.go
- data_source_tc_mysql_parameter_list.go
- data_source_tc_mysql_zone_config.go
- data_source_tc_nat_gateway_snats.go
- data_source_tc_nat_gateways.go
- data_source_tc_nats.go
- data_source_tc_placement_groups.go
- data_source_tc_postgresql_instances.go
- data_source_tc_postgresql_specinfos.go
- data_source_tc_postgresql_xlogs.go
- data_source_tc_protocol_template_groups.go
- data_source_tc_protocol_templates.go
- data_source_tc_redis_instances.go
- data_source_tc_redis_zone_config.go
- data_source_tc_reserved_instance_configs.go
- data_source_tc_reserved_instances.go
- data_source_tc_route_table.go
- data_source_tc_scf_functions.go
- data_source_tc_scf_logs.go
- data_source_tc_scf_namespaces.go
- data_source_tc_security_group.go
- data_source_tc_security_groups.go
- data_source_tc_sqlserver_account_db_attachments.go
- data_source_tc_sqlserver_accounts.go
- data_source_tc_sqlserver_backups.go
- data_source_tc_sqlserver_basic_instances.go
- data_source_tc_sqlserver_dbs.go
- data_source_tc_sqlserver_instances.go
- data_source_tc_sqlserver_publish_subscribes.go
- data_source_tc_sqlserver_readonly_groups.go
- data_source_tc_sqlserver_zone_config.go
- data_source_tc_ssl_certificates.go
- data_source_tc_ssm_secret_versions.go
- data_source_tc_ssm_secrets.go
- data_source_tc_sts_caller_identity.go
- data_source_tc_subnet.go
- data_source_tc_tcaplus_clusters.go
- data_source_tc_tcaplus_idls.go
- data_source_tc_tcaplus_tablegroups.go
- data_source_tc_tcaplus_tables.go
- data_source_tc_tcr_instances.go
- data_source_tc_tcr_namespaces.go
- data_source_tc_tcr_repositories.go
- data_source_tc_tcr_tokens.go
- data_source_tc_tcr_vpc_attachments.go
- data_source_tc_teo_bot_managed_rules.go
- data_source_tc_teo_bot_portrait_rules.go
- data_source_tc_teo_rule_engine_settings.go
- data_source_tc_teo_security_policy_regions.go
- data_source_tc_teo_waf_rule_groups.go
- data_source_tc_teo_zone_available_plans.go
- data_source_tc_teo_zone_ddos_policy.go
- data_source_tc_user_info.go
- data_source_tc_vod_adaptive_dynamic_streaming_templates.go
- data_source_tc_vod_image_sprite_templates.go
- data_source_tc_vod_procedure_templates.go
- data_source_tc_vod_snapshot_by_time_offset_templates.go
- data_source_tc_vod_super_player_configs.go
- data_source_tc_vpc.go
- data_source_tc_vpc_acls.go
- data_source_tc_vpc_instances.go
- data_source_tc_vpc_route_tables.go
- data_source_tc_vpc_subnets.go
- data_source_tc_vpn_connections.go
- data_source_tc_vpn_customer_gateways.go
- data_source_tc_vpn_gateway_routes.go
- data_source_tc_vpn_gateways.go
- extension_api_gateway.go
- extension_as.go
- extension_cam.go
- extension_cbs.go
- extension_cdh.go
- extension_cdn.go
- extension_cfs.go
- extension_ckafka.go
- extension_clb.go
- extension_cnn.go
- extension_cvm.go
- extension_cynosdb.go
- extension_dayu.go
- extension_dc.go
- extension_dc_gateway.go
- extension_ddos.go
- extension_dnspod.go
- extension_elasticsearch.go
- extension_emr.go
- extension_gaap.go
- extension_images.go
- extension_kms.go
- extension_mongodb.go
- extension_monitor.go
- extension_mysql.go
- extension_postgresql.go
- extension_privatedns.go
- extension_redis.go
- extension_scf.go
- extension_security_group.go
- extension_sqlserver.go
- extension_ssl.go
- extension_ssm.go
- extension_tags.go
- extension_tcaplus.go
- extension_tcr.go
- extension_tke.go
- extension_vod.go
- extension_vpc.go
- provider.go
- resource_tc_address_template.go
- resource_tc_address_template_group.go
- resource_tc_alb_server_attachment.go
- resource_tc_api_gateway_api.go
- resource_tc_api_gateway_api_key.go
- resource_tc_api_gateway_api_key_attachment.go
- resource_tc_api_gateway_custom_domain.go
- resource_tc_api_gateway_ip_strategy.go
- resource_tc_api_gateway_service.go
- resource_tc_api_gateway_service_release.go
- resource_tc_api_gateway_strategy_attachment.go
- resource_tc_api_gateway_usage_plan.go
- resource_tc_api_gateway_usage_plan_attachment.go
- resource_tc_as_attachment.go
- resource_tc_as_lifecycle_hook.go
- resource_tc_as_notification.go
- resource_tc_as_scaling_config.go
- resource_tc_as_scaling_group.go
- resource_tc_as_scaling_policy.go
- resource_tc_as_schedule.go
- resource_tc_audit.go
- resource_tc_cam_group.go
- resource_tc_cam_group_membership.go
- resource_tc_cam_group_policy_attachment.go
- resource_tc_cam_oidc_sso.go
- resource_tc_cam_policy.go
- resource_tc_cam_role.go
- resource_tc_cam_role_policy_attachment.go
- resource_tc_cam_role_sso.go
- resource_tc_cam_saml_provider.go
- resource_tc_cam_user.go
- resource_tc_cam_user_policy_attachment.go
- resource_tc_cat_task_set.go
- resource_tc_cbs_snapshot.go
- resource_tc_cbs_snapshot_policy.go
- resource_tc_cbs_snapshot_policy_attachment.go
- resource_tc_cbs_storage.go
- resource_tc_cbs_storage_attachment.go
- resource_tc_cbs_storage_set.go
- resource_tc_cbs_storage_set_attachment.go
- resource_tc_ccn.go
- resource_tc_ccn_attachment.go
- resource_tc_ccn_bandwidth_limit.go
- resource_tc_cdh_instance.go
- resource_tc_cdn_domain.go
- resource_tc_cdn_url_purge.go
- resource_tc_cdn_url_push.go
- resource_tc_cfs_access_group.go
- resource_tc_cfs_access_rule.go
- resource_tc_cfs_file_system.go
- resource_tc_ckafka_acl.go
- resource_tc_ckafka_instance.go
- resource_tc_ckafka_topic.go
- resource_tc_ckafka_user.go
- resource_tc_clb_attachment.go
- resource_tc_clb_customized_config.go
- resource_tc_clb_instance.go
- resource_tc_clb_listener.go
- resource_tc_clb_listener_rule.go
- resource_tc_clb_log_set.go
- resource_tc_clb_log_topic.go
- resource_tc_clb_redirection.go
- resource_tc_clb_snat_ip.go
- resource_tc_clb_target_group.go
- resource_tc_clb_target_group_attachment.go
- resource_tc_clb_target_group_instance_attachment.go
- resource_tc_cls_config.go
- resource_tc_cls_config_attachment.go
- resource_tc_cls_config_extra.go
- resource_tc_cls_cos_shipper.go
- resource_tc_cls_index.go
- resource_tc_cls_logset.go
- resource_tc_cls_machine_group.go
- resource_tc_cls_topic.go
- resource_tc_container_cluster.go
- resource_tc_container_cluster_instance.go
- resource_tc_cos_bucket.go
- resource_tc_cos_bucket_domain_certificate_attachment.go
- resource_tc_cos_bucket_object.go
- resource_tc_cos_bucket_policy.go
- resource_tc_cynosdb_cluster.go
- resource_tc_cynosdb_readonly_instance.go
- resource_tc_dayu_cc_http_policy.go
- resource_tc_dayu_cc_https_policy.go
- resource_tc_dayu_cc_policy_v2.go
- resource_tc_dayu_ddos_policy.go
- resource_tc_dayu_ddos_policy_attachment.go
- resource_tc_dayu_ddos_policy_case.go
- resource_tc_dayu_ddos_policy_v2.go
- resource_tc_dayu_eip.go
- resource_tc_dayu_l4_rule.go
- resource_tc_dayu_l4_rule_v2.go
- resource_tc_dayu_l7_rule.go
- resource_tc_dayu_l7_rule_v2.go
- resource_tc_dc_gateway.go
- resource_tc_dc_gateway_ccn_route.go
- resource_tc_dcdb_account.go
- resource_tc_dcdb_hourdb_instance.go
- resource_tc_dcdb_security_group_attachment.go
- resource_tc_dcx.go
- resource_tc_dnat.go
- resource_tc_dnspod_domain_instance.go
- resource_tc_dnspod_record.go
- resource_tc_eip.go
- resource_tc_eip_association.go
- resource_tc_eks_cluster.go
- resource_tc_eks_container_instance.go
- resource_tc_elasticsearch_instance.go
- resource_tc_emr_cluster.go
- resource_tc_eni.go
- resource_tc_eni_attachment.go
- resource_tc_gaap_certificate.go
- resource_tc_gaap_domain_error_page.go
- resource_tc_gaap_http_domain.go
- resource_tc_gaap_http_rule.go
- resource_tc_gaap_layer4_listener.go
- resource_tc_gaap_layer7_listener.go
- resource_tc_gaap_proxy.go
- resource_tc_gaap_realserver.go
- resource_tc_gaap_security_policy.go
- resource_tc_gaap_security_rule.go
- resource_tc_ha_vip.go
- resource_tc_ha_vip_eip_attachment.go
- resource_tc_image.go
- resource_tc_instance.go
- resource_tc_instance_set.go
- resource_tc_key_pair.go
- resource_tc_kms_external_key.go
- resource_tc_kms_key.go
- resource_tc_kubernetes_addon_attachment.go
- resource_tc_kubernetes_as_scaling_group.go
- resource_tc_kubernetes_auth_attachment.go
- resource_tc_kubernetes_cluster.go
- resource_tc_kubernetes_cluster_attachment.go
- resource_tc_kubernetes_cluster_endpoint.go
- resource_tc_kubernetes_node_pool.go
- resource_tc_kubernetes_scale_worker.go
- resource_tc_lb.go
- resource_tc_lighthouse_instance.go
- resource_tc_mariadb_account.go
- resource_tc_mariadb_dedicatedcluster_db_instance.go
- resource_tc_mariadb_hour_db_instance.go
- resource_tc_mariadb_log_file_retention_period.go
- resource_tc_mariadb_parameters.go
- resource_tc_mariadb_security_groups.go
- resource_tc_mongodb_instance.go
- resource_tc_mongodb_sharding_instance.go
- resource_tc_mongodb_standby_instance.go
- resource_tc_monitor_alarm_notice.go
- resource_tc_monitor_alarm_policy.go
- resource_tc_monitor_binding_object.go
- resource_tc_monitor_binding_receiver.go
- resource_tc_monitor_grafana_instance.go
- resource_tc_monitor_grafana_integration.go
- resource_tc_monitor_grafana_notification_channel.go
- resource_tc_monitor_grafana_plugin.go
- resource_tc_monitor_grafana_sso_account.go
- resource_tc_monitor_policy_binding_object.go
- resource_tc_monitor_policy_group.go
- resource_tc_monitor_tmp_alert_rule.go
- resource_tc_monitor_tmp_cvm_agent.go
- resource_tc_monitor_tmp_exporter_integration.go
- resource_tc_monitor_tmp_instance.go
- resource_tc_monitor_tmp_recording_rule.go
- resource_tc_monitor_tmp_scrape_job.go
- resource_tc_monitor_tmp_tke_alert_policy.go
- resource_tc_monitor_tmp_tke_cluster_agent.go
- resource_tc_monitor_tmp_tke_config.go
- resource_tc_monitor_tmp_tke_global_notification.go
- resource_tc_monitor_tmp_tke_record_rule_yaml.go
- resource_tc_monitor_tmp_tke_template.go
- resource_tc_monitor_tmp_tke_template_attachment.go
- resource_tc_mysql_account.go
- resource_tc_mysql_account_privilege.go
- resource_tc_mysql_backup_policy.go
- resource_tc_mysql_instance.go
- resource_tc_mysql_privilege.go
- resource_tc_mysql_readonly_instance.go
- resource_tc_nat_gateway.go
- resource_tc_nat_gateway_snat.go
- resource_tc_placement_group.go
- resource_tc_postgresql_instance.go
- resource_tc_postgresql_readonly_attachment.go
- resource_tc_postgresql_readonly_group.go
- resource_tc_postgresql_readonly_instance.go
- resource_tc_private_dns_record.go
- resource_tc_private_dns_zone.go
- resource_tc_protocol_template.go
- resource_tc_protocol_template_group.go
- resource_tc_pts_alert_channel.go
- resource_tc_pts_cron_job.go
- resource_tc_pts_file.go
- resource_tc_pts_job.go
- resource_tc_pts_project.go
- resource_tc_pts_scenario.go
- resource_tc_redis_backup_config.go
- resource_tc_redis_instance.go
- resource_tc_reserved_instance.go
- resource_tc_route_entry.go
- resource_tc_route_table.go
- resource_tc_route_table_entry.go
- resource_tc_scf_function.go
- resource_tc_scf_layer.go
- resource_tc_scf_namespace.go
- resource_tc_security_group.go
- resource_tc_security_group_lite_rule.go
- resource_tc_security_group_rule.go
- resource_tc_ses_domain.go
- resource_tc_ses_email_address.go
- resource_tc_ses_template.go
- resource_tc_sms_sign.go
- resource_tc_sms_template.go
- resource_tc_sqlserver_account.go
- resource_tc_sqlserver_account_db_attachment.go
- resource_tc_sqlserver_basic_instance.go
- resource_tc_sqlserver_db.go
- resource_tc_sqlserver_instance.go
- resource_tc_sqlserver_publish_subscribe.go
- resource_tc_sqlserver_readonly_instance.go
- resource_tc_ssl_certificate.go
- resource_tc_ssl_free_certificate.go
- resource_tc_ssl_pay_certificate.go
- resource_tc_ssm_secret.go
- resource_tc_ssm_secret_version.go
- resource_tc_subnet.go
- resource_tc_tcaplus_cluster.go
- resource_tc_tcaplus_idl.go
- resource_tc_tcaplus_table.go
- resource_tc_tcaplus_tablegroup.go
- resource_tc_tcm_cluster_attachment.go
- resource_tc_tcm_mesh.go
- resource_tc_tcr_instance.go
- resource_tc_tcr_namespace.go
- resource_tc_tcr_repository.go
- resource_tc_tcr_token.go
- resource_tc_tcr_vpc_attachment.go
- resource_tc_tdmq_instance.go
- resource_tc_tdmq_namespace.go
- resource_tc_tdmq_namespace_role_attachment.go
- resource_tc_tdmq_role.go
- resource_tc_tdmq_topic.go
- resource_tc_tem_app_config.go
- resource_tc_tem_application.go
- resource_tc_tem_environment.go
- resource_tc_tem_gateway.go
- resource_tc_tem_log_config.go
- resource_tc_tem_scale_rule.go
- resource_tc_tem_workload.go
- resource_tc_teo_application_proxy.go
- resource_tc_teo_application_proxy_rule.go
- resource_tc_teo_custom_error_page.go
- resource_tc_teo_ddos_policy.go
- resource_tc_teo_dns_record.go
- resource_tc_teo_dns_sec.go
- resource_tc_teo_load_balancing.go
- resource_tc_teo_origin_group.go
- resource_tc_teo_rule_engine.go
- resource_tc_teo_rule_engine_priority.go
- resource_tc_teo_security_policy.go
- resource_tc_teo_zone.go
- resource_tc_teo_zone_setting.go
- resource_tc_vod_adaptive_dynamic_streaming_template.go
- resource_tc_vod_image_sprite_template.go
- resource_tc_vod_procedure_template.go
- resource_tc_vod_snapshot_by_time_offset_template.go
- resource_tc_vod_sub_application.go
- resource_tc_vod_super_player_config.go
- resource_tc_vpc.go
- resource_tc_vpc_acl.go
- resource_tc_vpc_acl_attachment.go
- resource_tc_vpc_bandwidth_package.go
- resource_tc_vpc_bandwidth_package_attachment.go
- resource_tc_vpn_connection.go
- resource_tc_vpn_customer_gateway.go
- resource_tc_vpn_gateway.go
- resource_tc_vpn_gateway_route.go
- resource_tc_vpn_ssl_client.go
- resource_tc_vpn_ssl_server.go
- service_tencent_ssl_certificate.go
- service_tencentcloud_antiddos.go
- service_tencentcloud_api.go
- service_tencentcloud_api_gateway.go
- service_tencentcloud_as.go
- service_tencentcloud_audit.go
- service_tencentcloud_cam.go
- service_tencentcloud_cat.go
- service_tencentcloud_cbs.go
- service_tencentcloud_ccn.go
- service_tencentcloud_cdh.go
- service_tencentcloud_cdn.go
- service_tencentcloud_cfs.go
- service_tencentcloud_ckafka.go
- service_tencentcloud_clb.go
- service_tencentcloud_cls.go
- service_tencentcloud_cos.go
- service_tencentcloud_cvm.go
- service_tencentcloud_cynosdb.go
- service_tencentcloud_dayu.go
- service_tencentcloud_dc.go
- service_tencentcloud_dcdb.go
- service_tencentcloud_dcg.go
- service_tencentcloud_dnspod.go
- service_tencentcloud_domain.go
- service_tencentcloud_eks.go
- service_tencentcloud_elasticsearch.go
- service_tencentcloud_emr.go
- service_tencentcloud_gaap.go
- service_tencentcloud_kms.go
- service_tencentcloud_lighthouse.go
- service_tencentcloud_mariadb.go
- service_tencentcloud_mongodb.go
- service_tencentcloud_monitor.go
- service_tencentcloud_mysql.go
- service_tencentcloud_postgresql.go
- service_tencentcloud_private_dns.go
- service_tencentcloud_pts.go
- service_tencentcloud_redis.go
- service_tencentcloud_scf.go
- service_tencentcloud_ses.go
- service_tencentcloud_sms.go
- service_tencentcloud_sqlserver.go
- service_tencentcloud_ssl.go
- service_tencentcloud_ssm.go
- service_tencentcloud_sts.go
- service_tencentcloud_tag.go
- service_tencentcloud_tcaplus.go
- service_tencentcloud_tcm.go
- service_tencentcloud_tcr.go
- service_tencentcloud_tdmq.go
- service_tencentcloud_tem.go
- service_tencentcloud_teo.go
- service_tencentcloud_tke.go
- service_tencentcloud_tke_addons.go
- service_tencentcloud_vod.go
- service_tencentcloud_vpc.go
- validators.go