policy export
Exports security policies.
Syntax
- CLI
-
Use the
maprcli security policy export
command to export all security policies from the master node. You can then use the policy import command to import policies./opt/mapr/bin/maprcli security policy export
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/security/policy/export
Parameters
None
The maprcli security policy export
command dumps the security
policies to the standard output. Use redirection to redirect the output to a file. For
example, the following command redirects output to the /tmp/polfile
file.
/opt/mapr/bin/maprcli security policy export > /tmp/polfile
curl -u mapr:mapr -X GET -k "https://host:8443/rest/security/policy/export > /tmp/polfile