Documentation ¶
Overview ¶
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 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 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 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" }
```
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 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 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 = 0 }
```
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" }
```
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 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 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 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 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 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" }
```
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" }
```
Use this data source to query elasticsearch instances.
Example Usage ¶
```hcl
data "tencentcloud_elasticsearch_instances" "foo" { instance_id = "es-17634f05" }
```
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 }
```
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 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 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 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 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" }
```
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 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" }
```
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 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 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" }
```
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" }
```
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" "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" { 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 # 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
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
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
CDN
Data Source tencentcloud_cdn_domains Resource tencentcloud_cdn_domain
Ckafka
Data Source tencentcloud_ckafka_users tencentcloud_ckafka_acls tencentcloud_ckafka_topics Resource 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 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
Cloud Block Storage(CBS)
Data Source tencentcloud_cbs_snapshots tencentcloud_cbs_storages tencentcloud_cbs_snapshot_policies Resource tencentcloud_cbs_storage tencentcloud_cbs_storage_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
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
CLB
Data Source tencentcloud_clb_attachments tencentcloud_clb_instances tencentcloud_clb_listener_rules tencentcloud_clb_listeners tencentcloud_clb_redirections Resource tencentcloud_clb_instance tencentcloud_clb_listener tencentcloud_clb_listener_rule tencentcloud_clb_attachment tencentcloud_clb_redirection tencentcloud_lb tencentcloud_alb_server_attachment
COS
Data Source tencentcloud_cos_bucket_object tencentcloud_cos_buckets Resource tencentcloud_cos_bucket tencentcloud_cos_bucket_object
CVM
Data Source tencentcloud_image tencentcloud_images tencentcloud_instance_types tencentcloud_instances tencentcloud_key_pairs tencentcloud_eip tencentcloud_eips tencentcloud_placement_groups tencentcloud_reserved_instance_configs tencentcloud_reserved_instances Resource tencentcloud_instance tencentcloud_eip tencentcloud_eip_association tencentcloud_key_pair tencentcloud_placement_group tencentcloud_reserved_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
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
Kubernetes
Data Source tencentcloud_kubernetes_clusters Resource tencentcloud_kubernetes_cluster tencentcloud_kubernetes_scale_worker tencentcloud_kubernetes_as_scaling_group tencentcloud_kubernetes_cluster_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_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 Resource tencentcloud_monitor_policy_group tencentcloud_monitor_binding_object tencentcloud_monitor_binding_receiver
PostgreSQL
Data Source tencentcloud_postgresql_instances tencentcloud_postgresql_specinfos Resource tencentcloud_postgresql_instance
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
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 Resource tencentcloud_sqlserver_instance tencentcloud_sqlserver_readonly_instance tencentcloud_sqlserver_db tencentcloud_sqlserver_account tencentcloud_sqlserver_account_db_attachment
SSL Certificates
Data Source tencentcloud_ssl_certificates Resource tencentcloud_ssl_certificate
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
VPC
Data Source tencentcloud_route_table tencentcloud_security_group tencentcloud_security_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_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_route_table tencentcloud_route_entry tencentcloud_route_table_entry tencentcloud_dnat tencentcloud_nat_gateway tencentcloud_ha_vip tencentcloud_ha_vip_eip_attachment
VPN
Data Source tencentcloud_vpn_connections tencentcloud_vpn_customer_gateways tencentcloud_vpn_gateways Resource tencentcloud_vpn_customer_gateway tencentcloud_vpn_gateway tencentcloud_vpn_connection
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 }, ] }
```
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" } }
```
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 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_ids = [tencentcloud_cam_user.foo.id, tencentcloud_cam_user.bar.id] }
```
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 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 }
```
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 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 }
```
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 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 = "50" 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 a CCN instance.
Example Usage ¶
```hcl
resource "tencentcloud_ccn" "main" { name = "ci-temp-test-ccn" description = "ci-temp-test-ccn-des" qos = "AG" }
```
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 ¶
```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 }
```
Provides a resource to create a CDN domain.
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" } tags = { hello = "world" } }
```
Import ¶
CDN domain can be imported using the id, e.g.
``` $ terraform import tencentcloud_cdn_domain.foo xxxx.com ```
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 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 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" } }
```
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" }
```
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" }
```
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" }
```
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 ```
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" }
```
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 } } }
```
Import ¶
COS bucket can be imported, e.g.
``` $ terraform import tencentcloud_cos_bucket.bucket bucket-name ```
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." }
```
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 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_limits { 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 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 }
```
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 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 ```
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 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" node_info_list { node_num = 2 node_type = "ES.S1.SMALL2" } tags = { test = "test" } }
```
Import ¶
Elasticsearch instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_elasticsearch_instance.foo es-17634f05 ```
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 ```
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 = "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" { }
// 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_favorate_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 internet_max_bandwidth_out = 20 count = 2 data_disks { data_disk_type = "CLOUD_PREMIUM" data_disk_size = 50 } tags = { tagKey = "tagValue" } }
```
Import ¶
CVM instance can be imported using the id, e.g.
``` terraform import tencentcloud_instance.foo ins-2qol3a80 ```
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 an auto scaling group for kubernetes cluster.
Example Usage ¶
```hcl
resource "tencentcloud_kubernetes_as_scaling_group" "test" {
cluster_id = "cls-kb32pbv4" auto_scaling_group { scaling_group_name = "tf-guagua-as-group" max_size = "5" min_size = "0" vpc_id = "vpc-dk8zmwuf" subnet_ids = ["subnet-pqfek0t8"] project_id = 0 default_cooldown = 400 desired_capacity = "0" termination_policies = ["NEWEST_INSTANCE"] retry_policy = "INCREMENTAL_INTERVALS" tags = { "test" = "test" } } auto_scaling_config { configuration_name = "tf-guagua-as-config" instance_type = "S1.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 instance_tags = { tag = "as" } } labels = { "test1" = "test1", "test1" = "test2", } }
```
Provide a resource to create a kubernetes cluster.
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 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" } labels = { "test1" = "test1", "test2" = "test2", } }
```
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", } }
```
Provide a resource to increase instance to cluster ¶
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" 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 }
```
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" charge_type = "PREPAID" prepaid_period = 1 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 resource for bind objects to a policy group resource.
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 policy group resource for monitor.
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 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" } }
```
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:** 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"] }
```
Import ¶
NAT gateway can be imported using the id, e.g.
``` $ terraform import tencentcloud_nat_gateway.foo nat-1asg3t63 ```
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
resource "tencentcloud_postgresql_instance" "foo" { name = "example" availability_zone = var.availability_zone charge_type = "POSTPAID_BY_HOUR" vpc_id = "vpc-409mvdvv" subnet_id = "subnet-nf9n81ps" engine_version = "9.3.5" root_password = "1qaA2k1wgvfa3ZZZ" charset = "UTF8" project_id = 0 memory = 2 storage = 10 }
```
Import ¶
postgresql instance can be imported using the id, e.g.
``` $ terraform import tencentcloud_postgresql_instance.foo postgres-cda1iex1 ```
Use this data source to query which instance types of Redis are available in a specific region.
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.
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 }
```
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" }
```
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 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", ] 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" }
```
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 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 instance resource to create read-only database instances.
Example Usage ¶
```hcl
resource "tencentcloud_mysql_readonly_instance" "foo" { name = "tf_sqlserver_instance_ro" availability_zone = "ap-guangzhou-4" charge_type = "POSTPAID_BY_HOUR" vpc_id = "` + defaultVpcId + `" subnet_id = "` + defaultSubnetId + `" 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 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" }
```
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" } }
```
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 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 ```
Index ¶
- Constants
- Variables
- func BuildTagResourceName(serviceType, resourceType, region, id string) string
- func CheckNil(object interface{}, fields map[string]string) (nilFields []string)
- func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
- func IsContains(array interface{}, value interface{}) bool
- func Provider() terraform.ResourceProvider
- func ResourceTencentCloudKubernetesAsScalingGroup() *schema.Resource
- func TencentCloudMysqlParameterDetail() 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() map[string]*schema.Schema
- func TkeCvmCreateInfo() map[string]*schema.Schema
- func TkeInstanceAdvancedSetting() map[string]*schema.Schema
- 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) (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
- 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 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) (snapshotId string, errRet error)
- func (me *CbsService) DeleteDiskById(ctx context.Context, diskId 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) DescribeDisksByFilter(ctx context.Context, params map[string]string) (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) 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 CdnService
- 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) StartDomain(ctx context.Context, domain string) error
- func (me *CdnService) StopDomain(ctx context.Context, domain string) error
- 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) 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) 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) 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) DeleteAttachmentById(ctx context.Context, clbId string, listenerId string, locationId string, ...) 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) DeleteRedirectionById(ctx context.Context, rewriteId string) error
- func (me *ClbService) DeleteRuleById(ctx context.Context, clbId string, listenerId string, locationId string) 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) 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)
- type ClusterAdvancedSettings
- type ClusterBasicSetting
- type ClusterCidrSettings
- type ClusterExtraArgs
- type ClusterInfo
- type CosService
- func (me *CosService) DeleteBucket(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (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) 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) 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) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)
- func (me *CosService) SetBucketTags(ctx context.Context, bucket string, tags map[string]string) error
- type CvmService
- 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) DeleteInstance(ctx context.Context, instanceId 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) DescribeImagesByFilter(ctx context.Context, filters map[string][]string) (images []*cvm.Image, errRet error)
- func (me *CvmService) DescribeInstanceByFilter(ctx context.Context, 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) 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) 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) 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) StartInstance(ctx context.Context, instanceId string) error
- func (me *CvmService) StopInstance(ctx context.Context, instanceId string) error
- func (me *CvmService) UnbindKeyPair(ctx context.Context, keyId string, instanceIds []*string) 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) 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) 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) 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) 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 DcgInstanceInfo
- type DcgRouteInfo
- type EipAssociationId
- 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 InstanceAdvancedSettings
- type InstanceInfo
- 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) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, 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)
- 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 string, password string) (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, memSize, volumeSize int64) (asyncRequestId string, errRet error)
- type PostgresqlService
- func (me *PostgresqlService) CheckDBInstanceStatus(ctx context.Context, instanceId string) error
- func (me *PostgresqlService) CreatePostgresqlInstance(ctx context.Context, name string, dbVersion string, chargeType string, ...) (instanceId string, errRet error)
- func (me *PostgresqlService) DeletePostgresqlInstance(ctx context.Context, instanceId string) (errRet 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) DescribeSpecinfos(ctx context.Context, zone string) (specCodeList []*postgresql.SpecItemInfo, errRet error)
- func (me *PostgresqlService) InitPostgresqlInstance(ctx context.Context, instanceId string, password string, charset string) (errRet 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 RedisService
- func (me *RedisService) CheckRedisDestroyOk(ctx context.Context, redisId string) (has bool, isolated bool, errRet error)
- func (me *RedisService) CheckRedisOnlineOk(ctx context.Context, redisId string) (has bool, online bool, info *redis.InstanceSet, 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) DescribeAutoBackupConfig(ctx context.Context, redisId string) (weekDays []string, timePeriod 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) 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) 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, newMemSize int64) (dealId string, errRet error)
- type RunInstancesForNode
- 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 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) CreateSqlserverDB(ctx context.Context, instanceID string, dbname string, charset string, ...) (errRet error)
- func (me *SqlserverService) CreateSqlserverInstance(ctx context.Context, dbVersion string, chargeType string, memory int, ...) (instanceId string, errRet error)
- func (me *SqlserverService) CreateSqlserverReadonlyInstance(ctx context.Context, masterInstanceId string, subnetId string, vpcId string, ...) (instanceId string, errRet error)
- func (me *SqlserverService) DeleteSqlserverAccount(ctx context.Context, instanceId string, userName string) (errRet error)
- func (me *SqlserverService) DeleteSqlserverDB(ctx context.Context, instanceId string, name 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 string, projectId int, vpcId string, ...) (instanceList []*sqlserver.DBInstance, 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) 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) 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) UpgradeSqlserverInstance(ctx context.Context, instanceId string, memory int, storage int) (errRet error)
- func (me *SqlserverService) WaitForTaskFinish(ctx context.Context, flowId int64) (errRet error)
- type SslService
- 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 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 TencentCloudClient
- type TencentCloudRedisDetail
- type TkeService
- 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 string, internet bool) (errRet error)
- func (me *TkeService) CreateClusterEndpointVip(ctx context.Context, id string, securityPolicies []string) (errRet error)
- func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, ...) (instanceIds []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) DeleteClusterEndpointVip(ctx context.Context, id string) (errRet error)
- func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []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) DescribeClusterEndpointStatus(ctx context.Context, id string) (status string, message string, errRet error)
- func (me *TkeService) DescribeClusterEndpointVipStatus(ctx context.Context, id string) (status string, message string, errRet error)
- func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, 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) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
- func (me *TkeService) ModifyClusterEndpointSP(ctx context.Context, id string, securityPolicies []string) (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) CreateCcn(ctx context.Context, name, description, qos string) (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) CreateRouteTable(ctx context.Context, name, vpcId 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) (id string, err error)
- func (me *VpcService) CreateSecurityGroupPolicy(ctx context.Context, info securityGroupRuleBasicInfo) (ruleId string, err error)
- func (me *VpcService) CreateSubnet(ctx context.Context, vpcId, name, cidr, zone 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) (aclID string, errRet error)
- 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) DeleteCcn(ctx context.Context, ccnId 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) DeleteLiteRules(ctx context.Context, sgId string, rules []VpcSecurityGroupLiteRule, ...) 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) DeleteSubnet(ctx context.Context, subnetId string) (errRet error)
- func (me *VpcService) DeleteVpc(ctx context.Context, vpcId string) (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) 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) DescribeHaVipEipById(ctx context.Context, haVipEipAttachmentId string) (eip string, haVip string, has bool, errRet error)
- 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) 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) DescribeVpc(ctx context.Context, vpcId string, tagKey string, cidrBlock string) (info VpcBasicInfo, has int, errRet error)
- func (me *VpcService) DescribeVpcs(ctx context.Context, vpcId, name string, tags map[string]string, ...) (infos []VpcBasicInfo, errRet 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) 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) ModifyCcnAttribute(ctx context.Context, ccnId, name, description string) (errRet error)
- func (me *VpcService) ModifyDirectConnectGatewayAttribute(ctx context.Context, dcgId, name string) (errRet 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) 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) 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) ReplaceRouteTableAssociation(ctx context.Context, subnetId string, routeTableId string) (errRet error)
- func (me *VpcService) SetCcnRegionBandwidthLimits(ctx context.Context, ccnId, region string, bandwidth int64) (errRet 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 ( 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" )
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" )
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_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 ( 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 ( 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_DOMAIN_CONFIG_ERROE = "FailedOperation.CdnConfigError" )
const ( CFS_PROTOCOL_NFS = "NFS" CFS_PROTOCOL_CIFS = "CIFS" 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_UDP = "UDP" )
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 ( CVM_CHARGE_TYPE_PREPAID = "PREPAID" CVM_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR" CVM_CHARGE_TYPE_SPOTPAID = "SPOTPAID" 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_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" )
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 ( 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_STOP = 2 ES_INSTANCE_STATUS_DESTROYING = 3 ES_INSTANCE_STATUS_DESTROYED = 4 )
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" )
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 ( REDIS_VERSION_MASTER_SLAVE_REDIS = 2 REDIS_VERSION_MASTER_SLAVE_CKV = 3 REDIS_VERSION_CLUSTER_CKV = 4 REDIS_VERSION_STANDALONE_REDIS = 5 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 )
const ( SQLSERVER_HA_FLAG_SINGLE = "SINGLE" SQLSERVER_HA_FLAG_DAUL = "MIRROR" SQLSERVER_HA_FLAG_CLUSTER = "ALWAYSON" )
const ( BASIC_NETWORK = 0 VPC_NEWORK = 1 )
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 ( 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 ( TKE_CLUSTER_OS_CENTOS72 = "centos7.2x86_64" TKE_CLUSTER_OS_CENTOS76 = "centos7.6x86_64" TKE_CLUSTER_OS_UBUNTU16 = "ubuntu16.04.1 LTSx86_64" TKE_CLUSTER_OS_UBUNTU18 = "ubuntu18.04.1 LTSx86_64" )
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 ( 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_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 ( 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" )
const ( VPN_IPSEC_INTEGRITY_ALGORITHM_SHA1 = "SHA1" VPN_IPSEC_INTEGRITY_ALGORITHM_MD5 = "MD5" )
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 ( 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 (
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 CkafkaInstanceNotFound = "InvalidParameterValue.InstanceNotExist"
sdk ckafka not found error
const DESCRIBE_SECURITY_GROUP_LIMIT = 50
const DESCRIBE_TAGS_LIMIT = 20
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_SSLVPN = "SSLVPN"
const GATE_WAY_TYPE_VPN = "VPN"
const (
HAVIP_DESCRIBE_LIMIT = 100
)
const InternalError = "InternalError"
InternalError common internalError, do not add in retryableErrorCode, because when some product return this error, retry won't fix anything.
const (
NAT_FAILED_STATE = "FAILED"
)
const PAGE_ITEM = 200
const (
POSTGRESQL_STAUTS_RUNNING = "running"
)
const RedisInstanceNotFound = "ResourceNotFound.InstanceNotExists"
sdk redis not found error
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 ( 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 ALL_GATE_WAY_TYPES = []string{GATE_WAY_TYPE_CVM, GATE_WAY_TYPE_VPN, GATE_WAY_TYPE_DIRECTCONNECT, GATE_WAY_TYPE_SSLVPN, GATE_WAY_TYPE_NAT, GATE_WAY_TYPE_NORMAL_CVM, GATE_WAY_TYPE_EIP, GATE_WAY_TYPE_CCN, }
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 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_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_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_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, }
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, }
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_SPOT_INSTANCE_TYPE = []string{ CVM_SPOT_INSTANCE_TYPE_ONE_TIME, }
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 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, }
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_UDP, }
var HTTP_VERSION = []string{ HTTP_VERSION_ONE_ZERO, HTTP_VERSION_ONE_ONE, }
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 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{
"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "PROCESS", "DROP", "REFERENCES",
"INDEX", "ALTER", "SHOW DATABASES", "CREATE TEMPORARY TABLES", "LOCK TABLES",
"EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT",
"TRIGGER",
}
var MYSQL_ROLE_MAP = map[int64]string{
1: "master",
2: "ro",
3: "dr",
}
var MYSQL_SUPPORTS_ENGINE = []string{"5.5", "5.6", "5.7"}
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_PAYTYPE = []string{COMMON_PAYTYPE_POSTPAID}
var POSTSQL_DB_CHARSET = []string{POSTGRESQL_DB_CHARSET_UTF8, POSTGRESQL_DB_CHARSET_LATIN1}
var POSTSQL_DB_VERSION = []string{POSTGRESQL_DB_VERSION_9_3_5, POSTGRESQL_DB_VERSION_9_5_4, POSTGRESQL_DB_VERSION_10_4}
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_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 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", }
var SQLSERVER_HA_TYPE_FLAGS = map[string]string{ SQLSERVER_HA_FLAG_SINGLE: "SINGLE", SQLSERVER_HA_FLAG_DAUL: "DUAL", SQLSERVER_HA_FLAG_CLUSTER: "CLUSTER", }
var SSL_CERT_TYPE = []string{ SSL_CERT_TYPE_SERVER, SSL_CERT_TYPE_CA, }
var SYSTEM_DISK_ALLOW_TYPE = []string{ SYSTEM_DISK_TYPE_CLOUD_PREMIUM, SYSTEM_DISK_TYPE_CLOUD_SSD, }
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_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_CENTOS72, TKE_CLUSTER_OS_CENTOS76, TKE_CLUSTER_OS_UBUNTU16, TKE_CLUSTER_OS_UBUNTU18}
var TKE_CLUSTER_OS_TYPES = []string{TKE_CLUSTER_OS_TYPE_DOCKER_CUSTOMIZE, 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 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, }
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, }
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, }
Functions ¶
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 GetTkeLabels ¶ added in v1.41.3
func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
func IsContains ¶ added in v1.41.3
func IsContains(array interface{}, value interface{}) bool
IsContains returns whether value is within array
func Provider ¶
func Provider() terraform.ResourceProvider
func ResourceTencentCloudKubernetesAsScalingGroup ¶ added in v1.41.3
func TencentCloudMysqlParameterDetail ¶ added in v1.41.3
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 TkeInstanceAdvancedSetting ¶ added in v1.41.3
Types ¶
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
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 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) 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) DescribeDisksByFilter ¶ added in v1.41.3
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) 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 CdnService ¶ added in v1.41.3
type CdnService struct {
// contains filtered or unexported fields
}
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) 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
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) 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) 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) 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) DeleteAttachmentById ¶ added in v1.41.3
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) 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) 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) 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)
type ClusterAdvancedSettings ¶ added in v1.41.3
type ClusterBasicSetting ¶ added in v1.41.3
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 }
type CosService ¶ added in v1.41.3
type CosService struct {
// contains filtered or unexported fields
}
func (*CosService) DeleteBucket ¶ added in v1.41.3
func (me *CosService) DeleteBucket(ctx context.Context, bucket 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) GetBucketCors ¶ added in v1.41.3
func (*CosService) GetBucketEncryption ¶ added in v1.41.3
func (*CosService) GetBucketLifecycle ¶ added in v1.41.3
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) 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)
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
type CvmService ¶ added in v1.41.3
type CvmService struct {
// contains filtered or unexported fields
}
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) DeleteInstance ¶ added in v1.41.3
func (me *CvmService) DeleteInstance(ctx context.Context, instanceId 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) DescribeImagesByFilter ¶ added in v1.41.3
func (*CvmService) DescribeInstanceByFilter ¶ added in v1.41.3
func (*CvmService) DescribeInstanceById ¶ added in v1.41.3
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) 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) 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) 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 (me *CvmService) StopInstance(ctx context.Context, instanceId string) error
func (*CvmService) UnbindKeyPair ¶ added in v1.41.3
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) 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) 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) 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) 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 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 EipAssociationId ¶ added in v1.41.3
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 (*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 InstanceAdvancedSettings ¶ added in v1.41.3
type InstanceInfo ¶ added in v1.41.3
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) DescribeBindingPolicyObjectList ¶ added in v1.41.3
func (me *MonitorService) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, 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)
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 PostgresqlService ¶ added in v1.41.3
type PostgresqlService struct {
// contains filtered or unexported fields
}
func (*PostgresqlService) CheckDBInstanceStatus ¶ added in v1.41.3
func (me *PostgresqlService) CheckDBInstanceStatus(ctx context.Context, instanceId string) error
func (*PostgresqlService) CreatePostgresqlInstance ¶ added in v1.41.3
func (*PostgresqlService) DeletePostgresqlInstance ¶ added in v1.41.3
func (me *PostgresqlService) DeletePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)
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) 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) 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 RedisService ¶ added in v1.41.3
type RedisService struct {
// contains filtered or unexported fields
}
func (*RedisService) CheckRedisDestroyOk ¶ added in v1.41.3
func (*RedisService) CheckRedisOnlineOk ¶ added in v1.41.3
func (me *RedisService) CheckRedisOnlineOk(ctx context.Context, redisId string) (has bool, online bool, info *redis.InstanceSet, 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) (instanceIds []*string, errRet error)
func (*RedisService) DescribeAutoBackupConfig ¶ added in v1.41.3
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) 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) 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
type RunInstancesForNode ¶ added in v1.41.3
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 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) CreateSqlserverDB ¶ added in v1.41.3
func (*SqlserverService) CreateSqlserverInstance ¶ added in v1.41.3
func (me *SqlserverService) CreateSqlserverInstance(ctx context.Context, dbVersion string, chargeType string, memory int, autoRenewFlag int, projectId int, subnetId string, vpcId string, zone string, storage int, weekSet []int, startTime string, timeSpan int, multiZones bool, haType string, securityGroups []string) (instanceId string, errRet error)
func (*SqlserverService) CreateSqlserverReadonlyInstance ¶ added in v1.41.3
func (me *SqlserverService) CreateSqlserverReadonlyInstance(ctx context.Context, masterInstanceId string, subnetId string, vpcId string, chargeType string, memory int, zone string, storage int, readonlyGroupType int, readonlyGroupId string, forceUpgrade bool, securityGroups []string) (instanceId string, 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 (*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) 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) 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) 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) 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 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 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 }
type TkeService ¶ added in v1.41.3
type TkeService struct {
// contains filtered or unexported fields
}
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, ) (id string, errRet error)
func (*TkeService) CreateClusterAsGroup ¶ added in v1.41.3
func (*TkeService) CreateClusterEndpoint ¶ added in v1.41.3
func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId string, internet bool) (errRet error)
for INDEPENDENT_CLUSTER open internet access
func (*TkeService) CreateClusterEndpointVip ¶ added in v1.41.3
func (me *TkeService) CreateClusterEndpointVip(ctx context.Context, id string, securityPolicies []string) (errRet error)
for MANAGED_CLUSTER open internet access
func (*TkeService) CreateClusterInstances ¶ added in v1.41.3
func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, iAdvanced InstanceAdvancedSettings) (instanceIds []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) DeleteClusterEndpointVip ¶ added in v1.41.3
func (me *TkeService) DeleteClusterEndpointVip(ctx context.Context, id string) (errRet error)
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) 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) DescribeClusterEndpointStatus ¶ added in v1.41.3
func (*TkeService) DescribeClusterEndpointVipStatus ¶ 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) 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) DescribeImages ¶ added in v1.41.3
func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
func (*TkeService) ModifyClusterEndpointSP ¶ added in v1.41.3
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) CreateCcn ¶ added in v1.41.3
func (me *VpcService) CreateCcn(ctx context.Context, name, description, qos string) (basicInfo CcnBasicInfo, errRet error)
func (*VpcService) CreateDirectConnectGateway ¶ added in v1.41.3
func (*VpcService) CreateDirectConnectGatewayCcnRoute ¶ added in v1.41.3
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 securityGroupRuleBasicInfo) (ruleId string, err error)
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) (vpcId string, isDefault bool, errRet error)
////////api
func (*VpcService) CreateVpcNetworkAcl ¶ added in v1.41.3
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) DeleteCcn ¶ added in v1.41.3
func (me *VpcService) DeleteCcn(ctx context.Context, ccnId 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) DeleteLiteRules ¶ added in v1.41.3
func (me *VpcService) DeleteLiteRules(ctx context.Context, sgId string, rules []VpcSecurityGroupLiteRule, isIngress bool) error
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) 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) 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) 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) DescribeHaVipEipById ¶ added in v1.41.3
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) 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) 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) DescribeVpcs ¶ added in v1.41.3
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) 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) ModifyCcnAttribute ¶ added in v1.41.3
func (me *VpcService) ModifyCcnAttribute(ctx context.Context, ccnId, name, description string) (errRet error)
func (*VpcService) ModifyDirectConnectGatewayAttribute ¶ added in v1.41.3
func (me *VpcService) ModifyDirectConnectGatewayAttribute(ctx context.Context, dcgId, name string) (errRet error)
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) 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) ModifySubnetAttribute ¶ added in v1.41.3
func (*VpcService) ModifyVpcAttribute ¶ added in v1.41.3
func (*VpcService) ModifyVpcNetworkAcl ¶ added in v1.41.3
func (*VpcService) ReplaceRouteTableAssociation ¶ added in v1.41.3
func (*VpcService) SetCcnRegionBandwidthLimits ¶ added in v1.41.3
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_as_scaling_configs.go
- data_source_tc_as_scaling_groups.go
- data_source_tc_as_scaling_policies.go
- data_source_tc_availability_regions.go
- data_source_tc_availability_zones.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_cbs_snapshot_policies.go
- data_source_tc_cbs_snapshots.go
- data_source_tc_cbs_storages.go
- data_source_tc_ccn_bandwidth_limits.go
- data_source_tc_ccn_instances.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_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_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_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_l4_rules.go
- data_source_tc_dayu_l7_rules.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_dcx_instances.go
- data_source_tc_dnats.go
- data_source_tc_eip.go
- data_source_tc_eips.go
- data_source_tc_elasticsearch_instances.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_key_pairs.go
- data_source_tc_kubernetes_clusters.go
- data_source_tc_mongodb_instances.go
- data_source_tc_mongodb_zone_config.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_instance.go
- data_source_tc_mysql_parameter_list.go
- data_source_tc_mysql_zone_config.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_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_dbs.go
- data_source_tc_sqlserver_instances.go
- data_source_tc_sqlserver_readonly_groups.go
- data_source_tc_sqlserver_zone_config.go
- data_source_tc_ssl_certificates.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_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_gateways.go
- extension_as.go
- extension_cam.go
- extension_cbs.go
- extension_cdn.go
- extension_cfs.go
- extension_ckafka.go
- extension_clb.go
- extension_cnn.go
- extension_cvm.go
- extension_dayu.go
- extension_dc.go
- extension_dc_gateway.go
- extension_elasticsearch.go
- extension_gaap.go
- extension_mongodb.go
- extension_monitor.go
- extension_mysql.go
- extension_postgresql.go
- extension_redis.go
- extension_scf.go
- extension_security_group.go
- extension_sqlserver.go
- extension_ssl.go
- extension_tags.go
- extension_tcaplus.go
- extension_tke.go
- extension_vpc.go
- provider.go
- resource_tc_alb_server_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_cam_group.go
- resource_tc_cam_group_membership.go
- resource_tc_cam_group_policy_attachment.go
- resource_tc_cam_policy.go
- resource_tc_cam_role.go
- resource_tc_cam_role_policy_attachment.go
- resource_tc_cam_saml_provider.go
- resource_tc_cam_user.go
- resource_tc_cam_user_policy_attachment.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_ccn.go
- resource_tc_ccn_attachment.go
- resource_tc_ccn_bandwidth_limit.go
- resource_tc_cdn_domain.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_topic.go
- resource_tc_ckafka_user.go
- resource_tc_clb_attachment.go
- resource_tc_clb_instance.go
- resource_tc_clb_listener.go
- resource_tc_clb_listener_rule.go
- resource_tc_clb_redirection.go
- resource_tc_container_cluster.go
- resource_tc_container_cluster_instance.go
- resource_tc_cos_bucket.go
- resource_tc_cos_bucket_object.go
- resource_tc_dayu_cc_http_policy.go
- resource_tc_dayu_cc_https_policy.go
- resource_tc_dayu_ddos_policy.go
- resource_tc_dayu_ddos_policy_attachment.go
- resource_tc_dayu_ddos_policy_case.go
- resource_tc_dayu_l4_rule.go
- resource_tc_dayu_l7_rule.go
- resource_tc_dc_gateway.go
- resource_tc_dc_gateway_ccn_route.go
- resource_tc_dcx.go
- resource_tc_dnat.go
- resource_tc_eip.go
- resource_tc_eip_association.go
- resource_tc_elasticsearch_instance.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_instance.go
- resource_tc_key_pair.go
- resource_tc_kubernetes_as_scaling_group.go
- resource_tc_kubernetes_cluster.go
- resource_tc_kubernetes_cluster_attachment.go
- resource_tc_kubernetes_scale_worker.go
- resource_tc_lb.go
- resource_tc_mongodb_instance.go
- resource_tc_mongodb_sharding_instance.go
- resource_tc_mongodb_standby_instance.go
- resource_tc_monitor_binding_object.go
- resource_tc_monitor_binding_receiver.go
- resource_tc_monitor_policy_group.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_placement_group.go
- resource_tc_postgresql_instance.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_namespace.go
- resource_tc_security_group.go
- resource_tc_security_group_lite_rule.go
- resource_tc_security_group_rule.go
- resource_tc_sqlserver_account.go
- resource_tc_sqlserver_account_db_attachment.go
- resource_tc_sqlserver_db.go
- resource_tc_sqlserver_instance.go
- resource_tc_sqlserver_readonly_instance.go
- resource_tc_ssl_certificate.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_vpc.go
- resource_tc_vpc_acl.go
- resource_tc_vpc_acl_attachment.go
- resource_tc_vpn_connection.go
- resource_tc_vpn_customer_gateway.go
- resource_tc_vpn_gateway.go
- service_tencentcloud_as.go
- service_tencentcloud_cam.go
- service_tencentcloud_cbs.go
- service_tencentcloud_ccn.go
- service_tencentcloud_cdn.go
- service_tencentcloud_cfs.go
- service_tencentcloud_ckafka.go
- service_tencentcloud_clb.go
- service_tencentcloud_cos.go
- service_tencentcloud_cvm.go
- service_tencentcloud_dayu.go
- service_tencentcloud_dc.go
- service_tencentcloud_dcg.go
- service_tencentcloud_elasticsearch.go
- service_tencentcloud_gaap.go
- service_tencentcloud_mongodb.go
- service_tencentcloud_monitor.go
- service_tencentcloud_mysql.go
- service_tencentcloud_postgresql.go
- service_tencentcloud_redis.go
- service_tencentcloud_scf.go
- service_tencentcloud_sqlserver.go
- service_tencentcloud_ssl.go
- service_tencentcloud_tag.go
- service_tencentcloud_tcaplus.go
- service_tencentcloud_tke.go
- service_tencentcloud_vpc.go
- validators.go