Software Secure Workload
Activity Configure

Update an Exclusion Filter

This endpoint updates an exclusion filter.

PUT /openapi/v1/exclusion_filters/{exclusion_filter_id}

Parameters: The request URL contains the following parameters

Name

Type

Description

exclusion_filter_id

string

The unique identifier for the exclusion filter.

The JSON request body contains the following keys

Attribute

Type

Description

consumer_filter_id

string

(optional) ID of a defined filter. Currently, any cluster belonging to the workspace, user defined filter or scope can be used as the consumer of a policy.

provider_filter_id

string

(optional) ID of a defined filter. Currently, any cluster belonging to the workspace, user defined filter or scope can be used as the provider of a policy.

proto

integer

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 modified exclusion filter object with the specified ID.

Sample python code


  payload = {'proto': 17}
  exclusion_filter_id = '<exclusion-filter-id>'
  restclient.post('/exclusion_filters/%s' % exclusion_filter_id,
                  json_body=json.dumps(payload))