File tree 3 files changed +24
-16
lines changed
tencentcloud/services/vpc
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.
2
2
3
3
Example Usage
4
4
5
+ Query all acls
6
+
5
7
``` hcl
6
- data "tencentcloud_vpc_instances " "foo " {
7
- }
8
+ data "tencentcloud_vpc_acls " "example " {}
9
+ ```
8
10
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
12
12
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"
15
18
}
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.
13
13
14
14
## Example Usage
15
15
16
+ ### Query all acls
17
+
16
18
``` hcl
17
- data "tencentcloud_vpc_instances " "foo " {
18
- }
19
+ data "tencentcloud_vpc_acls " "example " {}
20
+ ```
19
21
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
23
23
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"
26
29
}
27
30
```
28
31
You can’t perform that action at this time.
0 commit comments