tencentcloud

package
v1.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2019 License: MPL-2.0 Imports: 55 Imported by: 5

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"
    configureation_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 zones in the 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 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 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 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 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

data "tencentcloud_dnats" "foo"{
	name = "main"
	vpc_id = "vpc-xfqag"
	nat_id = "nat-xfaq1"
	elastic_ip = "123.207.115.136"
	elastic_port = "80"
	private_ip = "172.16.0.88"
	private_port = "9001"
	description  = "test"
}

```

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 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 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"
}

```

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 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 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_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 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 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"
}

```

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 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}"
}

```

Resources List

Data Sources

tencentcloud_as_scaling_configs
tencentcloud_as_scaling_groups
tencentcloud_as_scaling_policies
tencentcloud_availability_zones
tencentcloud_cam_group_memberships
tencentcloud_cam_group_policy_attachments
tencentcloud_cam_groups
tencentcloud_cam_policies
tencentcloud_cam_role_policy_attachments
tencentcloud_cam_roles
tencentcloud_cam_saml_providers
tencentcloud_cam_user_policy_attachments
tencentcloud_cam_users
tencentcloud_cbs_snapshots
tencentcloud_cbs_storages
tencentcloud_ccn_bandwidth_limits
tencentcloud_ccn_instances
tencentcloud_cfs_access_groups
tencentcloud_cfs_access_rules
tencentcloud_cfs_file_systems
tencentcloud_clb_attachments
tencentcloud_clb_instances
tencentcloud_clb_listener_rules
tencentcloud_clb_listeners
tencentcloud_clb_redirections
tencentcloud_container_cluster_instances
tencentcloud_container_clusters
tencentcloud_cos_bucket_object
tencentcloud_cos_buckets
tencentcloud_dc_gateway_ccn_routes
tencentcloud_dc_gateway_instances
tencentcloud_dc_instances
tencentcloud_dcx_instances
tencentcloud_dnats
tencentcloud_eip
tencentcloud_eips
tencentcloud_enis
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_ha_vip_eip_attachments
tencentcloud_ha_vips
tencentcloud_image
tencentcloud_images
tencentcloud_instance_types
tencentcloud_instances
tencentcloud_key_pairs
tencentcloud_kubernetes_clusters
tencentcloud_mongodb_instances
tencentcloud_mongodb_zone_config
tencentcloud_mysql_backup_list
tencentcloud_mysql_instance
tencentcloud_mysql_parameter_list
tencentcloud_mysql_zone_config
tencentcloud_nat_gateways
tencentcloud_nats
tencentcloud_placement_groups
tencentcloud_redis_instances
tencentcloud_redis_zone_config
tencentcloud_reserved_instance_configs
tencentcloud_reserved_instances
tencentcloud_route_table
tencentcloud_scf_functions
tencentcloud_scf_logs
tencentcloud_scf_namespaces
tencentcloud_security_group
tencentcloud_security_groups
tencentcloud_ssl_certificates
tencentcloud_subnet
tencentcloud_vpc
tencentcloud_vpc_instances
tencentcloud_vpc_route_tables
tencentcloud_vpc_subnets
tencentcloud_vpn_connections
tencentcloud_vpn_customer_gateways
tencentcloud_vpn_gateways

AS Resources

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

CAM Resources

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

CBS Resources

tencentcloud_cbs_storage
tencentcloud_cbs_storage_attachment
tencentcloud_cbs_snapshot
tencentcloud_cbs_snapshot_policy

CCN Resources

tencentcloud_ccn
tencentcloud_ccn_attachment
tencentcloud_ccn_bandwidth_limit

CFS Resources

tencentcloud_cfs_file_system
tencentcloud_cfs_access_group
tencentcloud_cfs_access_rule

Container Cluster Resources

tencentcloud_container_cluster
tencentcloud_container_cluster_instance

CLB Resources

tencentcloud_clb_instance
tencentcloud_clb_listener
tencentcloud_clb_listener_rule
tencentcloud_clb_attachment
tencentcloud_clb_redirection
tencentcloud_lb
tencentcloud_alb_server_attachment

COS Resources

tencentcloud_cos_bucket
tencentcloud_cos_bucket_object

CVM Resources

tencentcloud_instance
tencentcloud_eip
tencentcloud_eip_association
tencentcloud_key_pair
tencentcloud_placement_group
tencentcloud_reserved_instance

DC Resources

tencentcloud_dcx

DCG Resources

tencentcloud_dc_gateway
tencentcloud_dc_gateway_ccn_route

GAAP Resources

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

Kubernetes Resources

tencentcloud_kubernetes_cluster
tencentcloud_kubernetes_scale_worker

MongoDB Resources

tencentcloud_mongodb_instance
tencentcloud_mongodb_sharding_instance

MySQL Resources

tencentcloud_mysql_instance
tencentcloud_mysql_readonly_instance
tencentcloud_mysql_account
tencentcloud_mysql_account_privilege
tencentcloud_mysql_backup_policy

Redis Resources

tencentcloud_redis_instance
tencentcloud_redis_backup_config

SCF Resources

tencentcloud_scf_function
tencentcloud_scf_namespace

SSL Resources

tencentcloud_ssl_certificate

VPC Resources

tencentcloud_eni
tencentcloud_eni_attachment
tencentcloud_vpc
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 Resources

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.

```hcl $ 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

```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/3374997817:uin/3374997817"]
      }
    }
  ]
}

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 create a 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"
}

```

Import

CAM user can be imported using the id, 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 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"
}

```

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.

```hcl $ terraform import tencentcloud_ccn.test ccn-id ```

Provides a CCN attaching resource.

Example Usage

```hcl

variable "region" {
    default = "ap-guangzhou"
}
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}"
}

```

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 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 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."
}

```

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"
}

```

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_favorate_image" {
  image_type = ["PUBLIC_IMAGE"]
  os_name    = "centos"
}
data "tencentcloud_instance_types" "my_favorate_instance_types" {
  filter {
    name   = "instance-family"
    values = ["S3"]
  }

  cpu_core_count = 1
  memory_size    = 1
}

data "tencentcloud_availability_zones" "my_favorate_zones" { }

resource "tencentcloud_instance" "foo" {
  instance_name            = "ci-test-eni-attach"
  availability_zone        = "${data.tencentcloud_availability_zones.my_favorate_zones.zones.0.name}"
  image_id                 = "${data.tencentcloud_images.my_favorate_image.images.0.image_id}"
  instance_type            = "${data.tencentcloud_instance_types.my_favorate_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

```

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
  }
}

```

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
  }
}

```

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"
}

```

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_favorate_image" {
  image_type = ["PUBLIC_IMAGE"]
  os_name    = "centos"
}
data "tencentcloud_instance_types" "my_favorate_instance_types" {
  filter {
    name   = "instance-family"
    values = ["S3"]
  }

  cpu_core_count = 1
  memory_size    = 1
}

data "tencentcloud_availability_zones" "my_favorate_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_favorate_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_favorate_image.images.0.image_id}"
  instance_type              = "${data.tencentcloud_instance_types.my_favorate_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 a kubernetes cluster.

Example Usage

```hcl

variable "availability_zone" {
  default = "ap-guangzhou-3"
}
variable "vpc" {
  default = "vpc-dk8zmwuf"
}
variable "subnet" {
  default = "subnet-pqfek0t8"
}
variable "default_instance_type" {
  default = "SA1.LARGE8"
}

#examples for MANAGED_CLUSTER cluster

resource "tencentcloud_kubernetes_cluster" "managed_cluster" {
  vpc_id                  = "${var.vpc}"
  cluster_cidr            = "10.1.0.0/16"
  cluster_max_pod_num     = 32
  cluster_name            = "test"
  cluster_desc            = "test cluster desc"
  cluster_max_service_num = 32

  worker_config {
    count                      = 2
    availability_zone          = "${var.availability_zone}"
    instance_type              = "${var.default_instance_type}"
    system_disk_type           = "CLOUD_SSD"
    system_disk_size           = 60
    internet_charge_type       = "TRAFFIC_POSTPAID_BY_HOUR"
    internet_max_bandwidth_out = 100
    public_ip_assigned         = true
    subnet_id                  = "${var.subnet}"

    data_disk {
      disk_type = "CLOUD_PREMIUM"
      disk_size = 50
    }

    enhanced_security_service = false
    enhanced_monitor_service  = false
    user_data                 = "dGVzdA=="
    password                  = "ZZXXccvv1212"
  }

  cluster_deploy_type = "MANAGED_CLUSTER"
}

#examples for INDEPENDENT_CLUSTER cluster

resource "tencentcloud_kubernetes_cluster" "independing_cluster" {
  vpc_id                  = "${var.vpc}"
  cluster_cidr            = "10.1.0.0/16"
  cluster_max_pod_num     = 32
  cluster_name            = "test"
  cluster_desc            = "test cluster desc"
  cluster_max_service_num = 32

  master_config {
    count                      = 3
    availability_zone          = "${var.availability_zone}"
    instance_type              = "${var.default_instance_type}"
    system_disk_type           = "CLOUD_SSD"
    system_disk_size           = 60
    internet_charge_type       = "TRAFFIC_POSTPAID_BY_HOUR"
    internet_max_bandwidth_out = 100
    public_ip_assigned         = true
    subnet_id                  = "${var.subnet}"

    data_disk {
      disk_type = "CLOUD_PREMIUM"
      disk_size = 50
    }

    enhanced_security_service = false
    enhanced_monitor_service  = false
    user_data                 = "dGVzdA=="
    password                  = "MMMZZXXccvv1212"
  }

  worker_config {
    count                      = 2
    availability_zone          = "${var.availability_zone}"
    instance_type              = "${var.default_instance_type}"
    system_disk_type           = "CLOUD_SSD"
    system_disk_size           = 60
    internet_charge_type       = "TRAFFIC_POSTPAID_BY_HOUR"
    internet_max_bandwidth_out = 100
    public_ip_assigned         = true
    subnet_id                  = "${var.subnet}"

    data_disk {
      disk_type = "CLOUD_PREMIUM"
      disk_size = 50
    }

    enhanced_security_service = false
    enhanced_monitor_service  = false
    user_data                 = "dGVzdA=="
    password                  = "ZZXXccvv1212"
  }

  cluster_deploy_type = "INDEPENDENT_CLUSTER"
}

```

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       = "mypassword"
}

```

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        = "mypassword"
}

```

Import

Mongodb sharding instance can be imported using the id, e.g.

``` $ terraform import tencentcloud_mongodb_sharding_instance.mongodb cmgo-41s6jwy4 ```

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.

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"

  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 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_connection    = 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 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.

```hcl $ terraform import tencentcloud_redis_backup_config.redisconfig redis-id ```

Provides a resource to create a Redis instance and set its attributes.

Example Usage

```hcl

resource "tencentcloud_redis_instance" "redis_instance_test"{
  availability_zone = "ap-hongkong-3"
  type              = "master_slave_redis"
  password          = "test12345789"
  mem_size          = 8192
  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 = "${tencent_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"
}

```

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.

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"
}

