filefilter modify

Modifies a filter that disallows the specified file type.

Syntax

CLI
/opt/mapr/bin/maprcli filefilter modify
         -name name
         [ -description description ]
         -fileextensions extension
REST
Request Type POST
Request URL
http[s]://<host:port>/rest/filefilter/modify?<parameters>

Parameters

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
Note: Modifying file filters does not delete files already present in accordance with the current extensions. They only block new files henceforth. For example, if you modify a filter that currently has jpg,png, and now add txt to it, files with an extension of txt that are already present in the volume are not deleted. New files with the txt extension are prevented from being created hereafter.

Example

Modify a filter named noexebat to disallow exe, bat, and sh files:

CLI
/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"
        ]
}
REST
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"]}