Skip to content

Commit 34104a2

Browse files
committed
add
1 parent 800799a commit 34104a2

File tree

2 files changed

+102
-6
lines changed

2 files changed

+102
-6
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
subcategory: "Web Application Firewall(WAF)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_waf_ip_access_control_v2"
5+
sidebar_current: "docs-tencentcloud-resource-waf_ip_access_control_v2"
6+
description: |-
7+
Provides a resource to create a waf ip access control v2
8+
---
9+
10+
# tencentcloud_waf_ip_access_control_v2
11+
12+
Provides a resource to create a waf ip access control v2
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_waf_ip_access_control_v2" "example" {
18+
instance_id = "waf_2kxtlbky11bbcr4b"
19+
domain = "example.com"
20+
action_type = 40
21+
note = "note."
22+
23+
ip_list = [
24+
"10.0.0.10",
25+
"172.0.0.16",
26+
"192.168.0.30"
27+
]
28+
29+
job_type = "TimedJob"
30+
31+
job_date_time {
32+
time_t_zone = "UTC+8"
33+
34+
timed {
35+
end_date_time = 0
36+
start_date_time = 0
37+
}
38+
}
39+
}
40+
```
41+
42+
## Argument Reference
43+
44+
The following arguments are supported:
45+
46+
* `action_type` - (Required, Int, ForceNew) 42: blocklist; 40: allowlist.
47+
* `domain` - (Required, String, ForceNew) Specific domain name, for example, test.qcloudwaf.com.
48+
Global domain name, that is, global.
49+
* `instance_id` - (Required, String, ForceNew) Instance ID.
50+
* `ip_list` - (Required, Set: [`String`]) IP parameter list.
51+
* `job_date_time` - (Optional, List) Details of scheduled configuration.
52+
* `job_type` - (Optional, String) Scheduled configuration type.
53+
* `note` - (Optional, String) Remarks.
54+
55+
The `cron` object of `job_date_time` supports the following:
56+
57+
* `days` - (Optional, Set) Days in each month for execution
58+
Note: This field may return null, indicating that no valid values can be obtained.
59+
* `end_time` - (Optional, String) End time
60+
61+
Note: This field may return null, indicating that no valid values can be obtained.
62+
* `start_time` - (Optional, String) Start time
63+
64+
Note: This field may return null, indicating that no valid values can be obtained.
65+
* `w_days` - (Optional, Set) Days of each week for execution
66+
Note: This field may return null, indicating that no valid values can be obtained.
67+
68+
The `job_date_time` object supports the following:
69+
70+
* `cron` - (Optional, List) Time parameters for periodic execution
71+
Note: This field may return null, indicating that no valid values can be obtained.
72+
* `time_t_zone` - (Optional, String) Time zone
73+
Note: This field may return null, indicating that no valid values can be obtained.
74+
* `timed` - (Optional, List) Time parameters for scheduled execution
75+
Note: This field may return null, indicating that no valid values can be obtained.
76+
77+
The `timed` object of `job_date_time` supports the following:
78+
79+
* `end_date_time` - (Optional, Int) End timestamp, in seconds
80+
Note: This field may return null, indicating that no valid values can be obtained.
81+
* `start_date_time` - (Optional, Int) Start timestamp, in seconds
82+
Note: This field may return null, indicating that no valid values can be obtained.
83+
84+
## Attributes Reference
85+
86+
In addition to all arguments above, the following attributes are exported:
87+
88+
* `id` - ID of the resource.
89+
90+
91+
92+
## Import
93+
94+
waf ip access control v2 can be imported using the id, e.g.
95+
96+
```
97+
terraform import tencentcloud_waf_ip_access_control_v2.example waf_2kxtlbky11bbcr4b#example.com#5503616778
98+
```
99+

website/tencentcloud.erb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6538,9 +6538,6 @@
65386538
<li>
65396539
<a href="/docs/providers/tencentcloud/r/waf_clb_instance.html">tencentcloud_waf_clb_instance</a>
65406540
</li>
6541-
<li>
6542-
<a href="/docs/providers/tencentcloud/r/waf_clb_ip_access_control.html">tencentcloud_waf_clb_ip_access_control</a>
6543-
</li>
65446541
<li>
65456542
<a href="/docs/providers/tencentcloud/r/waf_custom_rule.html">tencentcloud_waf_custom_rule</a>
65466543
</li>
@@ -6550,6 +6547,9 @@
65506547
<li>
65516548
<a href="/docs/providers/tencentcloud/r/waf_ip_access_control.html">tencentcloud_waf_ip_access_control</a>
65526549
</li>
6550+
<li>
6551+
<a href="/docs/providers/tencentcloud/r/waf_ip_access_control_v2.html">tencentcloud_waf_ip_access_control_v2</a>
6552+
</li>
65536553
<li>
65546554
<a href="/docs/providers/tencentcloud/r/waf_module_status.html">tencentcloud_waf_module_status</a>
65556555
</li>
@@ -6562,9 +6562,6 @@
65626562
<li>
65636563
<a href="/docs/providers/tencentcloud/r/waf_saas_instance.html">tencentcloud_waf_saas_instance</a>
65646564
</li>
6565-
<li>
6566-
<a href="/docs/providers/tencentcloud/r/waf_saas_ip_access_control.html">tencentcloud_waf_saas_ip_access_control</a>
6567-
</li>
65686565
<li>
65696566
<a href="/docs/providers/tencentcloud/r/waf_web_shell.html">tencentcloud_waf_web_shell</a>
65706567
</li>

0 commit comments

Comments
 (0)