Skip to content

Commit 5ba1ae2

Browse files
authored
doc: fix redis param template, security group rule/set description (#1455)
* doc: fix redis param template, security group rule/set description * fix: dnspod records, mysql examples
1 parent 4c892bf commit 5ba1ae2

10 files changed

+32
-12
lines changed

tencentcloud/data_source_tc_dnspod_records.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Example Usage
66
```hcl
77
data "tencentcloud_dnspod_records" "record" {
88
domain = "example.com"
9-
subdomain = "www.example.com"
9+
subdomain = "www"
1010
}
1111
1212
output "result" {
@@ -19,7 +19,7 @@ Use verbose filter
1919
```hcl
2020
data "tencentcloud_dnspod_records" "record" {
2121
domain = "example.com"
22-
subdomain = "www.example.com"
22+
subdomain = "www"
2323
limit = 100
2424
record_type = "TXT"
2525
sort_field = "updated_on"

tencentcloud/resource_tc_mysql_instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ resource "tencentcloud_mysql_instance" "default" {
3030
}
3131
3232
parameters = {
33+
character_set_server = "UTF8"
3334
max_connections = "1000"
3435
}
3536
}

tencentcloud/resource_tc_redis_param_template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resource "tencentcloud_redis_param_template" "param_template" {
88
name = "example-template"
99
description = "This is an example redis param template."
1010
product_type = 6
11-
params {
11+
params_override {
1212
key = "timeout"
1313
value = "7200"
1414
}
@@ -21,7 +21,7 @@ resource "tencentcloud_redis_param_template" "param_template" {
2121
name = "example-copied"
2222
description = "This is an copied redis param template from xxx."
2323
template_id = "xxx"
24-
params {
24+
params_override {
2525
key = "timeout"
2626
value = "7200"
2727
}

tencentcloud/resource_tc_security_group_rule.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/*
22
Provides a resource to create security group rule.
33
4+
~> **NOTE:** Single security rule is hardly ordered, use tencentcloud_security_group_lite_rule instead.
5+
46
Example Usage
57
68
Source is CIDR ip

tencentcloud/resource_tc_security_group_rule_set.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Provides a resource to create security group rule.
3-
This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions
3+
This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions.
44
55
~> **NOTE:** This resource must exclusive in one security group, do not declare additional rule resources of this security group elsewhere.
66
@@ -49,7 +49,13 @@ resource "tencentcloud_security_group_rule_set" "sglab_1" {
4949
}
5050
```
5151
52+
Import
5253
54+
Resource tencentcloud_security_group_rule_set can be imported by passing security grou id:
55+
56+
```
57+
terraform import tencentcloud_security_group_rule_set.sglab_1 sg-xxxxxxxx
58+
```
5359
*/
5460
package tencentcloud
5561

website/docs/d/dnspod_records.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Use this data source to query dnspod record list.
1616
```hcl
1717
data "tencentcloud_dnspod_records" "record" {
1818
domain = "example.com"
19-
subdomain = "www.example.com"
19+
subdomain = "www"
2020
}
2121
2222
output "result" {
@@ -29,7 +29,7 @@ Use verbose filter
2929
```hcl
3030
data "tencentcloud_dnspod_records" "record" {
3131
domain = "example.com"
32-
subdomain = "www.example.com"
32+
subdomain = "www"
3333
limit = 100
3434
record_type = "TXT"
3535
sort_field = "updated_on"

website/docs/r/mysql_instance.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ resource "tencentcloud_mysql_instance" "default" {
4040
}
4141
4242
parameters = {
43-
max_connections = "1000"
43+
character_set_server = "UTF8"
44+
max_connections = "1000"
4445
}
4546
}
4647
```

website/docs/r/redis_param_template.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resource "tencentcloud_redis_param_template" "param_template" {
1818
name = "example-template"
1919
description = "This is an example redis param template."
2020
product_type = 6
21-
params {
21+
params_override {
2222
key = "timeout"
2323
value = "7200"
2424
}
@@ -32,7 +32,7 @@ resource "tencentcloud_redis_param_template" "param_template" {
3232
name = "example-copied"
3333
description = "This is an copied redis param template from xxx."
3434
template_id = "xxx"
35-
params {
35+
params_override {
3636
key = "timeout"
3737
value = "7200"
3838
}

website/docs/r/security_group_rule.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to create security group rule.
1313

14+
~> **NOTE:** Single security rule is hardly ordered, use tencentcloud_security_group_lite_rule instead.
15+
1416
## Example Usage
1517

1618
Source is CIDR ip

website/docs/r/security_group_rule_set.html.markdown

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ page_title: "TencentCloud: tencentcloud_security_group_rule_set"
55
sidebar_current: "docs-tencentcloud-resource-security_group_rule_set"
66
description: |-
77
Provides a resource to create security group rule.
8-
This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions
8+
This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions.
99
---
1010

1111
# tencentcloud_security_group_rule_set
1212

1313
Provides a resource to create security group rule.
14-
This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions
14+
This resource is similar with tencentcloud_security_group_lite_rule, rules can be ordered and configure descriptions.
1515

1616
~> **NOTE:** This resource must exclusive in one security group, do not declare additional rule resources of this security group elsewhere.
1717

@@ -104,3 +104,11 @@ In addition to all arguments above, the following attributes are exported:
104104
* `version` - Security policies version, auto increment for every update.
105105

106106

107+
## Import
108+
109+
Resource tencentcloud_security_group_rule_set can be imported by passing security grou id:
110+
111+
```
112+
terraform import tencentcloud_security_group_rule_set.sglab_1 sg-xxxxxxxx
113+
```
114+

0 commit comments

Comments
 (0)