Create a traffic filter
Creates a traffic filter that consists of a set of rules.
Body
Required
The specification for traffic filter.
-
Name of the traffic filter
Minimum length is
1, maximum length is128. -
Description of the traffic filter
Minimum length is
0, maximum length is512. -
Type of the traffic filter
Minimum length is
1, maximum length is32. Values areiporvpce. -
Should the traffic filter be automatically included in the new projects
-
The traffic filter can be attached only to projects in the specific region
Minimum length is
1, maximum length is32. -
List of rules
The container for a traffic filter rule.
POST
/api/v1/serverless/traffic-filters
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/serverless/traffic-filters' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"string","description":"string","type":"ip","include_by_default":true,"region":"string","rules":[{"description":"string","source":"string"}]}'