Software Secure Workload
Activity Configure

Create a Default Exclusion Filter

This endpoint is used to create a new default exclusion filter.

POST /openapi/v1/default_exclusion_filters?root_app_scope_id={root_app_scope_id}

Parameters: The request URL contains the following parameters

Name

Type

Description

root_app_scope_id

string

The unique identifier of the root scope.

The JSON request body contains the following keys

Attribute

Type

Description

consumer_filter_id

string

(optional) ID of a defined scope or inven-

tory filter.

provider_filter_id

string

(optional) ID of a defined scope or inven-

tory filter.

proto

integer

(optional) Protocol Integer value (NULL

means all protocols).

start_port

integer

(optional) Start port of the range.

end_port

integer

(optional) End port of the range.

Response object: Returns the created default exclusion filter object.

Sample python code


  provider_filter_id = '<provider-filter-id>'
  consumer_filter_id = '<consumer-filter-id>'
  payload = {'consumer_filter_id': consumer_filter_id,
             'provider_filter_id': provider_filter_id,
             'proto': 6,
             'start_port': 800,
             'end_port': 1000}
  root_app_scope_id = '<root-app-scope-id>'
  restclient.post('/default_exclusion_filters?root_app_scope_id=%s' % root_app_scope_id,
                  json_body=json.dumps(payload))