Skip to content

Commit 7092a82

Browse files
authored
fix(vpc): [137272803] tencentcloud_vpc_acls update doc (#3296)
* add * add
1 parent 7bb8496 commit 7092a82

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

.changelog/3296.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_vpc_acls: update doc
3+
```

tencentcloud/services/vpc/data_source_tc_vpc_acls.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ Use this data source to query VPC Network ACL information.
22

33
Example Usage
44

5+
Query all acls
6+
57
```hcl
6-
data "tencentcloud_vpc_instances" "foo" {
7-
}
8+
data "tencentcloud_vpc_acls" "example" {}
9+
```
810

9-
data "tencentcloud_vpc_acls" "foo" {
10-
vpc_id = data.tencentcloud_vpc_instances.foo.instance_list.0.vpc_id
11-
}
11+
Query acls by filters
1212

13-
data "tencentcloud_vpc_acls" "foo" {
14-
name = "test_acl"
13+
```hcl
14+
data "tencentcloud_vpc_acls" "example" {
15+
id = "acl-b7kiagdc"
16+
vpc_id = "vpc-2l5kmsbx"
17+
name = "tf-example"
1518
}
16-
17-
```
19+
```

website/docs/d/vpc_acls.html.markdown

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ Use this data source to query VPC Network ACL information.
1313

1414
## Example Usage
1515

16+
### Query all acls
17+
1618
```hcl
17-
data "tencentcloud_vpc_instances" "foo" {
18-
}
19+
data "tencentcloud_vpc_acls" "example" {}
20+
```
1921

20-
data "tencentcloud_vpc_acls" "foo" {
21-
vpc_id = data.tencentcloud_vpc_instances.foo.instance_list.0.vpc_id
22-
}
22+
### Query acls by filters
2323

24-
data "tencentcloud_vpc_acls" "foo" {
25-
name = "test_acl"
24+
```hcl
25+
data "tencentcloud_vpc_acls" "example" {
26+
id = "acl-b7kiagdc"
27+
vpc_id = "vpc-2l5kmsbx"
28+
name = "tf-example"
2629
}
2730
```
2831

0 commit comments

Comments
 (0)