Skip to content

Commit b00db1b

Browse files
committed
add
1 parent 550259a commit b00db1b

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

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)