```

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 ```

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 ```

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

View Source
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"
)
View Source
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"
)
View Source
const (
	INSTANCE_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR"
	INSTANCE_CHARGE_TYPE_SPOTPAID = "SPOTPAID"
)
View Source
const (
	SCALING_GROUP_TERMINATION_POLICY_NEWEST_INSTANCE = "NEWEST_INSTANCE"
	SCALING_GROUP_TERMINATION_POLICY_OLDEST_INSTANCE = "OLDEST_INSTANCE"
)
View Source
const (
	SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY       = "IMMEDIATE_RETRY"
	SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS = "INCREMENTAL_INTERVALS"
)
View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const (
	SCALING_GROUP_STATISTIC_AVERAGE = "AVERAGE"
	SCALING_GROUP_STATISTIC_MAXIMUM = "MAXIMUM"
	SCALING_GROUP_STATISTIC_MINIMUM = "MINIMUM"
)
View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const (
	CAM_POLICY_CREATE_STRATEGY_CUSTOM = "User"
	CAM_POLICY_CREATE_STRATEGY_PRESET = "QCS"
	CAM_POLICY_CREATE_STRATEGY_NULL   = ""
)
View Source
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_SNAPSHOT_STATUS_NORMAL   = "NORMAL"
	CBS_SNAPSHOT_STATUS_CREATING = "CREATING"
)
View Source
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"
)
View Source
const (
	CLB_NETWORK_TYPE_OPEN     = "OPEN"
	CLB_NETWORK_TYPE_INTERNAL = "INTERNAL"
)
View Source
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"
)
View Source
const (
	CLB_HTTP_METHOD_GET  = "GET"
	CLB_HTTP_METHOD_HEAD = "HEAD"
)
View Source
const (
	CLB_LISTENER_SCHEDULER_WRR       = "WRR"
	CLB_LISTENER_SCHEDULER_LEASTCONN = "LEAST_CONN"
	CLB_LISTENER_SCHEDULER_IP_HASH   = "IP_HASH"
)
View Source
const (
	HTTP_VERSION_ONE_ZERO = "HTTP/1.0"
	HTTP_VERSION_ONE_ONE  = "HTTP/1.1"
)
View Source
const (
	HEALTH_CHECK_TYPE_CUSTOM = "CUSTOM"
	HEALTH_CHECK_TYPE_TCP    = "TCP"
	HEALTH_CHECK_TYPE_UDP    = "UDP"
)
View Source
const (
	CONTEX_TYPE_HEX  = "HEX"
	CONTEX_TYPE_TEXT = "TEXT"
)
View Source
const (
	CERT_SSL_MODE_UNI = "UNIDIRECTIONAL"
	CERT_SSL_MODE_MUT = "MUTUAL"
)
View Source
const (
	CLB_TASK_SUCCESS   = 0
	CLB_TASK_FAIL      = 1
	CLB_TASK_EXPANDING = 2
)
View Source
const (
	HEALTH_APPLY_TYPE_LISTENER = "listener"
	HEALTH_APPLY_TYPE_RULE     = "rule"
)
View Source
const (
	AUTO_TARGET_PORT = 443
	AUTO_SOURCE_PORT = 80
)
View Source
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_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"

	CVM_SPOT_INSTANCE_TYPE_ONE_TIME = "ONE-TIME"

	CVM_MARKET_TYPE_SPOT = "spot"
)
View Source
const (
	DC_NETWORK_TYPE_VPC   = "VPC"
	DC_NETWORK_TYPE_BMVPC = "BMVPC"
	DC_NETWORK_TYPE_CCN   = "CCN"
)
View Source
const (
	DC_ROUTE_TYPE_BGP    = "BGP"
	DC_ROUTE_TYPE_STATIC = "STATIC"
)
View Source
const (
	DCG_NETWORK_TYPE_VPC = "VPC"
	DCG_NETWORK_TYPE_CCN = "CCN"
)

https://cloud.tencent.com/document/product/215/19192

View Source
const (
	DCG_GATEWAY_TYPE_NORMAL = "NORMAL"
	DCG_GATEWAY_TYPE_NAT    = "NAT"
)
View Source
const (
	DCG_CCN_ROUTE_TYPE_BGP    = "BGP"
	DCG_CCN_ROUTE_TYPE_STATIC = "STATIC"
)

https://cloud.tencent.com/document/product/215/30643

View Source
const (
	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"
)

all gaap proxy status https://cloud.tencent.com/document/api/608/37023#ProxyInfo

View Source
const (
	GAAP_LISTENER_RUNNING              = 0
	GAAP_LISTENER_CREATING             = 1
	GAAP_LISTENER_DESTROYING           = 2
	GAAP_LISTENER_REALSERVER_ADJUSTING = 3
	GAAP_LISTENER_ADJUSTING            = 4
)
View Source
const (
	GAAP_SECURITY_POLICY_BOUND     = "BOUND"
	GAAP_SECURITY_POLICY_UNBIND    = "UNBIND"
	GAAP_SECURITY_POLICY_BINDING   = "BINDING"
	GAAP_SECURITY_POLICY_UNBINDING = "UNBINDING"
)
View Source
const (
	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
)
View Source
const (
	MONGODB_INSTANCE_STATUS_INITIAL    = 0
	MONGODB_INSTANCE_STATUS_PROCESSING = 1
	MONGODB_INSTANCE_STATUS_RUNNING    = 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_MACHINE_TYPE_GIO  = "GIO"
	MONGODB_MACHINE_TYPE_TGIO = "TGIO"

	MONGODB_CLUSTER_TYPE_REPLSET = "REPLSET"
	MONGODB_CLUSTER_TYPE_SHARD   = "SHARD"
)
View Source
const (
	ZONE_SELL_STATUS_ONLINE = 1
	ZONE_SELL_STATUS_NEW    = 2
)
View Source
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

View Source
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

View Source
const (
	MYSQL_RENEW_NOUSE = 0
	MYSQL_RENEW_OPEN  = 1
	MYSQL_RENEW_CLOSE = 2
)

automatic renewal status code

View Source
const (
	MysqlInstanceIdNotFound  = "InvalidParameter.InstanceNotFound"
	MysqlInstanceIdNotFound2 = "InvalidParameter"
	MysqlInstanceIdNotFound3 = "InternalError.DatabaseAccessError"
)
View Source
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 https://cloud.tencent.com/document/api/239/20022#ProductConf

View Source
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

View Source
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

View Source
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

View Source
const (
	SCF_RUNTIME_PY27    = "Python2.7"
	SCF_RUNTIME_PY36    = "Python3.6"
	SCF_RUNTIME_NODE610 = "Nodejs6.10"
	SCF_RUNTIME_PHP5    = "PHP5"
	SCF_RUNTIME_PHP7    = "PHP7"
	SCF_RUNTIME_GO1     = "Golang1"
	SCF_RUNTIME_JAVA8   = "Java8"

	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_TRIGGER_COS_NAME_SUFFIX = ".cos.ap-guangzhou.myqcloud.com"

	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
)
View Source
const (
	SSL_MODULE_TYPE = "ssl"
	SSL_WITH_CERT   = "1"

	SSL_STATUS_AVAILABLE = 1
)
View Source
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"
)
View Source
const (
	TKE_DEPLOY_TYPE_MANAGED     = "MANAGED_CLUSTER"
	TKE_DEPLOY_TYPE_INDEPENDENT = "INDEPENDENT_CLUSTER"
)
View Source
const (
	TKE_RUNTIME_DOCKER     = "docker"
	TKE_RUNTIME_CONTAINERD = "containerd"
)
View Source
const (
	TKE_ROLE_MASTER_ETCD = "MASTER_ETCD"
	TKE_ROLE_WORKER      = "WORKER"
)
View Source
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

View Source
const (
	ENI_STATE_PENDING   = "PENDING"
	ENI_STATE_AVAILABLE = "AVAILABLE"
	ENI_STATE_ATTACHING = "ATTACHING"
	ENI_STATE_DETACHING = "DETACHING"
	ENI_STATE_DELETING  = "DELETING"
)
View Source
const (
	ENI_IP_PENDING   = "PENDING"
	ENI_IP_AVAILABLE = "AVAILABLE"
	ENI_IP_ATTACHING = "ATTACHING"
	ENI_IP_DETACHING = "DETACHING"
	ENI_IP_DELETING  = "DELETING"
)
View Source
const (
	NAT_DESCRIBE_LIMIT = 100
	NAT_EIP_MAX_LIMIT  = 10
)
View Source
const (
	VPN_STATE_PENDING   = "PENDING"
	VPN_STATE_DELETING  = "DELETING"
	VPN_STATE_AVAILABLE = "AVAILABLE"
)
View Source
const (
	VPN_PERIOD_PREPAID_RENEW_FLAG_AUTO_NOTIFY = "NOTIFY_AND_AUTO_RENEW"
	VPN_PERIOD_PREPAID_RENEW_FLAG_NOT         = "NOTIFY_AND_MANUAL_RENEW"
)
View Source
const (
	VPN_CHARGE_TYPE_PREPAID          = "PREPAID"
	VPN_CHARGE_TYPE_POSTPAID_BY_HOUR = "POSTPAID_BY_HOUR"
)
View Source
const (
	VPN_RESTRICT_STATE_NORMAL  = "NORMAL"
	VPN_RESTRICT_STATE_ISOLATE = "PRETECIVELY_ISOLATED"
)
View Source
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"
)
View Source
const (
	VPN_IKE_PROPO_AUTHEN_ALGORITHM_SHA = "SHA"
	VPN_IKE_PROPO_AUTHEN_ALGORITHM_MD5 = "MD5"
)
View Source
const (
	VPN_IPSEC_INTEGRITY_ALGORITHM_SHA1 = "SHA1"
	VPN_IPSEC_INTEGRITY_ALGORITHM_MD5  = "MD5"
)
View Source
const (
	VPN_IKE_EXCHANGE_MODE_AGGRESSIVE = "AGGRESSIVE"
	VPN_IKE_EXCHANGE_MODE_MAIN       = "MAIN"
)
View Source
const (
	VPN_IKE_IDENTITY_ADDRESS = "ADDRESS"
	VPN_IKE_IDENTITY_FQDN    = "FQDN"
)
View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const (
	VPCNotFound             = "ResourceNotFound"
	VPCUnsupportedOperation = "UnsupportedOperation"
)

COMMON

View Source
const (
	PROVIDER_SECRET_ID      = "TENCENTCLOUD_SECRET_ID"
	PROVIDER_SECRET_KEY     = "TENCENTCLOUD_SECRET_KEY"
	PROVIDER_SECURITY_TOKEN = "TENCENTCLOUD_SECURITY_TOKEN"
	PROVIDER_REGION         = "TENCENTCLOUD_REGION"
)
View Source
const CNN_INSTANCE_TYPE_BMVPC = "BMVPC"
View Source
const CNN_INSTANCE_TYPE_DIRECTCONNECT = "DIRECTCONNECT"
View Source
const CNN_INSTANCE_TYPE_VPC = "VPC"
View Source
const CNN_QOS_AG = "AG"
View Source
const CNN_QOS_AU = "AU"
View Source
const CNN_QOS_PT = "PT"
View Source
const CfsInvalidPgroup = "InvalidParameterValue.InvalidPgroup"
View Source
const DESCRIBE_SECURITY_GROUP_LIMIT = 50
View Source
const DESCRIBE_TAGS_LIMIT = 20
View Source
const (
	ENI_DESCRIBE_LIMIT = 100
)

ENI

View Source
const FILED_SP = "#"
View Source
const (
	FORWARD_TYPE_HTTP = "HTTP"
)
View Source
const GAAP_PROXY_ID = "link-9ck3lzq7"
View Source
const GATE_WAY_TYPE_CCN = "CCN"
View Source
const GATE_WAY_TYPE_CVM = "CVM"

all gate way types https://cloud.tencent.com/document/api/215/15824#Route

View Source
const GATE_WAY_TYPE_DIRECTCONNECT = "DIRECTCONNECT"
View Source
const GATE_WAY_TYPE_EIP = "EIP"
View Source
const GATE_WAY_TYPE_NAT = "NAT"
View Source
const GATE_WAY_TYPE_NORMAL_CVM = "NORMAL_CVM"
View Source
const GATE_WAY_TYPE_SSLVPN = "SSLVPN"
View Source
const GATE_WAY_TYPE_VPN = "VPN"
View Source
const (
	HAVIP_DESCRIBE_LIMIT = 100
)
View Source
const (
	NAT_FAILED_STATE = "FAILED"
)
View Source
const PAGE_ITEM = 200
View Source
const RedisInstanceNotFound = "ResourceNotFound.InstanceNotExists"

sdk redis not found error

View Source
const VPC_SERVICE_TYPE = "vpc"
View Source
const (
	VPN_DESCRIBE_LIMIT = 100
)
View Source
const (
	VPN_PURCHASE_PLAN_PRE_POST = "PREPAID_TO_POSTPAID"
)

Variables

View Source
var (
	MysqlPayByMonth = 0
	MysqlPayByUse   = 1
)

type of pay

View Source
var CVM_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
View Source
var CVM_SPOT_INSTANCE_TYPE = []string{
	CVM_SPOT_INSTANCE_TYPE_ONE_TIME,
}
View Source
var FORWARD_TYPE = []string{
	FORWARD_TYPE_HTTP,
}
View Source
var MYSQL_ALLOW_BACKUP_MODEL = []string{"logical", "physical"}
View Source
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"}
View Source
var MYSQL_AVAILABLE_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}

mysql available period value

View Source
var MYSQL_DATABASE_MUST_PRIVILEGE = "SHOW VIEW"
View Source
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"}
View Source
var MYSQL_DEFAULT_ACCOUNT_HOST = "%"

default to all host

View Source
var MYSQL_ROLE_MAP = map[int64]string{
	1: "master",
	2: "ro",
	3: "dr",
}
View Source
var MYSQL_SUPPORTS_ENGINE = []string{"5.5", "5.6", "5.7"}
View Source
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",
}
View Source
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",
}
View Source
var REDIS_ZONE_ID2NAME = map[int64]string{
	100001: "ap-guangzhou-1",
	100002: "ap-guangzhou-2",
	100003: "ap-guangzhou-3",
	100004: "ap-guangzhou-4",
	200001: "ap-shanghai-1",
	200002: "ap-shanghai-2",
	200003: "ap-shanghai-3",
	200004: "ap-shanghai-4",
	300001: "ap-hongkong-1",
	300002: "ap-hongkong-2",
	400001: "na-toronto-1",
	700001: "ap-shanghai-fsi-1",
	700002: "ap-shanghai-fsi-2",
	800001: "ap-beijing-1",
	800002: "ap-beijing-2",
	800003: "ap-beijing-3",
	800004: "ap-beijing-4",
	900001: "ap-singapore-1",
	110001: "ap-shenzhen-fsi-1",
	110002: "ap-shenzhen-fsi-2",
	150001: "na-siliconvalley-1",
	150002: "na-siliconvalley-2",
	160001: "ap-chengdu-1",
	160002: "ap-chengdu-2",
	170001: "en-frankfurt-1",
	180001: "ap-seoul-1",
	190001: "ap-chongqing-1",
	210001: "ap-mumbai-1",
	220001: "na-ashburn-1",
	230001: "ap-bangkok-1",
	240001: "eu-moscow-1",
	250001: "ap-tokyo-1",
}
View Source
var VPN_PURCHASE_PLAN = []string{
	VPN_PURCHASE_PLAN_PRE_POST,
}

Functions

func BuildTagResourceName added in v1.19.0

func BuildTagResourceName(serviceType, resourceType, region, id string) string

func CheckNil added in v1.18.0

func CheckNil(object interface{}, fields map[string]string) (nilFields []string)

func Provider

func Provider() terraform.ResourceProvider

func TencentCloudMysqlParameterDetail added in v1.5.0

func TencentCloudMysqlParameterDetail() map[string]*schema.Schema

func TencentMsyqlBasicInfo added in v1.5.0

func TencentMsyqlBasicInfo() map[string]*schema.Schema

func TencentMysqlSellType added in v1.5.0

func TencentMysqlSellType() map[string]*schema.Schema

func TencentMysqlZoneConfig added in v1.5.0

func TencentMysqlZoneConfig() map[string]*schema.Schema

func TkeCvmCreateInfo added in v1.16.0

func TkeCvmCreateInfo() map[string]*schema.Schema

Types

type AsService added in v1.8.0

type AsService struct {
	// contains filtered or unexported fields
}

func (*AsService) AttachInstances added in v1.8.0

func (me *AsService) AttachInstances(ctx context.Context, scalingGroupId string, instanceIds []string) error

func (*AsService) ClearScalingGroupInstance added in v1.8.0

func (me *AsService) ClearScalingGroupInstance(ctx context.Context, scalingGroupId string) error

set the scaling group desired capacity to 0

func (*AsService) DeleteLaunchConfiguration added in v1.8.0

func (me *AsService) DeleteLaunchConfiguration(ctx context.Context, configurationId string) error

func (*AsService) DeleteLifecycleHook added in v1.8.0

func (me *AsService) DeleteLifecycleHook(ctx context.Context, lifecycleHookId string) error

func (*AsService) DeleteNotification added in v1.8.0

func (me *AsService) DeleteNotification(ctx context.Context, notificationId string) error

func (*AsService) DeleteScalingGroup added in v1.8.0

func (me *AsService) DeleteScalingGroup(ctx context.Context, scalingGroupId string) error

func (*AsService) DeleteScalingPolicy added in v1.8.0

func (me *AsService) DeleteScalingPolicy(ctx context.Context, scalingPolicyId string) error

func (*AsService) DeleteScheduledAction added in v1.8.0

func (me *AsService) DeleteScheduledAction(ctx context.Context, scheduledActonId string) error

func (*AsService) DescribeActivityById added in v1.8.0

func (me *AsService) DescribeActivityById(ctx context.Context, activityId string) (status string, errRet error)

func (*AsService) DescribeAutoScalingAttachment added in v1.8.0

func (me *AsService) DescribeAutoScalingAttachment(ctx context.Context, scalingGroupId string) (instanceIds []string, errRet error)

func (*AsService) DescribeAutoScalingGroupByFilter added in v1.8.0

func (me *AsService) DescribeAutoScalingGroupByFilter(
	ctx context.Context,
	scalingGroupId, configurationId, scalingGroupName string,
	tags map[string]string,
) (scalingGroups []*as.AutoScalingGroup, errRet error)

func (*AsService) DescribeAutoScalingGroupById added in v1.8.0

func (me *AsService) DescribeAutoScalingGroupById(ctx context.Context, scalingGroupId string) (scalingGroup *as.AutoScalingGroup, has int, errRet error)

func (*AsService) DescribeLaunchConfigurationByFilter added in v1.8.0

func (me *AsService) DescribeLaunchConfigurationByFilter(ctx context.Context, configurationId, configurationName string) (configs []*as.LaunchConfiguration, errRet error)

func (*AsService) DescribeLaunchConfigurationById added in v1.8.0

func (me *AsService) DescribeLaunchConfigurationById(ctx context.Context, configurationId string) (config *as.LaunchConfiguration, has int, errRet error)

func (*AsService) DescribeLifecycleHookById added in v1.8.0

func (me *AsService) DescribeLifecycleHookById(ctx context.Context, lifecycleHookId string) (lifecycleHook *as.LifecycleHook, has int, errRet error)

func (*AsService) DescribeNotificationById added in v1.8.0

func (me *AsService) DescribeNotificationById(ctx context.Context, notificationId string) (notification *as.AutoScalingNotification, has int, errRet error)

func (*AsService) DescribeScalingPolicyByFilter added in v1.8.0

func (me *AsService) DescribeScalingPolicyByFilter(ctx context.Context, policyId, policyName, scalingGroupId string) (scalingPolicies []*as.ScalingPolicy, errRet error)

func (*AsService) DescribeScalingPolicyById added in v1.8.0

func (me *AsService) DescribeScalingPolicyById(ctx context.Context, scalingPolicyId string) (scalingPolicy *as.ScalingPolicy, has int, errRet error)

func (*AsService) DescribeScheduledActionById added in v1.8.0

func (me *AsService) DescribeScheduledActionById(ctx context.Context, scheduledActionId string) (scheduledAction *as.ScheduledAction, errRet error)

func (*AsService) DetachInstances added in v1.8.0

func (me *AsService) DetachInstances(ctx context.Context, scalingGroupId string, instanceIds []string) error

type CamService added in v1.21.0

type CamService struct {
	// contains filtered or unexported fields
}

func (*CamService) AddGroupPolicyAttachment added in v1.21.0

func (me *CamService) AddGroupPolicyAttachment(ctx context.Context, groupId string, policyId string) error

func (*CamService) AddUserPolicyAttachment added in v1.21.0

func (me *CamService) AddUserPolicyAttachment(ctx context.Context, userId string, policyId string) error

func (*CamService) DeleteGroupPolicyAttachmentById added in v1.21.0

func (me *CamService) DeleteGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) error

func (*CamService) DeleteRoleById added in v1.21.0

func (me *CamService) DeleteRoleById(ctx context.Context, roleId string) error

func (*CamService) DeleteRolePolicyAttachmentById added in v1.21.0

func (me *CamService) DeleteRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) error

func (*CamService) DeleteUserPolicyAttachmentById added in v1.21.0

func (me *CamService) DeleteUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) error

func (*CamService) DescribeGroupById added in v1.21.0

func (me *CamService) DescribeGroupById(ctx context.Context, groupId string) (camInstance *cam.GetGroupResponse, errRet error)

func (*CamService) DescribeGroupMembershipById added in v1.21.0

func (me *CamService) DescribeGroupMembershipById(ctx context.Context, groupId string) (members []*string, errRet error)

func (*CamService) DescribeGroupPolicyAttachmentById added in v1.21.0

func (me *CamService) DescribeGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)

func (*CamService) DescribeGroupPolicyAttachmentsByFilter added in v1.21.0

func (me *CamService) DescribeGroupPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)

func (*CamService) DescribeGroupsByFilter added in v1.21.0

func (me *CamService) DescribeGroupsByFilter(ctx context.Context, params map[string]interface{}) (groups []*cam.GroupInfo, errRet error)

func (*CamService) DescribePoliciesByFilter added in v1.21.0

func (me *CamService) DescribePoliciesByFilter(ctx context.Context, params map[string]interface{}) (policies []*cam.StrategyInfo, errRet error)

func (*CamService) DescribePolicyById added in v1.21.0

func (me *CamService) DescribePolicyById(ctx context.Context, policyId string) (result *cam.GetPolicyResponse, errRet error)

func (*CamService) DescribeRoleById added in v1.21.0

func (me *CamService) DescribeRoleById(ctx context.Context, roleId string) (camInstance *cam.RoleInfo, errRet error)

func (*CamService) DescribeRolePolicyAttachmentById added in v1.21.0

func (me *CamService) DescribeRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)

func (*CamService) DescribeRolePolicyAttachmentsByFilter added in v1.21.0

func (me *CamService) DescribeRolePolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyOfRoles []*cam.AttachedPolicyOfRole, errRet error)

func (*CamService) DescribeRolesByFilter added in v1.21.0

func (me *CamService) DescribeRolesByFilter(ctx context.Context, params map[string]interface{}) (roles []*cam.RoleInfo, errRet error)

func (*CamService) DescribeSAMLProviderById added in v1.21.0

func (me *CamService) DescribeSAMLProviderById(ctx context.Context, providerName string) (result *cam.GetSAMLProviderResponse, errRet error)

func (*CamService) DescribeSAMLProvidersByFilter added in v1.21.0

func (me *CamService) DescribeSAMLProvidersByFilter(ctx context.Context, params map[string]interface{}) (providers []*cam.SAMLProviderInfo, errRet error)

func (*CamService) DescribeUserById added in v1.21.0

func (me *CamService) DescribeUserById(ctx context.Context, userId string) (response *cam.GetUserResponse, errRet error)

func (*CamService) DescribeUserPolicyAttachmentById added in v1.21.0

func (me *CamService) DescribeUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)

func (*CamService) DescribeUserPolicyAttachmentsByFilter added in v1.21.0

func (me *CamService) DescribeUserPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)

func (*CamService) DescribeUsersByFilter added in v1.21.0

func (me *CamService) DescribeUsersByFilter(ctx context.Context, params map[string]interface{}) (result []*cam.SubAccountInfo, errRet error)

func (*CamService) PolicyDocumentForceCheck added in v1.21.0

func (me *CamService) PolicyDocumentForceCheck(document string) error

type CbsService added in v1.10.0

type CbsService struct {
	// contains filtered or unexported fields
}

func (*CbsService) ApplySnapshot added in v1.10.0

func (me *CbsService) ApplySnapshot(ctx context.Context, diskId, snapshotId string) error

func (*CbsService) AttachDisk added in v1.10.0

func (me *CbsService) AttachDisk(ctx context.Context, diskId, instanceId string) error

func (*CbsService) CreateSnapshot added in v1.10.0

func (me *CbsService) CreateSnapshot(ctx context.Context, diskId, snapshotName string) (snapshotId string, errRet error)

func (*CbsService) DeleteDiskById added in v1.10.0

func (me *CbsService) DeleteDiskById(ctx context.Context, diskId string) error

func (*CbsService) DeleteSnapshot added in v1.10.0

func (me *CbsService) DeleteSnapshot(ctx context.Context, snapshotId string) error

func (*CbsService) DeleteSnapshotPolicy added in v1.10.0

func (me *CbsService) DeleteSnapshotPolicy(ctx context.Context, policyId string) error

func (*CbsService) DescribeDiskById added in v1.10.0

func (me *CbsService) DescribeDiskById(ctx context.Context, diskId string) (disk *cbs.Disk, errRet error)

func (*CbsService) DescribeDisksByFilter added in v1.10.0

func (me *CbsService) DescribeDisksByFilter(ctx context.Context, params map[string]string) (disks []*cbs.Disk, errRet error)

func (*CbsService) DescribeSnapshotById added in v1.10.0

func (me *CbsService) DescribeSnapshotById(ctx context.Context, snapshotId string) (snapshot *cbs.Snapshot, errRet error)

func (*CbsService) DescribeSnapshotPolicyById added in v1.10.0

func (me *CbsService) DescribeSnapshotPolicyById(ctx context.Context, policyId string) (policy *cbs.AutoSnapshotPolicy, errRet error)

func (*CbsService) DescribeSnapshotsByFilter added in v1.10.0

func (me *CbsService) DescribeSnapshotsByFilter(ctx context.Context, params map[string]string) (snapshots []*cbs.Snapshot, errRet error)

func (*CbsService) DetachDisk added in v1.10.0

func (me *CbsService) DetachDisk(ctx context.Context, diskId, instanceId string) error

func (*CbsService) ModifyDiskAttributes added in v1.10.0

func (me *CbsService) ModifyDiskAttributes(ctx context.Context, diskId, diskName string, projectId int) error

func (*CbsService) ModifySnapshotName added in v1.10.0

func (me *CbsService) ModifySnapshotName(ctx context.Context, snapshotId, snapshotName string) error

func (*CbsService) ResizeDisk added in v1.10.0

func (me *CbsService) ResizeDisk(ctx context.Context, diskId string, diskSize int) error

type CcnAttachedInstanceInfo added in v1.11.0

type CcnAttachedInstanceInfo struct {
	// contains filtered or unexported fields
}

type CcnBandwidthLimit added in v1.11.0

type CcnBandwidthLimit struct {
	// contains filtered or unexported fields
}

type CcnBasicInfo added in v1.11.0

type CcnBasicInfo struct {
	// contains filtered or unexported fields
}

Ccn basic information

type CfsService added in v1.22.0

type CfsService struct {
	// contains filtered or unexported fields
}

func (*CfsService) CreateAccessGroup added in v1.22.0

func (me *CfsService) CreateAccessGroup(ctx context.Context, name, description string) (id string, errRet error)

func (*CfsService) DeleteAccessGroup added in v1.22.0

func (me *CfsService) DeleteAccessGroup(ctx context.Context, id string) error

func (*CfsService) DeleteAccessRule added in v1.22.0

func (me *CfsService) DeleteAccessRule(ctx context.Context, accessGroupId, accessRuleId string) error

func (*CfsService) DeleteFileSystem added in v1.22.0

func (me *CfsService) DeleteFileSystem(ctx context.Context, fsId string) error

func (*CfsService) DescribeAccessGroup added in v1.22.0

func (me *CfsService) DescribeAccessGroup(ctx context.Context, id, name string) (accessGroups []*cfs.PGroupInfo, errRet error)

func (*CfsService) DescribeAccessRule added in v1.22.0

func (me *CfsService) DescribeAccessRule(ctx context.Context, accessGroupId, accessRuleId string) (accessRules []*cfs.PGroupRuleInfo, errRet error)

func (*CfsService) DescribeFileSystem added in v1.22.0

func (me *CfsService) DescribeFileSystem(ctx context.Context, fsId, vpcId, subnetId string) (fs []*cfs.FileSystemInfo, errRet error)

func (*CfsService) DescribeMountTargets added in v1.22.0

func (me *CfsService) DescribeMountTargets(ctx context.Context, fsId string) (targets []*cfs.MountInfo, errRet error)

func (*CfsService) ModifyFileSystemAccessGroup added in v1.22.0

func (me *CfsService) ModifyFileSystemAccessGroup(ctx context.Context, fsId, accessGroupId string) error

func (*CfsService) ModifyFileSystemName added in v1.22.0

func (me *CfsService) ModifyFileSystemName(ctx context.Context, fsId, fsName string) error

type ClbService added in v1.15.0

type ClbService struct {
	// contains filtered or unexported fields
}

func (*ClbService) DeleteAttachmentById added in v1.15.0

func (me *ClbService) DeleteAttachmentById(ctx context.Context, clbId string, listenerId string, locationId string, targets []interface{}) error

func (*ClbService) DeleteListenerById added in v1.15.0

func (me *ClbService) DeleteListenerById(ctx context.Context, clbId string, listenerId string) error

func (*ClbService) DeleteLoadBalancerById added in v1.15.0

func (me *ClbService) DeleteLoadBalancerById(ctx context.Context, clbId string) error

func (*ClbService) DeleteRedirectionById added in v1.15.0

func (me *ClbService) DeleteRedirectionById(ctx context.Context, rewriteId string) error

func (*ClbService) DeleteRuleById added in v1.15.0

func (me *ClbService) DeleteRuleById(ctx context.Context, clbId string, listenerId string, locationId string) error

func (*ClbService) DescribeAttachmentByPara added in v1.15.0

func (me *ClbService) DescribeAttachmentByPara(ctx context.Context, clbId string, listenerId string, locationId string) (clbAttachment *clb.ListenerBackend, errRet error)

func (*ClbService) DescribeAttachmentsByFilter added in v1.15.0

func (me *ClbService) DescribeAttachmentsByFilter(ctx context.Context, params map[string]string) (clbAttachments []*clb.ListenerBackend, errRet error)

func (*ClbService) DescribeListenerById added in v1.15.0

func (me *ClbService) DescribeListenerById(ctx context.Context, listenerId string, clbId string) (clbListener *clb.Listener, errRet error)

func (*ClbService) DescribeListenersByFilter added in v1.15.0

func (me *ClbService) DescribeListenersByFilter(ctx context.Context, params map[string]interface{}) (listeners []*clb.Listener, errRet error)

func (*ClbService) DescribeLoadBalancerByFilter added in v1.15.0

func (me *ClbService) DescribeLoadBalancerByFilter(ctx context.Context, params map[string]interface{}) (clbs []*clb.LoadBalancer, errRet error)

func (*ClbService) DescribeLoadBalancerById added in v1.15.0

func (me *ClbService) DescribeLoadBalancerById(ctx context.Context, clbId string) (clbInstance *clb.LoadBalancer, errRet error)

func (*ClbService) DescribeRedirectionById added in v1.15.0

func (me *ClbService) DescribeRedirectionById(ctx context.Context, rewriteId string) (rewriteInfo *map[string]string, errRet error)

func (*ClbService) DescribeRedirectionsByFilter added in v1.15.0

func (me *ClbService) DescribeRedirectionsByFilter(ctx context.Context, params map[string]string) (rewriteInfos []*map[string]string, errRet error)

func (*ClbService) DescribeRuleByPara added in v1.15.0

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.15.0

func (me *ClbService) DescribeRulesByFilter(ctx context.Context, params map[string]string) (rules []*clb.RuleOutput, errRet error)

type ClusterAdvancedSettings added in v1.16.0

type ClusterAdvancedSettings struct {
	Ipvs             bool
	ContainerRuntime string
}

type ClusterBasicSetting added in v1.16.0

type ClusterBasicSetting struct {
	ClusterId          string
	ClusterOs          string
	ClusterVersion     string
	ClusterName        string
	ClusterDescription string
	VpcId              string
	ProjectId          int64
	ClusterNodeNum     int64
	ClusterStatus      string
	Tags               map[string]string
}

type ClusterCidrSettings added in v1.16.0

type ClusterCidrSettings struct {
	ClusterCidr               string
	IgnoreClusterCidrConflict bool
	MaxNodePodNum             int64
	MaxClusterServiceNum      int64
}

type ClusterInfo added in v1.16.0

type Config

type Config struct {
	SecretId      string
	SecretKey     string
	SecurityToken string
	Region        string
}

func (*Config) Client

func (c *Config) Client() (interface{}, error)

type CosService added in v1.6.0

type CosService struct {
	// contains filtered or unexported fields
}

func (*CosService) DeleteBucket added in v1.6.0

func (me *CosService) DeleteBucket(ctx context.Context, bucket string) (errRet error)

func (*CosService) DeleteObject added in v1.6.0

func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (errRet error)

func (*CosService) GetBucketCors added in v1.6.0

func (me *CosService) GetBucketCors(ctx context.Context, bucket string) (corsRules []map[string]interface{}, errRet error)

func (*CosService) GetBucketLifecycle added in v1.6.0

func (me *CosService) GetBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)

func (*CosService) GetBucketTags added in v1.24.1

func (me *CosService) GetBucketTags(ctx context.Context, bucket string) (map[string]string, error)

func (*CosService) GetBucketWebsite added in v1.6.0

func (me *CosService) GetBucketWebsite(ctx context.Context, bucket string) (websites []map[string]interface{}, errRet error)

func (*CosService) GetDataSourceBucketLifecycle added in v1.6.0

func (me *CosService) GetDataSourceBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)

func (*CosService) HeadBucket added in v1.6.0

func (me *CosService) HeadBucket(ctx context.Context, bucket string) (errRet error)

func (*CosService) HeadObject added in v1.6.0

func (me *CosService) HeadObject(ctx context.Context, bucket, key string) (info *s3.HeadObjectOutput, errRet error)

func (*CosService) ListBuckets added in v1.6.0

func (me *CosService) ListBuckets(ctx context.Context) (buckets []*s3.Bucket, errRet error)

func (*CosService) ListObjects added in v1.6.0

func (me *CosService) ListObjects(ctx context.Context, bucket string) (objects []*s3.Object, errRet error)

func (*CosService) PutBucket added in v1.6.0

func (me *CosService) PutBucket(ctx context.Context, bucket, acl string) (errRet error)

func (*CosService) PutObjectAcl added in v1.6.0

func (me *CosService) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)

func (*CosService) SetBucketTags added in v1.24.1

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.16.1

type CvmService struct {
	// contains filtered or unexported fields
}

func (*CvmService) CreateKeyPair added in v1.20.0

func (me *CvmService) CreateKeyPair(ctx context.Context, keyName, publicKey string, projectId int64) (keyId string, errRet error)

func (*CvmService) CreatePlacementGroup added in v1.20.0

func (me *CvmService) CreatePlacementGroup(ctx context.Context, placementName, placementType string) (placementId string, errRet error)

func (*CvmService) CreateReservedInstance added in v1.21.0

func (me *CvmService) CreateReservedInstance(ctx context.Context, configId string, count int64) (instanceId string, errRet error)

func (*CvmService) DeleteInstance added in v1.16.1

func (me *CvmService) DeleteInstance(ctx context.Context, instanceId string) error

func (*CvmService) DeleteKeyPair added in v1.20.0

func (me *CvmService) DeleteKeyPair(ctx context.Context, keyId string) error

func (*CvmService) DeletePlacementGroup added in v1.20.0

func (me *CvmService) DeletePlacementGroup(ctx context.Context, placementId string) error

func (*CvmService) DescribeImagesByFilter added in v1.23.0

func (me *CvmService) DescribeImagesByFilter(ctx context.Context, filters map[string][]string) (images []*cvm.Image, errRet error)

func (*CvmService) DescribeInstanceByFilter added in v1.16.1

func (me *CvmService) DescribeInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.Instance, errRet error)

func (*CvmService) DescribeInstanceById added in v1.16.1

func (me *CvmService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *cvm.Instance, errRet error)

func (*CvmService) DescribeInstanceTypes added in v1.20.0

func (me *CvmService) DescribeInstanceTypes(ctx context.Context, zone string) (instanceTypes []*cvm.InstanceTypeConfig, errRet error)

func (*CvmService) DescribeInstanceTypesByFilter added in v1.20.0

func (me *CvmService) DescribeInstanceTypesByFilter(ctx context.Context, filters map[string][]string) (instanceTypes []*cvm.InstanceTypeConfig, errRet error)

func (*CvmService) DescribeKeyPairByFilter added in v1.20.0

func (me *CvmService) DescribeKeyPairByFilter(ctx context.Context, id, name string, projectId *int) (keyPairs []*cvm.KeyPair, errRet error)

func (*CvmService) DescribeKeyPairById added in v1.20.0

func (me *CvmService) DescribeKeyPairById(ctx context.Context, keyId string) (keyPair *cvm.KeyPair, errRet error)

func (*CvmService) DescribePlacementGroupByFilter added in v1.20.0

func (me *CvmService) DescribePlacementGroupByFilter(ctx context.Context, id, name string) (placementGroups []*cvm.DisasterRecoverGroup, errRet error)

func (*CvmService) DescribePlacementGroupById added in v1.20.0

func (me *CvmService) DescribePlacementGroupById(ctx context.Context, placementId string) (placementGroup *cvm.DisasterRecoverGroup, errRet error)

func (*CvmService) DescribeReservedInstanceByFilter added in v1.21.0

func (me *CvmService) DescribeReservedInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.ReservedInstances, errRet error)

func (*CvmService) DescribeReservedInstanceConfigs added in v1.21.0

func (me *CvmService) DescribeReservedInstanceConfigs(ctx context.Context, filters map[string]string) (configs []*cvm.ReservedInstancesOffering, errRet error)

func (*CvmService) DescribeZones added in v1.20.1

func (me *CvmService) DescribeZones(ctx context.Context) (zones []*cvm.ZoneInfo, errRet error)

func (*CvmService) ModifyInstanceName added in v1.16.1

func (me *CvmService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) error

func (*CvmService) ModifyInstanceType added in v1.16.1

func (me *CvmService) ModifyInstanceType(ctx context.Context, instanceId, instanceType string) error

func (*CvmService) ModifyKeyPairName added in v1.20.0

func (me *CvmService) ModifyKeyPairName(ctx context.Context, keyId, keyName string) error

func (*CvmService) ModifyPassword added in v1.16.1

func (me *CvmService) ModifyPassword(ctx context.Context, instanceId, password string) error

func (*CvmService) ModifyPlacementGroup added in v1.20.0

func (me *CvmService) ModifyPlacementGroup(ctx context.Context, placementId, name string) error

func (*CvmService) ModifyProjectId added in v1.16.1

func (me *CvmService) ModifyProjectId(ctx context.Context, instanceId string, projectId int64) error

func (*CvmService) ModifySecurityGroups added in v1.16.1

func (me *CvmService) ModifySecurityGroups(ctx context.Context, instanceId string, securityGroups []*string) error

func (*CvmService) ModifyVpc added in v1.16.1

func (me *CvmService) ModifyVpc(ctx context.Context, instanceId, vpcId, subnetId, privateIp string) error

func (*CvmService) StartInstance added in v1.16.1

func (me *CvmService) StartInstance(ctx context.Context, instanceId string) error

func (*CvmService) StopInstance added in v1.16.1

func (me *CvmService) StopInstance(ctx context.Context, instanceId string) error

func (*CvmService) UnbindKeyPair added in v1.20.0

func (me *CvmService) UnbindKeyPair(ctx context.Context, keyId string, instanceIds []*string) error

type DcService added in v1.12.0

type DcService struct {
	// contains filtered or unexported fields
}

func (*DcService) CreateDirectConnectTunnel added in v1.12.0

func (me *DcService) CreateDirectConnectTunnel(ctx context.Context, dcId, dcxName, networkType,
	networkRegion, vpcId, routeType, bgpAuthKey,
	tencentAddress, customerAddress, dcgId string,
	bgpAsn, vlan, bandwidth int64,
	routeFilterPrefixes []string) (dcxId string, errRet error)

func (*DcService) DeleteDirectConnectTunnel added in v1.12.0

func (me *DcService) DeleteDirectConnectTunnel(ctx context.Context, dcxId string) (errRet error)

func (*DcService) DescribeDirectConnectTunnel added in v1.12.0

func (me *DcService) DescribeDirectConnectTunnel(ctx context.Context, dcxId string) (info dc.DirectConnectTunnel, has int64, errRet error)

func (*DcService) DescribeDirectConnectTunnels added in v1.12.0

func (me *DcService) DescribeDirectConnectTunnels(ctx context.Context, dcxId,
	name string) (infos []dc.DirectConnectTunnel, errRet error)

func (*DcService) DescribeDirectConnects added in v1.12.0

func (me *DcService) DescribeDirectConnects(ctx context.Context, dcId,
	name string) (infos []dc.DirectConnect, errRet error)

func (*DcService) ModifyDirectConnectTunnelAttribute added in v1.12.0

func (me *DcService) ModifyDirectConnectTunnelAttribute(ctx context.Context, dcxId string,
	name, bgpAuthKey, tencentAddress, customerAddress string,
	bandwidth, bgpAsn int64,
	routeFilterPrefixes []string) (errRet error)

type DcgInstanceInfo added in v1.13.0

type DcgInstanceInfo struct {
	// contains filtered or unexported fields
}

info for one direct connect gateway.

type DcgRouteInfo added in v1.13.0

type DcgRouteInfo struct {
	// contains filtered or unexported fields
}

info for direct connect gateway[ ccn type] route.

type EipAssociationId added in v1.20.0

type EipAssociationId struct {
	EipId              string
	InstanceId         string
	NetworkInterfaceId string
	PrivateIp          string
}

type GaapService added in v1.17.0

type GaapService struct {
	// contains filtered or unexported fields
}

func (*GaapService) BindHttpRuleRealservers added in v1.17.0

func (me *GaapService) BindHttpRuleRealservers(ctx context.Context, listenerId, ruleId string, realservers []gaapRealserverBind) error

func (*GaapService) BindLayer4ListenerRealservers added in v1.17.0

func (me *GaapService) BindLayer4ListenerRealservers(ctx context.Context, id, protocol, proxyId string, realserverBinds []gaapRealserverBind) error

func (*GaapService) CreateHTTPDomain added in v1.17.0

func (me *GaapService) CreateHTTPDomain(ctx context.Context, listenerId, domain string) error

func (*GaapService) CreateHTTPListener added in v1.17.0

func (me *GaapService) CreateHTTPListener(ctx context.Context, name, proxyId string, port int) (id string, err error)

func (*GaapService) CreateHTTPSDomain added in v1.17.0

func (me *GaapService) CreateHTTPSDomain(ctx context.Context, listenerId, domain, certificateId, clientCertificateId string) error

func (*GaapService) CreateHTTPSListener added in v1.17.0

func (me *GaapService) CreateHTTPSListener(
	ctx context.Context,
	name, certificateId, clientCertificateId, forwardProtocol, proxyId string,
	port, authType int,
) (id string, err error)

func (*GaapService) CreateHttpRule added in v1.17.0

func (me *GaapService) CreateHttpRule(ctx context.Context, httpRule gaapHttpRule) (id string, err error)

func (*GaapService) CreateProxy added in v1.17.0

func (me *GaapService) CreateProxy(
	ctx context.Context,
	name, accessRegion, realserverRegion string,
	bandwidth, concurrent, projectId int,
	tags map[string]string,
) (id string, err error)

func (*GaapService) CreateRealserver added in v1.17.0

func (me *GaapService) CreateRealserver(ctx context.Context, address, name string, projectId int, tags map[string]string) (id string, err error)

func (*GaapService) CreateSecurityPolicy added in v1.17.0

func (me *GaapService) CreateSecurityPolicy(ctx context.Context, proxyId, action string) (id string, err error)

func (*GaapService) CreateSecurityRule added in v1.17.0

func (me *GaapService) CreateSecurityRule(
	ctx context.Context,
	policyId, name, cidrIp, port, action, protocol string,
) (id string, err error)

func (*GaapService) CreateTCPListener added in v1.17.0

func (me *GaapService) CreateTCPListener(
	ctx context.Context,
	name, scheduler, realserverType, proxyId string,
	port, interval, connectTimeout int,
	healthCheck bool,
) (id string, err error)

func (*GaapService) CreateUDPListener added in v1.17.0

func (me *GaapService) CreateUDPListener(
	ctx context.Context,
	name, scheduler, realserverType, proxyId string,
	port int,
) (id string, err error)

func (*GaapService) DeleteCertificate added in v1.17.0

func (me *GaapService) DeleteCertificate(ctx context.Context, id string) error

func (*GaapService) DeleteDomain added in v1.17.0

func (me *GaapService) DeleteDomain(ctx context.Context, listenerId, domain string) error

func (*GaapService) DeleteHttpRule added in v1.17.0

func (me *GaapService) DeleteHttpRule(ctx context.Context, listenerId, ruleId string) error

func (*GaapService) DeleteLayer4Listener added in v1.17.0

func (me *GaapService) DeleteLayer4Listener(ctx context.Context, id, proxyId, protocol string) error

func (*GaapService) DeleteLayer7Listener added in v1.17.0

func (me *GaapService) DeleteLayer7Listener(ctx context.Context, id, proxyId, protocol string) error

func (*GaapService) DeleteProxy added in v1.17.0

func (me *GaapService) DeleteProxy(ctx context.Context, id string) error

func (*GaapService) DeleteRealserver added in v1.17.0

func (me *GaapService) DeleteRealserver(ctx context.Context, id string) error

func (*GaapService) DeleteSecurityPolicy added in v1.17.0

func (me *GaapService) DeleteSecurityPolicy(ctx context.Context, id string) error

func (*GaapService) DeleteSecurityRule added in v1.17.0

func (me *GaapService) DeleteSecurityRule(ctx context.Context, policyId, ruleId string) error

func (*GaapService) DescribeCertificateById added in v1.17.0

func (me *GaapService) DescribeCertificateById(ctx context.Context, id string) (certificate *gaap.CertificateDetail, err error)

func (*GaapService) DescribeCertificates added in v1.17.0

func (me *GaapService) DescribeCertificates(ctx context.Context, id, name *string, certificateType *int) (certificates []*gaap.Certificate, err error)

func (*GaapService) DescribeDomain added in v1.17.0

func (me *GaapService) DescribeDomain(ctx context.Context, listenerId, domain string) (domainRet *gaap.DomainRuleSet, err error)

func (*GaapService) DescribeDomains added in v1.17.0

func (me *GaapService) DescribeDomains(ctx context.Context, listenerId, domain string) (domains []*gaap.DomainRuleSet, err error)

func (*GaapService) DescribeHTTPListeners added in v1.17.0

func (me *GaapService) DescribeHTTPListeners(
	ctx context.Context,
	proxyId, id, name *string,
	port *int,
) (listeners []*gaap.HTTPListener, err error)

func (*GaapService) DescribeHTTPSListeners added in v1.17.0

func (me *GaapService) DescribeHTTPSListeners(
	ctx context.Context,
	proxyId, listenerId, name *string,
	port *int,
) (listeners []*gaap.HTTPSListener, err error)

func (*GaapService) DescribeHttpRule added in v1.17.0

func (me *GaapService) DescribeHttpRule(ctx context.Context, listenerId, ruleId string) (httpRule *gaapHttpRule, realservers []gaapRealserverBind, err error)

func (*GaapService) DescribeProxies added in v1.17.0

func (me *GaapService) DescribeProxies(
	ctx context.Context,
	ids []string,
	projectId *int,
	accessRegion, realserverRegion *string,
	tags map[string]string,
) (proxies []*gaap.ProxyInfo, err error)

func (*GaapService) DescribeRealservers added in v1.17.0

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.17.0

func (me *GaapService) DescribeSecurityPolicy(ctx context.Context, id string) (proxyId, status, action string, exist bool, err error)

func (*GaapService) DescribeSecurityRule added in v1.17.0

func (me *GaapService) DescribeSecurityRule(ctx context.Context, policyId, ruleId string) (securityRule *gaap.SecurityPolicyRuleOut, err error)

func (*GaapService) DescribeSecurityRules added in v1.17.0

func (me *GaapService) DescribeSecurityRules(ctx context.Context, policyId string) (securityRules []*gaap.SecurityPolicyRuleOut, err error)

func (*GaapService) DescribeTCPListeners added in v1.17.0

func (me *GaapService) DescribeTCPListeners(ctx context.Context, proxyId string, listenerId, name *string, port *int) (listeners []*gaap.TCPListener, err error)

func (*GaapService) DescribeUDPListeners added in v1.17.0

func (me *GaapService) DescribeUDPListeners(ctx context.Context, proxyId string, id, name *string, port *int) (listeners []*gaap.UDPListener, err error)

func (*GaapService) DisableProxy added in v1.17.0

func (me *GaapService) DisableProxy(ctx context.Context, id string) error

func (*GaapService) DisableSecurityPolicy added in v1.17.0

func (me *GaapService) DisableSecurityPolicy(ctx context.Context, proxyId, policyId string) error

func (*GaapService) EnableProxy added in v1.17.0

func (me *GaapService) EnableProxy(ctx context.Context, id string) error

func (*GaapService) EnableSecurityPolicy added in v1.17.0

func (me *GaapService) EnableSecurityPolicy(ctx context.Context, proxyId, policyId string) error

func (*GaapService) ModifyCertificateName added in v1.17.0

func (me *GaapService) ModifyCertificateName(ctx context.Context, id, name string) error

func (*GaapService) ModifyDomainCertificate added in v1.17.0

func (me *GaapService) ModifyDomainCertificate(
	ctx context.Context,
	listenerId, domain, certificateId string,
	clientCertificateId *string,
) error

func (*GaapService) ModifyHTTPListener added in v1.17.0

func (me *GaapService) ModifyHTTPListener(ctx context.Context, id, proxyId, name string) error

func (*GaapService) ModifyHTTPRuleAttribute added in v1.17.0

func (me *GaapService) ModifyHTTPRuleAttribute(
	ctx context.Context,
	listenerId, ruleId, healthCheckPath, healthCheckMethod string,
	path, scheduler *string,
	healthCheck bool,
	interval, connectTimeout int,
	healthCheckStatusCodes []int,
) error

func (*GaapService) ModifyHTTPRuleForwardHost added in v1.20.0

func (me *GaapService) ModifyHTTPRuleForwardHost(ctx context.Context, listenerId, ruleId, forwardHost string) error

func (*GaapService) ModifyHTTPSListener added in v1.17.0

func (me *GaapService) ModifyHTTPSListener(
	ctx context.Context,
	proxyId, id string,
	name, forwardProtocol, certificateId, clientCertificateId *string,
) error

func (*GaapService) ModifyProxyConfiguration added in v1.17.0

func (me *GaapService) ModifyProxyConfiguration(ctx context.Context, id string, bandwidth, concurrent *int) error

func (*GaapService) ModifyProxyName added in v1.17.0

func (me *GaapService) ModifyProxyName(ctx context.Context, id, name string) error

func (*GaapService) ModifyProxyProjectId added in v1.17.0

func (me *GaapService) ModifyProxyProjectId(ctx context.Context, id string, projectId int) error

func (*GaapService) ModifyRealserverName added in v1.17.0

func (me *GaapService) ModifyRealserverName(ctx context.Context, id, name string) error

func (*GaapService) ModifySecurityRuleName added in v1.17.0

func (me *GaapService) ModifySecurityRuleName(ctx context.Context, policyId, ruleId, name string) error

func (*GaapService) ModifyTCPListenerAttribute added in v1.17.0

func (me *GaapService) ModifyTCPListenerAttribute(
	ctx context.Context,
	proxyId, id string,
	name, scheduler *string,
	healthCheck *bool,
	interval, connectTimeout int,
) error

func (*GaapService) ModifyUDPListenerAttribute added in v1.17.0

func (me *GaapService) ModifyUDPListenerAttribute(
	ctx context.Context,
	proxyId, id string,
	name, scheduler *string,
) error

func (*GaapService) SetAdvancedAuth added in v1.17.0

func (me *GaapService) SetAdvancedAuth(
	ctx context.Context,
	listenerId, domain string,
	realserverAuth, basicAuth, gaapAuth *bool,
	realserverCertificateId, realserverCertificateDomain, basicAuthId, gaapAuthId *string,
) error

type InstanceAdvancedSettings added in v1.23.0

type InstanceAdvancedSettings struct {
	MountTarget     string
	DockerGraphPath string
	UserScript      string
	Unschedulable   int64
}

type InstanceInfo added in v1.16.0

type InstanceInfo struct {
	InstanceId    string
	InstanceRole  string
	InstanceState string
	FailedReason  string
}

type MongodbService added in v1.14.0

type MongodbService struct {
	// contains filtered or unexported fields
}

func (*MongodbService) DeleteInstance added in v1.14.0

func (me *MongodbService) DeleteInstance(ctx context.Context, instanceId string) error

func (*MongodbService) DescribeInstanceById added in v1.14.0

func (me *MongodbService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *mongodb.MongoDBInstanceDetail, errRet error)

func (*MongodbService) DescribeInstancesByFilter added in v1.14.0

func (me *MongodbService) DescribeInstancesByFilter(ctx context.Context, instanceId string,
	clusterType int) (mongodbs []*mongodb.MongoDBInstanceDetail, errRet error)

func (*MongodbService) DescribeSpecInfo added in v1.14.0

func (me *MongodbService) DescribeSpecInfo(ctx context.Context, zone string) (infos []*mongodb.SpecificationInfo, errRet error)

func (*MongodbService) ModifyInstanceName added in v1.14.0

func (me *MongodbService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) error

func (*MongodbService) ModifyProjectId added in v1.14.0

func (me *MongodbService) ModifyProjectId(ctx context.Context, instanceId string, projectId int) error

func (*MongodbService) SetInstancePassword added in v1.14.0

func (me *MongodbService) SetInstancePassword(ctx context.Context, instanceId, accountName, password string) error

func (*MongodbService) UpgradeInstance added in v1.14.0

func (me *MongodbService) UpgradeInstance(ctx context.Context, instanceId string, memory, volume int) error

type MysqlService added in v1.5.0

type MysqlService struct {
	// contains filtered or unexported fields
}

func (*MysqlService) CheckDBGTIDOpen added in v1.5.0

func (me *MysqlService) CheckDBGTIDOpen(ctx context.Context, mysqlId string) (open int64, errRet error)

func (*MysqlService) CloseWanService added in v1.5.0

func (me *MysqlService) CloseWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) CreateAccount added in v1.5.0

func (me *MysqlService) CreateAccount(ctx context.Context, mysqlId string,
	accountName, accountPassword, accountDescription string) (asyncRequestId string, errRet error)

func (*MysqlService) CreateBackup added in v1.5.0

func (me *MysqlService) CreateBackup(ctx context.Context, mysqlId string) (backupId int64, errRet error)

func (*MysqlService) DeleteAccount added in v1.5.0

func (me *MysqlService) DeleteAccount(ctx context.Context, mysqlId string,
	accountName string) (asyncRequestId string, errRet error)

func (*MysqlService) DescribeAccountPrivileges added in v1.5.0

func (me *MysqlService) DescribeAccountPrivileges(ctx context.Context, mysqlId string,
	accountName string, databaseNames []string) (privileges []string, errRet error)

func (*MysqlService) DescribeAccounts added in v1.5.0

func (me *MysqlService) DescribeAccounts(ctx context.Context, mysqlId string) (accountInfos []*cdb.AccountInfo, errRet error)

func (*MysqlService) DescribeAsyncRequestInfo added in v1.5.0

func (me *MysqlService) DescribeAsyncRequestInfo(ctx context.Context, asyncRequestId string) (status, message string, errRet error)

func (*MysqlService) DescribeBackupConfigByMysqlId added in v1.5.0

func (me *MysqlService) DescribeBackupConfigByMysqlId(ctx context.Context, mysqlId string) (desResponse *cdb.DescribeBackupConfigResponse, errRet error)

func (*MysqlService) DescribeBackupsByMysqlId added in v1.5.0

func (me *MysqlService) DescribeBackupsByMysqlId(ctx context.Context,
	mysqlId string,
	leftNumber int64) (backupInfos []*cdb.BackupInfo, errRet error)

func (*MysqlService) DescribeCaresParameters added in v1.5.0

func (me *MysqlService) DescribeCaresParameters(ctx context.Context, instanceId string, cares []string) (caresKv map[string]interface{}, errRet error)

func (*MysqlService) DescribeDBInstanceById added in v1.5.0

func (me *MysqlService) DescribeDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)

func (*MysqlService) DescribeDBInstanceConfig added in v1.5.0

func (me *MysqlService) DescribeDBInstanceConfig(ctx context.Context, mysqlId string) (backupConfig *cdb.DescribeDBInstanceConfigResponse,
	errRet error)

func (*MysqlService) DescribeDBSecurityGroups added in v1.5.0

func (me *MysqlService) DescribeDBSecurityGroups(ctx context.Context, mysqlId string) (securityGroups []string, errRet error)

func (*MysqlService) DescribeDBZoneConfig added in v1.5.0

func (me *MysqlService) DescribeDBZoneConfig(ctx context.Context) (sellConfigures []*cdb.RegionSellConf, errRet error)

func (*MysqlService) DescribeDefaultParameters added in v1.5.0

func (me *MysqlService) DescribeDefaultParameters(ctx context.Context, engineVersion string) (parameterList []*cdb.ParameterDetail, errRet error)

func (*MysqlService) DescribeInstanceParameters added in v1.5.0

func (me *MysqlService) DescribeInstanceParameters(ctx context.Context, instanceId string) (parameterList []*cdb.ParameterDetail, errRet error)

func (*MysqlService) DescribeIsolatedDBInstanceById added in v1.13.0

func (me *MysqlService) DescribeIsolatedDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)

func (*MysqlService) DescribeRunningDBInstanceById added in v1.5.0

func (me *MysqlService) DescribeRunningDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)

func (*MysqlService) DescribeTagsOfInstanceId added in v1.5.0

func (me *MysqlService) DescribeTagsOfInstanceId(ctx context.Context, mysqlId string) (tags map[string]string, errRet error)

func (*MysqlService) DisassociateSecurityGroup added in v1.5.0

func (me *MysqlService) DisassociateSecurityGroup(ctx context.Context, mysqlId string, securityGroup string) (errRet error)

func (*MysqlService) InitDBInstances added in v1.5.0

func (me *MysqlService) InitDBInstances(ctx context.Context, mysqlId string, password string) (asyncRequestId string, errRet error)

func (*MysqlService) IsolateDBInstance added in v1.5.0

func (me *MysqlService) IsolateDBInstance(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountDescription added in v1.5.0

func (me *MysqlService) ModifyAccountDescription(ctx context.Context, mysqlId string,
	accountName, accountDescription string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountPassword added in v1.5.0

func (me *MysqlService) ModifyAccountPassword(ctx context.Context, mysqlId string,
	accountName, accountPassword string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountPrivileges added in v1.5.0

func (me *MysqlService) ModifyAccountPrivileges(ctx context.Context, mysqlId string,
	accountName string, databaseNames []string, privileges []string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAutoRenewFlag added in v1.5.0

func (me *MysqlService) ModifyAutoRenewFlag(ctx context.Context, mysqlId string, newRenewFlag int64) (errRet error)

func (*MysqlService) ModifyBackupConfigByMysqlId added in v1.5.0

func (me *MysqlService) ModifyBackupConfigByMysqlId(ctx context.Context, mysqlId string,
	retentionPeriod int64, backupModel, backupTime string) (errRet error)

func (*MysqlService) ModifyDBInstanceName added in v1.5.0

func (me *MysqlService) ModifyDBInstanceName(ctx context.Context, mysqlId,
	newInstanceName string) (errRet error)

func (*MysqlService) ModifyDBInstanceProject added in v1.5.0

func (me *MysqlService) ModifyDBInstanceProject(ctx context.Context, mysqlId string, newProjectId int64) (errRet error)

func (*MysqlService) ModifyDBInstanceSecurityGroups added in v1.5.0

func (me *MysqlService) ModifyDBInstanceSecurityGroups(ctx context.Context, mysqlId string, securityGroups []string) (errRet error)

func (*MysqlService) ModifyDBInstanceVipVport added in v1.5.0

func (me *MysqlService) ModifyDBInstanceVipVport(ctx context.Context, mysqlId, vpcId, subnetId string, port int64) (errRet error)

func (*MysqlService) ModifyInstanceParam added in v1.5.0

func (me *MysqlService) ModifyInstanceParam(ctx context.Context, instanceId string, params map[string]string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyInstanceTag added in v1.5.0

func (me *MysqlService) ModifyInstanceTag(ctx context.Context, mysqlId string, deleteTags, modifyTags map[string]string) (errRet error)

func (*MysqlService) NotFoundMysqlInstance added in v1.5.0

func (me *MysqlService) NotFoundMysqlInstance(err error) bool

check if the err means the mysql_id is not found

func (*MysqlService) OfflineIsolatedInstances added in v1.12.0

func (me *MysqlService) OfflineIsolatedInstances(ctx context.Context, mysqlId string) (errRet error)

func (*MysqlService) OpenDBInstanceGTID added in v1.5.0

func (me *MysqlService) OpenDBInstanceGTID(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) OpenWanService added in v1.5.0

func (me *MysqlService) OpenWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) UpgradeDBInstance added in v1.5.0

func (me *MysqlService) UpgradeDBInstance(ctx context.Context, mysqlId string,
	memSize, volumeSize int64) (asyncRequestId string, errRet error)

type RedisService added in v1.7.0

type RedisService struct {
	// contains filtered or unexported fields
}

func (*RedisService) CheckRedisCreateOk added in v1.7.0

func (me *RedisService) CheckRedisCreateOk(ctx context.Context, redisId string) (has bool,
	online bool,
	info *redis.InstanceSet,
	errRet error)

func (*RedisService) CleanUpInstance added in v1.15.1

func (me *RedisService) CleanUpInstance(ctx context.Context, redisId string) (taskId int64, errRet error)

func (*RedisService) CreateInstances added in v1.7.0

func (me *RedisService) CreateInstances(ctx context.Context,
	zoneName, typeId, password, vpcId, subnetId, redisName string,
	memSize, projectId, port int64,
	securityGroups []string) (dealId string, errRet error)

func (*RedisService) DescribeAutoBackupConfig added in v1.7.0

func (me *RedisService) DescribeAutoBackupConfig(ctx context.Context, redisId string) (weekDays []string, timePeriod string, errRet error)

func (*RedisService) DescribeInstanceDealDetail added in v1.7.0

func (me *RedisService) DescribeInstanceDealDetail(ctx context.Context, dealId string) (done bool, redisId string, errRet error)

func (*RedisService) DescribeInstanceSecurityGroup added in v1.7.0

func (me *RedisService) DescribeInstanceSecurityGroup(ctx context.Context, redisId string) (sg []string, errRet error)

func (*RedisService) DescribeInstances added in v1.7.0

func (me *RedisService) DescribeInstances(ctx context.Context, zoneName, searchKey string,
	projectId, needLimit int64) (instances []TencentCloudRedisDetail, errRet error)

func (*RedisService) DescribeRedisZoneConfig added in v1.7.0

func (me *RedisService) DescribeRedisZoneConfig(ctx context.Context) (sellConfigures []*redis.RegionConf, errRet error)

func (*RedisService) DescribeTaskInfo added in v1.7.0

func (me *RedisService) DescribeTaskInfo(ctx context.Context, redisId string, taskId int64) (ok bool, errRet error)

func (*RedisService) DestroyPostpaidInstance added in v1.7.0

func (me *RedisService) DestroyPostpaidInstance(ctx context.Context, redisId string) (taskId int64, errRet error)

func (*RedisService) ModifyAutoBackupConfig added in v1.7.0

func (me *RedisService) ModifyAutoBackupConfig(ctx context.Context, redisId string, weekDays []string, timePeriod string) (errRet error)

func (*RedisService) ModifyInstanceName added in v1.7.0

func (me *RedisService) ModifyInstanceName(ctx context.Context, redisId string, name string) (errRet error)

func (*RedisService) ModifyInstanceProjectId added in v1.7.0

func (me *RedisService) ModifyInstanceProjectId(ctx context.Context, redisId string, projectId int64) (errRet error)

func (*RedisService) ResetPassword added in v1.7.0

func (me *RedisService) ResetPassword(ctx context.Context, redisId string, newPassword string) (taskId int64, errRet error)

func (*RedisService) UpgradeInstance added in v1.7.0

func (me *RedisService) UpgradeInstance(ctx context.Context, redisId string, newMemSize int64) (dealId string, errRet error)

type RunInstancesForNode added in v1.16.0

type RunInstancesForNode struct {
	Master []string
	Work   []string
}

type ScfService added in v1.22.0

type ScfService struct {
	// contains filtered or unexported fields
}

func (*ScfService) CreateFunction added in v1.22.0

func (me *ScfService) CreateFunction(ctx context.Context, info scfFunctionInfo) error

func (*ScfService) CreateNamespace added in v1.22.0

func (me *ScfService) CreateNamespace(ctx context.Context, namespace, desc string) error

func (*ScfService) CreateTriggers added in v1.22.0

func (me *ScfService) CreateTriggers(ctx context.Context, functionName, namespace string, triggers []scfTrigger) error

func (*ScfService) DeleteFunction added in v1.22.0

func (me *ScfService) DeleteFunction(ctx context.Context, name, namespace string) error

func (*ScfService) DeleteNamespace added in v1.22.0

func (me *ScfService) DeleteNamespace(ctx context.Context, namespace string) error

func (*ScfService) DeleteTriggers added in v1.22.0

func (me *ScfService) DeleteTriggers(ctx context.Context, functionName, namespace string, triggers []scfTrigger) error

func (*ScfService) DescribeFunction added in v1.22.0

func (me *ScfService) DescribeFunction(ctx context.Context, name, namespace string) (resp *scf.GetFunctionResponse, err error)

func (*ScfService) DescribeFunctions added in v1.22.0

func (me *ScfService) DescribeFunctions(ctx context.Context, name, namespace, desc *string, tags map[string]string) (functions []*scf.Function, err error)

func (*ScfService) DescribeLogs added in v1.22.0

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.22.0

func (me *ScfService) DescribeNamespace(ctx context.Context, namespace string) (ns *scf.Namespace, err error)

func (*ScfService) DescribeNamespaces added in v1.22.0

func (me *ScfService) DescribeNamespaces(ctx context.Context) (nss []*scf.Namespace, err error)

func (*ScfService) ModifyFunctionCode added in v1.22.0

func (me *ScfService) ModifyFunctionCode(ctx context.Context, info scfFunctionInfo) error

func (*ScfService) ModifyFunctionConfig added in v1.22.0

func (me *ScfService) ModifyFunctionConfig(ctx context.Context, info scfFunctionInfo) error

func (*ScfService) ModifyNamespace added in v1.22.0

func (me *ScfService) ModifyNamespace(ctx context.Context, namespace, desc string) error

type SslService added in v1.18.0

type SslService struct {
	// contains filtered or unexported fields
}

func (*SslService) CreateCertificate added in v1.18.0

func (me *SslService) CreateCertificate(ctx context.Context, certType, cert, name string, projectId int, key *string) (id string, err error)

func (*SslService) DeleteCertificate added in v1.18.0

func (me *SslService) DeleteCertificate(ctx context.Context, id string) error

func (*SslService) DescribeCertificates added in v1.18.0

func (me *SslService) DescribeCertificates(ctx context.Context, id, name, certType *string) (certificates []*ssl.SSLCertificate, err error)

type TagService added in v1.16.1

type TagService struct {
	// contains filtered or unexported fields
}

func (*TagService) DescribeResourceTags added in v1.18.1

func (me *TagService) DescribeResourceTags(ctx context.Context, serviceType, resourceType, region, resourceId string) (tags map[string]string, err error)

func (*TagService) ModifyTags added in v1.16.1

func (me *TagService) ModifyTags(ctx context.Context, resourceName string, replaceTags map[string]string, deleteKeys []string) error

type TencentCloudClient

type TencentCloudClient struct {
	// contains filtered or unexported fields
}

type TencentCloudRedisDetail added in v1.7.0

type TencentCloudRedisDetail struct {
	RedisId    string
	Name       string
	Zone       string
	ProjectId  int64
	Type       string
	MemSize    int64
	Status     string
	VpcId      string
	SubnetId   string
	Ip         string
	Port       int64
	CreateTime string
	Tags       map[string]string
}

type TkeService added in v1.16.0

type TkeService struct {
	// contains filtered or unexported fields
}

func (*TkeService) CreateCluster added in v1.16.0

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) CreateClusterInstances added in v1.16.0

func (me *TkeService) CreateClusterInstances(ctx context.Context,
	id string, runInstancePara string,
	iAdvanced InstanceAdvancedSettings) (instanceIds []string, errRet error)

func (*TkeService) DeleteCluster added in v1.16.0

func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)

func (*TkeService) DeleteClusterInstances added in v1.16.0

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.16.0

func (me *TkeService) DescribeCluster(ctx context.Context, id string) (
	clusterInfo ClusterInfo,
	has bool,
	errRet error,
)

func (*TkeService) DescribeClusterInstances added in v1.16.0

func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)

func (*TkeService) DescribeClusterSecurity added in v1.18.1

func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)

func (*TkeService) DescribeClusters added in v1.16.0

func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)

type VpcBasicInfo added in v1.10.0

type VpcBasicInfo struct {
	// contains filtered or unexported fields
}

VPC basic information

type VpcEniIP added in v1.20.1

type VpcEniIP struct {
	// contains filtered or unexported fields
}

type VpcRouteEntryBasicInfo added in v1.10.0

type VpcRouteEntryBasicInfo struct {
	// contains filtered or unexported fields
}

route entry basic information

type VpcRouteTableBasicInfo added in v1.10.0

type VpcRouteTableBasicInfo struct {
	// contains filtered or unexported fields
}

route table basic information

type VpcSecurityGroupLiteRule added in v1.19.0

type VpcSecurityGroupLiteRule struct {
	// contains filtered or unexported fields
}

func (VpcSecurityGroupLiteRule) String added in v1.19.0

func (rule VpcSecurityGroupLiteRule) String() string

type VpcService added in v1.10.0

type VpcService struct {
	// contains filtered or unexported fields
}

func (*VpcService) AssignIpv4ToEni added in v1.20.1

func (me *VpcService) AssignIpv4ToEni(ctx context.Context, id string, ipv4s []VpcEniIP, ipv4Count *int) error

func (*VpcService) AttachCcnInstances added in v1.11.0

func (me *VpcService) AttachCcnInstances(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string) (errRet error)

func (*VpcService) AttachEip added in v1.20.0

func (me *VpcService) AttachEip(ctx context.Context, eipId, instanceId string) error

func (*VpcService) AttachEniToCvm added in v1.20.1

func (me *VpcService) AttachEniToCvm(ctx context.Context, eniId, cvmId string) error

func (*VpcService) AttachLiteRulesToSecurityGroup added in v1.19.0

func (me *VpcService) AttachLiteRulesToSecurityGroup(ctx context.Context, sgId string, ingress, egress []VpcSecurityGroupLiteRule) error

func (*VpcService) CreateCcn added in v1.11.0

func (me *VpcService) CreateCcn(ctx context.Context, name, description, qos string) (basicInfo CcnBasicInfo, errRet error)

func (*VpcService) CreateDirectConnectGateway added in v1.13.0

func (me *VpcService) CreateDirectConnectGateway(ctx context.Context, name, networkType, networkInstanceId, gatewayType string) (
	dcgId string, errRet error)

func (*VpcService) CreateDirectConnectGatewayCcnRoute added in v1.13.0

func (me *VpcService) CreateDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, cidr string, asPaths []string) (routeId string, errRet error)

func (*VpcService) CreateEni added in v1.20.1

func (me *VpcService) CreateEni(
	ctx context.Context,
	name, vpcId, subnetId, desc string,
	securityGroups []string,
	ipv4Count *int,
	ipv4s []VpcEniIP,
) (id string, err error)

func (*VpcService) CreateRouteTable added in v1.10.0

func (me *VpcService) CreateRouteTable(ctx context.Context, name, vpcId string) (routeTableId string, errRet error)

func (*VpcService) CreateRoutes added in v1.10.0

func (me *VpcService) CreateRoutes(ctx context.Context,
	routeTableId, destinationCidrBlock, nextType, nextHub, description string) (entryId int64, errRet error)

func (*VpcService) CreateSecurityGroup added in v1.14.0

func (me *VpcService) CreateSecurityGroup(ctx context.Context, name, desc string, projectId *int) (id string, err error)

func (*VpcService) CreateSecurityGroupPolicy added in v1.14.0

func (me *VpcService) CreateSecurityGroupPolicy(ctx context.Context, info securityGroupRuleBasicInfo) (ruleId string, err error)

func (*VpcService) CreateSubnet added in v1.10.0

func (me *VpcService) CreateSubnet(ctx context.Context, vpcId, name, cidr, zone string) (subnetId string, errRet error)

func (*VpcService) CreateVpc added in v1.10.0

func (me *VpcService) CreateVpc(ctx context.Context, name, cidr string,
	isMulticast bool, dnsServers []string) (vpcId string, isDefault bool, errRet error)

////////api

func (*VpcService) DeleteCcn added in v1.11.0

func (me *VpcService) DeleteCcn(ctx context.Context, ccnId string) (errRet error)

func (*VpcService) DeleteDirectConnectGateway added in v1.13.0

func (me *VpcService) DeleteDirectConnectGateway(ctx context.Context, dcgId string) (errRet error)

func (*VpcService) DeleteDirectConnectGatewayCcnRoute added in v1.13.0

func (me *VpcService) DeleteDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, routeId string) (errRet error)

func (*VpcService) DeleteEip added in v1.20.0

func (me *VpcService) DeleteEip(ctx context.Context, eipId string) error

func (*VpcService) DeleteEni added in v1.20.1

func (me *VpcService) DeleteEni(ctx context.Context, id string) error

func (*VpcService) DeleteRouteTable added in v1.10.0

func (me *VpcService) DeleteRouteTable(ctx context.Context, routeTableId string) (errRet error)

func (*VpcService) DeleteRoutes added in v1.10.0

func (me *VpcService) DeleteRoutes(ctx context.Context, routeTableId string, entryId uint64) (errRet error)

func (*VpcService) DeleteSecurityGroup added in v1.14.0

func (me *VpcService) DeleteSecurityGroup(ctx context.Context, id string) error

func (*VpcService) DeleteSecurityGroupPolicy added in v1.14.0

func (me *VpcService) DeleteSecurityGroupPolicy(ctx context.Context, ruleId string) error

func (*VpcService) DeleteSubnet added in v1.10.0

func (me *VpcService) DeleteSubnet(ctx context.Context, subnetId string) (errRet error)

func (*VpcService) DeleteVpc added in v1.10.0

func (me *VpcService) DeleteVpc(ctx context.Context, vpcId string) (errRet error)

func (*VpcService) DescribeCcn added in v1.11.0

func (me *VpcService) DescribeCcn(ctx context.Context, ccnId string) (info CcnBasicInfo, has int, errRet error)

func (*VpcService) DescribeCcnAttachedInstance added in v1.11.0

func (me *VpcService) DescribeCcnAttachedInstance(ctx context.Context, ccnId,
	instanceRegion, instanceType, instanceId string) (info CcnAttachedInstanceInfo, has int, errRet error)

func (*VpcService) DescribeCcnAttachedInstances added in v1.11.0

func (me *VpcService) DescribeCcnAttachedInstances(ctx context.Context, ccnId string) (infos []CcnAttachedInstanceInfo, errRet error)

func (*VpcService) DescribeCcnRegionBandwidthLimit added in v1.11.0

func (me *VpcService) DescribeCcnRegionBandwidthLimit(ctx context.Context, ccnId, region string) (bandwidth int64, errRet error)

func (*VpcService) DescribeCcnRegionBandwidthLimits added in v1.11.0

func (me *VpcService) DescribeCcnRegionBandwidthLimits(ctx context.Context, ccnId string) (infos []CcnBandwidthLimit, errRet error)

func (*VpcService) DescribeCcns added in v1.11.0

func (me *VpcService) DescribeCcns(ctx context.Context, ccnId, name string) (infos []CcnBasicInfo, errRet error)

func (*VpcService) DescribeDirectConnectGateway added in v1.13.0

func (me *VpcService) DescribeDirectConnectGateway(ctx context.Context, dcgId string) (info DcgInstanceInfo, has int, errRet error)

func (*VpcService) DescribeDirectConnectGatewayCcnRoute added in v1.13.0

func (me *VpcService) DescribeDirectConnectGatewayCcnRoute(ctx context.Context, dcgId, routeId string) (infoRet DcgRouteInfo, has int, errRet error)

func (*VpcService) DescribeDirectConnectGatewayCcnRoutes added in v1.13.0

func (me *VpcService) DescribeDirectConnectGatewayCcnRoutes(ctx context.Context, dcgId string) (infos []DcgRouteInfo, errRet error)

func (*VpcService) DescribeDirectConnectGateways added in v1.13.0

func (me *VpcService) DescribeDirectConnectGateways(ctx context.Context, dcgId, name string) (
	infos []DcgInstanceInfo, errRet error)

func (*VpcService) DescribeEipByFilter added in v1.20.0

func (me *VpcService) DescribeEipByFilter(ctx context.Context, filters map[string][]string) (eips []*vpc.Address, errRet error)

func (*VpcService) DescribeEipById added in v1.20.0

func (me *VpcService) DescribeEipById(ctx context.Context, eipId string) (eip *vpc.Address, errRet error)

EIP

func (*VpcService) DescribeEniByFilters added in v1.20.1

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.20.1

func (me *VpcService) DescribeEniById(ctx context.Context, ids []string) (enis []*vpc.NetworkInterface, err error)

func (*VpcService) DescribeHaVipEipById added in v1.24.0

func (me *VpcService) DescribeHaVipEipById(ctx context.Context, haVipEipAttachmentId string) (eip string, haVip string, errRet error)

func (*VpcService) DescribeRouteTable added in v1.10.0

func (me *VpcService) DescribeRouteTable(ctx context.Context, routeTableId string) (info VpcRouteTableBasicInfo, has int, errRet error)

func (*VpcService) DescribeRouteTables added in v1.10.0

func (me *VpcService) DescribeRouteTables(ctx context.Context, routeTableId, routeTableName, vpcId string, tags map[string]string) (infos []VpcRouteTableBasicInfo, errRet error)

func (*VpcService) DescribeSecurityGroup added in v1.14.0

func (me *VpcService) DescribeSecurityGroup(ctx context.Context, id string) (sg *vpc.SecurityGroup, err error)

func (*VpcService) DescribeSecurityGroupPolices added in v1.19.0

func (me *VpcService) DescribeSecurityGroupPolices(ctx context.Context, sgId string) (ingress, egress []VpcSecurityGroupLiteRule, exist bool, err error)

func (*VpcService) DescribeSecurityGroupPolicy added in v1.14.0

func (me *VpcService) DescribeSecurityGroupPolicy(ctx context.Context, ruleId string) (sgId string, policyType string, policy *vpc.SecurityGroupPolicy, errRet error)

func (*VpcService) DescribeSecurityGroups added in v1.14.0

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.14.0

func (me *VpcService) DescribeSecurityGroupsAssociate(ctx context.Context, ids []string) ([]*vpc.SecurityGroupAssociationStatistics, error)

func (*VpcService) DescribeSubnet added in v1.10.0

func (me *VpcService) DescribeSubnet(ctx context.Context, subnetId string) (info VpcSubnetBasicInfo, has int, errRet error)

func (*VpcService) DescribeSubnets added in v1.10.0

func (me *VpcService) DescribeSubnets(ctx context.Context, subnetId, vpcId, subnetName, zone string, tags map[string]string) (infos []VpcSubnetBasicInfo, errRet error)

func (*VpcService) DescribeVpc added in v1.10.0

func (me *VpcService) DescribeVpc(ctx context.Context, vpcId string) (info VpcBasicInfo, has int, errRet error)

func (*VpcService) DescribeVpcs added in v1.10.0

func (me *VpcService) DescribeVpcs(ctx context.Context, vpcId, name string, tags map[string]string) (infos []VpcBasicInfo, errRet error)

func (*VpcService) DetachAllLiteRulesFromSecurityGroup added in v1.19.0

func (me *VpcService) DetachAllLiteRulesFromSecurityGroup(ctx context.Context, sgId string) error

func (*VpcService) DetachCcnInstances added in v1.11.0

func (me *VpcService) DetachCcnInstances(ctx context.Context, ccnId, instanceRegion, instanceType, instanceId string) (errRet error)

func (*VpcService) DetachEniFromCvm added in v1.20.1

func (me *VpcService) DetachEniFromCvm(ctx context.Context, eniId, cvmId string) error

func (*VpcService) GetCcnRouteId added in v1.13.0

func (me *VpcService) GetCcnRouteId(ctx context.Context, dcgId, cidr string, asPaths []string) (routeId string, has int, errRet error)

func (*VpcService) GetRouteId added in v1.10.0

func (me *VpcService) GetRouteId(ctx context.Context,
	routeTableId, destinationCidrBlock, nextType, nextHub, description string) (entryId int64, errRet error)

func (*VpcService) IsRouteTableInVpc added in v1.10.0

func (me *VpcService) IsRouteTableInVpc(ctx context.Context, routeTableId, vpcId string) (info VpcRouteTableBasicInfo, has int, errRet error)

func (*VpcService) ModifyCcnAttribute added in v1.11.0

func (me *VpcService) ModifyCcnAttribute(ctx context.Context, ccnId, name, description string) (errRet error)

func (*VpcService) ModifyDirectConnectGatewayAttribute added in v1.13.0

func (me *VpcService) ModifyDirectConnectGatewayAttribute(ctx context.Context, dcgId, name string) (errRet error)

func (*VpcService) ModifyEipName added in v1.20.0

func (me *VpcService) ModifyEipName(ctx context.Context, eipId, eipName string) error

func (*VpcService) ModifyEniAttribute added in v1.20.1

func (me *VpcService) ModifyEniAttribute(ctx context.Context, id string, name, desc *string, sgs []string) error

func (*VpcService) ModifyEniPrimaryIpv4Desc added in v1.20.1

func (me *VpcService) ModifyEniPrimaryIpv4Desc(ctx context.Context, id, ip string, desc *string) error

func (*VpcService) ModifyRouteTableAttribute added in v1.10.0

func (me *VpcService) ModifyRouteTableAttribute(ctx context.Context, routeTableId string, name string) (errRet error)

func (*VpcService) ModifySecurityGroup added in v1.14.0

func (me *VpcService) ModifySecurityGroup(ctx context.Context, id string, newName, newDesc *string) error

func (*VpcService) ModifySecurityGroupPolicy added in v1.14.0

func (me *VpcService) ModifySecurityGroupPolicy(ctx context.Context, ruleId string, desc *string) error

func (*VpcService) ModifySubnetAttribute added in v1.10.0

func (me *VpcService) ModifySubnetAttribute(ctx context.Context, subnetId, name string, isMulticast bool) (errRet error)

func (*VpcService) ModifyVpcAttribute added in v1.10.0

func (me *VpcService) ModifyVpcAttribute(ctx context.Context, vpcId, name string, isMulticast bool, dnsServers []string) (errRet error)

func (*VpcService) ReplaceRouteTableAssociation added in v1.10.0

func (me *VpcService) ReplaceRouteTableAssociation(ctx context.Context, subnetId string, routeTableId string) (errRet error)

func (*VpcService) SetCcnRegionBandwidthLimits added in v1.11.0

func (me *VpcService) SetCcnRegionBandwidthLimits(ctx context.Context, ccnId, region string, bandwidth int64) (errRet error)

func (*VpcService) UnAssignIpv4FromEni added in v1.20.1

func (me *VpcService) UnAssignIpv4FromEni(ctx context.Context, id string, ipv4s []string) error

func (*VpcService) UnattachEip added in v1.20.0

func (me *VpcService) UnattachEip(ctx context.Context, eipId string) error

type VpcSubnetBasicInfo added in v1.10.0

type VpcSubnetBasicInfo struct {
	// contains filtered or unexported fields
}

subnet basic information

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL