diff --git a/tencentcloud/services/waf/resource_tc_waf_custom_rule.go b/tencentcloud/services/waf/resource_tc_waf_custom_rule.go index 48a7742f6..f00bc41f1 100644 --- a/tencentcloud/services/waf/resource_tc_waf_custom_rule.go +++ b/tencentcloud/services/waf/resource_tc_waf_custom_rule.go @@ -58,8 +58,8 @@ func ResourceTencentCloudWafCustomRule() *schema.Resource { Required: true, Description: `Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows: -
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is - less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
+
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is + less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
Note: This field may return null, indicating that no valid values can be obtained.`, }, "compare_func": { diff --git a/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.go b/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.go index 84b0fa3a7..8018b66e1 100644 --- a/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.go +++ b/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.go @@ -53,8 +53,8 @@ func ResourceTencentCloudWafCustomWhiteRule() *schema.Resource { Required: true, Description: `Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows: -
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is - less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
+
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is + less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
Note: This field may return null, indicating that no valid values can be obtained.`, }, "compare_func": { diff --git a/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.md b/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.md index 063ea258c..8db46e9b0 100644 --- a/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.md +++ b/tencentcloud/services/waf/resource_tc_waf_custom_white_rule.md @@ -1,5 +1,7 @@ Provides a resource to create a waf custom white rule +-> **NOTE:** If `job_type` is `TimedJob`, Then `expire_time` must select the maximum time value of the `end_date_time` in the parameter list `timed`. + Example Usage Create a standard custom white rule diff --git a/website/docs/r/waf_custom_rule.html.markdown b/website/docs/r/waf_custom_rule.html.markdown index 7afed2b22..a7868ac83 100644 --- a/website/docs/r/waf_custom_rule.html.markdown +++ b/website/docs/r/waf_custom_rule.html.markdown @@ -179,8 +179,8 @@ The `strategies` object supports the following: Note: This field may return null, indicating that no valid values can be obtained. * `field` - (Required, String) Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows: -
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is - less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
+
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is + less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
Note: This field may return null, indicating that no valid values can be obtained. * `case_not_sensitive` - (Optional, Int) 0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained. diff --git a/website/docs/r/waf_custom_white_rule.html.markdown b/website/docs/r/waf_custom_white_rule.html.markdown index 68f6ce19a..b0b16519a 100644 --- a/website/docs/r/waf_custom_white_rule.html.markdown +++ b/website/docs/r/waf_custom_white_rule.html.markdown @@ -11,6 +11,8 @@ description: |- Provides a resource to create a waf custom white rule +-> **NOTE:** If `job_type` is `TimedJob`, Then `expire_time` must select the maximum time value of the `end_date_time` in the parameter list `timed`. + ## Example Usage ### Create a standard custom white rule @@ -168,8 +170,8 @@ The `strategies` object supports the following: Note: This field may return null, indicating that no valid values can be obtained. * `field` - (Required, String) Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows: -
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is - less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
+
Matching Field Matching Parameter Logical Symbol Matching Content
IP (source IP) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.
IPv6 (source IPv6) Parameters are not supported. ipmatch (match)
ipnmatch (mismatch)
A single IPv6 address is supported.
Referer (referer) Parameters are not supported. empty (Content is empty.)
null (do not exist)
eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content, with a maximum of 512 characters.
URL (request path) Parameters are not supported. eq (equal to)
neq (not equal to)
contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is + less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content starting with /, with a maximum of 512 characters.
UserAgent (UserAgent) Parameters are not supported.Same logical symbols as the matching field Referer Enter the content with a maximum of 512 characters.
HTTP_METHOD (HTTP request method) Parameters are not supported. eq (equal to)
neq (not equal to)
Enter the method name. The uppercase is recommended.
QUERY_STRING (request string) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the content with a maximum of 512 characters.
GET (GET parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
GET_PARAMS_NAMES (GET parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
Enter the content with a maximum of 512 characters.
POST (POST parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the content with a maximum of 512 characters.
GET_POST_NAMES (POST parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
POST_BODY (complete body) Parameters are not supported. Same logical symbol as the matching field Request PathEnter the body content with a maximum of 512 characters.
COOKIE (cookie) Parameters are not supported. empty (Content is empty.)
null (do not exist)
rematch (regular expression matching)
Unsupported currently
GET_COOKIES_NAMES (cookie parameter name) Parameters are not supported. Same logical symbol as the matching field GET Parameter Name Enter the content with a maximum of 512 characters.
ARGS_COOKIE (cookie parameter value) Parameter entry is supported. Same logical symbol as the matching field GET Parameter Value Enter the contentwith a maximum of 512 characters.
GET_HEADERS_NAMES (header parameter name) Parameters are not supported. exist (Parameter exists.)
nexist (Parameter does not exist.)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters. The lowercase is recommended.
ARGS_HEADER (header parameter value) Parameter entry is supported. contains (contain)
ncontains (do not contain)
len_eq (length equals to)
len_gt (length is greater than)
len_lt (length is less than)
strprefix (prefix matching)
strsuffix (suffix matching)
rematch (regular expression matching)
Enter the content with a maximum of 512 characters.
Note: This field may return null, indicating that no valid values can be obtained. * `case_not_sensitive` - (Optional, Int) 0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.