Skip to content

Commit 9c91682

Browse files
authored
fix(vpn): [138463917] tencentcloud_vpn_customer_gateways update code and doc (#3273)
* add * add * add * Update 3273.txt
1 parent 428a094 commit 9c91682

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

.changelog/3273.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
datasource/tencentcloud_vpn_customer_gateways: update code and doc
3+
```

tencentcloud/services/vpn/data_source_tc_vpn_customer_gateways.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func DataSourceTencentCloudVpnCustomerGateways() *schema.Resource {
8989
}
9090

9191
func dataSourceTencentCloudVpnCustomerGatewaysRead(d *schema.ResourceData, meta interface{}) error {
92-
defer tccommon.LogElapsed("data_source.tencentcloud_customer_gateways.read")()
92+
defer tccommon.LogElapsed("data_source.tencentcloud_vpn_customer_gateways.read")()
9393

9494
logId := tccommon.GetLogId(tccommon.ContextNil)
9595
ctx := context.WithValue(context.TODO(), tccommon.LogIdKey, logId)

tencentcloud/services/vpn/data_source_tc_vpn_customer_gateways.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ Use this data source to query detailed information of VPN customer gateways.
22

33
Example Usage
44

5+
Query all customer gateways
6+
7+
```hcl
8+
data "tencentcloud_vpn_customer_gateways" "example" {}
9+
```
10+
11+
Query customer gateways by filters
12+
513
```hcl
6-
data "tencentcloud_customer_gateways" "foo" {
7-
name = "main"
8-
id = "cgw-xfqag"
14+
data "tencentcloud_vpn_customer_gateways" "example" {
15+
name = "tf-example"
16+
id = "cgw-r1g6c8fr"
917
public_ip_address = "1.1.1.1"
1018
tags = {
11-
test = "tf"
19+
createBy = "Terraform"
1220
}
1321
}
14-
```
22+
```

website/docs/d/vpn_customer_gateways.html.markdown

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ Use this data source to query detailed information of VPN customer gateways.
1313

1414
## Example Usage
1515

16+
### Query all customer gateways
17+
18+
```hcl
19+
data "tencentcloud_vpn_customer_gateways" "example" {}
20+
```
21+
22+
### Query customer gateways by filters
23+
1624
```hcl
17-
data "tencentcloud_customer_gateways" "foo" {
18-
name = "main"
19-
id = "cgw-xfqag"
25+
data "tencentcloud_vpn_customer_gateways" "example" {
26+
name = "tf-example"
27+
id = "cgw-r1g6c8fr"
2028
public_ip_address = "1.1.1.1"
2129
tags = {
22-
test = "tf"
30+
createBy = "Terraform"
2331
}
2432
}
2533
```

0 commit comments

Comments
 (0)