Update a Default Exclusion Filter
This endpoint updates a default exclusion filter.
PUT /openapi/v1/default_exclusion_filters/{default_exclusion_filter_id}
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
default_exclusion_filter_id |
string |
The unique identifier for the default exclusion filter. |
The JSON request body contains the following keys
Attribute |
Type |
Description |
consumer_filter_id |
string |
(optional) ID of a defined scope or inventory filter. |
provider_filter_id |
string |
(optional) ID of a defined scope or inventory filter. |
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 default exclusion filter object with the specified ID.
Sample python code
payload = {'proto': 17}
default_exclusion_filter_id = '<default-exclusion-filter-id>'
restclient.post('/default_exclusion_filters/%s' % default_exclusion_filter_id,
json_body=json.dumps(payload))