Skip to content

Commit 2ce9bf7

Browse files
committed
add
1 parent c6e45f9 commit 2ce9bf7

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
@@ -6550,9 +6550,6 @@
65506550
<li>
65516551
<a href="/docs/providers/tencentcloud/r/waf_clb_instance.html">tencentcloud_waf_clb_instance</a>
65526552
</li>
6553-
<li>
6554-
<a href="/docs/providers/tencentcloud/r/waf_clb_ip_access_control.html">tencentcloud_waf_clb_ip_access_control</a>
6555-
</li>
65566553
<li>
65576554
<a href="/docs/providers/tencentcloud/r/waf_custom_rule.html">tencentcloud_waf_custom_rule</a>
65586555
</li>
@@ -6562,6 +6559,9 @@
65626559
<li>
65636560
<a href="/docs/providers/tencentcloud/r/waf_ip_access_control.html">tencentcloud_waf_ip_access_control</a>
65646561
</li>
6562+
<li>
6563+
<a href="/docs/providers/tencentcloud/r/waf_ip_access_control_v2.html">tencentcloud_waf_ip_access_control_v2</a>
6564+
</li>
65656565
<li>
65666566
<a href="/docs/providers/tencentcloud/r/waf_module_status.html">tencentcloud_waf_module_status</a>
65676567
</li>
@@ -6574,9 +6574,6 @@
65746574
<li>
65756575
<a href="/docs/providers/tencentcloud/r/waf_saas_instance.html">tencentcloud_waf_saas_instance</a>
65766576
</li>
6577-
<li>
6578-
<a href="/docs/providers/tencentcloud/r/waf_saas_ip_access_control.html">tencentcloud_waf_saas_ip_access_control</a>
6579-
</li>
65806577
<li>
65816578
<a href="/docs/providers/tencentcloud/r/waf_web_shell.html">tencentcloud_waf_web_shell</a>
65826579
</li>

0 commit comments

Comments
 (0)