Modifies a filter that disallows the specified file type.
/opt/mapr/bin/maprcli filefilter modify
-name name
[ -description description ]
-fileextensions extension
| Request Type | POST |
| Request URL |
|
| Parameter | Description |
|---|---|
name |
Identifies the filter to modify. The name cannot be modified. |
description |
An optional description. |
fileextensions |
Comma separated list of extensions to block. For example, exe,bat blocks
exe and bat files from being created and stored. Note: The extensions
are NOT case sensitive. Setting the extension to exe blocks
file1.exe but does not block file1.EXE
|
Modify a filter named noexebat to disallow exe, bat, and sh files:
/opt/mapr/bin/maprcli filefilter modify -name noextbat -description No EXE BAT and sh files \
-fileextensions exe,bat,sh -json
{
"timestamp":1609747228371,
"timeofday":"2021-01-04 12:00:28.371 GMT-0800 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Filter Updated successfully"
]
}curl -k -X POST 'https://abc.sj.us:8443/rest/filefilter/modify?name=noexebat&description=No%20EXE%20BAT%20and%20sh%20files&fileextensions=exe,bat,sh' --user mapr:mapr
{"timestamp":1609747413152,"timeofday":"2021-01-04 12:03:33.152 GMT-0800 AM","status":"OK","total":0,"data":[],"messages":["Filter Updated successfully"]}