diff --git a/config/_default/menus/api.en.yaml b/config/_default/menus/api.en.yaml index 75b9bf99d0a..ee355ee0c8e 100644 --- a/config/_default/menus/api.en.yaml +++ b/config/_default/menus/api.en.yaml @@ -7109,6 +7109,66 @@ menu: url: /api/latest/application-security/ identifier: application-security generated: true + - name: Update a WAF Policy + url: '#update-a-waf-policy' + identifier: application-security-update-a-waf-policy + parent: application-security + generated: true + params: + versions: + - v2 + operationids: + - UpdateApplicationSecurityWafPolicy + unstable: [] + order: 8 + - name: Get a WAF Policy + url: '#get-a-waf-policy' + identifier: application-security-get-a-waf-policy + parent: application-security + generated: true + params: + versions: + - v2 + operationids: + - GetApplicationSecurityWafPolicy + unstable: [] + order: 6 + - name: Delete a WAF Policy + url: '#delete-a-waf-policy' + identifier: application-security-delete-a-waf-policy + parent: application-security + generated: true + params: + versions: + - v2 + operationids: + - DeleteApplicationSecurityWafPolicy + unstable: [] + order: 9 + - name: Create a WAF Policy + url: '#create-a-waf-policy' + identifier: application-security-create-a-waf-policy + parent: application-security + generated: true + params: + versions: + - v2 + operationids: + - CreateApplicationSecurityWafPolicy + unstable: [] + order: 7 + - name: List all WAF policies + url: '#list-all-waf-policies' + identifier: application-security-list-all-waf-policies + parent: application-security + generated: true + params: + versions: + - v2 + operationids: + - ListApplicationSecurityWAFPolicies + unstable: [] + order: 10 - name: Update a WAF exclusion filter url: '#update-a-waf-exclusion-filter' identifier: application-security-update-a-waf-exclusion-filter @@ -7180,7 +7240,7 @@ menu: operationids: - UpdateApplicationSecurityWafCustomRule unstable: [] - order: 7 + order: 14 - name: Get a WAF custom rule url: '#get-a-waf-custom-rule' identifier: application-security-get-a-waf-custom-rule @@ -7192,7 +7252,7 @@ menu: operationids: - GetApplicationSecurityWafCustomRule unstable: [] - order: 6 + order: 11 - name: Delete a WAF Custom Rule url: '#delete-a-waf-custom-rule' identifier: application-security-delete-a-waf-custom-rule @@ -7204,7 +7264,7 @@ menu: operationids: - DeleteApplicationSecurityWafCustomRule unstable: [] - order: 8 + order: 15 - name: Create a WAF custom rule url: '#create-a-waf-custom-rule' identifier: application-security-create-a-waf-custom-rule @@ -7216,7 +7276,7 @@ menu: operationids: - CreateApplicationSecurityWafCustomRule unstable: [] - order: 10 + order: 12 - name: List all WAF custom rules url: '#list-all-waf-custom-rules' identifier: application-security-list-all-waf-custom-rules @@ -7228,7 +7288,7 @@ menu: operationids: - ListApplicationSecurityWAFCustomRules unstable: [] - order: 9 + order: 13 - name: Audit url: /api/latest/audit/ identifier: audit diff --git a/content/en/api/v2/application-security/examples.json b/content/en/api/v2/application-security/examples.json index 8a73a880969..fd28a4f2d4f 100644 --- a/content/en/api/v2/application-security/examples.json +++ b/content/en/api/v2/application-security/examples.json @@ -63,7 +63,7 @@ } ] }, - "html": "
data
\n[object]
The WAF custom rule data.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The Name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\n[object]
The WAF custom rule data.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\nobject
Object for a single WAF custom rule.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The Name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\nobject
Object for a single WAF custom rule.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data [required]
\nobject
Object for a single WAF custom rule.
attributes [required]
\nobject
Create a new WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
name [required]
\nstring
The Name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
type [required]
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data [required]
\nobject
Object for a single WAF custom rule.
attributes [required]
\nobject
Create a new WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
name [required]
\nstring
The name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
type [required]
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\nobject
Object for a single WAF custom rule.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The Name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\nobject
Object for a single WAF custom rule.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\nobject
Object for a single WAF custom rule.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The Name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data
\nobject
Object for a single WAF custom rule.
attributes
\nobject
A WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
metadata
\nobject
Metadata associated with the WAF Custom Rule.
added_at
\ndate-time
The date and time the WAF custom rule was created.
added_by
\nstring
The handle of the user who created the WAF custom rule.
added_by_name
\nstring
The name of the user who created the WAF custom rule.
modified_at
\ndate-time
The date and time the WAF custom rule was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF custom rule.
modified_by_name
\nstring
The name of the user who last updated the WAF custom rule.
name [required]
\nstring
The name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
id
\nstring
The ID of the custom rule.
type
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data [required]
\nobject
Object for a single WAF Custom Rule.
attributes [required]
\nobject
Update a WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
name [required]
\nstring
The Name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
type [required]
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data [required]
\nobject
Object for a single WAF Custom Rule.
attributes [required]
\nobject
Update a WAF custom rule.
action
\nobject
The definition of ApplicationSecurityWafCustomRuleAction object.
action
\nenum
Override the default action to take when the WAF custom rule would block. \nAllowed enum values: redirect_request,block_request
default: block_request
parameters
\nobject
The definition of ApplicationSecurityWafCustomRuleActionParameters object.
location
\nstring
The location to redirect to when the WAF custom rule triggers.
status_code
\nint64
The status code to return when the WAF custom rule triggers.
default: 403
blocking [required]
\nboolean
Indicates whether the WAF custom rule will block the request.
conditions [required]
\n[object]
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF\nrule to trigger.
operator [required]
\nenum
Operator to use for the WAF Condition. \nAllowed enum values: match_regex,!match_regex,phrase_match,!phrase_match,is_xss,is_sqli,exact_match,!exact_match,ip_match,!ip_matchShow 5 more
,capture_data,exists,!exists,equals,!equals
parameters [required]
\nobject
The scope of the WAF custom rule.
data
\nstring
Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter.
inputs [required]
\n[object]
List of inputs on which at least one should match with the given operator.
address [required]
\nenum
Input from the request on which the condition should apply. \nAllowed enum values: server.db.statement,server.io.fs.file,server.io.net.url,server.sys.shell.cmd,server.request.method,server.request.uri.raw,server.request.path_params,server.request.query,server.request.headers,server.request.headers.no_cookiesShow 21 more
,server.request.custom-auth,server.request.cookies,server.request.trailers,server.request.body,server.request.body.filenames,server.response.status,server.response.headers.no_cookies,server.response.trailers,server.response.body,grpc.server.request.metadata,grpc.server.request.message,grpc.server.method,graphql.server.all_resolvers,usr.id,http.client_ip,server.llm.event,server.llm.guard.verdict,_dd.appsec.fp.http.header,_dd.appsec.fp.http.network,_dd.appsec.fp.session,_dd.appsec.fp.http.endpoint
key_path
\n[string]
Specific path for the input.
list
\n[string]
List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and\n!exact_match operator.
options
\nobject
Options for the operator of this condition.
case_sensitive
\nboolean
Evaluate the value as case sensitive.
min_length
\nint64
Only evaluate this condition if the value has a minimum amount of characters.
regex
\nstring
Regex to use with the condition. Only used with match_regex and !match_regex operator.
type
\nenum
The type of the value to compare against. Only used with the equals and !equals operator. \nAllowed enum values: boolean,signed,unsigned,float,string
value
\nstring
Store the captured value in the specified tag name. Only used with the capture_data operator.
enabled [required]
\nboolean
Indicates whether the WAF custom rule is enabled.
name [required]
\nstring
The name of the WAF custom rule.
path_glob
\nstring
The path glob for the WAF custom rule.
scope
\n[object]
The scope of the WAF custom rule.
env [required]
\nstring
The environment scope for the WAF custom rule.
service [required]
\nstring
The service scope for the WAF custom rule.
tags [required]
\nobject
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security\nactivity field associated with the traces.
category [required]
\nenum
The category of the WAF Rule, can be either business_logic, attack_attempt or security_response. \nAllowed enum values: attack_attempt,business_logic,security_response
type [required]
\nstring
The type of the WAF rule, associated with the category will form the security activity.
type [required]
\nenum
The type of the resource. The value should always be custom_rule. \nAllowed enum values: custom_rule
default: custom_rule
data [required]
\nobject
Object for updating a single WAF exclusion filter.
attributes [required]
\nobject
Attributes for updating a WAF exclusion filter.
description [required]
\nstring
A description for the exclusion filter.
enabled [required]
\nboolean
Indicates whether the exclusion filter is enabled.
ip_list
\n[string]
The client IP addresses matched by the exclusion filter (CIDR notation is supported).
on_match
\nenum
The action taken when the exclusion filter matches. When set to monitor, security traces are emitted but the requests are not blocked. By default, security traces are not emitted and the requests are not blocked. \nAllowed enum values: monitor
parameters
\n[string]
A list of parameters matched by the exclusion filter in the HTTP query string and HTTP request body. Nested parameters can be matched by joining fields with a dot character.
path_glob
\nstring
The HTTP path glob expression matched by the exclusion filter.
rules_target
\n[object]
The WAF rules targeted by the exclusion filter.
rule_id
\nstring
Target a single WAF rule based on its identifier.
tags
\nobject
Target multiple WAF rules based on their tags.
category
\nstring
The category of the targeted WAF rules.
type
\nstring
The type of the targeted WAF rules.
scope
\n[object]
The services where the exclusion filter is deployed.
env
\nstring
Deploy on this environment.
service
\nstring
Deploy on this service.
type [required]
\nenum
Type of the resource. The value should always be exclusion_filter. \nAllowed enum values: exclusion_filter
default: exclusion_filter
data
\n[object]
The WAF policy data.
attributes
\nobject
A WAF policy.
description [required]
\nstring
Description of the WAF policy.
isDefault
\nboolean
Make this policy the default policy. The default policy is applied to\nevery service not specifically assigned to another policy.
name [required]
\nstring
The name of the WAF policy.
protectionPresets
\n[string]
Presets enabled on this policy.
rules
\n[object]
Rule overrides applied by the policy.
blocking [required]
\nboolean
When blocking is enabled, the rule will block the traffic matched by this rule.
enabled [required]
\nboolean
When false, this rule will not match any traffic.
extended_data_collection
\nboolean
When true, collects additional data from the WAF for this rule.
id [required]
\nstring
Override the parameters for this WAF rule identifier.
rulesets
\n[object]
DEPRECATED: Deprecated: Ruleset overrides. Use protectionPresets instead.
blocking [required]
\nboolean
When blocking is enabled, the ruleset will block the traffic it matches.
enabled [required]
\nboolean
When false, this ruleset will not match any traffic.
id [required]
\nstring
The identifier of the ruleset to override.
scope
\n[object]
The scope of the WAF policy.
env [required]
\nstring
The environment scope for the WAF policy.
service [required]
\nstring
The service scope for the WAF policy.
version
\nint64
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.
id
\nstring
The ID of the policy.
meta
\nobject
Metadata associated with the WAF policy.
added_at
\ndate-time
The date and time the WAF policy was created.
added_by
\nstring
The handle of the user who created the WAF policy.
added_by_name
\nstring
The name of the user who created the WAF policy.
modified_at
\ndate-time
The date and time the WAF policy was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF policy.
modified_by_name
\nstring
The name of the user who last updated the WAF policy.
type
\nenum
The type of the resource. The value should always be policy. \nAllowed enum values: policy
default: policy
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
data
\nobject
Object for a single WAF policy.
attributes
\nobject
A WAF policy.
description [required]
\nstring
Description of the WAF policy.
isDefault
\nboolean
Make this policy the default policy. The default policy is applied to\nevery service not specifically assigned to another policy.
name [required]
\nstring
The name of the WAF policy.
protectionPresets
\n[string]
Presets enabled on this policy.
rules
\n[object]
Rule overrides applied by the policy.
blocking [required]
\nboolean
When blocking is enabled, the rule will block the traffic matched by this rule.
enabled [required]
\nboolean
When false, this rule will not match any traffic.
extended_data_collection
\nboolean
When true, collects additional data from the WAF for this rule.
id [required]
\nstring
Override the parameters for this WAF rule identifier.
rulesets
\n[object]
DEPRECATED: Deprecated: Ruleset overrides. Use protectionPresets instead.
blocking [required]
\nboolean
When blocking is enabled, the ruleset will block the traffic it matches.
enabled [required]
\nboolean
When false, this ruleset will not match any traffic.
id [required]
\nstring
The identifier of the ruleset to override.
scope
\n[object]
The scope of the WAF policy.
env [required]
\nstring
The environment scope for the WAF policy.
service [required]
\nstring
The service scope for the WAF policy.
version
\nint64
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.
id
\nstring
The ID of the policy.
meta
\nobject
Metadata associated with the WAF policy.
added_at
\ndate-time
The date and time the WAF policy was created.
added_by
\nstring
The handle of the user who created the WAF policy.
added_by_name
\nstring
The name of the user who created the WAF policy.
modified_at
\ndate-time
The date and time the WAF policy was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF policy.
modified_by_name
\nstring
The name of the user who last updated the WAF policy.
type
\nenum
The type of the resource. The value should always be policy. \nAllowed enum values: policy
default: policy
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
data [required]
\nobject
Object for a single WAF policy.
attributes [required]
\nobject
Create a new WAF policy.
basedOn [required]
\nstring
When creating a new policy, clone the policy indicated by this identifier.
description [required]
\nstring
Description of the WAF policy.
isDefault
\nboolean
Make this policy the default policy. The default policy is applied to\nevery service not specifically assigned to another policy.
name [required]
\nstring
The name of the WAF policy.
protectionPresets
\n[string]
Presets enabled on this policy.
rules
\n[object]
Rule overrides applied by the policy.
blocking [required]
\nboolean
When blocking is enabled, the rule will block the traffic matched by this rule.
enabled [required]
\nboolean
When false, this rule will not match any traffic.
extended_data_collection
\nboolean
When true, collects additional data from the WAF for this rule.
id [required]
\nstring
Override the parameters for this WAF rule identifier.
rulesets
\n[object]
DEPRECATED: Deprecated: Ruleset overrides. Use protectionPresets instead.
blocking [required]
\nboolean
When blocking is enabled, the ruleset will block the traffic it matches.
enabled [required]
\nboolean
When false, this ruleset will not match any traffic.
id [required]
\nstring
The identifier of the ruleset to override.
scope
\n[object]
The scope of the WAF policy.
env [required]
\nstring
The environment scope for the WAF policy.
service [required]
\nstring
The service scope for the WAF policy.
version
\nint64
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.
type [required]
\nenum
The type of the resource. The value should always be policy. \nAllowed enum values: policy
default: policy
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
data
\nobject
Object for a single WAF policy.
attributes
\nobject
A WAF policy.
description [required]
\nstring
Description of the WAF policy.
isDefault
\nboolean
Make this policy the default policy. The default policy is applied to\nevery service not specifically assigned to another policy.
name [required]
\nstring
The name of the WAF policy.
protectionPresets
\n[string]
Presets enabled on this policy.
rules
\n[object]
Rule overrides applied by the policy.
blocking [required]
\nboolean
When blocking is enabled, the rule will block the traffic matched by this rule.
enabled [required]
\nboolean
When false, this rule will not match any traffic.
extended_data_collection
\nboolean
When true, collects additional data from the WAF for this rule.
id [required]
\nstring
Override the parameters for this WAF rule identifier.
rulesets
\n[object]
DEPRECATED: Deprecated: Ruleset overrides. Use protectionPresets instead.
blocking [required]
\nboolean
When blocking is enabled, the ruleset will block the traffic it matches.
enabled [required]
\nboolean
When false, this ruleset will not match any traffic.
id [required]
\nstring
The identifier of the ruleset to override.
scope
\n[object]
The scope of the WAF policy.
env [required]
\nstring
The environment scope for the WAF policy.
service [required]
\nstring
The service scope for the WAF policy.
version
\nint64
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.
id
\nstring
The ID of the policy.
meta
\nobject
Metadata associated with the WAF policy.
added_at
\ndate-time
The date and time the WAF policy was created.
added_by
\nstring
The handle of the user who created the WAF policy.
added_by_name
\nstring
The name of the user who created the WAF policy.
modified_at
\ndate-time
The date and time the WAF policy was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF policy.
modified_by_name
\nstring
The name of the user who last updated the WAF policy.
type
\nenum
The type of the resource. The value should always be policy. \nAllowed enum values: policy
default: policy
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
data
\nobject
Object for a single WAF policy.
attributes
\nobject
A WAF policy.
description [required]
\nstring
Description of the WAF policy.
isDefault
\nboolean
Make this policy the default policy. The default policy is applied to\nevery service not specifically assigned to another policy.
name [required]
\nstring
The name of the WAF policy.
protectionPresets
\n[string]
Presets enabled on this policy.
rules
\n[object]
Rule overrides applied by the policy.
blocking [required]
\nboolean
When blocking is enabled, the rule will block the traffic matched by this rule.
enabled [required]
\nboolean
When false, this rule will not match any traffic.
extended_data_collection
\nboolean
When true, collects additional data from the WAF for this rule.
id [required]
\nstring
Override the parameters for this WAF rule identifier.
rulesets
\n[object]
DEPRECATED: Deprecated: Ruleset overrides. Use protectionPresets instead.
blocking [required]
\nboolean
When blocking is enabled, the ruleset will block the traffic it matches.
enabled [required]
\nboolean
When false, this ruleset will not match any traffic.
id [required]
\nstring
The identifier of the ruleset to override.
scope
\n[object]
The scope of the WAF policy.
env [required]
\nstring
The environment scope for the WAF policy.
service [required]
\nstring
The service scope for the WAF policy.
version
\nint64
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.
id
\nstring
The ID of the policy.
meta
\nobject
Metadata associated with the WAF policy.
added_at
\ndate-time
The date and time the WAF policy was created.
added_by
\nstring
The handle of the user who created the WAF policy.
added_by_name
\nstring
The name of the user who created the WAF policy.
modified_at
\ndate-time
The date and time the WAF policy was last updated.
modified_by
\nstring
The handle of the user who last updated the WAF policy.
modified_by_name
\nstring
The name of the user who last updated the WAF policy.
type
\nenum
The type of the resource. The value should always be policy. \nAllowed enum values: policy
default: policy
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
errors [required]
\n[string]
A list of errors.
data [required]
\nobject
Object for a single WAF policy.
attributes [required]
\nobject
Update a WAF policy.
description [required]
\nstring
Description of the WAF policy.
isDefault [required]
\nboolean
Make this policy the default policy. The default policy is applied to\nevery service not specifically assigned to another policy.
name [required]
\nstring
The name of the WAF policy.
protectionPresets [required]
\n[string]
Presets enabled on this policy.
rules [required]
\n[object]
Rule overrides applied by the policy.
blocking [required]
\nboolean
When blocking is enabled, the rule will block the traffic matched by this rule.
enabled [required]
\nboolean
When false, this rule will not match any traffic.
extended_data_collection
\nboolean
When true, collects additional data from the WAF for this rule.
id [required]
\nstring
Override the parameters for this WAF rule identifier.
rulesets
\n[object]
DEPRECATED: Deprecated: Ruleset overrides. Use protectionPresets instead.
blocking [required]
\nboolean
When blocking is enabled, the ruleset will block the traffic it matches.
enabled [required]
\nboolean
When false, this ruleset will not match any traffic.
id [required]
\nstring
The identifier of the ruleset to override.
scope [required]
\n[object]
The scope of the WAF policy.
env [required]
\nstring
The environment scope for the WAF policy.
service [required]
\nstring
The service scope for the WAF policy.
version [required]
\nint64
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.
type [required]
\nenum
The type of the resource. The value should always be policy. \nAllowed enum values: policy
default: policy