File tree 3 files changed +51
-4
lines changed
tencentcloud/services/vpc
3 files changed +51
-4
lines changed Original file line number Diff line number Diff line change
1
+ ```release-note:enhancement
2
+ datasource/tencentcloud_security_groups: update doc
3
+ ```
Original file line number Diff line number Diff line change @@ -2,8 +2,30 @@ Use this data source to query detailed information of security groups.
2
2
3
3
Example Usage
4
4
5
+ Query all security groups
6
+
5
7
``` hcl
6
- data "tencentcloud_security_groups" "sglab" {
7
- security_group_id = tencentcloud_security_group.sglab.id
8
+ data "tencentcloud_security_groups" "example" {}
9
+ ```
10
+
11
+ Query security groups by filter
12
+
13
+ ``` hcl
14
+ data "tencentcloud_security_groups" "example" {
15
+ security_group_id = "sg-e699atb7"
16
+ }
17
+
18
+ data "tencentcloud_security_groups" "example" {
19
+ name = "tf-example"
20
+ }
21
+
22
+ data "tencentcloud_security_groups" "example" {
23
+ project_id = 0
24
+ }
25
+
26
+ data "tencentcloud_security_groups" "example" {
27
+ tags = {
28
+ createBy = "Terraform"
29
+ }
8
30
}
9
31
```
Original file line number Diff line number Diff line change @@ -13,9 +13,31 @@ Use this data source to query detailed information of security groups.
13
13
14
14
## Example Usage
15
15
16
+ ### Query all security groups
17
+
18
+ ``` hcl
19
+ data "tencentcloud_security_groups" "example" {}
20
+ ```
21
+
22
+ ### Query security groups by filter
23
+
16
24
``` hcl
17
- data "tencentcloud_security_groups" "sglab" {
18
- security_group_id = tencentcloud_security_group.sglab.id
25
+ data "tencentcloud_security_groups" "example" {
26
+ security_group_id = "sg-e699atb7"
27
+ }
28
+
29
+ data "tencentcloud_security_groups" "example" {
30
+ name = "tf-example"
31
+ }
32
+
33
+ data "tencentcloud_security_groups" "example" {
34
+ project_id = 0
35
+ }
36
+
37
+ data "tencentcloud_security_groups" "example" {
38
+ tags = {
39
+ createBy = "Terraform"
40
+ }
19
41
}
20
42
```
21
43
You can’t perform that action at this time.
0 commit comments