File tree Expand file tree Collapse file tree 3 files changed +24
-16
lines changed
tencentcloud/services/vpc Expand file tree Collapse file tree 3 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:enhancement
2+ datasource/tencentcloud_vpc_acls: update doc
3+ ```
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ Use this data source to query VPC Network ACL information.
22
33Example 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+ ```
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments