|
| 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 | + |
0 commit comments