mc admin policy info
Syntax
Returns the specified policy in JSON format if it exists on the target MinIO deployment.
The following command displays the contents of the writeonly policy on the alias myminio.
The command has the following syntax:
- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
The mc admin policy info command accepts the following arguments:
TARGET
mc-cmd
Required
The alias of a configured MinIO deployment from which to display the specified policy.
POLICYNAME
mc-cmd
Required
The name of the policy whose details you want to display.
--policy-file
mc-cmd
Optional
Specifly the path of a file to write the contents of the specified policy JSON. If the path already exists, the command overwrites the existing file with the contents of the specified file.
Global Flags
This command supports any of the global flags.
Examples
Display the contents of the writeonly policy on the alias myminio.
Show information on a given policy and write the policy JSON content to /tmp/policy.json.
Output
The command returns output that resembles the following: