Response object for multiple WAF exclusion filters.
Expand All
Field
Type
Description
data
[object]
A list of WAF exclusion filters.
attributes
object
Attributes describing a WAF exclusion filter.
description
string
A description for the exclusion filter.
enabled
boolean
Indicates whether the exclusion filter is enabled.
event_query
string
The event query matched by the legacy exclusion filter. Cannot be created nor updated.
ip_list
[string]
The client IP addresses matched by the exclusion filter (CIDR notation is supported).
metadata
object
Extra information about the exclusion filter.
added_at
date-time
The creation date of the exclusion filter.
added_by
string
The handle of the user who created the exclusion filter.
added_by_name
string
The name of the user who created the exclusion filter.
modified_at
date-time
The last modification date of the exclusion filter.
modified_by
string
The handle of the user who last modified the exclusion filter.
modified_by_name
string
The name of the user who last modified the exclusion filter.
on_match
enum
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.
Allowed enum values: monitor
parameters
[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
string
The HTTP path glob expression matched by the exclusion filter.
rules_target
[object]
The WAF rules targeted by the exclusion filter.
rule_id
string
Target a single WAF rule based on its identifier.
tags
object
Target multiple WAF rules based on their tags.
category
string
The category of the targeted WAF rules.
type
string
The type of the targeted WAF rules.
scope
[object]
The services where the exclusion filter is deployed.
env
string
Deploy on this environment.
service
string
Deploy on this service.
search_query
string
Generated event search query for traces matching the exclusion filter.
id
string
The identifier of the WAF exclusion filter.
type
enum
Type of the resource. The value should always be exclusion_filter.
Allowed enum values: exclusion_filter
default: exclusion_filter
{"data":[{"attributes":{"description":"Exclude false positives on a path","enabled":true,"event_query":"string","ip_list":["198.51.100.72"],"metadata":{"added_at":"2019-09-19T10:00:00.000Z","added_by":"string","added_by_name":"string","modified_at":"2019-09-19T10:00:00.000Z","modified_by":"string","modified_by_name":"string"},"on_match":"string","parameters":["list.search.query"],"path_glob":"/accounts/*","rules_target":[{"rule_id":"dog-913-009","tags":{"category":"attack_attempt","type":"lfi"}}],"scope":[{"env":"www","service":"prod"}],"search_query":"string"},"id":"3dd-0uc-h1s","type":"exclusion_filter"}]}
"""
List all WAF exclusion filters returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.application_security_apiimportApplicationSecurityApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=ApplicationSecurityApi(api_client)response=api_instance.list_application_security_waf_exclusion_filters()print(response)
# List all WAF exclusion filters returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ApplicationSecurityAPI.newpapi_instance.list_application_security_waf_exclusion_filters()
// List all WAF exclusion filters returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewApplicationSecurityApi(apiClient)resp,r,err:=api.ListApplicationSecurityWafExclusionFilters(ctx)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ApplicationSecurityApi.ListApplicationSecurityWafExclusionFilters`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `ApplicationSecurityApi.ListApplicationSecurityWafExclusionFilters`:\n%s\n",responseContent)}
// List all WAF exclusion filters returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_application_security::ApplicationSecurityAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=ApplicationSecurityAPI::with_config(configuration);letresp=api.list_application_security_waf_exclusion_filters().await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* List all WAF exclusion filters returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ApplicationSecurityApi(configuration);apiInstance.listApplicationSecurityWafExclusionFilters().then((data: v2.ApplicationSecurityWafExclusionFiltersResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));